Project setup and verification
Claude Project Foundry lives inside the application you build from it. Root .claude/ and CLAUDE.md supply native project guidance; open Claude at the project root and describe your actual requirements. No product or architecture is preselected.
Describe the application
Start with /project-kickoff and include users, principal flows, the first usable slice, constraints and any stack preference. The skill distinguishes actual version evidence from your preferences, compares suitable architectures, records applicable principles and only consequential ADRs, then implements authorized work. Ask for design only if you do not want implementation yet.
For an existing application, use /codebase-onboarding. Existing code, state and ADRs are authoritative evidence to inspect; they are not replaced with the template's construction history.
Deterministic initialization
Prepare a JSON request inside the project, for example docs/project-request.json:
{
"schema_version": 1,
"name": "Clinic Booking",
"description": "Receptionists book and cancel appointments; clinicians see their schedules.",
"profiles": ["dotnet-angular"],
"stack": {"preference": ".NET and Angular; inspect installed versions"}
}The schema accepts only schema_version (1), nonempty name/description, unique supported profiles and a string-to-string stack map. Name length is bounded to 120 characters and description to 12000; no control characters are allowed in names. Preferences are stored as supplied, not verified by the script. Unknown input keys are rejected so a misspelled field is not silently discarded. Unknown profile names or unavailable profile files block initialization.
python3 .claude/framework/project.py init --spec docs/project-request.json
python3 .claude/framework/project.py init --spec docs/project-request.json --applyThe first command is read-only. The second preflights every destination, then writes docs/project/{config.json,brief.md,architecture.md,principles.md,adr/README.md}, STATE.md and ROADMAP.md. Existing identical files are unchanged. Existing differing files cause refusal, except root state/roadmap that exactly match the bundled pristine seeds. User edits, partial existing projects and symlink destinations are preserved by refusal. There is no force flag. A repeated unchanged initialization is idempotent; once project records evolve, use normal skills rather than reinitializing.
Each write uses the same atomic replacement and ordinary-failure restoration as the installer. This is not a crash-safe multi-file transaction or concurrency lock. Work in a trusted, quiescent repository with one writer. No commands, packages, credentials or application services are executed by initialization. JSON contents are data; never interpolate descriptions into shell commands.
Complete the actual decisions
The initializer creates a planning skeleton. It marks architecture, principles and missing requirements with pending markers. Claude must replace those markers with actual requirement-linked decisions, preserve genuine proposed/accepted status, and create ADRs only where justified. docs/project/config.json uses the known request fields; additional user-owned project metadata may coexist and is not semantically validated by the checker.
python3 .claude/framework/project.py checkExit 2 means planning records are missing/incomplete; 1 means an invalid config/path or operational error; 0 means the known fields, files and pending markers passed structural checks. Even exit 0 does not establish semantic architecture quality or a working application. ADR necessity, trade-offs, acceptance and implementation need independent reasoning and actual relevant checks. The command does not mutate files.
Configure actual application checks
Use .claude/framework.local.json (already ignored) for inspected argv commands:
{
"gates": [
{"name": "application-tests", "argv": ["dotnet", "test"], "timeout": 120, "blocking": true}
]
}That example applies only to a .NET project with valid test configuration; choose the commands actually present in your application. Configure build/lint/typecheck/security/API/accessibility checks where applicable. Never put secrets in command arguments. Inspect commands before execution; argv has no implicit shell but its executable still runs with your user privileges.
python3 .claude/framework/framework.py gate
python3 .claude/framework/framework.py gate --executePlan is read-only. Execution returns 2 for no configured checks, 1 for failing blocking checks or malformed config, and 0 when blocking checks pass. Advisory failures remain visible. Design-only work may complete after applicable document checks without pretending application gates ran.
For template maintenance, run python3 -m unittest discover -s tests -v and python3 scripts/validate.py. These exercise Foundry, not your application's behavior. Add application checks to your CI separately. Keep root application state current and framework maintenance history out of routine project context.
Ask before choosing the backend shape
Use /design-interview directly or let /project-kickoff//backend-scaffold invoke it for missing choices. The interview guide documents the options and saved-answer schema. It separates layered/clean organization, DDD, deployment, CQRS, events and sagas rather than forcing one pattern. Dummy, requirements-derived, schema-derived, existing-code and no-model modes are explicit. Supplied schema files are inspected/pinned; they are not executed. Validation and test omissions remain visible. Legacy /eng-* skill commands have been replaced; see migration.
For a fresh workspace without framework maintenance artifacts, use the boilerplate exporter. It retains native skills/hooks/helpers and starts application README/changelog/state separately.
Shared team gates can now live in .claude/framework/gates.json; ignored .claude/framework.local.json adds distinct personal gate names. Preview/execute remains explicit, and review receipts use the same combined list. Workspace configure/status provides preview-first new/existing and solo/team setup. See workspace automation.