delegate
Skill1 starsChanged 6 days agoMITView on GitHub
Hand ordinary implementation work to the Gemini CLI headless, then review what it actually wrote against the code graph. Use before launching gemini or judging its output.
78 other projects use a version of this.
Adopted by
Most recently taken up by
- brasillero/brstacktheir own version, first seen Nov 8, 2026
- go-sphere/skillstheir own version, first seen Nov 8, 2026
- victor-falcon/skillstheir own version, first seen Nov 8, 2026
- AlomoesDataScience/claude-skillstheir own version, first seen Nov 8, 2026
- lehcode/claudelegatetheir own version, first seen Nov 8, 2026
- codewhale-hq/codewhale-plugin-marketplacetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use state, preview and 10 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.
MicrosoftSkillstate
Store and query a Microsoft Managed App's built-in state and file attachments with `ms project state` CLI schema commands and generated TypeScript clients. First, with the user signed in to the CLI, run `ms feature status --name state --json`; if `feature.enabled` is not `true`, recommend an alternative connector or data source.
Also in 3 projects that use this
kv0906Skillpreview
Render vault notes as styled HTML and open in browser. Turn markdown docs, decisions, progress reports into readable previews. Use for "/preview docs/project-a/checkout-flow.md", "/preview progress all", "/preview decide auth-approach", or when user wants to see a doc before sharing.
Also in 3 projects that use this
GitHubSkillprd
Generate high-quality Product Requirements Documents (PRDs) for software systems and AI-powered features. Includes executive summaries, user stories, technical specifications, and risk analysis.
Also in 5 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 3 projects that use this
anombyte93Skilldiscover
Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.
Also in 3 projects that use this
Microsoft AzureSkillskill-authoring
Write Agent Skills that comply with the agentskills.io specification. WHEN: "create a skill", "new skill", "write a skill", "skill template", "skill structure", "review skill", "skill PR", "skill compliance", "SKILL.md format", "skill frontmatter", "skill best practices". DO NOT USE FOR: general documentation. INVOKES: vally CLI.
Also in 3 projects that use this
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- prassanna-ravishankar/repowire★ 270same name
- HurricaHjz/SecondSelf★ 156same name
- wlsdks/ontology-atlas★ 149same name
- HurricaHjz/second-yourself★ 105same name
- spmtitsolution/OpenBA-Kit★ 38same name
- pvjbuilds/delegate-router★ 32same name
- PyModel/claude-architect★ 31same name
- peterpme/skills★ 28same name
- jisuzzzz/haechi★ 17same name
- mhlaghari/stuntman★ 16same name
68 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 repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- commitSkill
- databaseSkill
- enggraphSkill
- write-docsSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 68 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Do not commit or run any writing git command.
“Common” is measured: kept by at least 6 in 10 of the 68 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
/delegate
Ordinary implementation work may be handed to the Gemini CLI on
gemini-3.1-flash-lite and reviewed afterwards. The loop is fixed.
For exploration, running builds or test you can also use gemini or Sonet 5 sub-agent.
Running it
- Clean tree first.
git status --shortmust be empty, onmain. Whatgit diffshows afterwards is then exactly what the delegate wrote. Run it headless, task in a file to avoid quoting problems, and always with the workspace-trust variable exported:
GEMINI_CLI_TRUST_WORKSPACE=true gemini -m gemini-3.1-flash-lite \ --approval-mode yolo -p "$(cat task.txt)"yolois required - a headless run has nobody to answer a prompt, andauto_editstalls on the first shell command.- The env var is not optional. Without it the CLI first downgrades the mode
("Approval mode overridden to "default" because the current folder is not
trusted") and then refuses to run at all: "Gemini CLI is not running in a
trusted directory". Every headless run in an untrusted checkout dies there,
before reading the task.
--skip-trustis the flag-shaped equivalent; trusting the folder interactively does not carry into a headless run. - The workspace is the only writable root. An output path outside the repo
- a session scratchpad under
/tmp, for instance - is refused with "Path not in workspace" and the delegate quietly retargets the write to~/.gemini/tmp/<project>/<name>, reporting success. So either name an output file inside the repo, or read the result back from that fallback directory instead of concluding the run produced nothing.
- a session scratchpad under
- Re-index from the dashboard, so the review reads a graph that matches the tree rather than the one from before the edit.
What the task file must always carry
Do not commit or run any writing git command; the repository's language and
encoding policy; edits must pass pre-commit run --files <paths>; an
acceptance test the delegate has to check itself; and the name of any tree that
is off limits.
Give the delegate the facts already established rather than letting it rediscover them - the free tier throttles by requests per minute, and every wasted turn costs a minute of backoff.
Two failure modes seen repeatedly, worth pre-empting in the prompt:
- A test that measured nothing. Where the thing being changed runs from a
container image, the source is baked in by
COPY, so the edit does nothing until the image is rebuilt - in this repository, a change underpackages/needsmake build. A delegate that skips the rebuild is measuring the previous version. - A substituted acceptance criterion. Asked for nodes in the graph, it answers with a file count, a log line, or a promise that they "should persist". Ask for the node list, and query it yourself regardless.
Reviewing what it wrote
Opus 5 reviews, and it reviews the actual changes - never the delegate's own summary, which is a claim rather than a result.
- Take the real changes from
git diff: the files, classes, defines, functions and parameters that actually moved. - For every changed entity, query the graph (
search_code_nodes,get_code_graph_neighbors) for everything attached to it - callers, imports, includes, templates, data keys, whatever relations that language has - and check whether the change breaks any of them. Re-index first, or the sweep reads the tree as it was before the edit. - That impact sweep is exploration, so it runs on Sonnet 5. Sonnet gathers evidence; it does not rule.
- The verdict - accept, fix on top, or revert - is Opus 5's alone, taken on the evidence gathered.
- A migration or SQL change that breaks the
databaseskill is reverted: a foreign key, a cascade, stored file text, or anALTER TABLEother than a column type change the user explicitly allowed.
Then fix on top and commit with the commit skill. Local commit only; pushing
is the user's call.
Recap
Say what was handed over, inside the recap the enggraph skill defines -
counts, not adjectives.
- Delegations - one line each: which model ran, what it was asked for, what came back.
- Verdict - accepted, fixed on top, or reverted, and on which evidence. The delegate's own summary is a claim, so cite the diff or the graph.
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.

