ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 mutlumehmet

skill-stats

一個 Claude Code 外掛,顯示你的每項技能執行頻率、哪些從未觸發、哪些未帶描述地傳到 Claude,以及為 skill-creator 提供弱描述。claude-plugins 的一部分。

mutlumehmet@mutlumehmet

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

原貼文圖片1
已翻譯

關於這個 mod

一個 Claude Code 外掛,顯示你的每項技能執行頻率、哪些從未觸發、哪些未帶描述地傳到 Claude,以及為 skill-creator 提供弱描述。claude-plugins 的一部分。

功能

  • /skill-stats:你的技能表:過去轉錄中的使用次數、外掛載入後的使用次數、最後看到、列表權杖和 Claude 是否看到描述或僅看到名稱。/skill-stats all 新增每個外掛和內建技能。
  • /skill-fix <skill>:在提示框中放一個 skill-creator 請求,要求該技能的描述,包括上述事實。它永遠不會傳送。
  • 兩者都不需要 Claude 轉,所以不消耗權杖。

「你的技能」是技能資料夾中的那些,加上你命名的市場中的外掛技能。

設定

| 設定 | 預設 | 功能 | |---|---|---| | config_dirs | this account | 逗號分隔的 Claude Code 設定目錄,其轉錄計數,用於一台電腦上的多個帳戶 | | 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

外掛在 Claude Code 內執行,擁有你的權限。在安裝任何外掛前讀取程式碼。設定在安裝時詢問,或稍後使用 /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

更多類似作品