← ClaudeAtlas

apply-dev-templateslisted

Apply dev-templates Phase 1 defenses (leak prevention hooks / scripts / CI workflows / .mailmap / .gitignore / .gitattributes) to another project, with optional rules and repo settings. Triggers on natural-language requests like "dev-templates を <project> に適用", "leak prevention をこのリポに導入", "apply dev-templates to <repo>", "bootstrap <repo> with dev-templates". Wraps scripts/apply-to-project.sh (Linux/Mac/Git Bash) and scripts/apply-to-project.ps1 (Windows) with a 6-phase pipeline (Discover / Plan / Apply core / Apply rules / Apply settings / Verify + PR). Profiles: leak-only (default, defenses only), full (defenses + rules + repo settings), rules-only (rules only). Target can be a local path or a github.com/owner/repo URL. ALWAYS dry-run first to show the plan, then ask the user before the real apply. See ADR-0007.
ttamakijp/dev-templates · ★ 0 · Data & Documents · score 73
Install: claude install-skill ttamakijp/dev-templates
# apply-dev-templates ## Overview dev-templates が PR-A/A2/B/C で構築した Phase 1 防御基盤 (ADR-0004/0005/0006/0008) を、別の (downstream) リポジトリへ **1 コマンドで適用** する skill。 段取り時間を 30 分-1 時間 → 約 5 分に短縮する (ADR-0007)。 **Keywords**: apply, bootstrap, leak prevention, multi-AI rules, downstream, orchestration, dev-templates, downstream-repo ## Trigger ### 日本語 - 「dev-templates を `<project>` に適用」 - 「leak prevention をこのリポに導入」 - 「`<repo>` に dev-templates 入れて」 - 「Phase 1 防御をこのプロジェクトに展開して」 - 「`<owner>/<repo>` に dev-templates の hooks 入れて」 ### English - "apply dev-templates to `<repo>`" - "set up leak prevention on `<repo>`" - "bootstrap `<repo>` with dev-templates" - "deploy Phase 1 defenses to `<repo>`" - "install the leak-scan setup on `<owner>/<repo>`" ## Inputs - **必須**: target (local path or `github.com/owner/repo`) - **任意**: - profile: `leak-only` (default) / `full` / `rules-only` - `--dry-run`: plan のみ表示 - `--pr-only`: GitHub URL target で commit + push + gh pr create - `--gh-edit`: repo settings (admin 権限必須) - `--ai-tool`: rules 配信先 (default: all) - `--branch`: PR 用ブランチ名 (default: `chore/apply-dev-templates-<ts>`) ## Outputs target に対して以下を配置: - **leak-only / full** で配置: - `.githooks/pre-commit`, `.githooks/pre-push` - `scripts/check-leakage.sh`, `check-config-drift.sh`, `check-repo-settings.sh`, `setup-hooks.{sh,ps1}` - `.gitleaks.toml` - `.github/workflows/leak-scan.yml`, `settings-drift.yml` - `.mailmap` (既存なら merge、無ければ新規) - `.gitignore` (REQUIRED_GITIGN