claude-flow-kit
v0.1.0
Published
Production-ready Claude Code project template with orchestration patterns, status dashboard, and stack-aware setup. Works on new and existing projects.
Maintainers
Readme
claude-flow-kit
Production-ready Claude Code project template. Orchestration patterns, status dashboard, stack-aware setup. Works on new and existing projects.
What it does
Drop-in setup for any Claude Code project that gives you:
- Resumable sessions —
hot.md+ git checkpoints + auto-injected context on every session start - Visible progress — built-in
cfk statusdashboard with progress bars and pipeline phases - Spec-driven pipelines —
/ship-feature,/ship-full-stack-feature,/api-first-feature,/fix-prod-bug,/spec-interview - Orchestration patterns — orchestrator-worker, writer-reviewer, wave-parallel, adversarial-debate, pipeline-chain
- Stack-aware setup — auto-detects Next.js / Node-TS / Python / Go and applies right hooks (lint, typecheck, test on every Stop)
- Session continuity — PreCompact/PostCompact hooks, subagent memory, decisions log
Quick start
# Inside an existing project (auto-detects stack)
npx claude-flow-kit init
# New project from scratch
npx claude-flow-kit init my-new-app
cd my-new-app
# Or install globally for the cfk shortcut
npm install -g claude-flow-kit
cfk init
cfk status
cfk doctorWhat gets installed
your-project/
├── CLAUDE.md ← entry point for Claude
├── AGENTS.md ← cross-tool entry (Cursor/Codex/OpenCode)
├── .claudeignore
├── .mcp.json ← MCP servers (core)
├── .mcp.optional.json ← MCP servers (optional)
├── docs/
│ ├── project/ ← static context (product, tech, structure)
│ ├── state/ ← living docs (hot, decisions, glossary)
│ ├── specs/ ← living specs per capability
│ └── changes/ ← active OpenSpec proposals
└── .claude/
├── settings.json ← stack-specific (auto-applied)
├── settings-variants/ ← nextjs / node-typescript / python / go
├── commands/ ← 11 slash commands
├── agents/ ← explorer (read-only), reviewer
├── patterns/ ← 5 orchestration patterns
├── shared/ ← wiki-bridge
└── scripts/ ← session-start, post-compact, status, task-completedSlash commands
| Command | Purpose |
|---|---|
| /start | Read hot.md + git + active tasks, summarize state |
| /handoff | Update hot.md / decisions.md / specs/, git checkpoint |
| /sync | Mid-session state snapshot |
| /status | Dashboard of active changes |
| /spec-interview | Harper Reed technique — Claude interviews you |
| /ship-feature | Generic pipeline (brainstorm → plan → execute → review) |
| /ship-full-stack-feature | 8-stage fullstack pipeline |
| /api-first-feature | Contract-first development |
| /fix-prod-bug | Systematic debug — failing test FIRST |
| /debug-systematic | Root-cause debugging (6 phases) |
Standalone CLI
cfk init # scaffold into current dir (or new dir)
cfk init --stack python
cfk init --force # overwrite without prompts
cfk init --dry-run # preview only
cfk status # progress dashboard
cfk status -v # verbose with phases
cfk doctor # diagnose installation
cfk upgrade # pull latest framework updates, preserve your editsCritical first-time setup
Edit ~/.claude/settings.json once:
{
"cleanupPeriodDays": 99999,
"env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" }
}Without cleanupPeriodDays, Claude deletes sessions after 30 days and resumability breaks.
Recommended companion plugins
Inside Claude Code:
/plugin marketplace add obra/superpowers-marketplace
/plugin install superpowers@obra
/plugin marketplace add wshobson/agents
/plugin install agent-teams plugin-evalThe superpowers plugin adds writing-plans skill which is the missing link between brainstorming and subagent-driven-development.
How session continuity works
/handoffwritesdocs/state/hot.md, appends todecisions.md, updatestasks.mdcheckboxes, makes git commitchore(state): handoff <date>- SessionStart hook auto-injects
hot.md+ git context + next pending task on every new session - PreCompact/PostCompact hooks survive context compaction
/startreads everything and proposes next concrete step
After any pause (day, week, month) you can resume to the exact next task with zero memory.
Orchestration patterns
Reference any pattern in your prompts:
> Use @.claude/patterns/wave-parallel.md to refactor auth + payments in parallel| Pattern | When |
|---|---|
| orchestrator-worker | Breadth-first independent subtasks |
| writer-reviewer | Quality-critical code |
| wave-parallel | Multi-module with dep DAG |
| adversarial-debate | Architecture decisions with trade-offs |
| pipeline-chain | Spec-driven workflow (default in /ship commands) |
Supported stacks
| Stack | Auto-detected by | Stop hook runs |
|---|---|---|
| nextjs | next.config.{js,mjs,ts} | pnpm typecheck && lint && vitest |
| node-typescript | package.json with TS dep | pnpm tsc --noEmit && eslint && vitest |
| python | pyproject.toml / setup.py / requirements.txt | uv run ruff && mypy && pytest |
| go | go.mod | go vet && golangci-lint && go test -race |
| generic | nothing matched | none (configurable) |
Force a stack with --stack <name>.
Upgrading
cfk upgradeThis refreshes framework files (.claude/scripts/, .claude/patterns/, slash commands) while preserving your CLAUDE.md, hot.md, decisions.md, settings.json. Run git diff after.
Documentation
- Quick start
- Architecture
- Customization guide
- How session continuity works
- Adding a new stack
- Contributing
Inspiration / related work
- obra/superpowers — skill pipeline (
brainstorming→writing-plans→subagent-driven-development) - Fission-AI/OpenSpec — spec-driven workflow with change proposals
- carlrannaberg/claudekit — 20+ specialized subagents
- wshobson/agents — orchestration plugins
- Pimzino/spec-workflow-mcp — web dashboard for specs
claude-flow-kit composes patterns from these projects into a single drop-in installer.
License
MIT — see LICENSE.
Contributing
PRs welcome. See CONTRIBUTING.md. New stack support is the easiest first contribution.
