mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-09-22 01:10:42 +02:00
Internal accuracy pass against v2.1.220 — no missing upstream features, but broken example code, disagreeing counts, and metadata drift.
Functional fixes: pre-commit.sh now exits 2 so it actually blocks; dependency-check.sh reads file_path from stdin JSON instead of $1; database-mcp.json uses ${DATABASE_URL}; broken fences repaired; three command templates had invalid skill names.
Factual corrections: /fork and /subtask unswapped and /subtask added; /fewer-permission-prompts; permissions.defaultMode; dontAsk/auto unreversed; 31 hook events verified name-by-name; subagent depth 3; skill precedence enterprise > project > personal; /output-style removed not deprecated; permissionDecision gained defer.
Follow-up review fixed defects the pass left behind: zh/vi headers claiming 31 events above 25-name lists, a surviving hardcoded DB credential in the MCP README examples, an unbalanced fence swallowing a metadata footer, and non-canonical tool names. All four translated CATALOG summary tables were recounted so their arithmetic holds.
Full detail in CHANGELOG.md under v2.1.220-r2.
1.5 KiB
1.5 KiB
name: setup-ci-cd description: 品質保証のための pre-commit フックと GitHub Actions を導入する
CI/CD パイプラインのセットアップ
プロジェクトの種類に応じて、包括的な DevOps の品質ゲートを導入する:
- プロジェクトを分析: 言語、フレームワーク、ビルドシステム、既存ツールを検出する
- 言語別ツールで pre-commit フックを設定する:
- フォーマッタ: Prettier/Black/gofmt/rustfmt など
- リンタ: ESLint/Ruff/golangci-lint/Clippy など
- セキュリティ: Bandit/gosec/cargo-audit/npm audit など
- 型チェック: TypeScript/mypy/flow(該当する場合)
- テスト: 関連するテストスイートを実行する
- GitHub Actions ワークフローを作成する(.github/workflows/):
- push/PR 時に pre-commit と同じチェックを実行する
- 複数バージョン/プラットフォームのマトリクス(該当する場合)
- ビルドとテストの検証
- デプロイ手順(必要な場合)
- パイプラインを検証する: ローカルで動作確認し、テスト用 PR を作成し、全チェックの通過を確認する
無料・オープンソースのツールを使う。既存の設定を尊重する。実行時間は短く保つ。
Last Updated: April 9, 2026