Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add rjmurillo/ai-agents/plugin install project-toolkitWrote 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/rjmurillo/ai-agents/orphan-ref-validator)<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/orphan-ref-validator"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/orphan-ref-validator/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/rjmurillo/ai-agents/orphan-ref-validator"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/orphan-ref-validator.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.00040 | $0.06133 |
| Opus 5.5 | $0.00016 | $0.02453 |
| Sonnet 5.5 | $0.00008 | $0.01227 |
| Haiku 4.5 | $0.00004 | $0.00613 |
Grade E, and why
orphan-ref-validator scanned grade E with 2 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 2d 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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
| `<!-- orphan-ref-ignore-file -->` | Whole file | Anywhere in the **first 50 lines** of the file | Skip the file entirely; emit no findings and report suppressed references under `directive_suppressed`. | Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
Target paths are resolved with `pathlib.Path.resolve()` and must lie under the repository root. Paths outside the repo, broken symlinks, symlink loops, outside-repo symlinks, walk errors, stat errors, unreadable files, a How it starts
The opening of the file, as written. The whole thing — 374 lines — stays where its author put it; the contents beside it link to each section on GitHub.
orphan-ref-validator
Purpose
Scans structured artifacts (specs, ADRs, eval fixtures, plugin manifests, skill descriptions) for references to entities that do not exist in the working tree:
- Skill names that no longer have a
.claude/skills/<name>/directory. Emitted asFinding(kind="skill_name", severity="critical"). - Script paths under
build/scripts/,scripts/validation/,scripts/, ortests/that are not present on disk. Emitted asFinding(kind="script_path", severity="critical"). - Rule and instruction paths under
.claude/rules/,.github/instructions/, orsrc/copilot-cli/instructions/that are not present on disk. Emitted asFinding(kind="rule_path" | "instruction_path", severity="critical"). - Retired-surface paths: a citation of the slash-command directory that ADR-064 retired, in live guidance documents only (skills, rules, instruction mirrors; not source code). Emitted as
Finding(kind="retired_path", severity="critical"). A line that saysMigrated fromor names ADR-064 records the retirement and is not flagged. Specs, ADRs, and tests are dated records and are not checked.
Emits findings per the ADR-056 envelope and a final verdict line. Exit code follows ADR-035: VERDICT: PASS or VERDICT: WARN exits 0; VERDICT: CRITICAL_FAIL exits 1; usage/configuration or incomplete scan exits 2; external failures exit 3; permission failures exit 4.
The skill ships with vendored installs. Missing targets are errors by default. Use --allow-missing-targets only when the caller intentionally runs in a partial vendored tree, and use --allow-empty-scan only when zero scanned files is the declared scope.
Triggers
| Trigger | Effect |
|---|---|
scan for orphan refs |
Run with default targets |
validate orphan references |
Run on a specific path |
check skill catalog drift |
Run with default targets |
build mandatory exit gate |
Invoked by the build lifecycle command |
Path conventions
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.
- 2d ago Changed · -17 tokens per session dcc59b610563
- 5d ago Changed · -3 lines · -31 tokens per session e7cde0f64ce4
- 8d ago Changed c9a62b348e96
- 12d ago Changed · -2 tokens per session 146b2f04a556
- 20d ago Changed · -15 lines 897be68b893d
- 1mo ago Changed e00f3d0d36a0
- 1mo ago Changed · +2 lines 382435ebd587
- 1mo ago Changed 3fc02d9b5e48
- 2mo ago Changed · +8 lines 4e22d313c073
- 2mo ago First seen · 382 lines · 90 tokens per session scan E ce7259ac343c
orphan-ref-validator is a skill published in the GitHub repository rjmurillo/ai-agents (50 stars, last pushed today), licensed Apache-2.0. It adds 40 tokens to every session and 6,133 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it E with 2 findings (hidden instructions, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
orphan-ref-validator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| orphan-ref-validatorrjmurillo/ai-agents | Skill | 50 | today | Apache-2.0 | E | 40 | Claude Code |
| review-remotejuliusz-cwiakalski/agentic-delivery-os | Skill | 47 | today | MIT | A | 13 | Claude Code |
| extension-audit-methodologyfabioc-aloha/Alex_Skill_Mall | Skill | 6 | 2d ago | MIT | A | 32 | Claude Code, Codex |
| talyn-ci-triageGilbert09/talyn | Skill | 30 | yesterday | none | B | 68 | Claude Code, Codex |
| talyn-multi-repoGilbert09/talyn | Skill | 30 | yesterday | none | B | 70 | Claude Code, Codex |
| talyn-speedGilbert09/talyn | Skill | 30 | yesterday | none | B | 98 | Claude Code, Codex |
| talyn-review-loopGilbert09/talyn | Skill | 30 | yesterday | none | B | 76 | Claude Code, Codex |