Communitygithub.com

スキル棚卸し

Claudeスキルとコマンドの品質を監査します。Quick Scan(変更されたスキルのみ)とFull Stocktake(全スキル)の2モードをサポートし、サブエージェントによるバッチ評価を逐次実行します。

スキル棚卸し とは?

このスキルは、Claude Code環境で利用する全スキル・コマンドを品質チェックリストとAIの総合判断で監査するための専用ツールです。2つの動作モードを持ちます: Quick Scanは前回の実行から変更があったスキルのみを再評価(5~10分)、Full Stocktakeは全てのスキルを完全レビュー(20~30分)します。監査は4フェーズで進行し、Phase 1でスキル一覧をスキャン、Phase 2でサブエージェント(汎用エージェント)を使用してチェックリストに基づく評価を実施、Phase 3でサマリテーブルを生成、Phase 4で統合・改善・削除などのアクションを提案します。評価結果はJSONファイルにキャッシュされ、中断再開や差分評価をサポートします。結果の質を高めるため、各スキルに対して「Keep(維持)」「Improve(改善)」「Update(更新)」「Retire(廃止)」「Merge into X(Xへの統合)」の5段階の判定と、具体的な理由を添える仕組みになっています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/skill-stocktake

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

スキル棚卸し は何をしますか?

スラッシュコマンド(/skill-stocktake)で、全てのClaudeスキルとコマンドを品質チェックリスト+AIの総合判断で監査します。Quick Scan(最近変更されたスキルのみ)とFull Stocktake(完全レビュー)の2モードをサポートしています。

スコープ

このコマンドは、実行されたディレクトリからの相対パスで以下のパスを対象とします。

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

Phase 1の開始時点で、コマンドはどのパスが見つかりスキャンされたかを明示的にリスト表示します。

特定のプロジェクトを対象とする

プロジェクトレベルのスキルを対象に含めるには、そのプロジェクトのルートディレクトリから実行します。

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

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

モード

モードトリガー所要時間
Quick Scanresults.json が存在する(デフォルト)5~10分
Full Stocktakeresults.json がない、または /skill-stocktake full20~30分

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

Quick Scan のフロー

前回の実行以降に変更されたスキルのみを再評価します(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. 変更されたファイルのみを、Phase 2と同じ基準で再評価
  5. 変更がないスキルは前回の結果を引き継ぐ
  6. 差分のみを出力
  7. 実行: bash ~/.claude/skills/skill-stocktake/scripts/save-results.sh \ ~/.claude/skills/skill-stocktake/results.json <<< "$EVAL_RESULTS"

Full Stocktake のフロー

Phase 1 — インベントリ

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

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

Scanning:
  ✓ ~/.claude/skills/         (17 files)
  ✗ {cwd}/.claude/skills/    (not found — global skills only)
Skill7d use30d useDescription

Phase 2 — 品質評価

完全なインベントリとチェックリストを指定して、Agentツールのサブエージェント(汎用エージェント)を起動します。

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": "..." }

チャンクガイダンス: コンテキストを管理しやすくするため、サブエージェントの1回の呼び出しで約20スキルを処理してください。各チャンクの後、中間結果を results.json(status: "in_progress")に保存します。

すべてのスキルが評価されたら、status: "completed" に設定し、Phase 3に進みます。

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

各スキルは以下のチェックリストに照らして評価されます。

- [ ] 他のスキルとの内容の重複がチェックされている
- [ ] MEMORY.md / CLAUDE.md との重複がチェックされている
- [ ] 技術参照の鮮度が確認されている(ツール名 / CLIフラグ / APIが存在する場合はWebSearchを使用)
- [ ] 使用頻度が考慮されている

判定基準:

判定意味
Keep有用で最新
Improve維持する価値があるが、具体的な改善が必要
Update参照している技術が古くなっている(WebSearchで確認)
Retire品質が低い、古い、またはコストに見合わない
Merge into [X]他のスキルと大幅に重複しているため、統合先を指定する

評価はAIの総合判断であり、数値ルーブリックではありません。ガイドとなる次元:

  • Actionability: すぐに行動に移せるコード例、コマンド、手順があること
  • Scope fit: 名前、トリガー、内容が一致しており、広すぎず狭すぎないこと
  • Uniqueness: MEMORY.md / CLAUDE.md / 他のスキルで代替できない固有の価値があること
  • Currency: 技術参照が現在の環境で動作すること

理由の品質要件 — reason フィールドは自己完結し、意思決定を可能にするものでなければなりません。

  • 「変更なし」だけを書かない — 常に核となる証拠を再述すること
  • Retire の場合: (1) どのような具体的な欠陥が見つかったか、(2) 代わりに同じニーズをカバーするものは何か、を述べること
    • 悪い例: "Superseded"
    • 良い例: "disable-model-invocation: true が既に設定されている。continuous-learning-v2 が同じパターンをすべてカバーし、さらに信頼性スコアを追加している。ユニークな内容は残っていない。"
  • Merge の場合: 統合先を指定し、どの内容を統合するかを説明すること
    • 悪い例: "Overlaps with X"
    • 良い例: "42行の薄い内容。chatlog-to-article のステップ4で既に同じワークフローをカバーしている。'article angle' のヒントをそのスキルに注釈として統合する。"
  • Improve の場合: 必要な具体的な変更(どのセクション、どのアクション、該当する場合は目標サイズ)を説明すること
    • 悪い例: "Too long"
    • 良い例: "276行。セクション 'Framework Comparison' (L80–140) が ai-era-architecture-principles と重複しているため削除し、約150行にする。"
  • Keep の場合(Quick Scanでmtimeのみの変更): 元の判定の根拠を再述し、「変更なし」と書かないこと
    • 悪い例: "Unchanged"
    • 良い例: "mtimeは更新されたが内容は変更なし。rules/python/ で明示的にインポートされるユニークなPython参照。重複なし。"

Phase 3 — サマリテーブル

Skill7d useVerdictReason

Phase 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 のような日付のみの近似値は使用しないでください。

{
  "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、自作、自動抽出)は問いません。
  • アーカイブ / 削除操作は常に明示的なユーザー確認が必要です。
  • スキルの起源による判定の分岐はありません。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

関連スキル