/init-skills:updatefrom init-skills
Incrementally updates before-modify and project-structure skills after project structural changes (new directories, frameworks, refactors). Preserves user-defined custom rules from modification.
Ships in init-skills. 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.
None: SKILL.md is the whole skill.
当项目结构发生变化后,更新已有的 .claude/skills/ 中的 skills。
项目必须已经存在 .claude/skills/before-modify/SKILL.md 和 .claude/skills/project-structure/SKILL.md。
如果不存在,请先运行 /init-skills:init 初始化。
读取项目中已有的 skills:
.claude/skills/before-modify/SKILL.md.claude/skills/project-structure/SKILL.md执行与 /init-skills:init 相同的探测流程:
将新探测结果与现有 skills 对比,识别变化:
## 发现以下变化
**新增**:
- 新增目录: src/utils/
- 新增框架: Redis 缓存
**移除**:
- 移除目录: lib/ (已重命名为 src/)
**修改**:
- API 路由路径: api/ → src/api/
是否更新这些变化?
用户可以选择:
根据用户选择,更新对应的 skill 文件:
已更新项目级 skills:
更新内容:
- [before-modify] 更新了 API 路由路径
- [project-structure] 新增了 utils 目录索引
保留内容:
- [before-modify] 自定义的检查规则
- [project-structure] 手动添加的约定说明
以下内容视为用户自定义,更新时保留:
## 自定义规则 章节下的内容What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yhy0/init-skills --plugin init-skills2 skills in this plugin
Other plugins' skills for the same job