sidsol/crispy-plugin/spawn-subagent
Claude Code and agent skill by sidsol/crispy-plugin
- community
Checking that the SKILL.md file is still in the repository.
Spawn a CRISPY sub-agent using the standard prompt skeleton and parse its structured result
Install
npx vskill@latest install sidsol/crispy-plugin/spawn-subagentSKILL.md
The same SKILL.md was published earlier as sidsol/crispy-plugin/spawn-subagent.
Spawn a CRISPY Sub-Agent
Reusable wrapper around the spawn protocol defined in SUBAGENTS.md. Every CRISPY agent that needs to delegate work MUST go through this skill so the prompt contract (§2), background-vs-sync choice (§4), and result parsing (§3) stay consistent.
When to use
- An orchestrator (
crispy,crispy-implement) needs to delegate a phase, review, or implementation pair. - A phase agent needs an internal fan-out that the protocol explicitly authorizes (currently only
crispy-researchwhen areas ≥ 3 OR repos ≥ 2 — seeSUBAGENTS.md§5.1).
When NOT to use
- The current agent could finish the work itself in less time than the spawn + result-parse round-trip.
- The would-be sub-agent has no clearly bounded scope (vague prompt → vague result).
- A phase agent wants to spawn
spec-revieworcode-review— only the orchestrator gates (§10). - Researcher fan-out below the threshold: if areas < 3 AND repos < 2, the researcher does the work itself. Do NOT spawn
exploresub-agents in that case.
Process
1. Copy the prompt skeleton
Copy C:\repos\crispy-plugin\templates\subagent-prompt.template.md and fill in all six required blocks. Missing any block makes the spawn non-conforming and the receiver should reject it (§2).
The six mandatory blocks, in order:
- Role — agent type on one line.
- Goal — one paragraph describing the deliverable.
- Inputs — explicit
MUST READlist, plus aMUST NOT READlist when blindness or scope demands it. - Scope guardrails — May / Must NOT / Tooling restrictions.
- Output contract — point to the
crispy-resultYAML schema; do not invent your own. - Failure handling — what to return on missing inputs, tool errors, or out-of-scope discoveries.
Optional block 7 — Project Conventions: If the target repo contains an AGENTS.md file at the root, read it and extract conventions (language, framework, test runner, naming rules, import style). If no AGENTS.md exists but a crispy-result from crispy-research is available, extract the tech stack from metadata or from research.md's "Architecture Overview" section. Populate the ## Project Conventions block in the skeleton with these values. If neither source is available, omit the block entirely.
2. Choose background vs sync(SUBAGENTS.md §4)
Decide before spawning:
- Background when the caller has ≥ 3 useful steps to perform without the result, AND no sibling sub-agent will read the same artifact in that window.
- Sync when the next step depends on the result, when the sub-agent is a reviewer (gate must complete), or when the sub-agent is small enough that wait < coordination overhead.
Never background a writer whose artifact a sibling sub-agent is about to read (§4, §10).
3. Spawn
Invoke the sub-agent with the fully-filled prompt. For background spawns, record the agent ID so you can poll/read it after your in-window work completes.
4. Parse the crispy-result block
Every sub-agent ends its final message with a fenced ``` `crispy-result `` YAML block (§3). It MAY also emit zero or more interim `` `crispy-signal ``` blocks earlier in the message (§3.1).
When parsing:
- Scan the entire message for ```
`crispy-signal``blocks first. Each is advisory — act on signals you recognize (e.g.,research_area_identified`) opportunistically, but never depend on a signal arriving. If the signal never appears, fall back to the synchronous path defined for that workflow. - Then locate the FINAL ```
`crispy-result``` block. This is the authoritative gate. Extract:
status— drives gating:ok→ continue,partial→ supply missing input and re-spawn (or ask user),failed→ retry once then surface (§8).artifact_path— trust this; do NOT re-read the artifact unless a finding requires it (§7).findings[*].severity— apply the §6 vocabulary:highblocks autopilot,medium/loware appended to the artifact's## Reviewer Findingssection.next_actions— execute or surface.
If the block is missing or malformed, treat the spawn as failed and retry once (§8).
If the sub-agent has not returned within the §8.1 timeout window, treat as status: failed and apply the retry rule with backoff.
5. Honor the failure table
Apply SUBAGENTS.md §8 verbatim. Do not silently fall back; do not loop forever.
Worked example: orchestrator backgrounds research during Clarify
crispy has just finished the first round of Clarify questions and identified the area to research as auth/session-handling in repo crispy-plugin. It wants to keep clarifying while research runs.
- Copy the skeleton, fill it in:
```markdown ## Role You are crispy-research (CRISPY Phase R: blind codebase research).
## Goal Produce C:\repos\crispy-plugin\crispy-docs\session-refresh\research.md documenting the current state of session/auth handling in this repo, written without knowledge of the feature goal.
## Inputs ### MUST READ
C:\repos\crispy-plugin\— source tree, read-only.
### MUST NOT READ
C:\repos\crispy-plugin\crispy-docs\session-refresh\spec.md— preserves blind research (§5.1).
### Context provided inline Area to research: auth/session-handling. Repo count: 1. (Below fan-out threshold — do the work yourself, do NOT spawn explore sub-agents.)
## Scope Guardrails
- May: read source files, write the single
research.mdartifact. - Must NOT: read
spec.md, spawn other sub-agents (below threshold), modify source code.
## Output Contract End with a crispy-result block per SUBAGENTS.md §3.
## Failure Handling Per template defaults. ```
- Spawn background (mode = background; the orchestrator has ≥ 3 clarifying questions left to ask).
- Continue Clarify. Do not poll mid-question.
- When Clarify finishes, read the agent's
crispy-result. Onstatus: ok, move to Intent.
Worked example: sync two-stage review gate
After crispy-plan writes plan.md and tasks.md, the orchestrator gates with spec-review and then code-review before exiting Plan.
- Fill skeleton with Role =
spec-review, Goal = "Review plan.md and tasks.md against intent.md and spec.md; surface contract violations, missing requirements, and design choices that will break a downstream phase." Then run a separate Role =code-reviewpass focused on quality, idioms, security, and maintainability. MUST READ:intent.md,spec.md,plan.md,tasks.md. Scope: read-only, findings only.- Output contract reminder:
findings[]is required for reviewers, severity from §6 vocabulary only — no "nit" / "critical" / emoji (§10). - Spawn both reviewers sync,
spec-reviewfirst andcode-reviewsecond. Block on each result. - On any
severity: high, halt and surface to user (§6, §8). Onmedium/low, append toplan.md's## Reviewer Findingsand continue.
Reminders
- Six blocks. Always six. (§2)
- Trust the
crispy-resultsummary; do not re-read the artifact "just to be sure" (§7, §10). - Reviewer severity vocabulary is fixed:
high/medium/low(§6). - Researcher fan-out only when areas ≥ 3 OR repos ≥ 2 (§5.1). Below threshold the researcher works alone.
Runtime Primitive Clarification
The crispy-result and crispy-signal fenced blocks are CRISPY-layer additions parsed by the orchestrator, not runtime primitives. They are conventions defined in SUBAGENTS.md §3 and §3.1 for structured communication between CRISPY agents. The runtime's sub-agent invocation surface (documented in agent-orchestration.txt from the Copilot CLI runtime) defines the wire-level primitives — currently the Task tool (sync / background / parallel), Read Agent tool, and the /delegate command. crispy-result blocks live above that layer and are invisible to the runtime's protocol parser.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/spawn-subagent/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sidsol/crispy-plugin/spawn-subagent)