Getting Started with Origin Foundry
Set up Claude Code to work on specs locally or on the web.
Using Claude Code (Local)
1. Install Claude Code
npm install -g @anthropic-ai/claude-code2. Clone the repo
git clone git@github.com:darwin-homes/origin-foundry.git && cd origin-foundry3. Initialize submodules (backend + frontend codebases)
git submodule update --init --recursive4. Open Claude Code
claudeWorking on a spec
Check out your spec branch:
git checkout spec/your-feature-slugRun the spec command:
/update-spec your-feature-slugCC handles the rest — detects the phase, walks you through it step by step.
Works with any CLI that supports Claude Code: Terminal, Cursor, Conductor, etc.
Using Claude Code (Web)
1. Setup
- Go to claude.ai and open a project
- Connect the origin-foundry repository
- Note: submodules (darwin/, client/) need separate access for codebase-grounded phases
2. Working on a spec
- Tell CC which spec to work on:
/update-spec your-feature-slug - CC will check out the right branch and detect the phase automatically
Phase Flow
| Phase | What CC does | Output |
|---|---|---|
| draft | Interviews you, writes spec | spec.md |
| product-refine | Reviews requirements and scope | enrichment/product.refined.md |
| eng-constraints | Investigates codebase constraints | enrichment/eng.constraints.md |
| design-flows | Designs UX flows and states | enrichment/design.flows.md |
| eng-tech-requirements | Writes technical requirements | enrichment/eng.tech-requirements.md |
| product-tracking | Specifies Segment tracking events | enrichment/product.tracking.md |
| review | Multi-domain review | comments/*.comments.md |
| final-sign-off | Merge readiness gate | comments/*.comments.md |