update-skill
Update an existing skill's SKILL.md body in workspace/capabilities/skills/, bumping its frontmatter semver.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-22
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- update-skill
- tools
- [ "read", "update_skill", "reload" ]
- version
- 1.0.0
- triggers
- [ "fix the skill", "the skill is wrong", "refine the procedure", "bump the skill version" ]
- description
- Update an existing skill's SKILL.md body in workspace/capabilities/skills/, bumping its frontmatter semver.
02 资源文件 3
- 脚本bin/check-careful.sh4.2 KB
- 脚本scripts/validate.py1.1 KB
- 其他SKILL.md.tmpl2.3 KB
03 SKILL.md 正文
Resources
(auto-filled by the loader)
Contract
Inputs you must have:
- The skill's
name(matches its folder underworkspace/capabilities/skills/). - The full new body for
SKILL.mdafter the frontmatter —update_skillrewrites the body wholesale. - A clear judgment about which version segment to bump.
Outputs the agent must produce:
- The replaced
SKILL.mdwith a bumped frontmatterversion. - A
reload()call after the update succeeds.
Knowledge
update_skill preserves the frontmatter (with bumped version) and replaces the body wholesale. The body is everything after the closing --- line; sub-folders (references/, scripts/, templates/, assets/) are untouched.
Semver judgment for skills:
- patch — wording polish, typo fix, anti-pattern clarification. The skill still teaches the same procedure with the same tools and same outputs.
- minor — added an example, added an anti-pattern, refined a step. Existing followers of the skill still produce the same outcome; new followers benefit from the additional context.
- major — changed the procedure itself. Different tools listed, different step ordering, different success criteria. An LLM that learned the previous version would now produce wrong output.
A skill that has changed its tools: field is always at least a minor bump (caller dependencies changed). If the procedure has changed substantively, it's a major.
Steps
- Read the existing SKILL.md:
read(file_path="<workspace>/capabilities/skills/<name>/SKILL.md"). - Decide the bump level. If you're rewriting more than one section, default to minor; if
## Stepsordering changed ortools:set changed, default to major. - Compose the new body (everything after the closing
---). The frontmatter is regenerated for you — don't include it innew_body. - Call
update_skill(name=..., new_body=..., version_bump="<patch|minor|major>"). - Call
reload(). The diff should mention~1 replaced (<name> <old>→<new>). - If the validator emits
capability:registration_warningfor any section being filler, go back to step 3 and fill it.
Anti Patterns
- Don't skip the
readstep. Read the existing skill so the new body builds on what was there. - Don't include frontmatter in
new_body. The tool rejects it implicitly (the next reload sees a doubled---block and fails parsing). - Don't bump patch on a major rewrite. Future readers can't tell the skill changed substantively.
- Don't delete a section. The 7 sections are mandatory — replace, don't remove.
Examples
# A new anti-pattern surfaced; add it without changing the procedure.
old = await read(
file_path="capabilities/skills/rotate-credentials/SKILL.md"
)
# Strip frontmatter for new_body
new_body = old.split("---\n", 2)[2]
new_body = new_body.replace(
"## Anti Patterns\n",
"## Anti Patterns\n\n- **Don't** skip the post-rotation health check.\n",
)
await update_skill(
name="rotate-credentials", new_body=new_body, version_bump="minor"
)
await reload()
Validation
update_skillreturnedUpdated skill ... <old>→<new>.reload()returned a diff containing~1 replaced.- The reload did NOT emit
capability:registration_failedfor the skill. - Re-reading the SKILL.md shows the new body content with bumped frontmatter version.
04 同仓库更多 Skills
笔记读取
notes
使用 notes_echo 工具回读笔记内容。
ArcFlow 工作流构建
workflow-builder
将对话中描述的可重复业务流程,转化为经过命名和验证的 ArcFlow 工作流草稿。
@tool 工具源文件更新
update-tool
更新 workspace/capabilities/ 目录下现有的 @tool 源文件,并按 major/minor/patch 规则递增其语义化版本(semver)。
create-tool
Author a new @tool-decorated Python file in the agent workspace, validate it, and register it via reload().
create-skill
Scaffold a new skill folder under workspace/capabilities/skills/ with frontmatter and the seven required sections.
sqlite
Use the SQLite connector to read the operator's semantic layer and make bounded typed reads of an approved database file. Trigger for questions about data in a connected SQLite database; skip for writes, schema changes, or raw SQL.