agentleFS
Mathews-TomMathews-Tom/armory/skills/skill-inventory/SKILL.md

skill-inventory

Skill340 starsChanged 8 months agoMITView on GitHub

Locates or installs the armory skill-inventory utility, then hands off to its operator guide to measure installed skill descriptions, observed reads and unused managed skills from local OMP, Claude Code and Codex logs. Use when you ask "audit my skill inventory", "how much do skill descriptions cost?", "find unused skills", "which skills were read?", "set up skill-inventory" or "run the skill inventory utility". Verifies the release checksum, asks before downloading and never replaces an existing install. NOT for context-window audits (usage-audit) or catalog installs (skill-library).

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the utility's UTILITY.md and its operator guide (operator-guide.md in the utility's references folder), then follow them.

    line 37
  2. Very specific:

    Start with the read-only measure --aggregate-only run the guide describes.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill inventory

Make the skill-inventory utility available to this agent and hand off to its own documentation. This skill and the utility share a name: the utility is an offline Python tool that ships as an armory utility package, which the Skills CLI and the Claude Code plugin marketplace do not install. This skill is the installable entry point that bridges that gap, without copying the utility's code or measurement rules.

When to use

Use whenUse instead
Auditing installed skill descriptions, observed reads or unused managed skills—
The utility is not installed, or you do not know where it is—
Diagnosing what fills the current context windowusage-audit
Searching or installing armory packagesskill-library
Static conformance report or authored package audit; live effectiveness NOT_MEASUREDpackage-evaluator

Triggers group into inventory audits ("audit my skill inventory", "find unused skills", "which skills were read?"), cost questions ("how much do skill descriptions cost?") and setup ("set up skill-inventory", "run the skill inventory utility").

Prerequisites

macOS or Linux with bash, curl, unzip, shasum or sha256sum, Python 3.12+ and uv. Installing needs network access to GitHub once; measurement afterwards runs offline.

Workflow

  1. Locate an existing install. Run scripts/ensure-utility.sh from this skill's directory. It checks ~/.claude/utilities/skill-inventory (the armory profile installer's location) and ${XDG_DATA_HOME:-~/.local/share}/armory/utilities/skill-inventory. Exit 0 prints UTILITY_ROOT= and VERSION=; exit 3 means it is not installed.
  2. On exit 3, ask the owner before installing. Installing downloads and later runs code from the armory rolling latest release. With approval, run scripts/ensure-utility.sh --install, or --install DEST for another location outside every Git repository; a relative DEST is resolved against the current directory.
  3. Export the printed root: export UTILITY_ROOT=....
  4. Bootstrap the pinned dependency once: uv run --no-project --script "$UTILITY_ROOT/scripts/skill_inventory.py" --help.
  5. Read the utility's UTILITY.md and its operator guide (operator-guide.md in the utility's references folder), then follow them. They own the commands, private output rules, approval gates and interpretation of results; this skill does not restate them.
  6. Start with the read-only measure --aggregate-only run the guide describes. recommend writes only a private proposal. archive and restore --apply move files and need the owner's separate, explicit authorization.

Install behavior

ensure-utility.sh --install does the following, and stops with nothing installed if any step fails:

  1. Downloads checksums.txt from the armory latest release and finds exactly one skill-inventory-X.Y.Z.utility entry.
  2. Downloads that archive and compares its SHA-256 with the listed value.
  3. Unpacks it into a hidden temporary directory beside the destination and checks it contains UTILITY.md and scripts/skill_inventory.py.
  4. Renames it to the destination only if nothing exists there, so an interrupted install never leaves a partial copy in place.

The checksum guards against a corrupted or truncated download. It comes from the same release, so it does not prove who published the archive.

The script never upgrades or overwrites an existing install. To upgrade, have the owner compare the installed VERSION with the release, move the old directory aside, then install again.

Worked example

SKILL_DIR="$HOME/.claude/skills/skill-inventory"      # where this skill was installed
"$SKILL_DIR/scripts/ensure-utility.sh"                    # exit 3: not installed
# Owner approves the download.
"$SKILL_DIR/scripts/ensure-utility.sh" --install
# UTILITY_ROOT=$HOME/.local/share/armory/utilities/skill-inventory (expanded)
# VERSION=1.0.0
export UTILITY_ROOT="$HOME/.local/share/armory/utilities/skill-inventory"
uv run --no-project --script "$UTILITY_ROOT/scripts/skill_inventory.py" --help
# Next: follow $UTILITY_ROOT/references/operator-guide.md for the measure run.

Output

Report the utility root and version, whether anything was installed, and then the utility's own output as its guide describes. Stdout from the utility is anonymous aggregate JSON; exit 2 means incomplete or refused, not an empty result.

Troubleshooting

SymptomAction
Exit 3Not installed. Ask the owner, then rerun with --install.
could not download ...Network or GitHub failure; nothing was installed. Rerun later.
checksum mismatchStop. Do not retry blindly or bypass the check; report it to the owner.
... exists but is not a skill-inventory utilityThe destination holds something else. Inspect it with the owner; never delete it to make room.
uv or Python 3.12 missingInstall uv; uv run provisions the pinned PyYAML on first use.
Utility exits 2Look up each diagnostic code in the utility's measurement.md diagnostic table; do not patch logs or relax checks.

Files

FilePurpose
scripts/ensure-utility.shLocate the utility, or install the released archive after checksum verification

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.