orchestration
Skill34 starsChanged 10 days agoMITView on GitHub
Default workflow for any engineering task (feature, bugfix, refactor, docs, research, devops, SaaS init, creative) — phased plan with user checkpoints on subagents or CLI lanes, including X plans, Y implements, Z reviews. Not for multi-vendor second opinions — use tribunal.
47 other projects use a version of this.
Adopted by
Most recently taken up by
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
- Hive-Academy/ptah-extensionword for word, first seen Nov 3, 2026
- webdevarif/claude-skillstheir own version, first seen Nov 1, 2026
- jgeofil/agent-skillstheir own version, first seen Nov 1, 2026
- adiutama/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use orca-cli, orca-per-workspace-env and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HK-hubSkillorca-cli
Use the public `orca` CLI to operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, worktree comments, and the browser embedded inside the Orca app. Use when the user says "$orca-cli", "use orca cli", "Orca worktree", "child worktree", "cardStatus", "spawn codex/claude in a worktree", "read/wait/send Orca terminal", "terminal send", "full handoff", "handover", "give this to another agent", "another worktree", "Orca browser", "orca artifacts", "share HTML/Markdown", "public artifact link", or "control the browser inside Orca". Prefer this over raw `git worktree`, ad hoc PTYs, Playwright, or Computer Use when the task touches Orca-managed state. Use Computer Use for browser windows, webviews, or desktop UI outside Orca's embedded browser.
Also in 5 projects that use this
stablyaiSkillorca-per-workspace-env
Set up, review, debug, or validate an Orca per-workspace environment recipe: the on-demand, disposable runtime (cloud sandbox, VM, SSH host, or local container) Orca creates fresh for each workspace. Use to stand up a new recipe end to end, fix an `environmentRecipes` entry in `orca.yaml`, scaffold provider lifecycle scripts, or resolve an `orca vm recipe doctor` failure. Use `orca-cli` for ordinary worktree and workspace creation with no recipe involved.
Also in 3 projects that use this
HK-hubSkillcomputer-use
Use Orca's computer-use CLI to inspect and operate local desktop app windows through accessibility trees, screenshots, and safe UI actions. Use for desktop app interaction: list apps/windows, get app state, read visible UI, click controls, type, press keys, scroll, drag, set values, or perform accessibility actions. Also use for browser windows, webviews, Orca app UI, or other desktop UI. Triggers include "computer use", "orca computer", "read Spotify", "read Slack", "control/click/read in a desktop app", and "get app state".
Also in 6 projects that use this
kongyo2Skillprompt-engineering
Comprehensive prompt engineering framework for designing, optimizing, and iterating LLM prompts. This skill should be used when users request prompt creation, optimization, or improvement for any LLM task, or when users need help translating vague requirements into effective prompts through collaborative dialogue and iterative refinement.
Also in 3 projects that use this
AnthropicSkillwrap-up
Close out (or revisit) a Claude Managed Agent build — refresh the overview page, recap every primitive the founder now owns, show the run log and live status, suggest 1–2 tailored next upgrades, and sweep hygiene (sessions archived, key only in .env, no literal dates in deployment kickoffs). Use when the founder says "/wrap-up", "wrap up", "close it out", "where do things stand with my agent", or at the end of a /launch-your-agent build.
Also in 3 projects that use this
GoogleSkillcodebase-design
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
Also in 4 projects that use this
Other versions47 projects use a version of this.
Word for word · 1
- Hive-Academy/ptah-extension★ 34100% same
Edited · 0
None found.
Wrote their own version · 46
- stablyai/orca★ 119ksame name
- BankrBot/openclaw-skills★ 1.2ksame name
- BankrBot/skills★ 1.2ksame name
- AThevon/genjutsu★ 758same name
- moasq/production-saas-starter★ 532same name
- bam-bam-2/solo-skills★ 366same name
- austintgriffith/ethskills★ 303same name
- PaulRBerg/agent-skills★ 104same name
- geekatron/jerry★ 37same name
- KenSuh/open-agent-harness★ 30same name
36 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agent-lanesSkill
- angular-3d-scene-crafterSkill
- angular-frontend-patternsSkill
- angular-gsap-animation-crafterSkill
- ddd-architectureSkill
- execute-phase-gated-taskSkill
- frontend-designSkill
- humanize-librarySkill
- nestjs-backend-patternsSkill
- nestjs-deploymentSkill
- nx-workspace-architectSkill
- ptah-surface-authoringSkill
- resilient-nestjs-patternsSkill
- saas-platform-patternsSkill
- saas-workspace-initializerSkill
- session-handoffSkill
- skill-creatorSkill
- technical-content-writerSkill
- tribunalSkill
- ui-ux-designerSkill
- webhook-architectureSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 10 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 41 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 84
Every decision taken at steps 1–2 goes in <taskFolder>/decisions.md with its evidence.
- Very specific: line 130
Every Task() prompt carries Task Folder, a Deliverable: absolute path and the instruction to reply WROTE: <path> + a one-line verdict.
- Very specific: line 138
Subagent handoffs: when you re-spawn an agent that Ptah stopped, put the pending handoff record path (from the Ptah pointer line or the …
- Very specific: line 140
Subagent outcomes: if ptah_outcome_report is listed, call it once after each Agent run with {kind:'deliverables', target, paths, taskKind, …
- Very specific: line 148
Review verdicts: if ptah_outcome_report is listed, call it after each review verdict with {kind:'review', target:{runId:<kept reviewed-run …
- Very specific: line 155
Never let a spec/design/plan reach implementation without its gate decision: an approving cross-side review in lane-review mode, or the …
- Distinctive: line 157
Never let a reviewer approve a proposed removal — removals always go to the user.
- Very specific: line 158
Never delete a capability that is not an approved removal in parity-inventory.md or the lane preserve list.
- Distinctive: line 159
Never present Gate 1, 1.7 or 2 without the cross-side review.
- Very specific: line 161
Never let an agent's claim stand in for the build: run typecheck, tests and lint before reporting done — scoped to the projects changed …
- Distinctive: line 163
Never answer a user-reserved question on the user's behalf, and never ask the user a question that evidence or a peer settled — run Gate SR.
- Very specific: line 165
Never take an unlogged decision: no row in decisions.md, no decision.
- Distinctive: line 166
Never bypass a commit hook without the user's choice (git-standards.md).
- Distinctive: line 167
Never commit to or merge into main on your own.
- Distinctive: line 171
Every tool call in any agent or lane resends its whole thread, so cost is requests × context.
- Very specific: line 175
Keep tool output small: no full logs, no whole-directory listings, no cat of large files.
- Distinctive: line 176
No polling loops: act on the completion signal.
- Very specific: line 181
Use ptah_ast_analyze / ptah_context_enrich_file before a full Read.
- Distinctive: line 191
Risk-based review: No per-batch review: each batch passes its scoped typecheck, lint and tests before commit.
- Distinctive: line 200
Final PR review: Before the first push, run one independent code-logic review of the whole task diff at the current HEAD (git diff …
- Distinctive: line 210
Short updates: Keep orchestrator messages brief.
“Common” is measured: kept by at least 6 in 10 of the 41 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Orchestration
You are the orchestrator. You classify the work, run every user gate, spawn the agents that do it, and verify what comes back. Delegate implementation, except the bounded post-cap code correction in agent-lanes §6; any code you change is independently reviewed before acceptance.
Pre-flight (run first)
Classify the request. When several rows match, the higher row wins.
Keywords Type new SaaS, multi-tenant, scaffold workspace SAAS_INIT CI/CD, pipeline, Docker, Kubernetes, deploy DEVOPS landing page, marketing, brand, visual CREATIVE implement, add, create, build FEATURE fix, bug, error, issue BUGFIX refactor, improve, optimize REFACTORING document, readme, guide DOCUMENTATION research, investigate, analyze RESEARCH - Pick depth: Full (unclear scope), Partial (known requirements), Minimal (one developer or
reviewer). Two types equally plausible, or none fits → pick the broader flow, log it in
decisions.mdand announce it; the user can redirect. The host may already have run pre-flight routing. When aRouting:system reminder is present, use its taskType and depth suggestions unless the user says otherwise; do not call stagepre-flightagain. Otherwise, ifptah_route_decideis listed, call it once with{stage:'pre-flight', request}. Use non-nulltaskType.valueanddepth.value; for null values, use the rules above. An explicit user choice wins. Record the choice and any user override indecisions.md, along with each answer'ssource,confidence,fallbackCauseandmodelProposal, plusoverallConfidence,reasonsandusage. If the tool is not listed, use the rules above. - Announce type, depth and the planned agent sequence. Then proceed.
| Type | Flow |
| FEATURE | PM → [research] → [designer → prototype → Gate 1.7] → architect → team-leader → QA |
| BUGFIX | [research] → team-leader → QA |
| REFACTORING | architect → team-leader → QA |
| DOCUMENTATION | PM → developer → style reviewer |
| RESEARCH | researcher → [switch to FEATURE] |
| DEVOPS | PM → architect → devops-engineer → QA |
| SAAS_INIT | discovery → PM → architect → team-leader |
| CREATIVE | [designer → prototype → Gate 1.7] → content writer → frontend developer |
Any flow adding or redesigning a UI surface inserts [designer → prototype → cross-side review → Gate 1.7] before the next phase of the flow (architect, team-leader, or content writer). Complete any required inventory first (Task folder below). Any UI change that adds or redesigns no surface requires no prototype and skips the designer and Gate 1.7; its completion requires before/after screenshots (dark + light) of the affected screen instead of a prototype — capture the before screenshots from the base commit (or before the first batch / before the fix lands) with the visual-reviewer.
Task folder
/orchestrate TASK_YYYY_NNN[_xxxx]→ continuation: detect the phase from the folder contents (task-tracking.md § Continuation)./orchestrate TASK_A TASK_B ...or an explicit fleet request → validate every task ID before spawning, then load fleet.md. One ID keeps ordinary continuation.- Anything else → new task: allocate the ID and create
task.mdfirst, thencontext.md(task-tracking.md § New task). parity-inventory.mdis REQUIRED when replacing, consolidating, rebuilding or redesigning an existing surface. PM writes it from the OLD code before design starts. In flows without a PM (including BUGFIX and REFACTORING), the orchestrator first invokes software-architect in inventory-only mode to write it before the designer. For flows with a plan, the architect's plan phase runs after any required Gate 1.7 as usual; BUGFIX remains plan-free. Columns: capability, where today (file:line), backing RPC/API, decision (keep/move/remove-proposed), new location, test that proves it. Record user approval for removals.- Status changes:
Editexactly thestatus:line oftask.md. Never rewrite the carrier.
Decide first, ask last
Agents decide from what exists; the user gets only the decisions that are theirs. Every open decision runs the decision ladder:
- Evidence — the task folder, code and conventions, project docs,
ptah_memory_search,ptah_web_search. One defensible answer → decide. - Peer — still open or costly to undo → a cross-side reviewer validates the proposed decision.
- User — only a user-reserved decision
(scope intent, removals, irreversible or outward actions, security/privacy/licensing, money,
breaking public changes, hook bypass) or a split the peer could not settle. One bundled
AskUserQuestioncall.
Every decision taken at steps 1–2 goes in <taskFolder>/decisions.md with its evidence; gate notices
and the completion summary list them so the user can audit and overturn any of them.
Gates (all yours — subagents and lanes cannot reach the user)
| Gate | When | How |
| 0.1 CLI lanes | Start; search execution preference with ptah_memory_search, then read request, settings and ptah_agent_list | Notice, no wait (no-preference default enabled when a capable lane is spawnable) |
| 0 Scope | Before PM, if the request is ambiguous | Decision ladder; ask only for scope intent |
| 1 Requirements | After task-description.md | Per approval mode (below) |
| 1.5 Technical | Before architect, if several valid approaches | Decision ladder; ask only if user-reserved |
| 1.7 Design | After design-spec.md and prototype/, before the next phase of the flow (architect, team-leader, or content writer); mandatory whenever a designer ran or any UI surface is added/redesigned | Per approval mode (below) |
| 2 Architecture | After implementation-plan.md | Per approval mode (below) |
| 3 QA selection | After team-leader completion | Notice, agents chosen by rule |
| SR Questions | An agent messaged a question or returned ## Clarifications Needed | Decision ladder, answer back via messaging |
At Gate 0.1, a current explicit instruction wins. For conflicting or stale memory, use the most
recent unambiguous preference; if still unresolved, ask. With no preference and a spawnable capable
lane, select enabled; auto stays selectable. If memory is unavailable, record preference unknown
and use that no-preference default. If a stored preference wants lanes but none is spawnable, select
disabled, tell the user why, and set Approval: user. Record the preference source, mode,
approval mode and ptah_agent_list rows in context.md.
Document gates 1, 1.7 and 2 require cross-side review: you invoke an independent reviewer on the other execution side (routing and disclosed fallback per agent-lanes §6), then run the bounded revision protocol in checkpoints.md. The gate shows who wrote it, who reviewed it, the verdict and any open items.
Shipping code receives a separate independent code-logic review on the phase diff. Choose a capable different-family reviewer when available; record the specific reason and weaker-evidence label for any same-family or subagent fallback. Do not apply the document gate approval mode to code.
Approval mode for document Gates 1, 1.7 and 2 (set at Gate 0.1, recorded in context.md;
checkpoints.md § Approval mode):
lane-review— a spawnable lane exists and lanes areenabledorauto. The cross-side reviewer's APPROVED passes Gates 1, 1.7 and 2: post a short notice and continue without waiting.user— no spawnable lane, lanesdisabled, or the user asked to approve gates. Present the gate as a plain message and wait for the user'sAPPROVED.- Escalate to the user in either mode when the reviewer is still at REVISE after the cap, the review was not cross-side, the artifact proposes a removal, or the user asked to see the gate.
Templates, skip conditions and rejection handling: checkpoints.md.
Invoking agents
- Every
Task()prompt carries**Task Folder**, a**Deliverable**:absolute path and the instruction to replyWROTE: <path>+ a one-line verdict. Shape and filenames: agent-catalog.md § Invocation. - Team-leader is advisory and spawns nothing. Each return ends in a
### Next action:line — do exactly that: team-leader-modes.md. - CLI lanes: Gate 0.1 decides whether they are used. Who may spawn them and how phases, batches or whole runs are assigned to lanes: lane-assignment.md. How to run a lane: the agent-lanes skill.
- Subagent handoffs: when you re-spawn an agent that Ptah stopped, put the pending handoff
record path (from the Ptah pointer line or the
subagent-handoff-*.mdstub) in its prompt. - Subagent outcomes: if
ptah_outcome_reportis listed, call it once after each Agent run with{kind:'deliverables', target, paths, taskKind, taskId, routingSource}. Taketargetfrom that run's Agent result: the Ptahptah-run: runId=...tag gives{runId}; otherwise use the result'sagentIdas{agentId}. If neither exists, skip the report. Keep therunIdwith each run, including concurrent and repeated runs, and report background runs when their completion arrives.taskKindis one ofplan,implement,review,research,tests,docs; use the Gate 0.1 row'staskKindandsourcewhen present.heldandqueuedcount as reported; do not repeat the call. - Review verdicts: if
ptah_outcome_reportis listed, call it after each review verdict with{kind:'review', target:{runId:<kept reviewed-run id>}, verdict}. For a lane run without a keptrunId, usetarget:{agentId:<lane agent id>}. Verdict isapproved,rejectedorrevise. Skip either optional tool silently when it is not listed.
Never
- Never let a spec/design/plan reach implementation without its gate decision: an approving
cross-side review in
lane-reviewmode, or the user'sAPPROVEDinusermode or on escalation. - Never let a reviewer approve a proposed removal — removals always go to the user.
- Never delete a capability that is not an approved removal in
parity-inventory.mdor the lane preserve list. - Never present Gate 1, 1.7 or 2 without the cross-side review; a same-side review states its recorded reason (user pin, lanes disabled at Gate 0.1, or opposite side unavailable).
- Never let an agent's claim stand in for the build: run typecheck, tests and lint before
reporting done — scoped to the projects changed with
-p, output tailed; never workspace-wide. - Never answer a user-reserved question on the user's behalf, and never ask the user a question that evidence or a peer settled — run Gate SR.
- Never take an unlogged decision: no row in
decisions.md, no decision. - Never bypass a commit hook without the user's choice (git-standards.md).
- Never commit to or merge into
mainon your own.
Token economy
Every tool call in any agent or lane resends its whole thread, so cost is requests × context.
- Verification is scoped:
nx run-many -t <target> -p <changed projects>, output tailed or filtered to the header, failures and summary. - Keep tool output small: no full logs, no whole-directory listings, no
catof large files. - No polling loops: act on the completion signal. If push is unavailable, re-check at most 5 times per lane, at least 60 s apart, then tell the user the lane is still running or stop it (agent-lanes §4).
- Lanes are narrow and get their file list up front (agent-lanes §8 batch cap and tool-call ceiling); a lane that explores the workspace is the expensive lane.
- Use
ptah_ast_analyze/ptah_context_enrich_filebefore a fullRead; read whole files only when editing them.
Lean orchestration rules
- Fresh team-leader per Mode 2/3 call. Give it only the batch report path, plus the review path when you return with a phase review verdict. Never resume a long-lived team-leader.
- Resume only inside the cache window. Resume a developer or reviewer only when its last activity was under 5 minutes ago. Otherwise start a fresh one with the batch section and the report paths.
- Risk-based review. No per-batch review: each batch passes its scoped typecheck, lint and
tests before commit. One independent code-logic review per phase, on the combined diff, by a
capable reviewer from a different family than the implementer when available. Same-family review
needs a specific reason and a weaker-evidence label; record the
Review family. Batches that change only types, tests, docs or measurement get no review. Add a style review only for new public API. - One fix round. Blocking and Serious are fixed in one round. Moderate is fixed only if it can break a lane config or lose data; otherwise it becomes a named later task. Minor is fixed in the same round when the fix is local (one file, no contract or public API change); otherwise it is recorded. After the round, one short re-review scoped to the fixes.
- Final PR review. Before the first push, run one independent code-logic review of the whole
task diff at the current HEAD (
git diff main...HEAD). The reviewer's family differs from every family that wrote code in that diff; when none is left, a same-family reviewer needs a specific reason and a weaker-evidence label. It covers what phase reviews skip: fix-round commits, batches that change only types, tests or docs, and the callers of each changed export outside the diff, which the reviewer finds withptah_lsp_references(ptah_get_dependentsonly widens the candidate files). This review gets its own fix round under the severity rules of rule 4, inside the revise cap of agent-lanes §6, which it does not reset. Re-review the fix commits, then push. Defects still open after that round go to the user before any push. Skip this review only when the run had one phase and no commit followed that phase review. - Short updates. Keep orchestrator messages brief; no status message per notification.
References — load on demand, never all at once
| Reference | Load when |
| strategies.md | Running a strategy's phases |
| checkpoints.md | Presenting any gate |
| agent-catalog.md | Choosing or invoking an agent |
| team-leader-modes.md | Invoking team-leader or acting on its return |
| task-tracking.md | Creating or continuing a task folder |
| lane-assignment.md | Gate 0.1 enabled lanes, or the user pinned a phase to a lane |
| fleet.md | /orchestrate TASK_A TASK_B ... or an explicit fleet request; validate IDs first |
| git-standards.md | Writing a commit or handling a hook failure |
Requires
agent-lanes— lane mechanics, when any CLI lane runs. If it is not installed, tell the user to enable theagent-lanesskill, and run the task with subagents only until they do.
For a high-stakes change whose acceptance bar can be written down in advance, offer the tribunal
skill's Crucible move.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

