Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add HigorAlves/orc --skill cleanupgit clone --depth 1 https://github.com/HigorAlves/orcWrote 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/skills/higoralves/orc/cleanup)<a href="https://agentmods.dev/skills/higoralves/orc/cleanup"><img src="https://agentmods.dev/badge/skills/higoralves/orc/cleanup/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/skills/higoralves/orc/cleanup"><img src="https://agentmods.dev/badge/skills/higoralves/orc/cleanup.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.00041 | $0.01378 |
| Opus 5.5 | $0.00016 | $0.00551 |
| Sonnet 5.5 | $0.00008 | $0.00276 |
| Haiku 4.5 | $0.00004 | $0.00138 |
Grade C, and why
cleanup scanned grade C with 1 finding 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 25d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- Bash(rm -rf .orc:*) How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
$orc-cleanup
Close the loop on finished orc work: remove the workspace state, the worktree and, when safe, the local feature branch.
Arguments
--auto[=guided|full]— autopilot level for this run; overridesinteraction_policy. Ladder and hard-outward exemption:orc-gates§6.<session-id-or-branch>— optional. Clean exactly one session, bysessionId(orc-state sessions, schemaorc-state-protocol) or branch name, sanitized or raw.--all-completed— clean every session whosestatusiscompletedorabandoned. Every safety check still applies per session.--dry-run— print what would happen; change nothing. Recommended for the first run.--per-repo— workspace mode: clean each linked repo as its PR merges. Use only when abandoning some repos (rare).--down-volumes— also remove a torn-down environment's named volumes. Default keeps them: the next boot reuses DB data.
NOTE: at guided or full, the standard plan (state dir, clean worktree, merged branch) auto-applies after printing. Anomalies still gate at every level: partial workspace merges, unmerged branches, a dirty worktree.
Preconditions
🛑 Destructive run
P6 removes state directories, worktrees and local branches. The P5 preview gate is mandatory;
--dry-runnever applies.
- Running from inside a candidate worktree stops the run in P1:
cdto the main repo first. - In workspace mode, an open linked PR refuses the run unless
--per-repoor the session isabandoned. - Typical moments: a shipped PR merged;
$orc-statusshows stalecompletedsessions; an abandoned feature (mark the sessionabandonedfirst).
Phases
Modules live beside this file under references/ (ADR 0008 pilot). Entering a phase, Read exactly its module, per the orc-phases protocol.
| Phase | Module | Skipped when |
|---|---|---|
| 0 Detect context | resident, below | never |
| 1 Guard: not inside a candidate | orc-cleanup/P1 |
never |
| 2 Read the registry | orc-cleanup/P2 |
never |
| 3 Build the candidate list | orc-cleanup/P3 |
never |
| 4 Inspect each candidate | orc-cleanup/P4 |
never |
| 5 Preview the plan, then confirm | orc-cleanup/P5 |
never; --dry-run stops here |
| 6 Apply with safety gates | orc-cleanup/P6 |
--dry-run, Cancel |
| 7 Report | orc-cleanup/P7 |
--dry-run |
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 25d ago Changed fd796d5b32ba
- 1mo ago First seen · 103 lines · 41 tokens per session scan C aaebb9c746ee
cleanup is a skill published in the GitHub repository HigorAlves/orc (7 stars, last pushed 3d ago), licensed MIT. It adds 41 tokens to every session and 1,378 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.
cleanup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cleanupHigorAlves/orc | Skill | 7 | 3d ago | MIT | C | 41 | Claude Code |
| fable-shipdebabsah/fable-method | Skill | 0 | 4mo ago | MIT | A | 46 | Claude Code |
| changelogwesammustafa/Claude-Code-Everything-You-Need-to-Know | Skill | 3.7k | 2d ago | none | A | 28 | Claude Code |
| land-and-deployFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 41 | Claude Code |
| review-prFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 45 | Claude Code |
| release-notes-generatorFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 59 | Claude Code |
| release-notesFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 13 | Claude Code |