unity-skill-stocktake

unity-skill-stocktake is a command for Claude Code from XeldarAlz/everything-claude-unity. It costs 44 tokens per session (1,091 once invoked), scanned A, original, MIT.

A read-only audit command for the skills, agents, and commands in a project's .claude/ folder. It produces a report about missing metadata, duplicates, stale references, unused entries, broken file patterns, and related maintenance issues.

In plain words
What is it for?
Use it to check skill and agent front matter, filename mismatches, duplicate descriptions, unused entries, broken globs, and references between commands and skills.
Why use it?
It helps reveal configuration problems that make coding-agent instructions unreliable or difficult to maintain. Because it does not modify files, you can review the findings before making cleanup changes.

Command for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Part of the everything-claude-unity plugin — 42 skills, 27 commands, 20 agents, 5 hooks shipped together

Good fit Use it to check skill and agent front matter, filename mismatches, duplicate descriptions, unused entries, broken globs, and references between commands and skills.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/xeldaralz/everything-claude-unity/unity-skill-stocktake
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.

Clone the repo
git clone --depth 1 https://github.com/XeldarAlz/everything-claude-unity

Made for: Claude Code.

Or install everything-claude-unity, the plugin that ships this one along with the rest of its 42 skills, 27 commands, 20 agents, 5 hooks.

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 unity-skill-stocktake

README.md
[![agentmods](https://agentmods.dev/badge/commands/xeldaralz/everything-claude-unity/unity-skill-stocktake.svg)](https://agentmods.dev/commands/xeldaralz/everything-claude-unity/unity-skill-stocktake)
Your own site
<a href="https://agentmods.dev/commands/xeldaralz/everything-claude-unity/unity-skill-stocktake"><img src="https://agentmods.dev/badge/commands/xeldaralz/everything-claude-unity/unity-skill-stocktake.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,091 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.00044 $0.01091
Opus 5 $0.00022 $0.00545
Sonnet 5 $0.00009 $0.00218
Haiku 4.5 $0.00004 $0.00109

Measured 8d ago against content hash e224149f9d5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

unity-skill-stocktake 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.

.claude/commands/unity-skill-stocktake.md · 113 lines

How it starts

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

/unity-skill-stocktake — Meta-Maintenance Audit

Scan .claude/skills/ and .claude/agents/ for hygiene issues. This is a read-only audit — the output is a report the user can act on.

Steps

1. Enumerate entries

  • Skills: .claude/skills/**/SKILL.md (recursive; categorized by parent directory).
  • Agents: .claude/agents/*.md.
  • Commands: .claude/commands/*.md (for cross-reference when checking whether skills are referenced).

For each file, parse the YAML frontmatter via a line scan (everything between the first pair of --- lines).

2. Frontmatter validation

Flag any skill/agent/command missing required fields:

  • Skill: name, description. alwaysApply and globs are optional but globs is recommended.
  • Agent: name, description, model, tools. color optional.
  • Command: name, description.

Flag any name that doesn't match the filename stem.

3. Duplicate / near-duplicate detection

Two-pass:

  1. Exact duplicate name across entries → hard error.
  2. Description similarity — compute token overlap (lowercase, split on non-word) between every pair of descriptions in the same category. Flag pairs with >=60% overlap or the first sentence starting identically.

Example to call out:

skills/gameplay/object-pooling and skills/gameplay/pool-allocator — descriptions share 14/18 tokens; consider merging.

4. Glob reachability

For every globs: entry in every skill, check whether any matching file exists under the project root that is NOT inside .claude/.

  • Glob with zero matches → "stale glob" warning.
  • Glob that matches only .claude/ itself → probably a meta-skill; not a warning, but note.

5. Reference audit

  • For every skill, check whether its name is referenced by any agent (skills: field) or command (markdown body). A skill never referenced AND with no globs: that match real files is a candidate for removal.
  • For every agent, check whether it's referenced from any command. Orphaned agents are acceptable (users invoke directly) but worth listing.

Read the full file on GitHub · 113 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 · 113 lines · 44 tokens per session scan A e224149f9d5d

Subscribe to this mod's changes

unity-skill-stocktake is a command published in the GitHub repository XeldarAlz/everything-claude-unity (22 stars, last pushed 4mo ago), licensed MIT. It adds 44 tokens to every session and 1,091 once invoked, about $0.0002 per session on Opus 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.