repo-orphans

repo-orphans is a skill for Claude Code, Codex from rjwalters/kicad-tools. It costs 19 tokens per session (598 once invoked), scanned A, original, MIT.

A repository checker that finds files with no apparent users, such as uncalled scripts, unread data files, and generated outputs without sources.

In plain words
What is it for?
It scans the whole repository or a selected directory and can limit the search to script files.
Why use it?
It helps reveal dead or leftover files that make a codebase harder to understand and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

Good fit It scans the whole repository or a selected directory and can limit the search to script files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjwalters/kicad-tools/repo-orphans
Install

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.

Any agent
npx skills add rjwalters/kicad-tools --skill repo-orphans
Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for repo-orphans

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-orphans/github.svg)](https://agentmods.dev/skills/rjwalters/kicad-tools/repo-orphans)
Your own site
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-orphans"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-orphans/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.

agentmods 80×15 button for repo-orphans

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-orphans"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-orphans.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00598
Opus 5.5 $0.00008 $0.00239
Sonnet 5.5 $0.00004 $0.00120
Haiku 4.5 $0.00002 $0.00060

Measured 8d ago against content hash 1cfe47cb1aa3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

repo-orphans 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 8d 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.

.agents/skills/repo-orphans/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex form of the /repo:orphans command. Other commands appear as $repo-<verb> skills. Helper scripts and .claude/ paths below are relative to the repository root and exist when the Claude Code surface is installed alongside this one.

$repo-orphans — Orphan Finder

Find files that appear to have no consumers — scripts nobody calls, data files nothing reads, build outputs without sources.

Usage

$repo-orphans                    # Full repo
$repo-orphans tools/             # Scope to subtree
$repo-orphans --type scripts     # Only check scripts

What It Checks

1. Orphaned Scripts

Python/shell scripts in scripts/, tools/, or bin/ directories that are not referenced by:

  • Any other script, Makefile, package.json script, or CI config
  • Any README or documentation
  • Any skill/command file

Search for the script's basename across the repo. If zero references exist outside the file itself, it's likely orphaned.

2. Orphaned Data Files

YAML, JSON, CSV files that are not:

  • Imported or read by any code
  • Referenced in any README or documentation
  • A recognized tool config (.eslintrc, pyproject.toml, CI workflows, etc. — many configs are consumed by convention, not by reference)

3. Source/Output Mismatches

  • Generated outputs (.pdf, .html, compiled binaries) without a corresponding source (.tex, .md, .py, …)
  • Sources whose expected output is missing (may indicate a broken build)
  • .example / .sample files where the real file now exists

4. Empty Directories

Directories that contain no files (only subdirs or nothing at all).

Interaction

Present findings grouped by type. For each orphan, show:

  • The file path and size
  • What was searched for (e.g., "grepped for extract.py — 0 references")
  • Suggested action: delete, move, or add a reference

Deleting an orphan is destructive and a judgment call — an "orphan" is often a legitimate standalone file the user keeps deliberately — so unlike the safe-fix commands this one never auto-acts. It reports and waits for your decision (delete, move, or add a reference), with no --ask needed: report-and-wait is the only mode.

Read the full file on GitHub · 68 lines

Changes

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.

  1. 8d ago First seen · 68 lines · 19 tokens per session scan A 1cfe47cb1aa3

Subscribe to this mod's changes

repo-orphans is a skill published in the GitHub repository rjwalters/kicad-tools (73 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 598 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-11-01.

Related

repo-orphans compared with skills from other repositories

repo-orphans next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-orphansrjwalters/kicad-toolsSkill73yesterdayMITA19Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.5ktodayMITA17Claude Code, Codex
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k3d agoMITA115Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill5.2kyesterdayMITA49Claude Code, Codex
revdiff-planumputun/revdiffSkill9474d agoMITA84Claude Code
explore-unknownsdzhng/skillsSkill1.5kyesterdayMITA162Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.4kyesterdayMITA70Claude Code