# Use Foundry as a project boilerplate [Handbook](README.md) · [Skill arguments](skill-usage.md) · [Project setup](project-setup.md) Foundry is reusable engineering infrastructure for the application you build. There are two ways to start: keep the complete template checkout, or export a clean application workspace. Neither picks your business domain, backend stack, architecture or accepted ADRs. Profiles are guidance, not installed applications. ## Clean application workspace The exporter requires Python 3.10+ and Git in a Foundry source checkout (a source ZIP without Git metadata is not supported). Create an empty destination and preview: ```sh mkdir ../booking-api python3 scripts/create_project.py --target ../booking-api --name "Booking API" ``` Apply the same reviewed plan: ```sh python3 scripts/create_project.py --target ../booking-api --name "Booking API" --apply cd ../booking-api git init claude ``` Then provide actual product requirements: ```text /project-kickoff Build our booking API for office staff. First slice: create and cancel bookings with authorization and conflict tests. Ask about unresolved architecture, data and stack choices before implementation. ``` The example is illustrative, not a preconfigured product. You do not need to copy skills manually or run a package/plugin installer. Python 3.10+ and Claude Code must already be available. Review project settings/hooks before workspace trust. Native skill selection, prompting and hook dispatch remain live-model behavior requiring actual observation. ### Arguments | Option | Requirement | Meaning | |---|---|---| | --target PATH | Required | Existing empty directory; nonempty directories and unsafe/symlink targets are refused | | --name NAME | Required | Application display name (up to 120 letters/digits/spaces or ._-), not a product specification | | --profiles NAME ... | Optional | Include only these available profile guides; default all guides; an explicit empty list includes none | | --no-hooks | Optional | Omit project hook registration; the default registers SessionStart and narrow Read/Edit/Write guard | | --apply | Optional | Write files; without it generation is a read-only preview | Profile inclusion is not project selection: docs/project/config.json is absent and selected profiles start empty. The later design interview/kickoff chooses appropriate available guidance. If you omitted a profile that you later need, copy it from a reviewed source checkout; do not install a stack merely to satisfy the preference. ### What you get ```text README.md / CHANGELOG.md owned by your application CLAUDE.md / STATE.md / ROADMAP.md .claude/ skills/ all 15 native skills + direct procedures agents/ existing read-only planner/reviewer framework/ standalone helpers, profiles and ADR/test/integration templates settings.json only if hooks enabled docs/ engineering/ generated skill usage/input docs and source/content provenance site/ styled handbook, search, copyable examples and on-page navigation project/ fresh records guidance; product decisions not yet made ``` No source checkout history, research archive, framework reports/tests/CI, ignored or untracked native assets, local credentials/settings or ownership backup manifest is copied. Tracked source still needs secret review: file selection is not a content scanner. The framework MIT notice is retained in .claude/framework/LICENSE.md. Your application license is a separate choice; source research archives retain their own terms. The output has no .git directory or remote, no dependency installation and no live service configuration. ### First checks ```sh python3 .claude/framework/framework.py doctor python3 .claude/framework/framework.py gate ``` Doctor understands this standalone boilerplate distribution. It checks files/configuration and CLI presence, not the application. An empty gate configuration returns 2 (NOT_CONFIGURED), so no application pass is manufactured. Configure inspected actual project commands after choosing the stack; application CI is deliberately not copied from the framework's own maintenance CI. Use project.py init/check through project-kickoff to prepare/complete actual requirements, architecture and ADRs. Pending records remain pending until resolved. ### Git, updates and rollback Initialize your own local Git history before using source-bound review/collaboration helpers; no Git repository, account or remote is created automatically by the exporter. Review future Foundry changes in a separate source checkout and merge selected changes on an application branch. A direct upstream merge from a template-derived application's unrelated history is not an update mechanism. Source/content hashes in docs/engineering/PROVENANCE.json identify the exported working-tree bytes and source revision/dirty state; they are editable reference evidence, not signed attestations. The exporter is create-only: repeat generation into nonempty output is refused, even for an identical name. Use an empty target, not a force/reset option. Project files become application-owned; this is not an optional managed installation, so installer uninstall/update is not its lifecycle. Use your project's normal Git/review/revert process. The existing managed installer remains available for an already-populated project and requires a separate source checkout. Generation assumes trusted, exclusive local access. It preflights paths and uses the existing per-file atomic/best-effort rollback engine; ordinary I/O failures restore created files, but empty directories may remain. No crash-safe multi-file transaction or concurrent-writer lock is claimed. Do not generate into a checkout being edited by another person/session. ## Styled application documentation Open docs/site/index.html in the new workspace. The same locally generated documentation layout includes sidebar navigation, search, copy buttons and the skill input contracts; it does not load source framework reports or maintenance history. Edit application Markdown, then rebuild/check from the application root: ```sh python3 .claude/framework/docs.py python3 .claude/framework/docs.py --check ``` No package install, web server, external font or CDN is needed. Output ownership and renderer limits are documented in the [documentation style guide](documentation-style.md). Creating the boilerplate does not publish documentation or enable hosted CI. ## Complete source template through GitHub The repository is already publicly hosted. On 2026-12-02 its public repository metadata reported is_template=false. An administrator can select **Settings → Template repository** to enable **Use this template**. No GitHub setting was changed here. See [GitHub's template setup](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository) and [creating from a template](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template). GitHub creates from the template's files and starts a new history; it does not apply the clean export filter or run the local generator. Using the full template therefore includes Foundry maintenance docs/tests/history files as ordinary files, even though Git commit history is fresh. Keep those separate from application progress, or use the clean-workspace path above. If you simply clone Foundry, its original Git history/remotes remain; do not push application work to the Foundry origin accidentally. ## Qualification See [boilerplate validation](../reports/BOILERPLATE-VALIDATION.md). Isolated tests cover preview, scope/overwrite refusal, profile/hook selection, content provenance, private-source exclusion, standalone helpers/kickoff, and failure restoration. Live Claude behavior, actual backend builds, GitHub template creation and hosted CI remain unverified. No production-ready claim. Prepare the generated workspace with workspace.py configure/status; see [the automation template guide](automation-template.md). The exported handbook includes its own automation runbook.