# Your professional Claude automation template > [!TIP] > **One workspace, progressive context, verified outcomes.** Native skills handle tasks; deterministic helpers handle setup, ownership, checks and evidence. Choose your product and tools, then load only the guidance you need. [Handbook](README.md) · [Clone/export guide](boilerplate.md) · [All skills](reference/skills/README.md) · [Dashboard](skill-dashboard/index.html) ## Choose how to start | Situation | First action | Next Claude prompt | |---|---|---| | New application | Generate a clean workspace with create_project.py | `/project-kickoff ` | | Existing application | Use the reviewed local installer in that repository | `/codebase-onboarding ` | | Framework maintenance | Work in this source clone and preserve root product seeds | `/framework-audit ` | | Resume existing work | Inspect STATE/ROADMAP and actual Git state | `/project-status` | The [boilerplate guide](boilerplate.md) covers clean export and full-template clone. The [installer guide](installation.md) covers adding native assets to existing code with preview, ownership, rollback and opt-in hooks. Do not copy application code into a populated directory without inspecting conflicts. ## Prepare the workspace ```sh python3 .claude/framework/workspace.py configure --mode new --preset solo python3 .claude/framework/workspace.py configure --mode new --preset solo --apply python3 .claude/framework/workspace.py status ``` For an established repository, use `--mode existing`; for team collaboration, use `--preset team`. No command installs software, calls a model, creates a product, chooses an accepted architecture, changes hooks/permissions or runs application checks. | Argument | Requirement | Meaning | |---|---|---| | Global `--root PATH` | Optional; current directory | Existing project directory; place before the subcommand | | `configure --mode new\|existing` | Required | Select kickoff versus existing-code onboarding | | `--preset solo\|team` | Optional; solo | Advisory handoff/review workflow, not native permission policy | | `--profiles NAME ...` | Optional; none | Select available guidance; package installation and product confirmation remain separate | | `--checks-file PATH` | Optional | Reviewed project-relative JSON with actual gate commands | | `--apply` | Optional; off | Write the previewed setup or rollback | | `status` | No arguments | Report setup, native registrations, project records and check configuration separately | | `rollback` | No arguments | Preview removing only unchanged setup-owned configuration; add --apply to act | Setup owns `.claude/framework/automation.json`, `.claude/framework/gates.json` and their setup manifest. These are **Foundry schemas**, not native Claude settings. Repeating the same configuration is idempotent. Owned, unchanged configuration can be reconfigured; modified/unowned files are refused. Preserve manual/team changes with normal Git review; rollback refuses to remove changed files. Only these setup paths are removed, not application records or native assets. The existing per-file atomic/best-effort rollback engine assumes a trusted exclusive writer. **Solo:** significant changes still receive bounded independent review; handoffs are used when useful. **Team:** use conflict planning before overlapping shared-file work, record a handoff, and review significant changes and merge requests. Presets do not enforce branch protections or spawn agents automatically. Instructions and readiness are not proof that a review occurred. ## Define shared checks once Write a reviewed JSON file using this shape, replacing the example with real commands for your repository: ```json { "gates": [ { "name": "unit", "argv": ["python3", "-m", "unittest", "discover", "-s", "tests"], "timeout": 60, "blocking": true } ] } ``` The example assumes a Python project and is not preconfigured for arbitrary stacks. You may pass it with `--checks-file PATH` during setup, or deliberately edit `.claude/framework/gates.json` through project review. Manual editing changes setup ownership hashes and prevents automatic setup overwrite/rollback until reconciled; it does not disable gate execution. Choose a deliberately maintained shared file rather than an ever-changing ignored personal configuration for team policy. The runner combines shared `.claude/framework/gates.json` with additive ignored `.claude/framework.local.json`. Duplicate names across them are rejected, so a personal file cannot silently replace a team check. Commands use argv arrays without shell interpolation. Configure no credentials or secrets in either file. Timeout is 1..600 seconds; blocking defaults to true. ```sh python3 .claude/framework/framework.py gate python3 .claude/framework/framework.py gate --execute ``` Preview never executes. `--execute` runs the already-reviewed commands from the project root and returns failure for failing blocking checks. No configured gates returns exit 2 / NOT_CONFIGURED. Advisory failures remain visible. Commands themselves can have side effects: review actual manifests/scripts and existing authorization before execution. Startup never runs the suite. review.py captures the same combined configuration in its source-bound review receipts; a receipt does not supply independent review. ## Use the predefined roles and hooks | Component | Responsibility | Boundary | |---|---|---| | Main session | Discovery, implementation and verification | Own one scoped task; preserve unrelated changes | | eng-planner | Material design trade-offs and migrations | Read/Grep/Glob, inherited model; no implementation or recursive delegation | | eng-reviewer | Independent significant-change review | Read/Grep/Glob; findings require concrete evidence | | SessionStart | Read-only setup/resume context | Existing mode points to onboarding; no installs, product writes or test execution | | PreToolUse | Narrow Read/Edit/Write path guard | Inspect actual code; not a full sandbox or secret scanner | | Shared gates | Explicit project command execution | Never triggered automatically by setup or startup | Native definitions live in `.claude/skills/`, `.claude/agents/` and `.claude/settings.json`. Full clone/clean boilerplate defaults register two existing hooks; optional managed installs keep hooks opt-in. Workspace configuration never changes their registrations or grants permissions. [Native mechanisms and examples](reference/native-mechanisms.md) explain scopes and known limits. ## Work in verified slices 1. Capture actual requirements, acceptance criteria and constraints with kickoff or onboarding. 2. Ask missing design questions in small batches. Keep delivery shape, module architecture, domain model, CQRS/events/sagas, validation and entity/schema sources as separate decisions. 3. Record only consequential ADRs, including actual idempotency, races, recovery and trust boundaries when relevant. 4. Implement a small usable slice; select applicable unit/integration/load/performance checks. 5. Run iteration-review for scoped security, claim-evidence, MR review and decision impact; stop or escalate after two rounds. 6. Update real project state and hand off with evidence. Deployment and destructive/global actions remain explicit. [Workflow selection](when-to-use-what.md), [skill arguments](skill-usage.md), [design interview](design-interview.md), [ADRs](adr-guide.md), [collaboration](reference/skills/resolve-conflicts.md) and [testing](testing-guide.md) provide the details. Skills do not guarantee model selection; invoke the named command if needed. No competing orchestrator, model swarm or paid evaluation service is enabled. ## Measure the template itself Use [Skill Lab](skill-dashboard.md) for structure, supplied observed behavior and bounded candidate comparisons. Use workspace status for configuration readiness, doctor for local structural diagnostics, and actual application checks for application behavior. These signals have distinct meanings; none implies production readiness. See [current qualification](../reports/VALIDATION-STATUS.md). ## License and lifecycle The owner selected [MIT](../LICENSE.md) for original Foundry code/docs. Clean export and managed payloads retain the notice as `.claude/framework/LICENSE.md`; application licensing is a separate decision. [Third-party material](../THIRD_PARTY_NOTICES.md) retains its own terms. No remote repository setting, release, publication or account was changed. Review upstream changes and merge selected updates through your normal branch/review process. Design rationale: [ADR-0013](framework/adr/0013-professional-automation-workspace.md). Local qualification: [automation template report](../reports/AUTOMATION-TEMPLATE-VALIDATION.md).