marshal
Skill927 starsChanged 16 days agoMITView on GitHub
Meta-orchestrator that takes any direction — broad, specific, or vague — and autonomously chains skills and context into actionable work. Gathers context from codebase, docs, and memory. Only asks the user when it genuinely cannot proceed. Single-session orchestrator.
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 16 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Use Marshal when the task is:
- Distinctive: line 44
Read AGENTS.md, then CLAUDE.md if present, to understand the project's architecture and conventions
- Distinctive: line 47
If the direction is ambiguous, make a reasonable interpretation and state it.
- Distinctive: line 48
Do NOT ask clarifying questions unless genuinely stuck.
- Distinctive: line 72
Check the result against the plan — did it produce what was expected?
- Distinctive: line 73
If a step fails, try one alternative approach before escalating
- Distinctive: line 98
If the investigation revealed reusable patterns or pitfalls:
- Distinctive: line 105
When Marshal spawns sub-agents (e.g., for parallel investigation or delegated skill execution), it must enforce execution time limits.
- Distinctive: line 120
Check for partial output — extract usable findings if any
- Distinctive: line 122
If retry also times out, skip and note the gap in the report
- Distinctive: line 124
Never wait indefinitely. A timed-out agent's scope becomes a "gap" in the Marshal Report's Findings section.
- Distinctive: line 137
Every finding must cite a specific file and line number
- Distinctive: line 138
Every action must be verified (typecheck passes, tests pass)
- Distinctive: line 139
If a fix was applied, confirm the original issue is resolved
- Distinctive: line 141
If you're stuck on a step for more than 3 attempts, skip it and report the blocker
- Distinctive: line 146
If work items were discovered but not addressed, suggest creating intake items
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/marshal — Session Commander
Orientation
Use Marshal when the task is:
- Multi-step but bounded (completable in one session)
- Needs investigation before action
- Spans multiple skills but doesn't need campaign persistence
- Too complex for a single skill but doesn't need Archon/Fleet
Don't use when: the task spans multiple sessions (use /archon); work decomposes into 3+ parallel streams (use /fleet); you only need research with no action (use /research).
- Parallel execution (use Fleet)
Commands
| Command | Behavior |
/marshal [direction] | Full loop: understand → plan → execute → report |
/marshal assess [area] | Read-only: understand the area, produce findings, don't fix |
Protocol
Phase 1: UNDERSTAND
Parse the user's direction into structured intent:
- Read AGENTS.md, then CLAUDE.md if present, to understand the project's architecture and conventions
- Identify: scope (which files/directories), perspective (user, developer, admin), mode (audit, fix, build, improve, map), depth (surface scan vs deep investigation)
- If the direction is ambiguous, make a reasonable interpretation and state it. Do NOT ask clarifying questions unless genuinely stuck.
Phase 2: PLAN CHAIN
Map the intent to a sequence of actions:
| Direction Pattern | Chain |
| "audit [area]" | explore → analyze → report findings |
| "fix [thing]" | investigate root cause → fix → verify → report |
| "map [area]" | read files in parallel → synthesize → produce analysis |
| "improve [area]" | audit current state → identify gaps → implement → verify |
| "what should [X] be" | research → analyze options → recommend with reasoning |
| "research [topic]" | search codebase + web → synthesize → report |
Announce the chain before executing: "I'll [step 1], then [step 2], then [step 3]."
Phase 3: EXECUTE
For each step in the chain:
- Load the relevant skill if one exists (e.g.,
/reviewfor audit steps) - Gather context: read relevant files, check git history, search for patterns
- Perform the action
- Check the result against the plan — did it produce what was expected?
- If a step fails, try one alternative approach before escalating
Phase 4: REPORT
Produce a structured report:
=== Marshal Report ===
Direction: {original direction}
Scope: {what was examined}
Findings:
- {finding 1 with file:line reference}
- {finding 2}
Actions Taken:
- {what was changed, if anything}
Recommendations:
- {next steps if applicable}Phase 5: LEARN
If the investigation revealed reusable patterns or pitfalls:
- Note them in the report
- Suggest creating a skill if a pattern will recur: "This pattern would
make a good skill. Run
/create-skillto capture it."
Agent Timeouts
When Marshal spawns sub-agents (e.g., for parallel investigation or delegated skill execution), it must enforce execution time limits. Sub-agents can hang indefinitely on tool calls — the circuit breaker catches failures, not hangs.
Default Timeouts
| Agent Type | Default Timeout |
| Skill-level agents | 10 minutes |
| Research agents | 15 minutes |
Timeouts are configurable in harness.json under agentTimeouts (same config
Fleet uses). If an agent exceeds its timeout:
- Log the timeout in telemetry
- Check for partial output — extract usable findings if any
- Try one alternative approach (simpler prompt, reduced scope)
- If retry also times out, skip and note the gap in the report
Never wait indefinitely. A timed-out agent's scope becomes a "gap" in the Marshal Report's Findings section.
Fringe Cases
- Direction is vague (e.g., "do the thing", "fix it", "make it better"): Ask one clarifying question before proceeding. Do not attempt to guess scope on truly ambiguous input — one focused question is cheaper than executing the wrong plan.
- A sub-task fails on first attempt: Retry once with a different approach (narrower scope, different tool, simpler method). If the second attempt also fails, record the blocker in the report and move on.
- No relevant files found for the stated scope: Report the empty result honestly. Do not fabricate findings. Suggest the user verify the scope or file paths.
- CLAUDE.md missing: Proceed without it. Note the absence in the report so the user knows project conventions weren't applied.
- Typecheck not configured: Skip the verification step and note it as "unverified" in the report rather than blocking completion.
Quality Gates
- Every finding must cite a specific file and line number
- Every action must be verified (typecheck passes, tests pass)
- If a fix was applied, confirm the original issue is resolved
- The report must be concise — no filler, no repetition
- If you're stuck on a step for more than 3 attempts, skip it and report the blocker
Exit Protocol
- Output the Marshal Report (format above)
- If work items were discovered but not addressed, suggest creating intake items
- Output a HANDOFF block summarizing what was done
---HANDOFF---
- What: {behavior changed or goal achieved — not the file name, the outcome}
- Decisions: {key tradeoffs made — include the alternative that was rejected}
- Unresolved: {what is still open or blocked — actionable next step}
- Reversibility: {green | amber | red} — {how to undo}
---Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- mayankjain1815-commits/CITADEL★ 499% same
Wrote their own version · 1
- vidluther/skills★ 1same name
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 repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- archonSkill
- ascii-diagramSkill
- autopilotSkill
- costSkill
- create-appSkill
- create-skillSkill
- daemonSkill
- dashboardSkill
- decision-mapSkill
- deploy-stewardSkill
- designSkill
- doc-genSkill
- doSkill
- evolveSkill
- experimentSkill
- fleetSkill
- grillSkill
- housecleanSkill
- improveSkill
- infra-auditSkill
- learnSkill
- live-previewSkill
- loopSkill
- mapSkill
- merge-reviewSkill
- organizeSkill
- postmortemSkill
- prdSkill
- pr-watchSkill
- qaSkill
- refactorSkill
- researchSkill
- reviewSkill
- scaffoldSkill
- scheduleSkill
- session-handoffSkill
- setupSkill
- systematic-debuggingSkill
- telemetrySkill
- test-genSkill
- triageSkill
- unharnessSkill
- verifySkill
- watchSkill
- wikiSkill
- workspaceSkill
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.

