Files
claude-howto/ja/01-slash-commands/setup-ci-cd.md
T
Luong NGUYEN b9a973bf32 docs: accuracy pass against Claude Code v2.1.220 (#155)
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.
2026-08-04 15:41:12 +07:00

1.5 KiB
Raw Blame History


name: setup-ci-cd description: 品質保証のための pre-commit フックと GitHub Actions を導入する

CI/CD パイプラインのセットアップ

プロジェクトの種類に応じて、包括的な DevOps の品質ゲートを導入する:

  1. プロジェクトを分析: 言語、フレームワーク、ビルドシステム、既存ツールを検出する
  2. 言語別ツールで pre-commit フックを設定する:
    • フォーマッタ: Prettier/Black/gofmt/rustfmt など
    • リンタ: ESLint/Ruff/golangci-lint/Clippy など
    • セキュリティ: Bandit/gosec/cargo-audit/npm audit など
    • 型チェック: TypeScript/mypy/flow(該当する場合)
    • テスト: 関連するテストスイートを実行する
  3. GitHub Actions ワークフローを作成する(.github/workflows/):
    • push/PR 時に pre-commit と同じチェックを実行する
    • 複数バージョン/プラットフォームのマトリクス(該当する場合)
    • ビルドとテストの検証
    • デプロイ手順(必要な場合)
  4. パイプラインを検証する: ローカルで動作確認し、テスト用 PR を作成し、全チェックの通過を確認する

無料・オープンソースのツールを使う。既存の設定を尊重する。実行時間は短く保つ。


Last Updated: April 9, 2026