Borrowing it
Nothing to install: this file belongs to fotoetienne/gru. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fotoetienne/gru/main/.claude/commands/do.mdgit clone --depth 1 https://github.com/fotoetienne/gruWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/fotoetienne/gru/do)<a href="https://agentmods.dev/commands/fotoetienne/gru/do"><img src="https://agentmods.dev/badge/commands/fotoetienne/gru/do/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/fotoetienne/gru/do"><img src="https://agentmods.dev/badge/commands/fotoetienne/gru/do.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.01019 |
| Opus 5.5 | $0.00005 | $0.00408 |
| Sonnet 5.5 | $0.00002 | $0.00204 |
| Haiku 4.5 | $0.00001 | $0.00102 |
Grade A, and why
do scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Work on a GitHub issue.
Issue: $ARGUMENTS
When Running Under Gru
This command is being orchestrated by Gru. GitHub operations (claiming issue, creating PR, posting updates) are handled automatically. Focus on:
- understanding the issue (details provided by Gru)
- planning the implementation
- writing clean code
- testing thoroughly
- committing your changes
Gru will handle:
- Fetching issue details
- Creating pull requests
- Posting status updates
- Merging and cleanup
Workflow:
1. Check if Decomposition is Needed
-
Assess the issue's complexity:
- Does it involve multiple distinct components or systems?
- Does it have multiple acceptance criteria?
- Would it take more than a few hours to complete?
- Does it mix different types of work (backend + frontend + docs)?
-
If the issue is complex and should be broken down:
- Recommend to the user: "This issue seems complex. Run
/decompose $ARGUMENTSto break it into smaller sub-issues first." - Stop the fix workflow here - wait for user to decompose
- Recommend to the user: "This issue seems complex. Run
-
If the issue is focused and ready to fix:
- Proceed to the next step
2. Verify Worktree Setup
- Confirm current directory is a git worktree with
git rev-parse --git-dir - Check current branch matches expected pattern
minion/issue-<number>-<minion-id> - If not in correct worktree, remind user to run
/setup-worktreefirst
3. Plan the Fix
- Explore the codebase to understand the relevant code
- Create a detailed plan using TodoWrite with specific steps to fix the issue
- Consider tests that need to be added or updated
4. Implement the Fix
- Work through each todo item
- Write clean, minimal code changes
- Add or update tests as needed
- Check CLAUDE.md for project-specific build/test commands
- Run tests to verify the fix
5. Code Review
- Make a commit with the changes, prefixing the commit message with your Minion ID (from the branch name), e.g.
[M042] Fix null pointer in parser - Use the Agent tool with
subagent_type='code-reviewer'to perform an autonomous code review - Wait for the review agent to complete and read its full output before proceeding
- The code-reviewer agent will analyze the changes for:
- Code correctness and logic errors
- Security vulnerabilities
- Error handling gaps
- Edge cases
- Adherence to project conventions (check CLAUDE.md)
- Test coverage
- Address any issues raised by the code-reviewer before proceeding
- If the review identifies significant problems, iterate on the implementation
- Do NOT push your branch or write PR_DESCRIPTION.md until you have read and addressed all review findings
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 110 lines · 12 tokens per session scan A 797df1d8a3dd
do is a command published in the GitHub repository fotoetienne/gru (11 stars, last pushed 27d ago), licensed Apache-2.0. It adds 12 tokens to every session and 1,019 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
epic-sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
swarm-migrate
Cross-repo migration swarm — one coordinator + N parallel subagents (one per target repo) that apply the same transformation, open PRs, wait for CI, and report back to a shared JSON ledger. Coordinator handles topology, conflict auto-rebase, and stop-on-novel-failure. Use when bumping a shared dependency, rolling out…
gsd:ship
Create PR, run review, and prepare for merge after verification passes.
gsd:complete-milestone
Archive completed milestone and prepare for next version.
gsd:quick
Execute a quick task with GSD guarantees (atomic commits, state tracking) but skip optional agents.
gsd:pause-work
Create context handoff when pausing work mid-phase.