ClaudeMods
☰
ZH-TW
● 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

更多類似作品