skill-stocktake

skill-stocktake is a skill for Claude Code, Codex from x-cmd/skill. It costs 30 tokens per session (1,833 once invoked), scanned A, a copy of skill-stocktake, Apache-2.0.

A command that checks Claude skills and commands against a quality checklist. Claude skills are reusable instructions that guide an AI assistant through tasks.

In plain words
What is it for?
Use it for a quick review of changed skills or a complete review of global and project-level skills, with results saved for later scans.
Why use it?
It helps reveal quality problems in reusable instructions and avoids reviewing every item again when only some have changed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it for a quick review of changed skills or a complete review of global and project-level skills, with results saved for later scans.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/x-cmd/skill/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.

Any agent
npx skills add x-cmd/skill --skill skill-stocktake
Clone the repo
git clone --depth 1 https://github.com/x-cmd/skill

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/x-cmd/skill/skill-stocktake/github.svg)](https://agentmods.dev/skills/x-cmd/skill/skill-stocktake)
Your own site
<a href="https://agentmods.dev/skills/x-cmd/skill/skill-stocktake"><img src="https://agentmods.dev/badge/skills/x-cmd/skill/skill-stocktake/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 skill-stocktake

Your own site · 80×15
<a href="https://agentmods.dev/skills/x-cmd/skill/skill-stocktake"><img src="https://agentmods.dev/badge/skills/x-cmd/skill/skill-stocktake.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.00030 $0.01833
Opus 5.5 $0.00012 $0.00733
Sonnet 5.5 $0.00006 $0.00367
Haiku 4.5 $0.00003 $0.00183

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

Security

Grade A, and why

skill-stocktake scanned grade A with 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/quick-diff.sh, scripts/save-results.sh, scripts/scan.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Enumerates other installed skillslowAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

(Project dir is auto-detected from `$PWD/.claude/skills`; pass it explicitly only if needed)

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Origin

This is a copy

97% identical to skill-stocktake — 28 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

data/affaanmustafa/skill-stocktake/SKILL.md · 177 lines

How it starts

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

skill-stocktake

Slash command (/skill-stocktake) that audits all Claude skills and commands using a quality checklist + AI holistic judgment. Supports two modes: Quick Scan for recently changed skills, and Full Stocktake for a complete review.

Scope

The command targets the following paths relative to the directory where it is invoked:

Path Description
~/.claude/skills/ Global skills (all projects)
{cwd}/.claude/skills/ Project-level skills (if the directory exists)

At the start of Phase 1, the command explicitly lists which paths were found and scanned.

Targeting a specific project

To include project-level skills, run from that project's root directory:

cd ~/path/to/my-project
/skill-stocktake

If the project has no .claude/skills/ directory, only global skills and commands are evaluated.

Modes

Mode Trigger Duration
Quick Scan results.json exists (default) 5–10 min
Full Stocktake results.json absent, or /skill-stocktake full 20–30 min

Results cache: ~/.claude/skills/skill-stocktake/results.json

Quick Scan Flow

Re-evaluate only skills that have changed since the last run (5–10 min).

  1. Read ~/.claude/skills/skill-stocktake/results.json
  2. Run: bash ~/.claude/skills/skill-stocktake/scripts/quick-diff.sh \ ~/.claude/skills/skill-stocktake/results.json (Project dir is auto-detected from $PWD/.claude/skills; pass it explicitly only if needed)
  3. If output is []: report "No changes since last run." and stop
  4. Re-evaluate only those changed files using the same Phase 2 criteria
  5. Carry forward unchanged skills from previous results
  6. Output only the diff
  7. Run: bash ~/.claude/skills/skill-stocktake/scripts/save-results.sh \ ~/.claude/skills/skill-stocktake/results.json <<< "$EVAL_RESULTS"

Full Stocktake Flow

Phase 1 — Inventory

Run: bash ~/.claude/skills/skill-stocktake/scripts/scan.sh

Read the full file on GitHub · 177 lines

Files

What ships with it

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

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. 1mo ago First seen · 177 lines · 30 tokens per session scan A 7b0b982d8d0c

Subscribe to this mod's changes

skill-stocktake is a skill published in the GitHub repository x-cmd/skill (26 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 1,833 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (enumerates other installed skills). It is 97% identical to skill-stocktake, differing in 28 lines, and is treated as a copy.