Agent skill

Skill Stocktake

by affaan-m in affaan-m/ECC

Claudeのスキルとコマンドの品質を監査するためのツール。変更されたスキルのみを対象とした高速スキャンと、順次サブエージェントバッチ評価を使用した完全棚卸しモードをサポートする。

MITAuto-check passedAgent Workflows

Install Skill Stocktake

skills CLI
$ npx skills add affaan-m/ECC --skill skill-stocktake -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC skill-stocktake --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/ja-JP/skills/skill-stocktake .claude/skills/skill-stocktake && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skill-stocktake
GitHub stars
276k
Token cost
~1.4k tokens
SKILL.md length
254 words
Files
1
Skills in repo
683
Repo updated
First seen
Licence
MIT

At a glance

Claudeのスキルとコマンドの品質を監査するためのツール。変更されたスキルのみを対象とした高速スキャンと、順次サブエージェントバッチ評価を使用した完全棚卸しモードをサポートする。

  • Works in 7 steps: ~/.claude/skills/skill-stocktake/results.… → 実行する:bash… → 出力が [] の場合:「前回の実行以降に変更なし。」とレポートして停止する → …
  • Tasks that involve Skill management
  • SKILL.md covers スコープ, モード, 高速スキャンフロー and 完全棚卸しフロー, plus 2 more sections
  • Calls bash

What it does

Skill Stocktake is an agent skill from affaan-m/ECC. Claudeのスキルとコマンドの品質を監査するためのツール。変更されたスキルのみを対象とした高速スキャンと、順次サブエージェントバッチ評価を使用した完全棚卸しモードをサポートする。

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Skill management. It works with Bash. The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.

When your agent uses it

  • Tasks that involve Skill management

Example prompts

  • “/skill-stocktake”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. ~/.claude/skills/skill-stocktake/results.json を読み取る
  2. 実行する:bash ~/.claude/skills/skill-stocktake/scripts/quick-diff.sh \ ~/.claude/skills/skill-stocktake/results.json
  3. 出力が [] の場合:「前回の実行以降に変更なし。」とレポートして停止する
  4. 変更されたファイルのみを同じフェーズ2の基準で再評価する
  5. 前回の結果から変更されていないスキルを引き継ぐ
  6. 差分のみを出力する
  7. 実行する:bash ~/.claude/skills/skill-stocktake/scripts/save-results.sh \ ~/.claude/skills/skill-stocktake/results.json <<< "$EVAL_RESULTS"

What it can do on your machine

Read from SKILL.md and the folder at commit 4eb71d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skill Stocktake loads about 1.4k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 254 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit 4eb71d9, republished under its MIT licence (© affaan-m). 254 words, ~1,354 tokens.

