ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 mutlumehmet

skill-stats

各スキルがどのくらい実行されるか、トリガーされないか、説明なしで Claude に到達するか、skill-creator に弱い説明を渡すかを示す Claude Code mod。claude-plugins の一部。

mutlumehmet@mutlumehmet

mutlumehmet/claude-plugins/tree/main/plugins/skill-stats

元の投稿の画像1
翻訳済み

この mod について

各スキルがどのくらい実行されるか、トリガーされないか、説明なしで Claude に到達するか、skill-creator に弱い説明を渡すかを示す Claude Code mod。claude-plugins の一部。

機能

  • /skill-stats:スキルの表:過去のトランスクリプトで見つかった使用回数、mod ロード後の使用回数、最後に見られた、リストトークン、Claude が説明を見るか名前だけを見るか。/skill-stats all はすべてのプラグインと組み込みスキルを追加します。
  • /skill-fix <skill>:プロンプトボックスに そのスキルの説明の skill-creator リクエストを入れ、上記の事実を含めます。送信することはありません。
  • どちらも Claude ターンなしで答えるため、トークンはかかりません。

「あなたのスキル」はスキルフォルダー内のもの、プラスあなたが指定したマーケットプレイスのプラグインスキルです。

設定

| 設定 | デフォルト | 機能 | |---|---|---| | config_dirs | this account | コンマ区切りの Claude Code 設定ディレクトリ。トランスクリプトが数えられます。1 台のマシンで複数のアカウント用 | | own_marketplaces | empty | コンマ区切りのマーケットプレイス名。プラグインスキルがあなたのものとしてカウント | | source_dirs | empty | コンマ区切りのフォルダー。スキルのソースが存在する場所。/skill-fix がインストール済みコピーではなく編集対象ファイルを指すように |

読むことと行うこと

  • 読む:ローカル Claude Code トランスクリプト内のスキル名(設定ディレクトリの projects/*.jsonl、または config_dirs のフォルダー)と那些ファイルの日付、このセッションで一覧表示されたスキルとサイズ、設定内のマーケットプレイス。
  • 行う:/skill-stats で使用回数を表示;/skill-fix は skill-creator リクエストでプロンプトボックスを塡め、送信しません。
  • フック:skill.prompt はスキルの使用を数え、プロンプトを変更しないまま渡します。command.run は自身の /skill-stats と /skill-fix コマンドに答え、他には答えません。
  • プライバシー:PRIVACY.md を参照してください。
  • 決して:どこにでも何かを送信しません(ネットワーク呼び出しなし、テレメトリーなし)。

インストール

Claude Code 2.1.287 以降が必要です(mods)。2.1.289 でテスト済み。

/plugin marketplace add mutlumehmet/claude-plugins
/plugin install skill-stats@mehmetmutlu

mod は Claude Code 内で実行され、あなたの権限を持っています。mod をインストール前にコードを読んでください。設定はインストール時に求められます。または後で /plugin configure skill-stats@mehmetmutlu で求めることができます。

既知のギャップ

  • 履歴はトランスクリプトから来ており、Claude Code は cleanupPeriodDays 後に削除します。
  • 「名前のみ」はリストトークンから測定され、記録されたフィールドからではありません。

概要

Mehmet Mutlu によって作成、claude-plugins の一部。彼のその他の作品は mehmetmutlu.dev。

ライセンス

MIT。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add mutlumehmet/claude-plugins
claude plugin install skill-stats
原文 / README

skill-stats

A Claude Code mod that shows how often each of your skills runs, which never trigger, which reach Claude without their description, and hands a weak description to skill-creator. Part of claude-plugins.

What it does

  • /skill-stats: a table of your skills: uses found in past transcripts, uses since the mod loaded, last seen, listing tokens, and whether Claude sees the description or only the name. /skill-stats all adds every plugin and built in skill.
  • /skill-fix <skill>: puts a skill-creator request for that skill's description in the prompt box, with the facts above. It never sends it.
  • Both answer without a Claude turn, so they cost no tokens.

"Your skills" are the ones in a skills folder, plus the plugin skills from the marketplaces you name.

Settings

| Setting | Default | What it does | |---|---|---| | config_dirs | this account | Comma separated Claude Code config dirs whose transcripts count, for several accounts on one machine | | own_marketplaces | empty | Comma separated marketplace names whose plugin skills count as yours | | source_dirs | empty | Comma separated folders where your skills' source lives, so /skill-fix points at the file to edit and not the installed copy |

What it reads and does

  • Reads: skill names in your local Claude Code transcripts (projects/*.jsonl under your config directory, or the folders in config_dirs) and those files' dates, the skills listed in this session with their size, and the marketplaces in your settings.
  • Does: shows use counts in /skill-stats; /skill-fix fills the prompt box with a skill-creator request and never sends it.
  • Hooks: skill.prompt counts a skill as used and passes its prompt on unchanged. command.run answers its own /skill-stats and /skill-fix commands and no other.
  • Privacy: see PRIVACY.md.
  • Never: sends anything anywhere (no network calls, no telemetry).

Install

Needs Claude Code 2.1.287 or later (mods). Tested on 2.1.289.

/plugin marketplace add mutlumehmet/claude-plugins
/plugin install skill-stats@mehmetmutlu

A mod runs inside Claude Code with your permissions. Read the code before you install any mod. Settings are asked for at install, or later with /plugin configure skill-stats@mehmetmutlu.

Known gaps

  • History comes from transcripts, which Claude Code deletes after cleanupPeriodDays.
  • "Name only" is measured from listing tokens, not from a documented field.

About

Mehmet Mutlu: work that's shipped, at mehmetmutlu.dev

Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.

License

MIT

関連作品