简介
cc-plugin
原始描述
Claude Code plugin lifecycle management. cache - clean old cache versions (cleanup only — NOT for cache miss diagnosis) [cache.md], clustering - skill affinity scoring (coupling/dep/hook-ownership) → plugin bundle membership [clustering.md], create - plugin authoring guide (structure, plugin.json, components) [create.md], dev-reflect - reflect local dev repo into marketplace clone for pre-push testing [dev-reflect.md], hud - OMC HUD statusline (omcHud elements, omcLabel, wrapper sed fallback) [hud.md], marketplace - clone/list/update marketplace repos [marketplace.md], troubleshoot - cache miss/error, install fail, cache sync, HUD diagnostics — ALL plugin errors route here [troubleshoot.md]. "plugin", "marketplace", "plugin install", "plugin not installed", "cache miss", "cache error", "plugin error", "load error", "reload errors", "dev reflect", "plugin clustering", "bundle skills", "skill affinity", "OMC HUD", "omcHud", "omcLabel", "statusline", "[OMC#" triggers.
通过你的 Agent 添加
安装目录:cc-plugin/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
metadata: author: es6kr version: "0.1.0" name: cc-plugin description: | Claude Code plugin lifecycle management. cache - clean old cache versions (cleanup only — NOT for cache miss diagnosis) [cache.md], clustering - skill affinity scoring (coupling/dep/hook-ownership) → plugin bundle membership [clustering.md], create - plugin authoring guide (structure, plugin.json, components) [create.md], dev-reflect - reflect local dev repo into marketplace clone for pre-push testing [dev-reflect.md], hud - OMC HUD statusline (omcHud elements, omcLabel, wrapper sed fallback) [hud.md], marketplace - clone/list/update marketplace repos [marketplace.md], troubleshoot - cache miss/error, install fail, cache sync, HUD diagnostics — ALL plugin errors route here [troubleshoot.md]. "plugin", "marketplace", "plugin install", "plugin not installed", "cache miss", "cache error", "plugin error", "load error", "reload errors", "dev reflect", "plugin clustering", "bundle skills", "skill affinity", "OMC HUD", "omcHud", "omcLabel", "statusline", "[OMC#" triggers.
Plugin
Claude Code plugin lifecycle management: create, install, update, cache, troubleshoot.
Topics
| Topic | Description | Guide |
|---|---|---|
| cache | Cleanup only — clean old plugin cache versions and temp directories. NOT for "cache miss" or load errors — use troubleshoot instead | cache.md |
| clustering | Score skill-to-skill affinity (coupling / shared external dep / hook-ownership gate) and recommend plugin bundle membership. Feeds into create |
clustering.md |
| create | Plugin authoring guide (structure, plugin.json, components) | create.md |
| dev-reflect | Reflect a local dev source repo's plugin/skill changes into the registered marketplace clone for local testing before commit/push (helper: scripts/dev-reflect.sh) |
dev-reflect.md |
| hud | OMC HUD statusline configuration: omcHud elements, omcLabel toggle, wrapper sed fallback, version compatibility | hud.md |
| marketplace | Clone, list, and update marketplace repositories | marketplace.md |
| troubleshoot | All plugin errors — cache miss, load errors, /reload-plugins errors, /doctor failures, installation failures, cache sync, HUD diagnostics |
troubleshoot.md |
Routing rule (HARD STOP)
| User says | Topic |
|---|---|
| "cache miss", "cache error", "load error", "reload errors", "plugin not loading", "plugin not installed" | troubleshoot (NOT cache) |
| "cache cleanup", "old versions", "disk space", "remove temp_git_*" | cache |
cache.md only owns deletion of stale versions. Any diagnostic of "why isn't this plugin working" — including the literal phrase "cache miss" — routes to troubleshoot.md.
Paths
Marketplaces: ~/.claude/plugins/marketplaces/
Cache: ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。