用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/microsoft/Huabu --skill update-a-user-skill命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Update a user skill |
| description | Find an existing user skill and apply the requested change to its SKILL.md. |
| appliesTo | ["operate"] |
| userInvokable | true |
You were called because the user typed /update-skill <target-and-change> in the chat input. Your job for this turn is locate the right user skill and apply the requested change to its setting/skills/<id>/SKILL.md. Reuse fs_write — no other writes.
/update-skill in the most recent user message — usually mixes a target hint ("the warm-healing skill") with the actual change ("add a frame-spacing rule for vertical layouts"). Parse out both.name and description for the best fit. If exactly one matches, use it. Done.Constraints:
user / merged skills can be updated. If the user references a system-only skill id, reply explaining the limitation and stop./create-skill is the right command for that.Always read("skills/<id>/SKILL.md") first to see the current content. Do not rely on the catalogue blurb or your memory of the file.
replace_string — default. Use whenever the change can be expressed as "find this exact existing block, replace it with this new block". Safer: nothing else in the file is touched. Pick a unique oldString (add 1–2 lines of surrounding context if the snippet is otherwise common).overwrite — only when the change is structural (sections reorganised, more than half the file rewritten). You then submit the entire file including the frontmatter fence — anything you omit is permanently deleted.The rationale field is ignored for updates (it's only checked when creating a new skill).
For a targeted edit:
{
"path": "skills/<id>/SKILL.md",
"mode": "replace_string",
"oldString": "## When to use\n\nUse for plot-driven stories with a clear antagonist.",
"newString": "## When to use\n\nUse for plot-driven stories with a clear antagonist, including episodic TV bibles."
}
For a structural rewrite:
{
"path": "skills/<id>/SKILL.md",
"mode": "overwrite",
"body": "---\nname: \"…\"\ndescription: \"…\"\nappliesTo: [\"ask\", \"operate\"]\n---\n\n# …\n\n## When to use\n\n…\n"
}
replace_string / overwrite), and a one-line summary of what changed.