English | ไธญๆ
Autonomous coding, evolved.
93 skills, 21 hooks, 35 agents, a safety guardian, and a correction learning loop โ all working together so Claude codes better, catches its own mistakes, and can run unattended overnight while you sleep.
If this saves you time, a star helps others find it. Something broken? Open an issue.
Blog post: Building Clade โ motivation, design decisions, and lessons learned.
- Install
- MCP Server
- What It Does
- Skills
- Hooks
- Supported Languages
- Documentation
- Repo Structure
- Contributing
- License
git clone https://github.com/shenxingy/clade.git
cd clade && ./install.shInstalls skills, hooks, agents, scripts, and safety guardian. Start a new Claude Code session to activate.
Requires:
jq. Platform: Linux and macOS.
If you just want the skills in Cursor, Windsurf, Claude Desktop, or any MCP client:
pip install clade-mcpSee MCP Server below for configuration.
The MCP server exposes all 94 Clade skills as callable tools via the Model Context Protocol. Works with any MCP-compatible client.
Claude Desktop / Claude Code:
{
"mcpServers": {
"clade": { "command": "uvx", "args": ["clade-mcp"] }
}
}Cursor / Windsurf:
{
"mcpServers": {
"clade": { "command": "clade-mcp" }
}
}Prerequisite: Claude Code CLI must be installed โ skills execute via
claude -p.
| When | What fires | Effect |
|---|---|---|
| Session opens in a git repo | session-context.sh |
Loads git context, handoff state, correction rules, model guidance |
| Claude runs a bash command | pre-tool-guardian.sh |
Blocks dangerous ops: migrations, rm -rf, force push, DROP TABLE |
| Claude edits code | post-edit-check.sh |
Async type-check (tsc, pyright, cargo check, go vet, etc.) |
| You correct Claude | correction-detector.sh |
Logs correction, prompts Claude to save a reusable rule |
| Claude marks task done | verify-task-completed.sh |
Adaptive quality gate: compile + lint, build + test in strict mode |
See How It Works for the full hook reference (21 hooks).
| Skill | What it does |
|---|---|
/commit |
Split changes into logical commits by module, push by default |
/sync |
Check off completed TODOs, append session summary to PROGRESS.md |
/review |
8-phase coverage review โ finds AND fixes issues, loops until clean |
/verify |
Verify project behavior anchors (compile, test, lint) |
| Skill | What it does |
|---|---|
/start |
Autonomous session launcher โ morning brief, overnight runs, cross-project patrol |
/loop GOAL |
Goal-driven improvement loop โ supervisor plans, workers execute in parallel |
/batch-tasks |
Execute TODO steps via unattended sessions (serial or parallel) |
/orchestrate |
Decompose goals into tasks for worker execution |
/handoff |
Save session state for context relay between agents |
/pickup |
Resume from previous handoff โ zero-friction restart |
/worktree |
Create git worktrees for parallel sessions |
/poke |
Heartbeat after esc โ 3-line status, auto-continues if still progressing |
/status |
Session dashboard โ background agents, loops, worktrees, unpushed commits |
/go |
Execute the recommendation from your most recent A/B/C option set |
| Skill | What it does |
|---|---|
/review-pr N |
AI code review on a PR diff โ Critical / Warning / Suggestion |
/merge-pr N |
Squash-merge PR and clean up branch |
/investigate |
Root cause analysis โ no fix without confirmed hypothesis |
/incident DESC |
Incident response โ diagnose, postmortem, follow-up tasks |
/cso |
Security audit (OWASP + STRIDE) |
/map |
Generate ARCHITECTURE.md with module graph + file ownership |
| Skill | What it does |
|---|---|
/research TOPIC |
Deep web research, synthesize to docs/research/ |
/model-research |
Latest Claude model data + auto-update configs |
/next |
"What's next?" โ fast 1-shot recommendation (default); /next deep for multi-round interview |
/brief |
Morning briefing โ overnight commits, costs, next steps |
/retro |
Engineering retrospective from git history |
/frontend-design |
Create production-grade frontend interfaces |
| Skill | What it does |
|---|---|
/audit |
Clean up correction rules โ promote, deduplicate, remove stale |
/document-release |
Post-ship doc sync (README, CHANGELOG, CLAUDE.md) |
/pipeline |
Health check for background pipelines |
/provider |
Switch LLM provider |
slt |
Toggle statusline quota pace indicator |
| Skill | What it does |
|---|---|
/blog |
Full lifecycle โ brief โ outline โ write โ SEO check |
/blog-write |
Write SERP-informed articles from scratch |
/blog-rewrite |
Optimize existing posts for quality and SEO |
/blog-audit |
Full-site health scan (thin content, meta, cannibalization) |
| + 18 more | analyze ยท audio ยท brief ยท calendar ยท chart ยท factcheck ยท geo ยท google ยท image ยท notebooklm ยท outline ยท persona ยท repurpose ยท schema ยท seo-check ยท strategy ยท taxonomy ยท cannibalization |
| Skill | What it does |
|---|---|
/seo |
Full SEO audit suite |
/seo-technical |
Crawlability, indexability, Core Web Vitals |
/seo-page |
Deep single-page analysis |
/seo-content |
E-E-A-T and content quality scoring |
| + 15 more | audit ยท backlinks ยท competitor-pages ยท dataforseo ยท geo ยท google ยท hreflang ยท image-gen ยท images ยท local ยท maps ยท plan ยท programmatic ยท schema ยท sitemap |
| Skill | What it does |
|---|---|
/ads |
Multi-platform ads audit suite |
/ads-google |
Google Ads โ Quality Score, PMax, bidding |
/ads-meta |
Meta Ads โ Pixel/CAPI, creative fatigue, Advantage+ |
/ads-create |
Create new ad campaigns from brief |
| + 14 more | apple ยท audit ยท budget ยท competitor ยท creative ยท dna ยท generate ยท landing ยท linkedin ยท microsoft ยท photoshoot ยท plan ยท tiktok ยท youtube |
See When to Use What for detailed usage guidance.
Auto-detected โ hooks and agents adapt to your project:
| Language | Edit check | Type checker | Test runner |
|---|---|---|---|
| TypeScript / JavaScript | tsc (monorepo-aware) | tsc | jest / vitest |
| Python | pyright / mypy | pyright / mypy | pytest |
| Rust | cargo check | cargo check | cargo test |
| Go | go vet | go vet | go test |
| Swift / iOS | swift build | swift build | swift test |
| Kotlin / Android / Java | gradlew | gradlew | gradle test |
| LaTeX | chktex | chktex | โ |
All checks are opt-in by detection โ if the tool isn't installed, the hook silently skips.
| Guide | Contents |
|---|---|
| Maximize Throughput | Skip permissions, batch tasks, parallel worktrees, terminal + voice |
| Orchestrator Web UI | Chat-to-plan, worker dashboard, settings, iteration loop |
| Overnight Operation | Task queue, parallel sessions, context relay, safety |
| How It Works | Hooks, agents, skills internals, correction learning, model selection |
| Configuration | Settings, thresholds, adding custom hooks/agents/skills |
| When to Use What | Detailed usage guidance for every skill |
Keep ~/.claude/ in sync across machines โ memory, corrections, skills, hooks, and scripts.
~/.claude/scripts/sync-setup.sh # auto-detect NFS or GitHub
~/.claude/scripts/sync-setup.sh --github # explicit GitHub backendFully automatic once configured. See Configuration for details.
clade/
โโโ install.sh # One-command deployment
โโโ uninstall.sh # Clean removal
โโโ mcp-package/ # PyPI package (clade-mcp)
โโโ orchestrator/ # FastAPI web UI + worker pool + task queue
โ โโโ server.py # App, routes, WebSocket
โ โโโ worker.py # WorkerPool, SwarmManager
โ โโโ task_queue.py # SQLite-backed task CRUD
โ โโโ mcp_server.py # MCP server (local dev version)
โ โโโ web/ # Single-page dashboard
โโโ configs/
โ โโโ skills/ # 93 skill definitions (SKILL.md + prompt.md)
โ โโโ hooks/ # 21 event hooks + lib/
โ โโโ agents/ # 35 agent definitions
โ โโโ scripts/ # 27 shell + Python utilities
โโโ adapters/openclaw/ # OpenClaw integration (mobile monitoring)
โโโ templates/ # Settings, CLAUDE.md, corrections templates
โโโ docs/ # Guides and research
Monitor and control overnight loops from your phone via OpenClaw.
| Skill | Trigger | Effect |
|---|---|---|
| clade-status | "how's the loop going" | Iteration progress, cost, commits |
| clade-control | "start a loop to fix tests" | Start/stop autonomous loops |
| clade-report | "what did it do overnight" | Session report, cost breakdown |
See adapters/openclaw/README.md for setup.
Contributions welcome โ code, docs, issue triage, bug reports. See CONTRIBUTING.md.
- Loop on non-code tasks (research/docs) fails silently โ workers produce no diff, loop reports failure
- Workers inherit parent env โ project-specific env vars leak into worker shells; sanitize before overnight runs
- Context budget is per-session โ multi-day runs may exhaust context; use
/handoff+/pickup
