원클릭으로
hardening
Audit and harden any repository with standardized quality gates, hooks, and scripts
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Audit and harden any repository with standardized quality gates, hooks, and scripts
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Comprehensive code review with security, patterns, and quality focus
Parallel execution using multiple Claude instances in Kitty terminal
Agile/Waterfall project planning, tracking, and delivery management
McKinsey-level strategic analysis with MECE frameworks and quantitative prioritization
Update project documentation (ADRs, CHANGELOG, running notes) in compact Claude-friendly format
Optimize project instructions and agent setup for lower token usage and higher signal
| name | hardening |
| description | Audit and harden any repository with standardized quality gates, hooks, and scripts |
| allowed-tools | ["Read","Glob","Grep","Bash","Write","Edit"] |
| context | fork |
| user-invocable | true |
| version | 1.1.0 |
Standardize quality gates across any repository. Detects project type, audits existing infrastructure, reports gaps, and applies hardening templates.
For a fast pass/fail assessment without applying changes:
${CLAUDE_HOME:-.claude}/scripts/hardening-check.sh --project-root .
Returns JSON with status: "pass"|"gaps_found", score, and gaps[] with severity levels. Used by planner (step 1.7) to decide if Wave 0 hardening is needed.
Read the project root and classify:
| Signal | Type | Look For |
|---|---|---|
package.json | Node/JS/TS | npm scripts, vitest/jest/playwright, eslint |
requirements.txt / pyproject.toml | Python | pytest, ruff/flake8/black, mypy |
Cargo.toml | Rust | cargo test, clippy |
go.mod | Go | go test, golangci-lint |
| Mixed (multiple) | Hybrid | Both frontend and backend |
Note the project root, source directories, and test framework.
Check each category and report status:
Git Hooks (.husky/, .githooks/, .pre-commit-config.yaml):
Secrets Scanning:
Testing:
Debt Enforcement:
Environment Variables:
.env.example exists with all vars documentedPR Template:
CI/CD:
ADR Structure (token-optimized for agent workflows):
docs/adr/ directory existsdocs/adr/INDEX.md)For each unchecked item, report:
${CLAUDE_HOME:-.claude}/templates/repo-hardening/)Format as a markdown table.
For each gap with a template available, adapt and apply:
${CLAUDE_HOME:-.claude}/templates/repo-hardening/# ADAPT: comments in the templatechmod +x)Template locations:
| Template | Source |
|---|---|
| Pre-commit hook | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/hooks/pre-commit.sh |
| Pre-push hook | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/hooks/pre-push.sh |
| Smart test | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/scripts/smart-test.sh |
| Debt check | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/scripts/debt-check.sh |
| Env-var audit | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/scripts/env-var-audit.sh |
| Secrets scan | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/scripts/secrets-scan.sh |
| PR template | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/github/pull_request_template.md |
| ADR template | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/docs/adr-template.md |
| ADR index | ${CLAUDE_HOME:-.claude}/templates/repo-hardening/docs/adr-index-template.md |
Adaptation rules by project type:
| Project Type | SRC_DIR | Test Runner | Env Pattern | Lint |
|---|---|---|---|---|
| Node/Vite | src | npx vitest related | import.meta.env.VITE_* | eslint |
| Node/CJS | src | npx jest --findRelatedTests | process.env.* | eslint |
| Python | app/src | pytest --co -q | os.environ/os.getenv | ruff |
| Hybrid | Both dirs | Both runners | Both patterns | Both |
After applying, run a quick verification:
git status — show new/modified files--help or dry-run to confirm it worksbash .husky/pre-commit manually# Hardening Report: {project_name}
## Project Type: {type}
## Audit Date: {date}
### Status: {X}/{total} checks passing
| Category | Status | Action Taken |
| ---------- | ----------------------- | ------------ |
| Pre-commit | applied/existed/missing | ... |
| Pre-push | applied/existed/missing | ... |
| ... | ... | ... |
### Applied
- {list of files created/modified}
### Manual Actions Required
- {list of items that need human decision}