self-extension
How to extend yourself — capture a reusable procedure as a skill (create_skill), spawn a subagent for a heavy self-contained job (spawn_subagent), or author a…
от szprivate★ 53 звезды на GitHub
Установить self-extension в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Self-extension
create_skill(name, description, instructions, allowed_tools?)— when you work
out a reusable multi-step procedure, save it as a skill so you (and future
turns) can reload it via theskillstool instead of re-deriving it. Your
authored skills appear in<available_skills>from the next turn.list_skills()/remove_skill(name)— manage what you've authored.spawn_subagent(task, toolset?, model?, tools?, skill?)— isolate a heavy,
multi-step, or self-contained sub-task in a fresh, lean context; it runs to
completion and returns its text (subagents cannot spawn further subagents).
ONLY call this when the user's current message explicitly asks you to use or
spawn a subagent. For all normal work — staging inputs, building/duplicating
workflows, batch handoff, research — use your own tools directly; never
delegate routine steps to a subagent. If you call it without an explicit user
request it will refuse (it is disarmed for that turn).
When the user has asked: prefer a MINIMAL explicittoolslist + askill
over a presettoolset— a subagent with only the ~6 tools its job needs
carries far less context and picks tools far more reliably than the full set.
Activate thespawn-subagentskill for when-and-how-to-spawn rules (plan
first, scope the toolset, optional user approval for big jobs).create_custom_node(github_url, node_name?, notes?)— when the user points you
at a model's GitHub repo that has no existing ComfyUI node, run the coder
agent (custom-node-from-github skill): it clones the repo, reads the docs +
inference code, and writes a self-contained node pack intooutput/custom_nodes/<name>/(the
user can then publish it as its own repo). Relay the returnedagent_summary,
especially any "Unresolved / TODO" items it flagged. Uselist_generated_nodes()
to see packs already created. This authors code for the user to review/publish —
it does not install the node into the live ComfyUI.
How far self-extension may go — the safety policy:
- Capturing capability as a skill is always allowed. When a script or
procedure works, turn it into a skill withcreate_skill(it lands underskills/_scratch/, is reversible viaremove_skill, and is data — not live
code). This is the default way to "add a script to your toolset". Keep the
script itself inoutput/scriptsand have the skill invoke it viarun_script. - You may NOT edit your own code (
src/,agenty_core/) live. Those are
imported by the running server (and by another app), so a live edit can break
everything with no review. If you believe a change to the agent's own code is
warranted, do not write intosrc/oragenty_core/. Instead write a
proposal: save the intended change (a diff or a full replacement file plus a
short rationale) underoutput/proposals/, and tell the user it's ready for
review. A human applies, tests, and restarts. Promoting a_scratchskill into
the committedskills/set is likewise a human decision — surface it, don't do
it silently. - Never write to
.envorconfig/except through the settings UI path — andinstall_mcp_preset(a catalog preset or an approved drafted recipe; see themcp-recipesskill) andadd_mcp_server, the sanctioned tools for it: when the user
asks you to install/add an MCP server, prefer a preset, otherwise calladd_mcp_server
with the start command, address or README JSON.
It shows the user exactly what will run and waits for their approval every time,
tests the server, saves it (keys to.env) and connects it; thenuse_mcp_server.
Neverrun_script/npm or hand-editconfig/mcp.jsonfor this.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
add_mcp_server - 02
use_mcp_server - 03
create_skill - 04
list_skills - 05
remove_skill - 06
spawn_subagent - 07
create_custom_node - 08
list_generated_nodes - 09
run_script - 10
write_text_file - 11
run_planner
FAQ
Что делает скилл self-extension?
How to extend yourself — capture a reusable procedure as a skill (create_skill), spawn a subagent for a heavy self-contained job (spawn_subagent), or author a ComfyUI node pack from a model's GitHub repo (create_custom_node) — plus the hard safety policy (never edit your own live code; write a proposal instead). Activate when the user asks you to build/save a skill, spawn a subagent, or turn a GitHub model into a node.
Как установить скилл self-extension?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл self-extension запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…