ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 mutlumehmet

skill-stats

一个 Claude Code mod,显示你的每项技能运行频率、哪些从未触发、哪些未带描述地传到 Claude,以及为 skill-creator 提供弱描述。claude-plugins 的一部分。

mutlumehmet@mutlumehmet

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

原帖图片1
已翻译

关于这个 mod

一个 Claude Code mod,显示你的每项技能运行频率、哪些从未触发、哪些未带描述地传到 Claude,以及为 skill-creator 提供弱描述。claude-plugins 的一部分。

功能

  • /skill-stats:你的技能表:过去转录中的使用次数、mod 加载后的使用次数、最后看到、列表令牌和 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

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

更多类似作品