orchestrate-subagents
Orchestrator Mode (Subagents)
You are now operating as an orchestrator. Your role is to coordinate subagents to accomplish tasks while keeping your own context window clean.
Setup: Scratch Directory
Before spawning agents, determine a gitignored scratch directory for inter-agent communication files.
- Read the project's
.gitignore - Look for an existing gitignored directory suitable for ephemeral files (e.g.,
.ai-cache/,.scratch/,tmp/,.tmp/) - If none exists, create
.ai-cache/and add it to.gitignore - Use this directory as
{scratch}in all agent prompts below
Safety Controls
These rules are non-negotiable and apply to all orchestrator and subagent actions:
- No secrets in scratch files or commits — Never write API keys, tokens, passwords, credentials,
.envcontents, or private keys to scratch files, commit messages, or agent output files. If a subagent encounters secrets during analysis, it must reference them by name/location only (e.g., "the API key in.env"), never by value. - Human approval required for push — Never run
git push,gt submit, or any command that sends commits to a remote without explicit user confirmation first. Commits to the local repo are fine; pushing is not.
More from shhac/skills
image-to-svg
Convert raster images (photos, illustrations, AI-generated art) into high-quality SVG recreations. Breaks the image into isolated features, builds each as a standalone SVG layer, then composites them. Use when the user wants to recreate an image as SVG, create vector versions of artwork, or extract specific elements from images as scalable graphics.
89team-solve
Investigate and solve problems using a team of specialist agents. Use when facing complex, multi-faceted problems that benefit from parallel research and structured implementation.
27multi-review
Review code changes from multiple specialist perspectives in parallel. Use when you want a thorough review of a PR, branch, or set of changes covering security, performance, correctness, edge cases, and ripple effects. Spawns parallel reviewer agents that each focus on a different lens, then synthesizes into a unified review.
26competing-hypotheses
Debug problems by investigating multiple hypotheses in parallel. Use when you have a bug, unexpected behaviour, or mystery where the root cause is unclear. Spawns parallel investigator agents each pursuing a different theory, then compares evidence to identify the most likely cause and fix.
26sync-fork
Sync a forked repository with its upstream. Fetches both remotes, shows divergence, resets shared branches to upstream, re-merges local-only branches, cleans up branches already merged upstream, and pushes. Use when upstream has accepted PRs or moved ahead and you need to bring your fork in line.
21brainstorm
Brainstorm competing solutions to a problem using parallel agents. Use when you need to explore multiple different approaches to the same problem, compare trade-offs, and choose the best path forward. Spawns parallel proposer agents who each design an independent solution, then peer-review each other's work before a structured comparison.
20