A generic, reusable agentic-AI starting point for new projects. It bundles the agent
infrastructure that proved its worth across many repos — slash commands, skills, subagents, safety
rules, an .agent/ governance hub, a project-memory subsystem, and OKF docs tooling — stripped of
all domain specifics so any new project starts mature instead of from scratch.
python bootstrap.py --target ../my-app --name "My App" --stack python --desc "What it does"
# Optionally include runnable starter code/resources for python, node, go, or rust:
python bootstrap.py --target ../my-api --name "My API" --stack python --include-boilerplateThis copies the scaffold into ../my-app, substitutes ${PLACEHOLDER} tokens, and leaves clearly
marked TODO(...) for things only you know (repo URL and optional backlog-provider IDs). Then:
cd ../my-app && git init- Fill in build/test/lint commands in
CLAUDE.md+AGENTS.md. - Choose a backlog provider in
.agent/backlog/; fill GitHub ProjectsTODO(...)markers only if you use that provider. - Run
python scripts/sync_assistant_trees.pywhenever you edit.claude/assets.
--stack accepts python | node | go | rust | generic (sets default build/test/lint commands). Use
--include-boilerplate to generate lightweight starter code/resources for python, node, go, or rust;
the same generator is available later via
python scripts/generate_project_boilerplate.py --stack <stack> --project-slug <slug> --project-desc '...'.
--adopt merges agent scaffolding into a non-empty repo without replacing product files
(README.md, CHANGELOG.md, licenses, existing GitHub workflows, AGENTS.md body). It
copy-if-missing for .claude/, .agent/, scripts/, and docs/; merges .gitignore and
.mcp.json; prepends a short agent-scaffold section to AGENTS.md; writes CLAUDE.md only if
missing; and imports project skills from a .claude/skills symlink (or git-symlink text file)
into a real .claude/skills/ tree before regenerating Cursor/Codex mirrors. CI workflows are
skipped unless you pass --include-ci. Instruction files that are short pointers to a sibling
path (for example Zed's AGENTS.md / CLAUDE.md / GEMINI.md containing .rules) are left
untouched so --adopt does not rewrite the pointer or the target .rules file.
python bootstrap.py --target ../warp --name "Synth Warp" --stack rust --adopt --auto-detect --no-include-ciKeep authoring skills under .claude/skills/. Install shared common-skills globally
(~/.agents/skills); an in-repo install into .agents/skills is wiped on the next sync.
| Area | Path | What it gives you |
|---|---|---|
| Orientation | CLAUDE.md, AGENTS.md |
Project + agent contract templates |
| Slash commands | .claude/commands/ |
/spec /plan /implement /test-and-fix /pr-ready /release-notes, wiki, memory, external-review, /task-claim |
| Skills | .claude/skills/ |
agent-memory, commit-conventions, security-review, critical-commit-audit, systematic-debugging, test-driven-development, verification-before-completion, karpathy-guidelines, subagent-review, backlog-queue, mcp-server-design, threat-modeling-agentic-tools, validate-implementation, release-bump, plus CLI/tooling skills |
| Subagents | .claude/agents/ |
pr-ready-hygiene, critical-commit-audit, external-cli/codex/gemini reviewers |
| Rules | .claude/rules/ |
Always-on safety, SDLC core, and Karpathy coding guardrails |
| Cursor mirror | .cursor/ |
Generated from .claude/ by scripts/sync_assistant_trees.py |
| Codex skills | .agents/skills/ |
Generated repository skills for Codex |
| Codex setup | .codex/ |
Project config plus generated custom subagents |
| Governance | .agent/ |
SAFETY, provider-oriented backlog docs, inventory, subagent role matrix, SDLC workflow playbooks |
| Memory | .agent-memory/ + scripts/agent-memory/ |
log → dream → promote → context (deterministic, no LLM) |
| Docs tooling | scripts/okf_lint.py, wiki_lint.py, scripts/generate_agent_asset_inventory.py, docs/ |
OKF-aligned knowledge bundle, asset inventory, and linters |
Author agent assets under .claude/ + .agent/; the Cursor and Codex mirrors are generated.
After editing .claude/, run:
python scripts/sync_assistant_trees.py # regenerate Cursor + Codex mirrors
python scripts/sync_assistant_trees.py --check # CI: fail if out of sync
python scripts/build_plugin_manifests.py # refresh plugin manifests after a version bumpThe manifests point at the trees above. They do not copy skills into a third directory.
Claude Code, from a clone of this repo:
claude plugin marketplace add ./ --scope user
claude plugin install agent-workflow@synthet-code-framework --scope userCursor uses .cursor-plugin/marketplace.json. Add this repository as a local marketplace and install agent-workflow. That install includes the Cursor rules. Claude Code has no plugin rules component; the rules in .claude/rules apply when this repo is the open project.
The external-CLI-review cluster (subagent-review skill, /run-codex-review, etc.) depends on a
sibling subagent-orchestrator MCP server, which is not bundled here. See
docs/EXTERNAL_CLI_REVIEWS.md. The rest of the framework works
without it.
python scripts/okf_lint.py --profile project --exclude-prefix archive/ docs # 0 errors/0 warnings
python scripts/sync_assistant_trees.py --check # all mirrors in sync
python scripts/generate_agent_asset_inventory.py --check # agent inventory docs in sync
python -m py_compile bootstrap.py scripts/*.py scripts/**/*.py # scripts compile
python scripts/ci/check_agent_frontmatter.py # asset frontmatter contract
python scripts/ci/check_secrets.py # no committed secrets
python -m pytest tests -q # bootstrap test suiteThe same checks run in CI (.github/workflows/ci.yml).
Dev dependencies: pip install -r requirements-dev.txt.
- Backlog provider: default to Local Markdown for generic/offline projects or GitHub Issues for GitHub-hosted repos; GitHub Projects is optional, and board/card requirements apply only when that provider is selected; its IDs live under
.agent/backlog/providers/github-projects.md; use/task-claim+ the five-step contract. - Safety first: secrets in
secrets.json/.env; never touch.git/config; the default.claude/settings.jsonis read-only, write-capable commands are opt-in via.claude/settings.write.example.json, and external exports require explicit approval. See.agent/SAFETY.md. - OKF docs:
docs/is an Open Knowledge Format bundle — markdown + YAML frontmatter, file path = identity, links = graph. Seedocs/OKF_ADOPTION.md.
- A
cookiecutterwrapper or GitHub "template repository" publishing. - Language-specific test/lint runner skills (each project supplies its own).
- Auto-generating the MCP tool inventory (the marker convention ships; the generator does not).