Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Jerry0022/dotclaudenpx agentmods add skills/jerry0022/dotclaude/orphan-scanWrote 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/jerry0022/dotclaude/orphan-scan)<a href="https://agentmods.dev/skills/jerry0022/dotclaude/orphan-scan"><img src="https://agentmods.dev/badge/skills/jerry0022/dotclaude/orphan-scan/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/jerry0022/dotclaude/orphan-scan"><img src="https://agentmods.dev/badge/skills/jerry0022/dotclaude/orphan-scan.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.00035 | $0.00823 |
| Opus 5.5 | $0.00014 | $0.00329 |
| Sonnet 5.5 | $0.00007 | $0.00165 |
| Haiku 4.5 | $0.00003 | $0.00082 |
Grade A, and why
orphan-scan 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 11d 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Orphan Scan
Post-ship hygiene only checks the repo that was just shipped. This task looks at every repo under one root and records what would be lost if a folder were deleted tomorrow.
What it does
node scripts/orphan-scan.js (read-only apart from git fetch --prune with a
60 s timeout, offline-tolerant):
- Finds every repo under the root (default: parent folder of the current main
checkout,
--rootoverrides), deduplicated by git-common-dir. - Classifies each repo with
classifyUnits(mcp-server/ship/lib/hygiene.js):- atRisk — not landed (
unlandedorpartial), no open PR, no live session, not parked; plus worktrees with real uncommitted changes. - parked —
parked/<topic>branches (aliaseswip/,backup/,salvage/, tip subject "ARCHIVED"); older than 30 days they carry the nudge "behalten, integrieren oder verwerfen". - stashes, landedLeftovers (landed, removable by hygiene).
- atRisk — not landed (
- Writes
~/.claude/orphan-report.json.
ss.orphan.nudge.js reads that report at session start and shows one line when
the current repo has at-risk items or safety copies without a decision
(autosave snapshots and wip//backup//salvage//salvage-land//rescue/
copies older than 3 days, or a deliberate park older than 30 days); the line
adds the machine-wide total when other repos have such work too. It also starts this scan detached when the
report is missing or older than 24 h, so the daily run works without an
external scheduler. A Desktop scheduled task running the same command once a
day is equivalent.
Removing landed leftovers (one-off or recurring)
node scripts/orphan-scan.js --clean-landed [--repo <path>] # dry run
node scripts/orphan-scan.js --clean-landed [--repo <path>] --apply # delete
Uses the existing safe removal, ignoring the age/count gates. Never touches
live-session worktrees, the current worktree, locked or dirty worktrees, or
anything not landed. Worktrees must also have been idle for 24 h. Branches
are spared when they are long-lived (develop, staging, production,
stable, trunk, release/*, hotfix/*) or still have an upstream on
origin (a worktree on such a branch is removed, the branch stays). LANDED
parked refs (parked/* incl. parked/autosave/*, wip/, backup/,
salvage/) are removed too: a landed safety copy holds nothing the default
branch lacks; unlanded ones are never touched. Remote branches are not
deleted here (ship hygiene expires landed origin copies after 14 days). Stale
lock files (>1 h) are cleared before the fetch --prune.
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.
- 11d ago Changed · +6 lines 5af0170e8c5d
- 18d ago First seen · 57 lines · 35 tokens per session scan A 8b5843966f02
orphan-scan is a skill published in the GitHub repository Jerry0022/dotclaude (6 stars, last pushed 11d ago), licensed MIT. It adds 35 tokens to every session and 823 once invoked, about $0.0001 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-10-20.
orphan-scan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| orphan-scanJerry0022/dotclaude | Skill | 6 | 11d ago | MIT | A | 35 | Claude Code |
| merge-batchdiegosouzapw/OmniRoute | Skill | 83k | 6d ago | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | yesterday | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.6k | yesterday | MIT | A | 20 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | yesterday | MIT | A | 51 | Claude Code |
| comet-githubrpamis/comet | Skill | 3.3k | yesterday | MIT | A | 72 | Claude Code, Codex |
| release-helperSahir619/fable-method | Skill | 2.3k | 1mo ago | MIT | A | 43 | Claude Code |