manage-skills

GitHub

管理智能体技能(创建、修订、删除),用于固化任务流程与经验。变更:修正删除权限逻辑,明确仅在用户请求时方可删除技能。

src/skills/defaults/manage-skills/SKILL.md s2b-dev/smart-second-brain

Trigger Scenarios

用户要求创建新技能 需要更新或修复现有技能指令 用户明确要求删除某个技能

Install

npx skills add s2b-dev/smart-second-brain --skill manage-skills -g -y
More Options

Non-standard path

npx skills add https://github.com/s2b-dev/smart-second-brain/tree/main/src/skills/defaults/manage-skills -g -y

Use without installing

npx skills use s2b-dev/smart-second-brain@manage-skills

指定 Agent (Claude Code)

npx skills add s2b-dev/smart-second-brain --skill manage-skills -a claude-code -g -y

安装 repo 全部 skill

npx skills add s2b-dev/smart-second-brain --all -g -y

预览 repo 内 skill

npx skills add s2b-dev/smart-second-brain --list

SKILL.md

Frontmatter
{
    "name": "manage-skills",
    "metadata": {
        "author": "S2B",
        "version": "1.3",
        "category": "core"
    },
    "description": "Create, revise, or delete skills with manage_skills — author new skills, fold verified knowledge into an existing skill's instructions, or remove a skill the user asked to delete. Changes apply immediately. Load this before editing or creating a skill.",
    "allowed-tools": "manage_skills"
}

Managing Skills

Every operation below applies immediately — there is no staging or review step. Be deliberate; by the time you get a result back, the change has already happened.

Skills are where task knowledge lives: how a kind of task is done here, the pitfalls, and the user's corrections about that work. Memory holds facts about the user and pointers into the vault; it is not the place for procedures.

Revising a skill — load it with load_skill first. Patches and updates are refused until you have read the skill in this conversation, so the change is written against its current text.

  • Revise the skill you used whenever it misled you or lacked a step, and whenever the user corrects how this kind of task should be done. Do it before you finish the task; those corrections live here, not in memory.
  • Do this to make verified knowledge permanent: after you discover how a task actually works (e.g. a plugin's real API), fold the concrete methods, arguments, and patterns into the skill so future runs skip re-discovery.
  • Fix in place: change the sentence that was wrong. Never append an "Update:" paragraph under it.
  • Write lessons, not logs: one rule per point, imperative plus one clause of why. No narration of what happened, no dates.
  • Only write instructions you have actually confirmed — never speculative or unverified steps. A skill full of guesses is worse than none.
  • A skill's name and plugin link are locked; you can change the body and description only.

Patch — the normal way to revise: give the exact passage to replace, copied from the loaded skill, and its replacement. The passage must match exactly once, so include enough surrounding text to make it unique. An empty replacement deletes the passage. Frontmatter cannot be patched.

Update — replace the whole body (and optionally the description). Use it only when the skill needs restructuring; for anything smaller, patch.

Create — author a brand-new skill: give it a name, a one-line description, and instructions (body). You may request a small set of built-in tools for it via allowedTools; only tools from an allowed subset are granted, others are silently dropped.

  • Create when the workflow has no home in an attached skill; prefer extending a skill that already covers the area.
  • A skill you create is attached and usable immediately — there is no separate enable step.
  • Keep new skills narrow and instructions concrete — write down only what you'd actually want to remember doing again.

Delete — remove a skill only when the user asks for that skill to be deleted, whoever wrote it. Never delete one on your own initiative, to tidy up or because it looks unused. It applies immediately, with no confirmation step. Built-in core skills cannot be deleted.

Version History

  • 2.3.0 Current 2026-10-18 19:51

    修正删除技能的规则,明确仅在用户主动请求时才可执行删除操作,移除了基于作者身份的隐含限制。

  • 2.2.0 2026-09-22 02:53

    新增 Patch 操作以支持精确替换技能正文片段,避免全量更新;引入加载校验机制,确保修订基于当前会话中实际读取的技能文本,防止因缓存或并发导致的数据丢失或覆盖。

  • 2.0.5 2026-09-08 21:10

Same Skill Collection

.claude/skills/dispatch/SKILL.md
.github/skills/obsidian-integration-test/SKILL.md
integration/S2B Test Vault/.obsidian/skills/bases/SKILL.md
integration/S2B Test Vault/.obsidian/skills/canvas/SKILL.md
integration/S2B Test Vault/.obsidian/skills/dataview/SKILL.md
integration/S2B Test Vault/.obsidian/skills/notebook-navigator/SKILL.md
integration/S2B Test Vault/.obsidian/skills/obsidian-charts/SKILL.md
integration/S2B Test Vault/.obsidian/skills/tasknotes/SKILL.md
integration/S2B Test Vault/.obsidian/skills/tasks/SKILL.md
integration/S2B Test Vault/Agents/Skills/bases/SKILL.md
integration/S2B Test Vault/Agents/Skills/canvas/SKILL.md
integration/S2B Test Vault/Agents/Skills/dataview/SKILL.md
integration/S2B Test Vault/Agents/Skills/explore-vault/SKILL.md
integration/S2B Test Vault/Agents/Skills/manage-notes/SKILL.md
integration/S2B Test Vault/Agents/Skills/manage-skills/SKILL.md
integration/S2B Test Vault/Agents/Skills/notebook-navigator/SKILL.md
integration/S2B Test Vault/Agents/Skills/obsidian-charts/SKILL.md
integration/S2B Test Vault/Agents/Skills/tasknotes/SKILL.md
integration/S2B Test Vault/Agents/Skills/tasks/SKILL.md
integration/S2B Test Vault/Agents/Skills/web/SKILL.md
src/skills/defaults/explore-vault/SKILL.md
src/skills/defaults/manage-notes/SKILL.md
src/skills/defaults/web/SKILL.md
src/skills/defaults/widgets/SKILL.md
src/skills/integrations/bases/SKILL.md
src/skills/integrations/canvas/SKILL.md
src/skills/integrations/dataview/SKILL.md
src/skills/integrations/obsidian-charts/SKILL.md
src/skills/integrations/tasknotes/SKILL.md
src/skills/integrations/tasks/SKILL.md

Metadata

Files
0
Version
2.3.0
Hash
e174a0b5
Indexed
2026-09-08 21:10

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-24 19:15
浙ICP备14020137号-1