/wakita-toolkit:plugin-creatorfrom wakita-toolkit
为 ZCode 创建并脚手架生成插件目录,包含必需的 `.claude-plugin/plugin.json`、可选的插件文件夹/文件、有效的 manifest 默认值,以及默认的个人 marketplace 条目。当 ZCode 需要创建新个人插件、添加可选插件结构、生成或更新 marketplace 条目以控制插件排序与可用性元数据,或在开发期间用 CLI 驱动的 cachebuster 与重装流程更新现有本地插件时使用。触发词:创建插件、脚手架插件、plugin.json、marketplace.json、cachebuster、重装插件、ZCode 插件。
Ships in wakita-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
# Plugin 名称被规范化为小写连字符形式,且必须 <= 64 字符。
# 默认创建在 ~/plugins/<plugin-name>。
python3 scripts/create_basic_plugin.py <plugin-name>
编辑 <plugin-path>/.claude-plugin/plugin.json 填入具体元数据。脚手架以有效默认值起步,不得包含 [TODO: ...] 占位符。
需要 marketplace 时:
python3 scripts/create_basic_plugin.py my-plugin --with-marketplace
默认输出到 ~/.agents/plugins/marketplace.json(个人 marketplace,ZCode 自动发现)。仅当默认 personal 名称已被占用时才用 --marketplace-name <name>。仅当用户明确要求仓库/团队 marketplace 时才用 --path + --marketplace-path。
按需生成可选伴随文件夹(--with-skills --with-hooks --with-scripts --with-assets --with-mcp --with-apps)。
交回前验证:
python3 scripts/validate_plugin.py <plugin-path>
python3 scripts/update_plugin_cachebuster.py <plugin-path>
完整缓存刷新与重装流程见 references/installing-and-updating.md。
<plugin-name>/,内含 .claude-plugin/plugin.json~/.agents/plugins/marketplace.jsonskills/、hooks/、scripts/、assets/、.mcp.json、.app.jsonMy Plugin → my-plugin(小写连字符,连续连字符合并)~/.agents/plugins/marketplace.json(个人 marketplace),ZCode 自动发现zcode plugin marketplace add <path> 显式安装scripts/read_marketplace_name.py 读取 marketplace 名称(无参数=默认个人,带路径=指定文件)source.path 保持 ./plugins/<plugin-name>(相对 marketplace 根)policy.installation: "AVAILABLE"、policy.authentication: "ON_INSTALL"、category: "Productivity"policy.products--forcereferences/plugin-json-spec.mdplugin.json 的 "name" = 规范化插件名,始终一致[TODO: ...] 占位符hooks)apps/mcpServers 写入 plugin.jsoninterface.displayNamezcode plugin marketplace add——该命令仅用于非默认路径scripts/update_plugin_cachebuster.py + references/installing-and-updating.md,不手编 marketplace 文件当创建/更新了 marketplace 条目时,在最终响应中输出:
zcode://plugins/<规范化名称>?marketplacePath=<绝对路径> — View 链接&mode=share — Share 链接pluginName 或 hostId 参数references/plugin-json-spec.md — manifest 与 marketplace 条目的完整 JSON schemareferences/installing-and-updating.md — 缓存刷新、重装流程及重装后的新线程接管行为编辑 SKILL.md 后:python3 ../skill-creator/scripts/quick_validate.py .
交回插件前:python3 scripts/validate_plugin.py <plugin-path>
.claude-plugin/plugin.json + marketplace 协议)。agents/openai.yaml (opens in a new tab)assets/plugin-creator-small.svg (opens in a new tab)assets/plugin-creator.png (opens in a new tab)references/installing-and-updating.md (opens in a new tab)references/plugin-json-spec.md (opens in a new tab)scripts/create_basic_plugin.py (opens in a new tab)scripts/read_marketplace_name.py (opens in a new tab)scripts/update_plugin_cachebuster.py (opens in a new tab)scripts/validate_plugin.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aaaakita/wakita-plugins --plugin wakita-toolkit39 skills in this plugin
/ai-code-failure-modesAI 生成代码特有的失败模式审查——查 stub/假数据冒充核心逻辑、只覆盖快乐路径、调用不存在的 API 或依赖包、 配置变更没验证、测试只断言当前实现、静默兜底掩盖失败。当用户说“AI 写的代码看着能跑但心里没底” “是不是 stub 冒充”“测试全过但功能没做”“AI 加了个不存在的包”“配置改了没生效”时使用。 也作为 clean-home 清理房间的第 4 步被加载。只审 AI 特有失败模式,不重复测试规范与静默失败审计。
/brainstorm创作性头脑风暴——在动手写代码前,和 AI 一起发散思考、对比方案、画架构图。 不是工作流程,是一种思考姿态。不写业务代码,只做设计讨论和方案探索。 触发词:头脑风暴、帮我想想、设计一下、分析方案、对比方案、架构怎么设计、 技术选型、brainstorm、design discussion、想清楚再动手、先别写代码、 先想想、方案对比、tradeoff、利弊分析。
/canvas-interaction-spaceCanvas/WebGL 与 DOM 叠加层错位、指针吸附/命中手感差、缩放后交互容差变化时的排查与设计规范。 核心:屏幕空间与模型空间是两套坐标系。先验证 devicePixelRatio 与 canvas CSS 尺寸,再怀疑锚点; 交互容差按屏幕像素定义再换算成模型单位;坐标转换只保留一个来源。 触发词:Canvas 错位、CSS2D 标签飘移、叠加层偏移、WebGL 坐标、devicePixelRatio、dpr、 setSize、updateStyle、吸附不灵、命中半径、点击选不中、缩放后手感、屏幕像素、模型单位、 screen space、model space、overlay alignment。
Other plugins' skills for the same job