harness-bootstrap
Bootstraps or standardizes the AI-agent harness for a repo - analyzes the existing source first, then generates the .claude folder (agents with explicit model/effort/tool budgets, path-scoped rules, commands, hooks, settings.json), the docs tree and AGENTS.md + CLAUDE.md, so one main session works every change at the process it needs, with read-only reviewers as the required gate on risky ones. Covers code repos and repos dedicated to research, strategy or documentation, plus a read-only audit mode beside untouched source. Use when the user asks to "set up base", "thiet lap base coding", "chuan hoa claude folder", "chuan hoa source thanh claude ready", "khoi tao workspace cho AI agents", "set up agents for this repo", or adopts a project that should follow the standard structure. Not for writing a specification set - that is spec-builder.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-10-30
- Stars
- ★ 11
- Forks
- 2
01 前言 Front Matter
- name
- harness-bootstrap
- version
- 1.23.0
- description
- Bootstraps or standardizes the AI-agent harness for a repo - analyzes the existing source first, then generates the .claude folder (agents with explicit model/effort/tool budgets, path-scoped rules, commands, hooks, settings.json), the docs tree and AGENTS.md + CLAUDE.md, so one main session works every change at the process it needs, with read-only reviewers as the required gate on risky ones. Covers code repos and repos dedicated to research, strategy or documentation, plus a read-only audit mode beside untouched source. Use when the user asks to "set up base", "thiet lap base coding", "chuan hoa claude folder", "chuan hoa source thanh claude ready", "khoi tao workspace cho AI agents", "set up agents for this repo", or adopts a project that should follow the standard structure. Not for writing a specification set - that is spec-builder.
- allowed-tools
- Bash(python:*), Bash(python3:*), Bash(git:*), Read, Write, Edit, Grep, Glob, AskUserQuestion, Agent, WebSearch
02 资源文件 180
- 资产文件assets/audit/commands/security-scan.md2.0 KB
- 资产文件assets/audit/commands/triage-findings.md2.2 KB
- 资产文件assets/audit/FINDING.md1.7 KB
- 脚本assets/audit/hooks/protect-repos.ps13.2 KB
- 脚本assets/audit/hooks/protect-repos.sh4.5 KB
- 资产文件assets/claude/agents/ba-analyst.md1.3 KB
- 资产文件assets/claude/agents/checker.md3.6 KB
- 资产文件assets/claude/agents/code-reviewer.md2.6 KB
- 资产文件assets/claude/agents/data-modeler.md1.2 KB
- 资产文件assets/claude/agents/db-engineer.md1.3 KB
- 资产文件assets/claude/agents/db-seeder.md755 B
- 资产文件assets/claude/agents/debugger.md2.5 KB
- 资产文件assets/claude/agents/dev-agent.md3.5 KB
- 资产文件assets/claude/agents/devops.md1.7 KB
- 资产文件assets/claude/agents/history-tracker.md1.1 KB
- 资产文件assets/claude/agents/merge-manager.md3.4 KB
- 资产文件assets/claude/agents/orchestrator.md14.2 KB
- 资产文件assets/claude/agents/qa-test.md2.5 KB
- 资产文件assets/claude/agents/researcher.md2.9 KB
- 资产文件assets/claude/agents/reviewer.md4.0 KB
- 资产文件assets/claude/agents/security-reviewer.md2.7 KB
- 资产文件assets/claude/agents/spec-guardian.md1.4 KB
- 资产文件assets/claude/agents/strategist.md1.9 KB
- 资产文件assets/claude/agents/writer.md1.9 KB
- 资产文件assets/claude/commands/agent-permissions.md1.8 KB
- 资产文件assets/claude/commands/board-audit.md2.5 KB
- 资产文件assets/claude/commands/brainstorm.md1.1 KB
- 资产文件assets/claude/commands/code-graph.md2.6 KB
- 资产文件assets/claude/commands/db-migration.md1.5 KB
- 资产文件assets/claude/commands/deploy.md1.6 KB
- 资产文件assets/claude/commands/docs-graph.md2.1 KB
- 资产文件assets/claude/commands/harness-toggle.md2.6 KB
- 资产文件assets/claude/commands/harness-tune.md5.9 KB
- 资产文件assets/claude/commands/harness-update.md4.3 KB
- 资产文件assets/claude/commands/implement-fr.md4.7 KB
- 资产文件assets/claude/commands/new-adr.md1.1 KB
- 资产文件assets/claude/commands/new-skill.md5.6 KB
- 资产文件assets/claude/commands/new-spec-section.md973 B
- 资产文件assets/claude/commands/new-task.md4.0 KB
- 资产文件assets/claude/commands/review-changes.md5.5 KB
- 资产文件assets/claude/commands/scaffold-feature.md1.3 KB
- 资产文件assets/claude/commands/secret-scan.md1.2 KB
- 资产文件assets/claude/commands/seed-db.md912 B
- 资产文件assets/claude/commands/skill-wire.md5.0 KB
- 资产文件assets/claude/commands/sync-context.md1.2 KB
- 资产文件assets/claude/commands/task-resume.md1.2 KB
- 资产文件assets/claude/commands/test.md1.2 KB
- 资产文件assets/claude/gitignore1.4 KB
- 脚本assets/claude/hooks/agent-history.ps17.5 KB
- 脚本assets/claude/hooks/agent-history.sh10.9 KB
- 脚本assets/claude/hooks/agent-trace.ps12.7 KB
- 脚本assets/claude/hooks/agent-trace.sh5.2 KB
- 脚本assets/claude/hooks/check-commit-msg.ps15.0 KB
- 脚本assets/claude/hooks/check-commit-msg.sh8.1 KB
- 脚本assets/claude/hooks/compact-checkpoint.ps14.9 KB
- 脚本assets/claude/hooks/compact-checkpoint.sh6.5 KB
- 脚本assets/claude/hooks/docs-links.ps12.9 KB
- 脚本assets/claude/hooks/docs-links.sh4.9 KB
- 资产文件assets/claude/hooks/egress-allowlist810 B
- 脚本assets/claude/hooks/graph-stale.ps13.2 KB
- 脚本assets/claude/hooks/graph-stale.sh5.3 KB
- 脚本assets/claude/hooks/guard-agent-scope.ps15.2 KB
- 脚本assets/claude/hooks/guard-agent-scope.sh10.6 KB
- 脚本assets/claude/hooks/guard-agent-spawn.ps18.8 KB
- 脚本assets/claude/hooks/guard-agent-spawn.sh10.2 KB
- 脚本assets/claude/hooks/guard-board.ps12.6 KB
- 脚本assets/claude/hooks/guard-board.sh5.4 KB
- 脚本assets/claude/hooks/guard-config.ps16.8 KB
- 脚本assets/claude/hooks/guard-config.sh11.1 KB
- 脚本assets/claude/hooks/guard-deps.ps17.1 KB
- 脚本assets/claude/hooks/guard-deps.sh10.3 KB
- 脚本assets/claude/hooks/guard-destructive.ps116.7 KB
- 脚本assets/claude/hooks/guard-destructive.sh21.2 KB
- 脚本assets/claude/hooks/guard-egress.ps18.5 KB
- 脚本assets/claude/hooks/guard-egress.sh11.4 KB
- 脚本assets/claude/hooks/guard-large-file.ps17.2 KB
- 脚本assets/claude/hooks/guard-large-file.sh10.1 KB
- 脚本assets/claude/hooks/guard-main-commit.ps14.9 KB
- 脚本assets/claude/hooks/guard-main-commit.sh9.2 KB
- 脚本assets/claude/hooks/guard-migration.ps12.4 KB
- 脚本assets/claude/hooks/guard-migration.sh4.9 KB
- 脚本assets/claude/hooks/guard-task-scope.ps14.2 KB
- 脚本assets/claude/hooks/guard-task-scope.sh5.1 KB
- 脚本assets/claude/hooks/protect-adr.ps11.9 KB
- 脚本assets/claude/hooks/protect-adr.sh5.2 KB
- 脚本assets/claude/hooks/protect-harness.ps12.4 KB
- 脚本assets/claude/hooks/protect-harness.sh8.0 KB
- 脚本assets/claude/hooks/protect-secrets.ps110.0 KB
- 脚本assets/claude/hooks/protect-secrets.sh14.4 KB
- 资产文件assets/claude/hooks/README.md34.5 KB
- 资产文件assets/claude/hooks/registration.posix.json3.1 KB
- 资产文件assets/claude/hooks/registration.windows.json3.7 KB
- 脚本assets/claude/hooks/research-sources.ps12.4 KB
- 脚本assets/claude/hooks/research-sources.sh4.7 KB
- 脚本assets/claude/hooks/retry-budget.ps16.0 KB
- 脚本assets/claude/hooks/retry-budget.sh10.5 KB
- 脚本assets/claude/hooks/rtk-rewrite.ps16.3 KB
- 脚本assets/claude/hooks/rtk-rewrite.sh5.9 KB
- 脚本assets/claude/hooks/secret-guard.ps14.1 KB
- 脚本assets/claude/hooks/secret-guard.sh7.2 KB
- 脚本assets/claude/hooks/session-context.ps13.6 KB
- 脚本assets/claude/hooks/session-context.sh5.6 KB
- 资产文件assets/claude/hooks/spawn-allowlist386 B
- 脚本assets/claude/hooks/specs-reminder.ps11.2 KB
- 脚本assets/claude/hooks/specs-reminder.sh2.0 KB
- 脚本assets/claude/hooks/stop-evidence.ps13.4 KB
- 脚本assets/claude/hooks/stop-evidence.sh6.0 KB
- 资产文件assets/claude/rules/00-overview.md2.0 KB
- 资产文件assets/claude/rules/agent-guardrails.md5.5 KB
- 资产文件assets/claude/rules/ai-governance.md2.8 KB
- 资产文件assets/claude/rules/code-quality.md9.5 KB
- 资产文件assets/claude/rules/conventional-commits.md1.3 KB
- 资产文件assets/claude/rules/data-model.md2.5 KB
- 资产文件assets/claude/rules/ddd.md2.0 KB
- 资产文件assets/claude/rules/docs-workflow.md2.4 KB
- 资产文件assets/claude/rules/frontend.md2.3 KB
- 资产文件assets/claude/rules/ip-compliance.md5.9 KB
- 资产文件assets/claude/rules/model-policy.md2.7 KB
- 资产文件assets/claude/rules/model-tiers.md6.3 KB
- 资产文件assets/claude/rules/output-style.md2.8 KB
- 资产文件assets/claude/rules/performance.md9.7 KB
- 资产文件assets/claude/rules/security-privacy.md13.9 KB
- 资产文件assets/claude/rules/task-tracking.md3.8 KB
- 资产文件assets/claude/rules/testing.md6.4 KB
- 资产文件assets/claude/settings.json11.8 KB
- 资产文件assets/claude/state/history-level35 B
- 资产文件assets/docs/context/business-rules.md982 B
- 资产文件assets/docs/context/glossary.md1016 B
- 资产文件assets/docs/context/known-issues.md1.2 KB
- 资产文件assets/docs/context/tool-changelog.md1.6 KB
- 资产文件assets/docs/gitkeep225 B
- 资产文件assets/docs/master-plan.md1.4 KB
- 资产文件assets/docs/README.md2.6 KB
- 资产文件assets/docs/tasks-pending-README.md1.1 KB
- 资产文件assets/docs/templates/ADR.md1.4 KB
- 资产文件assets/docs/templates/PRD.md1.7 KB
- 资产文件assets/docs/templates/TASK.md4.2 KB
- 资产文件assets/env/env.example2.1 KB
- 资产文件assets/manifest.json22.5 KB
- 资产文件assets/references/models-and-tools.json35.3 KB
- 资产文件assets/root/AGENTS.md12.3 KB
- 资产文件assets/root/CLAUDE.md1.3 KB
- 资产文件assets/root/module-CLAUDE.md261 B
- 脚本assets/scripts/board-check.py11.6 KB
- 脚本assets/scripts/code-graph.py22.9 KB
- 脚本assets/scripts/docs-graph.py6.6 KB
- 脚本assets/scripts/env-read.py10.0 KB
- 脚本assets/scripts/graph-html.py21.0 KB
- 脚本assets/scripts/harness-check.py54.8 KB
- 脚本assets/scripts/harness-graph.py60.0 KB
- 脚本assets/scripts/harness-toggle.py19.8 KB
- 脚本assets/scripts/skill-check.py26.5 KB
- 脚本assets/scripts/task.py38.9 KB
- 脚本assets/scripts/verify-plan.py50.8 KB
- 资产文件assets/skill-template/evals/trigger-cases.md2.6 KB
- 资产文件assets/skill-template/references/REFERENCE.md488 B
- 脚本assets/skill-template/scripts/validate.py1.3 KB
- 资产文件assets/skill-template/SKILL.md.tmpl1.9 KB
- 参考文档commands/agent-permissions.md2.0 KB
- 参考文档commands/board-audit.md2.8 KB
- 参考文档commands/code-graph.md2.9 KB
- 参考文档commands/docs-graph.md2.0 KB
- 参考文档commands/harness-toggle.md3.0 KB
- 参考文档commands/harness-tune.md6.2 KB
- 参考文档commands/harness-update.md4.9 KB
- 参考文档commands/skill-wire.md5.1 KB
- 参考文档evals/trigger-cases.md3.8 KB
- 参考文档README.ja.md2.4 KB
- 参考文档README.md1.8 KB
- 参考文档reference/audit-mode.md11.6 KB
- 参考文档reference/codebase-analysis.md14.9 KB
- 参考文档reference/control-surfaces.md9.8 KB
- 参考文档reference/cost-model.md8.0 KB
- 参考文档reference/intake.md30.9 KB
- 参考文档reference/roster.md17.1 KB
- 参考文档reference/skill-discovery.md10.5 KB
- 参考文档reference/task-control.md13.5 KB
- 参考文档reference/tech-presets.md9.0 KB
- 脚本scripts/port.py33.4 KB
- 脚本scripts/scaffold.py34.4 KB
03 SKILL.md 正文
Harness bootstrap
Installs the standard operating harness: one main session that does the work, rules and module files that load only when relevant, read-only reviewers that gate the risky changes, hooks that fire, and a task board that survives context compaction. Writing seats and the orchestrator are installed but opt-in - a single agent loop is the default for every change inside one repository.
The assets are real files. scripts/scaffold.py installs everything under assets/. Your job is
the decisions - roster, scope, variables - never retyping hooks or commands. Read each reference
when you reach its step, not before; never improvise a step that has one.
Pick the mode first
| Mode | When | What happens |
|---|---|---|
| Update | a vars.json, or a .claude/ this skill generated, exists |
Follow the installed /harness-update: re-run the scaffolder with the existing vars.json, resolve the CONFLICT queue, ask only what changed. Never re-bootstrap over it |
| Audit | agents will never modify the source; a human applies fixes | A read-only control plane beside untouched source: reference/audit-mode.md |
| Brownfield | any source code exists | Analysis first, answers from evidence, then RECONCILE - never clobber |
| Greenfield | empty or near-empty repo | The full structure from intake answers |
Check the rows top to bottom; the first match wins. A single dial is /harness-tune (control
posture) or /agent-permissions (one seat's tools), not a re-run.
Procedure
0. Codebase analysis (brownfield and audit; greenfield skips). Follow
reference/codebase-analysis.md and show the user its Inventory
Report before anything else. Its mapping tables parameterize every later step.
1. Intake. Follow reference/intake.md: purpose first, then one
pre-answered questionnaire of at most two AskUserQuestion calls, asked in the user's own language.
Stack proposals come from reference/tech-presets.md. Detect the target
tools (Cursor, Codex) with pass 9 of the analysis and confirm them (intake Q3a). If no specs exist
(intake Q3), invoke spec-builder through the Skill tool with the confirmed purpose_* flags
before continuing; without the tool, state the exact handoff. Then echo a one-screen plan - created,
kept, modified, and the roster with each seat's model and effort - and get confirmation before
writing anything.
2. Pick the roster - reference/roster.md: purpose profiles, presets,
the allocation table and every frontmatter field. Every seat gets an explicit model:, effort:,
tools: and maxTurns:; unset model: silently bills mechanical work at the caller's tier. Read
reference/cost-model.md only before deviating from the table.
2.5. Skills - reference/skill-discovery.md, when the
questionnaire's Skills answer asks for it (never in audit mode). Every candidate gets a per-skill
read of its files; nothing installs without its own tick in one batched AskUserQuestion.
3. Detect the dev OS. Windows sets windows (.ps1 hooks), macOS/Linux posix (.sh). Get it
wrong and the guardrails never fire, silently. Mixed team: pick the majority and record the gap in
.claude/hooks/README.md. .claude/scripts/ is flavor-neutral stdlib Python; never fork it per OS.
4. Run the scaffolder. Write vars.json from the answers (intake's vars table maps each answer
to its variable or flag), then:
python scripts/scaffold.py --target <repo> --vars vars.json --dry-run # review first
python scripts/scaffold.py --target <repo> --vars vars.json
{
"vars": { "PROJECT_NAME": "...", "DEFAULT_BRANCH": "main", "PR_OR_MR": "PR", "...": "..." },
"flags": ["posix", "ui", "db", "ai", "ddd"],
"modules": [{"path": "src/billing", "owner": "billing-dev", "invariants": "- amounts are integer cents"}]
}
Flags gate conditional assets and blocks: exactly one of windows / posix; the purposes
purpose_code, purpose_research, purpose_strategy, purpose_docs (none means purpose_code);
then ui, db, db_engineer, db_seeder, ai, audit, tdd, ddd, light, unit, e2e,
tests, deploy_ask, long, solo_review, merge_gate, hooks_strict, terse, rtk, pr_cli,
target_cursor, target_codex. What each one ships is in intake's vars table. The scaffolder
refuses code-only flags without purpose_code, and derives checker itself.
Each modules entry renders a module CLAUDE.md (owner, scope, local invariants, commands; 40 lines
at most), loaded only when files there are read. Put module- and path-specific guidance there or in
a path-scoped rule, never in the root files.
The scaffolder never overwrites a file: it reports ADDED, KEPT (identical) or CONFLICT.
CONFLICT is the brownfield reconciliation queue, not an error - resolve each by hand and never
delete what the user wrote without asking. An unresolved {{VAR}} fails the run. Without Python,
copy the assets and substitute by hand, say so, and fix Python.
5. Author what only judgment can.
- The roster and routing tables in
AGENTS.md: every seat appears, every module has exactly one owner. They live there once. The routing table says who owns an area - the main session reads that module'sCLAUDE.mdand does the work. Adapt the Guarded tier row to this project's real irreversible surfaces. - Each dev agent's scope, from real paths.
dev-agent.mdis copied per domain by hand, so resolve its{{#IF_...}}blocks yourself. - The rules the scaffolder never ships -
tech-stack.md,coding-standards.md,git-workflow.md- from the analysis, never invented; and this project's entities in the shippeddata-model.md. - The
settings.jsonallow/deny lists adapted to the real DB-reset and deploy commands, and.env.examplefrom config reads found in the source.
Common assets (hooks, the deny core, the invariant rules, review knowledge bases, core commands,
templates, agent bodies) stay project-neutral so they remain diff-comparable and upgradable. A
sentence that names a module, provider or brand comes from a {{VAR}} or an authored file.
6. Seed the board. Seed docs/tasks/master-plan.md - in brownfield, Phase 1 from the
analysis gap list, grouped into a few large tasks the user approves. The task lifecycle is
reference/task-control.md, its single source.
7. Verify - each item as a real Bash call with its output shown; a check you did not run is
not passed.
python .claude/scripts/harness-check.pyexits 0 (seats, tiers, routing, hooks, citations, skills, board).- Each hook fires on this machine with a sample payload: block exits 2, pass exits 0 (in PowerShell
read
$LASTEXITCODE, never$?). - One real task end to end: create, register, log a row,
/task-resumeit, thenpython .claude/scripts/board-check.pyexits 0. - The maps:
code-graph.py(code repos; writes the module-boundary map),docs-graph.py --check(orphan IDs), thenharness-graph.py --html.
8. Port when intake selected Cursor or Codex: python scripts/port.py --target <repo> --tool cursor|codex|all. It prints its own limits; relay them.
Quality gate
What harness-check.py cannot decide:
- [ ] Every seat of the Guarded flow is filled exactly once (
roster.md's completeness check); an intentionally unfilled seat is named inAGENTS.mdwith who covers it. - [ ] Every rule that can be path-scoped carries
paths:. Only00-overview,agent-guardrails,model-policy,task-tracking,conventional-commitsand (withai)ai-governanceload unconditionally. - [ ] No generated file carries a timestamp, a generation date or a run ID - they are prompt-cache prefix content.
- [ ]
CLAUDE.md+AGENTS.mdstay under 200 lines with the roster and routing tables filled in. - [ ] All four guardrail layers exist:
settings.jsondeny rules, hooks,agent-guardrails.md, and a review command gated by/secret-scan. Hardness of each control:reference/control-surfaces.md. - [ ] The deny list is adapted to the stack found (force push,
rm -rf, prod deploy, secret reads, DB reset). Prefix matches are a speed bump; the hooks are the gate. - [ ] Hook flavor and settings registration match the detected OS;
.claude/.gitignoreexists. - [ ] Seats that need env values (devops, db, qa) use
.claude/scripts/env-read.py, nevercat..env.exampleholds placeholders only. - [ ]
model-policy.mdhas no{{MODEL_*}}left and a class with no approved model reads as an explicit STOP;{{DATA_RESIDENCY}}is answered; every Confidential+ provider has a retention posture indocs/context/tool-changelog.md. - [ ]
ip-compliance.mdlicence allow and deny lists were set by the org;ai-governance.md's{{GATED_ACTIONS}}names this product's real irreversible actions. - [ ] Brownfield: the Inventory Report was confirmed, every dev scope names real paths, nothing the
user wrote was deleted without approval, and
master-plan.mdcarries the migration backlog. - [ ] Handoff: what was created / kept / changed, the roster with model and effort, the flow, and
the next step (
/task-resume).
04 同仓库更多 Skills
citation-style
How this repository cites a source - author, title, year, link.
spec-builder
Writes the requirements contract for a project under docs/specs/ from raw input - an idea, meeting notes, a transcript, a PRD, legacy docs or a codebase - in the user's language. Stable FR IDs, Given/When/Then acceptance criteria, flagged assumptions and open issues, a one-page confirmation sheet a PO or client answers yes/no/change, and a JSON index agents read instead of whole documents. Never invents a requirement. Research, strategy and docs repos get a lighter contract. Use when requirements must be written, confirmed, updated or standardized - "build specs", "tạo specs", "viết tài liệu phân tích yêu cầu", "要件定義を作成して", or the same in any language. Not for building the .claude agent harness (harness-bootstrap), digesting documents into a knowledge base, or writing code or ADRs.
spec-builder
Writes the requirements contract for a project under docs/specs/ from raw input - an idea, meeting notes, a transcript, a PRD, legacy docs or a codebase - in the user's language. Stable FR IDs, Given/When/Then acceptance criteria, flagged assumptions and open issues, a one-page confirmation sheet a PO or client answers yes/no/change, and a JSON index agents read instead of whole documents. Never invents a requirement. Research, strategy and docs repos get a lighter contract. Use when requirements must be written, confirmed, updated or standardized - "build specs", "tạo specs", "viết tài liệu phân tích yêu cầu", "要件定義を作成して", or the same in any language. Not for building the .claude agent harness (harness-bootstrap), digesting documents into a knowledge base, or writing code or ADRs.
spec-builder
Writes the requirements contract for a project under docs/specs/ from raw input - an idea, meeting notes, a transcript, a PRD, legacy docs or a codebase - in the user's language. Stable FR IDs, Given/When/Then acceptance criteria, flagged assumptions and open issues, a one-page confirmation sheet a PO or client answers yes/no/change, and a JSON index agents read instead of whole documents. Never invents a requirement. Research, strategy and docs repos get a lighter contract. Use when requirements must be written, confirmed, updated or standardized - "build specs", "tạo specs", "viết tài liệu phân tích yêu cầu", "要件定義を作成して", or the same in any language. Not for building the .claude agent harness (harness-bootstrap), digesting documents into a knowledge base, or writing code or ADRs.
harness-bootstrap
Bootstraps or standardizes the AI-agent harness for a repo - analyzes the existing source first, then generates the .claude folder (agents with explicit model/effort/tool budgets, path-scoped rules, commands, hooks, settings.json), the docs tree and AGENTS.md + CLAUDE.md, so one main session works every change at the process it needs, with read-only reviewers as the required gate on risky ones. Covers code repos and repos dedicated to research, strategy or documentation, plus a read-only audit mode beside untouched source. Use when the user asks to "set up base", "thiet lap base coding", "chuan hoa claude folder", "chuan hoa source thanh claude ready", "khoi tao workspace cho AI agents", "set up agents for this repo", or adopts a project that should follow the standard structure. Not for writing a specification set - that is spec-builder.
harness-bootstrap
Bootstraps or standardizes the AI-agent harness for a repo - analyzes the existing source first, then generates the .claude folder (agents with explicit model/effort/tool budgets, path-scoped rules, commands, hooks, settings.json), the docs tree and AGENTS.md + CLAUDE.md, so one main session works every change at the process it needs, with read-only reviewers as the required gate on risky ones. Covers code repos and repos dedicated to research, strategy or documentation, plus a read-only audit mode beside untouched source. Use when the user asks to "set up base", "thiet lap base coding", "chuan hoa claude folder", "chuan hoa source thanh claude ready", "khoi tao workspace cho AI agents", "set up agents for this repo", or adopts a project that should follow the standard structure. Not for writing a specification set - that is spec-builder.