orchestrator
Use when the user asks how to approach building a feature or says 'build X', 'implement X', 'add feature X' without naming a phase ('SDD it', 'spec-driven development', 'run the dev pipeline', 'what phase comes next') — the dev-pipeline stage router: complexity S0-S3 and risk R0-R3 first, then grill → spec (+clarify, plan, tickets) → test-evals → build → review-commit (two-axis pass, budgeted confirm rounds, commit/deploy gate). Owns risk-based review routing, complexity-aware planning and the model lanes.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 123
- Forks
- 22
01 前言 Front Matter
- name
- orchestrator
- metadata
- { "author": "moonlight-lupin", "hermes": { "tags": [ "sdd", "spec-driven-development", "orchestrator", "dev-pipeline", "routing", "stages", "workflow", "size-tiers", "lanes", "kanban", "converge" ], "related_skills": [ "grill", "spec", "test-evals", "build", "review-commit", "review-lessons", "kanban-orchestrator", "model-routing", "improve-codebase-architecture", "doubt-driven-development", "cursor-cli", "codex", "claude-code" ] }, "license": "MIT", "version": "2.1.0", "platforms": [ "linux", "macos", "windows" ] }
- description
- Use when the user asks how to approach building a feature or says 'build X', 'implement X', 'add feature X' without naming a phase ('SDD it', 'spec-driven development', 'run the dev pipeline', 'what phase comes next') — the dev-pipeline stage router: complexity S0-S3 and risk R0-R3 first, then grill → spec (+clarify, plan, tickets) → test-evals → build → review-commit (two-axis pass, budgeted confirm rounds, commit/deploy gate). Owns risk-based review routing, complexity-aware planning and the model lanes.
02 资源文件 5
- 参考文档references/coding-principles.md5.3 KB
- 参考文档references/flow-map.md1.4 KB
- 参考文档references/lanes.md3.2 KB
- 参考文档references/risk-routing.md5.2 KB
- 参考文档references/size-tiers.md2.1 KB
03 SKILL.md 正文
Orchestrator — Spec-Driven Development (SDD) Router
A router: it independently classifies complexity and risk, then picks the stage, then you load that stage skill. It holds no stage content itself. It owns three single-home files every stage points to:
references/risk-routing.md— authoritative S0-S3 complexity and R0-R3 risk classificationreferences/size-tiers.md— compatibility T0-T3 reviewer depths and budgetsreferences/lanes.md— which model builds and which review (the only place model names live)references/coding-principles.md— how code gets written (think first, simplicity, surgical changes, goal-driven), the S0/S1 plan format, the unreachable-scenario definition, and the builder block every brief carries
The chain diagram lives in references/flow-map.md.
When to use
- User says "build X", "implement X", "add feature X" and doesn't name a phase
- User asks "how should we approach building X?" or "what's next?"
- You need to decide how much process a change deserves
Don't use when the user already named a phase ("write a spec for X", "review this diff") — load that stage skill directly.
Step 0 — classify complexity and risk (always)
Read references/risk-routing.md first. State complexity S0–S3, risk R0–R3,
and the derived T0–T3 review tier with reasons. Complexity selects how
much planning/decomposition occurs; risk selects reviewers and loop budgets.
The existing reviewer lanes and confirm-round protocol remain authoritative
for executing that review tier.
| Complexity | Planning path |
|---|---|
| S0 | Direct edit, assumptions, verification |
| S1 | Short acceptance-criteria plan, test for behavior changes |
| S2 | Spec and task plan, RED tests, build |
| S3 | Full spec, cross-component plan, dependency/task slicing, RED tests, build |
| Risk | Review depth |
|---|---|
| R0 | T0 for S0; T1 otherwise |
| R1 | T1 (one reviewer, one confirm round) |
| R2 | T2 (two reviewers, two confirm rounds) |
| R3 | T3 (three reviewers, three confirm rounds) |
Any live deploy requires the three-reviewer gate. Never silently downgrade risk, including for small changes. Every fix must be followed by the complete acceptance suite; exhausted rounds with open blockers are NOT SHIP.
The stages
| Stage | Produces | Load when |
|---|---|---|
grill |
hardened plan — every decision branch settled with the user | plan is fuzzy (S2/S3; S1 only if ambiguous) |
spec — spec turn |
user stories, acceptance criteria, [NEEDS CLARIFICATION] markers, seam sketch + seam notes → .hermes/specs/ |
intent not pinned (S2/S3) |
spec — clarify |
markers resolved and folded back | markers remain after the spec turn |
spec — plan turn |
tasks with tracer-bullet slices, blocking edges, file paths, interfaces, the test cases each task must pass → .hermes/plans/ |
spec exists (or clear requirements), need the HOW |
spec — tickets turn (optional) |
tickets with blocking edges → .hermes/tickets/ |
want parallel work units |
test-evals |
the RED tests for the plan's test cases, each citing its seam note, run to failure | after the plan, before build |
build |
working code; per-task review per tier; final integration review; converge loop | plan (or tickets) ready and tests RED |
review-commit |
two-axis pass → R1 → budgeted confirm rounds → commit/deploy gate | after the build, through commit and deploy |
Test ownership: the plan names each test case (behavior, seam, expected
value and its source); test-evals writes those tests and runs them RED;
build implementers make them GREEN and don't rewrite them. An implementer
adds a test only for behavior the plan missed (a bug found mid-build) — under
TDD, and listed in its report.
Two execution paths
Path A — decomposed (S2/S3 default): grill when fuzzy → spec → plan → test-evals → build → review-commit. Use independent review at the risk-derived T-tier; R1 does not become T3 just because the project is large.
Path B — single CLI agent (S1 default, S2 greenfield when appropriate): short plan or spec → tests → builder lane CLI → review-commit. R2/R3 still receive full respective review depth even in Path B.
Routing rules
- Classify both complexity S and risk R using
risk-routing.md. - Plan and split work by S; stage selection does not determine reviewer count.
- Select reviewer lanes and confirm budget by R-derived T-tier.
- Offer Goldfish spec review for S2/S3 after the approved plan.
- Start tests RED where behavior changes; verify GREEN and full acceptance after fixes. Never let an exhausted budget conceal failing tests.
- Escalate risk immediately upon discovering a new trust boundary.
- User-specified reviewers and budgets may add scrutiny; live deploy always retains the three-reviewer gate.
Quick start
Classify S and R → state derived T review tier → make the S-sized plan → write RED tests → build → run R-sized review → verify full acceptance → commit/deploy gate.
Load one stage skill at a time — each is separate for context economy.
Outside-skill pointers
- Kanban orchestration —
kanban-orchestrator(devops) owns spreading tickets across worker lanes. - Model pins —
references/lanes.mdhere. The outsidemodel-routingskill covers provider and budget choices; it was older thanlanes.mdat v0.2 and should be reconciled with it. - Architecture health —
improve-codebase-architecture(outside skill). - Mid-build doubt —
doubt-driven-development(outside skill). - Lessons from past loops —
review-lessons(this plugin; load one file by case, on demand).
04 同仓库更多 Skills
website-scraping
Generic playbook for extracting structured data from any website — hotel prices, flight fares, e-commerce listings, real estate, jobs, competitor product catalogues, anything where the goal is to turn one or more URLs into clean records on disk. Use this skill whenever the user mentions scraping, harvesting, extracting, or pulling data from a website; names a specific site or competitor they want data from; asks how to handle JavaScript-rendered pages, Cloudflare blocks, bot detection, Turnstile challenges, or Playwright; wants to monitor prices over time; needs to automate a copy-paste research task; or says things like "just get the data from X" or "I need a script that grabs N from site Y". Covers recon, picking the lightest extraction tool that works, surviving anti-bot defences, and writing clean JSONL output with a run manifest. Scope is scraping only — landing data in a database, scheduling, and downstream pipeline work are explicitly out of scope and live in other tools.
greet
Greets a named person warmly.
skill-quality-review
Use when auditing or reviewing skill quality — batch checks across a library, deep per-skill grep methodology, usage stats, efficacy testing, or fix planning. Single consolidated home for the writing-for-agents review framework and the 3-surface review methodology.
people-enrichment
Use when the user has a list of names or companies and wants their job, employer, work history, LinkedIn URLs or company profiles looked up, or wants to find people or companies matching criteria — trigger on phrases like "enrich these contacts", "find their LinkedIn", "look up these people", "who works at X", "find directors at Y", "enrich these companies", or "get firmographics for". Enrich and search People Data Labs (PDL) Person and Company data, writing results to .xlsx. Five operations: enrich named PEOPLE into a profile, employment history and LinkedIn URL; IDENTIFY an ambiguous person as several scored candidates; SEARCH people by criteria (company, title, location); enrich COMPANIES into firmographics (industry, size, employees, HQ, founded, LinkedIn); and SEARCH companies by criteria. Do not scrape LinkedIn directly — this uses a licensed data aggregator (PDL) instead, for legal and reliability reasons.
notebooklm-mode
Source-grounded research pipeline inspired by NotebookLM. Collect verbatim source extracts into a temporary workspace, then answer questions and create deliverables grounded in those sources. Two grounding modes: strict (vault-only) and augmented (vault + labeled [background] knowledge). Trigger when the user asks to research a topic from sources, wants NotebookLM-style grounded answers, asks to build a resource vault, or says "notebooklm mode".
news-monitoring
Use when a topic or news stream needs recurring monitoring — cover it with web search, multi-language sources, digest formatting, and automated delivery via Hermes cron jobs. Covers search strategy, source selection, Chinese-language platforms, and digest templates.