Download SKILL.mdSave it as .claude/skills/skill-stocktake/SKILL.md (or your agent's skills folder).
name
skill-stocktake
description
Claudeのスキルとコマンドの品質を監査するためのツール。変更されたスキルのみを対象とした高速スキャンと、順次サブエージェントバッチ評価を使用した完全棚卸しモードをサポートする。
origin
ECC

skill-stocktake

品質チェックリスト + AI全体判断を使用して、すべてのClaudeスキルとコマンドを審査するスラッシュコマンド(/skill-stocktake)。2つのモードをサポートする:最近変更されたスキルの高速スキャンと、完全レビューのための完全棚卸し。

スコープ

このコマンドは、コマンドを呼び出したディレクトリを基準とした以下のパスを対象とする:

パス説明
~/.claude/skills/グローバルスキル(全プロジェクト)
{cwd}/.claude/skills/プロジェクトレベルのスキル(ディレクトリが存在する場合)

フェーズ1の開始時に、コマンドはどのパスが見つかりスキャンされたかを明示的にリストアップする。

特定のプロジェクトをターゲットにする

プロジェクトレベルのスキルを含めるには、そのプロジェクトのルートから実行する:

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

プロジェクトに .claude/skills/ ディレクトリがない場合、グローバルスキルとコマンドのみが評価される。

モード

モードトリガー条件所要時間
高速スキャンresults.json が存在する(デフォルト)5〜10分
完全棚卸しresults.json が存在しない、または /skill-stocktake full20〜30分

結果キャッシュ: ~/.claude/skills/skill-stocktake/results.json

高速スキャンフロー

前回の実行以降に変更されたスキルのみを再評価する(5〜10分)。

  1. ~/.claude/skills/skill-stocktake/results.json を読み取る
  2. 実行する:bash ~/.claude/skills/skill-stocktake/scripts/quick-diff.sh \ ~/.claude/skills/skill-stocktake/results.json (プロジェクトディレクトリは $PWD/.claude/skills から自動検出。必要な場合のみ明示的に渡す)
  3. 出力が [] の場合:「前回の実行以降に変更なし。」とレポートして停止する
  4. 変更されたファイルのみを同じフェーズ2の基準で再評価する
  5. 前回の結果から変更されていないスキルを引き継ぐ
  6. 差分のみを出力する
  7. 実行する:bash ~/.claude/skills/skill-stocktake/scripts/save-results.sh \ ~/.claude/skills/skill-stocktake/results.json <<< "$EVAL_RESULTS"

完全棚卸しフロー

フェーズ 1 — インベントリ

実行する:bash ~/.claude/skills/skill-stocktake/scripts/scan.sh

スクリプトはスキルファイルを列挙し、フロントマターを抽出し、UTC修正時刻を収集する。 プロジェクトディレクトリは $PWD/.claude/skills から自動検出。必要な場合のみ明示的に渡す。 スクリプト出力からスキャンサマリーとインベントリテーブルを表示する:

スキャン中:
  ✓ ~/.claude/skills/         (17 個のファイル)
  ✗ {cwd}/.claude/skills/    (見つからない — グローバルスキルのみ)
スキル7日間使用30日間使用説明
フェーズ 2 — 品質評価

完全なインベントリとチェック項目を含む汎用エージェントツールのサブエージェントを起動する:

text
Agent(
  subagent_type="general-purpose",
  prompt="
チェックリストに基づいて以下のスキルインベントリを評価してください。

[INVENTORY]

[CHECKLIST]

各スキルについてJSONを返してください:
{ \"verdict\": \"Keep\"|\"Improve\"|\"Update\"|\"Retire\"|\"Merge into [X]\", \"reason\": \"...\" }
"
)

サブエージェントは各スキルを読み取り、チェック項目を適用し、各スキルのJSON結果を返す:

{ "verdict": "Keep"|"Improve"|"Update"|"Retire"|"Merge into [X]", "reason": "..." }

チャンク指針: 各サブエージェント呼び出しは約20個のスキルを処理し、コンテキストを管理可能に保つ。各チャンクの後、中間結果を results.json に保存する(status: "in_progress")。

全スキルの評価が完了したら:status: "completed" を設定し、フェーズ3に進む。

再開検出: 起動時に status: "in_progress" が見つかった場合、最初の未評価スキルから再開する。

各スキルはこのチェックリストに基づいて評価される:

- [ ] 他のスキルとの内容の重複を確認済み
- [ ] MEMORY.md / CLAUDE.md との重複を確認済み
- [ ] 技術的参照の時効性を確認済み(ツール名 / CLI引数 / APIが存在する場合、WebSearchで検証)
- [ ] 使用頻度を考慮済み

判定基準:

判定意味
Keep有用かつ最新
Improve保持する価値があるが、特定の改善が必要
Update参照された技術が古い(WebSearchで検証)
Retire品質が低い、陳腐化、またはコストが非対称
Merge into [X]別のスキルと大幅に重複している。マージターゲットを命名する

評価はAI全体判断——数値スコアリングルーブリックではない。指針となる次元:

  • 実行可能性:即座に行動できるコード例、コマンド、または手順
  • スコープの適合性:名前、トリガー、内容が一致している。広すぎず、狭すぎない
  • 独自性:MEMORY.md / CLAUDE.md / 他のスキルで代替できない価値
  • 時効性:技術的参照が現在の環境で有効

理由の品質要件 — reason フィールドは自己完結型で意思決定を支えられる必要がある:

  • 単に「変更なし」と書かない——常に核心的な証拠を再述する
  • Retire の場合:(1) 発見された具体的な欠陥、(2) 同じニーズをカバーする代替案を述べる
    • 悪:"Superseded"
    • 良:"disable-model-invocation: true already set; superseded by continuous-learning-v2 which covers all the same patterns plus confidence scoring. No unique content remains."
  • Merge の場合:ターゲットを命名し、何を統合するかを説明する
    • 悪:"Overlaps with X"
    • 良:"42-line thin content; Step 4 of chatlog-to-article already covers the same workflow. Integrate the 'article angle' tip as a note in that skill."
  • Improve の場合:必要な具体的な変更を説明する(どのセクション、何の操作、該当する場合は目標サイズ)
    • 悪:"Too long"
    • 良:"276 lines; Section 'Framework Comparison' (L80–140) duplicates ai-era-architecture-principles; delete it to reach ~150 lines."
  • Keep(高速スキャンでmtimeのみ変更の場合):元の判定理由を再述し、「変更なし」と書かない
    • 悪:"Unchanged"
    • 良:"mtime updated but content unchanged. Unique Python reference explicitly imported by rules/python/; no overlap found."
フェーズ 3 — サマリーテーブル
スキル7日間使用判定理由
フェーズ 4 — 統合
  1. Retire / Merge:ユーザーの確認前に、ファイルごとに詳細な理由を提示する:
    • 発見された具体的な問題(重複、陳腐化、リンク切れなど)
    • 同じ機能をカバーする代替案(Retire の場合:どの既存スキル/ルール;Merge の場合:ターゲットファイルと何を統合するか)
    • 削除の影響(依存するスキル、MEMORY.md 参照、影響を受けるワークフローがあるか)
  2. Improve:具体的な改善提案と理由を提示する:
    • 何を変更し、なぜか(例:「X/Yセクションが python-patterns と重複しているため、430行を200行に圧縮する」)
    • ユーザーが行動するかどうかを決定する
  3. Update:確認したソースから更新されたコンテンツを提示する
  4. MEMORY.md の行数を確認し、100行を超えている場合は圧縮を提案する

結果ファイルスキーマ

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

evaluated_at:評価が完了した実際のUTC時刻を設定する必要がある。 Bash で取得する:date -u +%Y-%m-%dT%H:%M:%SZ。T00:00:00Z のような日付のみの近似値は絶対に使わない。

json
{
  "evaluated_at": "2026-02-21T10:00:00Z",
  "mode": "full",
  "batch_progress": {
    "total": 80,
    "evaluated": 80,
    "status": "completed"
  },
  "skills": {
    "skill-name": {
      "path": "~/.claude/skills/skill-name/SKILL.md",
      "verdict": "Keep",
      "reason": "Concrete, actionable, unique value for X workflow",
      "mtime": "2026-01-15T08:30:00Z"
    }
  }
}

注意事項

  • 評価はブラインド:ソース(ECC、自作、自動抽出)に関わらず、すべてのスキルに同じチェックリストを適用する
  • アーカイブ/削除操作は常に明示的なユーザー確認が必要
  • スキルのソースによって判定を分岐させない

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/ja-JP/skills/skill-stocktake of affaan-m/ECC.

Open the folder on GitHubat commit 4eb71d9

Compare with similar skills

Skill Stocktake next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skill Stocktake compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Stocktake this skillaffaan-m/ECC276k—~1.4kAutomated safety check: PassMIT
Code Improvertrailofbits/skills7.5k—~1.8kAutomated safety check: NotesCC-BY-SA-4.0
Skill Improvertrailofbits/skills7.5k—~2.1kAutomated safety check: NotesCC-BY-SA-4.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Plugin Settings Patternanthropics/claude-plugins-official38k7 repos~3kAutomated safety check: PassApache-2.0
Darwin Skill Optimizeralchaincyf/darwin-skill6.2k1 repos~4.7kAutomated safety check: PassMIT

Similar skills

  • Code Improver

    trailofbits/skills

    Official

    Runs an autonomous review-and-fix improvement loop over any code target — a skill, plugin, module, or directory — using a reviewer the user names: any installed skill or agent.

    7.5k GitHub stars~1.8k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Skill Improver

    trailofbits/skills

    Official

    Runs an autonomous review-and-fix improvement loop over a Claude Code skill until a review comes back clean, with a cross-round findings ledger, escalation when fixes stop converging, and a…

    7.5k GitHub stars~2.1k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    38k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • Darwin Skill Optimizer

    alchaincyf/darwin-skill

    Scores SKILL.md files on a nine-dimension rubric, then improves them in a keep-or-revert loop with independent judge agents, test prompts, git history and human checkpoints.

    6.2k GitHub starsUsed in 1 repo~4.7k tokens
    Agent WorkflowsAuto-check passed
  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    105k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed

More from affaan-m/ECC

All 682 skills in this repo
  • Skill Stocktake

    affaan-m/ECC

    Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.

    277k GitHub starsUsed in 5 repos~3.1k tokens
    Auto-check passed
  • Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.

    277k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Docs Governance

    affaan-m/ECC

    Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.

    277k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    277k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    277k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Set an ECC-specific frontend design direction for production UI work.

    277k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed

Works with

Categories

Questions about Skill Stocktake

What does Skill Stocktake do?

Claudeのスキルとコマンドの品質を監査するためのツール。変更されたスキルのみを対象とした高速スキャンと、順次サブエージェントバッチ評価を使用した完全棚卸しモードをサポートする。. Skill Stocktake is an agent skill from affaan-m/ECC.

When should I use Skill Stocktake?

Skill Stocktake fits situations like: tasks that involve Skill management.

How do I install Skill Stocktake in Claude Code?

Run `npx skills add affaan-m/ECC --skill skill-stocktake -a claude-code`. Or copy the skill folder (docs/ja-JP/skills/skill-stocktake in affaan-m/ECC) into .claude/skills/skill-stocktake in your project. Claude Code loads it when a task matches its description.

How do I install Skill Stocktake in Codex?

Run `npx skills add affaan-m/ECC --skill skill-stocktake -a codex`. Or copy the skill folder (docs/ja-JP/skills/skill-stocktake in affaan-m/ECC) into .agents/skills/skill-stocktake in your project. Codex loads it when a task matches its description.

Can I use Skill Stocktake in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill skill-stocktake -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-stocktake, .gemini/skills/skill-stocktake, .github/skills/skill-stocktake and .opencode/skills/skill-stocktake in your project.

What does Skill Stocktake need to run?

Going by SKILL.md and its folder, Skill Stocktake needs the command-line tools its instructions call (bash). Our summary lists: Python 3.

Does Skill Stocktake access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Skill Stocktake safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Skill Stocktake use?

Skill Stocktake is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skill Stocktake use?

About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Skill Stocktake?

Skills that share tags, products or a category with Skill Stocktake: Code Improver (trailofbits/skills, 7.5k stars), Skill Improver (trailofbits/skills, 7.5k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars) and Plugin Settings Pattern (anthropics/claude-plugins-official, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Stocktake?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,111 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 10, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.