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

tree-of-mods

一个 Claude Code mod,把所有 mod 放进聊天旁边的同一个面板。输入 `/mods`。

hacksurvivor@hacksurvivor

hacksurvivor/claude-mods/tree/main/mods/tree-of-mods

原帖图片1
已翻译

关于这个 mod

Mod 树

一个 Claude Code mod,把所有 mod 放进聊天旁边的同一个面板。输入 /mods。

Mod 树:聊天旁边的面板,显示仓库的克隆数、页面浏览量,以及带状态的 mod

  • 你的 mod:你制作的 mod,无论已经发布还是只在电脑上,都带有测试和各自完成的工作。还会从 GitHub 显示仓库 14 天内的克隆数,以及每个已发布 mod 的页面浏览量。点击某个 mod 可查看详情和 Publish;它会要求 Claude 准备内容,并在提交或推送前停止。
  • 已安装:从 marketplace 安装的插件,带有版本和更新信息。
  • 更新:Updates 找到的内容,包括 Update all、每行的 Update、用于调整后副本的 Review,以及需要密码的项目所用的 Copy command。
  • On 和 Off:切换任意项目。已安装的插件使用 claude plugin enable 和 disable,你自己的 mod 使用设置中的 CLAUDE_CODE_PLUGIN_DIRS。

不会显示安装次数:Claude Code 不会向作者报告这些次数。GitHub 的克隆数统计整个仓库,也包含你自己的克隆。

你的 mod 在哪里

默认使用这个 mod 所在的文件夹,以及其仓库的 GitHub 远程地址。要指向其他位置,请写入 ~/.claude/tree-of-mods/config.json:

{ "modsDir": "~/code/my-mods/mods", "repo": "you/my-mods" }

要求

  • Claude Code 2.1.286 或更高版本(mods)。面板会停靠在 Claude 桌面应用的聊天旁边。
  • Python 3,以及已登录并能访问仓库流量数据的 GitHub CLI(gh),用于获取这些数字。
  • Updates,用于 Updates 标签页。

安装

在 Claude Code 中:

/plugin marketplace add hacksurvivor/claude-mods
/plugin install tree-of-mods@hacksurvivor
/reload-plugins

它运行、读取和写入什么

  • 运行 bin/inventory.py,读取你的 mod 文件夹及其 git 状态、已安装的插件、Updates 报告和仓库的 GitHub 流量数据(gh api,仅 GET,每小时缓存)。当某个 mod 的文件发生变化时,它会用 claude plugin test 运行该 mod 的测试。
  • 写入 只在你要求时进行:切换开关会修改 ~/.claude/settings.json(先备份)或运行 claude plugin enable 或 disable;更新会运行该更新的步骤;Publish 会向 Claude 发送提示。
  • 发送 除了向 GitHub 发送流量请求,以及你启动的更新所联系的服务外,不会向任何人发送内容。
  • 保留 缓存于 ~/.claude/tree-of-mods/。

参见 PRIVACY.md。

许可证

Apache-2.0

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add hacksurvivor/claude-mods
claude plugin install tree-of-mods
原文 / README

The Tree of Mods

A Claude Code mod that puts all your mods in one panel beside the chat. Type /mods.

The Tree of Mods: the panel beside the chat with the repo's clones, page views, and your mods with their status

  • Yours: the mods you make, published or only on your computer, with their tests and what each has done. Your repo's clones over 14 days and the page views of each published mod, from GitHub. Click a mod for its details and Publish, which asks Claude to prepare it and stops before committing or pushing.
  • Installed: the plugins you installed from marketplaces, with versions and updates.
  • Updates: what Updates found, with Update all, Update per row, Review for adapted copies, and Copy command for ones that need your password.
  • On and Off switch any of them: installed plugins with claude plugin enable and disable, your own mods in your settings' CLAUDE_CODE_PLUGIN_DIRS.

Install counts aren't shown: Claude Code doesn't report them to authors. GitHub's clones count the whole repository and include your own.

Where your mods are

By default, the folder this mod sits in and the GitHub remote of its repository. To point it elsewhere, write ~/.claude/tree-of-mods/config.json:

{ "modsDir": "~/code/my-mods/mods", "repo": "you/my-mods" }

Requirements

  • Claude Code 2.1.286 or later (mods). The panel docks beside the chat in the Claude desktop app.
  • Python 3, and the GitHub CLI (gh) signed in with access to your repo's traffic, for the numbers.
  • Updates, for the Updates tab.

Install

In Claude Code:

/plugin marketplace add hacksurvivor/claude-mods
/plugin install tree-of-mods@hacksurvivor
/reload-plugins

What it runs, reads and writes

  • Runs bin/inventory.py, which reads your mods folder and its git state, your installed plugins, the Updates report, and GitHub's traffic numbers for your repo (gh api, GET only, cached for an hour). It runs each mod's tests with claude plugin test when its files changed.
  • Writes only when you ask: a switch changes ~/.claude/settings.json (backed up first) or runs claude plugin enable or disable; an update runs that update's steps; Publish sends Claude a prompt.
  • Sends nothing to anyone but GitHub (the traffic requests) and the services an update you start talks to.
  • Keeps its cache in ~/.claude/tree-of-mods/.

See PRIVACY.md.

License

Apache-2.0

更多类似作品