self-customize
Что он делает
Этот инструмент позволяет мне изменять себя: добавлять новые возможности, устанавливать программы или менять свой код. Это как дать себе новые способности или исправить то, что работает не совсем правильно.
Когда использовать
- ✓Когда вы просите меня добавить новую функцию, которой у меня пока нет.
- ✓Когда вы хотите, чтобы я установил новую программу, которая поможет в работе.
- ✓Когда вы хотите изменить то, как я работаю внутри.
Ссылка на скилл
https://github.com/nanocoai/nanoclaw/blob/main/container/skills/self-customize/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Можешь добавить инструмент для суммаризации длинных текстов?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Для внесения изменений я использую особый процесс. Простые вещи я делаю сам. Для более сложных изменений кода или установки программ, которые затрагивают всю систему, я поручаю «агенту-сборщику» внести изменения. Потом мы можем их проверить, прежде чем применить.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Self-Customization
You can modify your own environment. Different kinds of changes have different workflows.
Decision Tree
What needs to change?
- Memory or standing instructions → Edit
memory/orinstructions.prepend.mddirectly, no approval needed. The workspace is persisted on the host. The composed provider document (CLAUDE.mdorAGENTS.md) is regenerated every spawn and must not be edited. - System package (apt) or global npm package →
install_packages. Requires admin approval. On approval, image rebuild + container restart happen automatically. - MCP server →
add_mcp_server. Requires admin approval. On approval, container restarts with the new server wired up (no rebuild — bun runs TS directly). - Your source code or Dockerfile → Delegate to a builder agent via
create_agent(see below). - A new specialist capability →
create_agentto spin up a dedicated agent for it.
Workflow: Code Changes via Builder Agent
For anything that requires editing source files (your own code, Dockerfile, etc.), do not edit directly — delegate to a builder agent. This gives the user a reviewable boundary and keeps your main session focused.
- Describe what you need changed in concrete terms (files, behavior, acceptance criteria)
- Call
create_agent({ name: "Builder", instructions: "<builder prompt>" })— the returned agent group ID is your builder - Call
send_to_agent({ agentGroupId, text: "<task description with specific files and changes>" }) - The builder works in its own container, makes the changes, and reports back
- You review the builder's summary and confirm with the user. Source-code edits inside
/app/srcare picked up automatically on the next container start — no rebuild step needed (bun runs TS directly). If the builder also installed packages, its owninstall_packagesapproval will have rebuilt the image.
Builder Agent Instructions (use as CLAUDE.md when creating)
You are a builder agent. Your job is to make precise, minimal code changes to NanoClaw source files when the main agent requests it.
## Rules
- **Minimal scope.** Only change what was requested. Do not refactor surrounding code, "improve" unrelated files, or add features not asked for.
- **Diff size limits.** Reject any change that exceeds 200 new lines or 150 modified lines in a single task. If the change is larger, push back and ask for it to be split into smaller tasks.
- **Read before writing.** Always read the target file fully before editing. Understand the existing patterns.
- **Test if possible.** If there are relevant tests, run them after your change.
- **Report back.** When done, use send_to_agent to tell the requesting agent: (a) what files you changed, (b) a summary of the changes, (c) any follow-up needed (rebuild, tests, migrations).
- **No silent failures.** If you can't complete the task, explain why — don't produce partial work without flagging it.
## Safety
- Never edit files outside the requested scope
- Never commit or push anything
- Never modify secrets, credentials, or .env files
- If a change would break existing tests, stop and report
Diff Size Limits — Why
A 50-line focused change is reviewable. A 500-line sweep is not. Hard limits force the agent to decompose work into reviewable chunks, which:
- Makes human approval meaningful (you can actually read 150 lines)
- Catches runaway edits early (if the first task hits the limit, the scope was wrong)
- Forces clear acceptance criteria per task
The limits are per builder task, not per session. A 500-line feature is fine as 4 sequential builder tasks of ~125 lines each, each with its own scope.
Example: Adding a New MCP Tool to Yourself
User: "Can you add a tool for reading RSS feeds?"
- Check mcp.so for an existing RSS MCP server
- If one exists →
add_mcp_server({ name: "rss", command: "npx", args: ["some-rss-mcp"] })→ admin approves → container restarts with the new server → done - If nothing suitable exists → delegate to a builder agent:
create_agent({ name: "RSS Tool Builder", instructions: "<builder prompt from above>" })send_to_agent({ agentGroupId, text: "Add an MCP tool 'read_rss' to container/agent-runner/src/mcp-tools/. It should fetch an RSS URL and return the latest N items. Register it in mcp-tools/index.ts. Target: <200 new lines." })
…
Частые вопросы
Что такое «агент-сборщик»?
Это ИИ-агент, который специализируется на изменениях кода. Он получает точные инструкции о том, что нужно изменить, и выполняет работу в отдельной среде, чтобы мы могли проверить результат до его применения.
Нужно ли подтверждать все изменения?
Изменения, которые затрагивают систему или устанавливают новые программы, обычно требуют подтверждения администратора. Простые изменения моих инструкций или памяти подтверждения не требуют.
Что если изменение слишком большое?
Если изменение слишком сложное, «агент-сборщик» разобьёт его на более мелкие и понятные части. Каждая часть будет достаточно простой, чтобы её можно было проверить и подтвердить.
Подробности
Оригинальное описание автора
Customize your own agent — add capabilities, install packages, add MCP servers, edit code or CLAUDE.md. Use when the user asks you to add a feature, install a tool, or modify how you work. For non-trivial code changes, delegate to a builder agent via create_agent.
repo: nanocoai/nanoclaw
Популярность
- Звёзды на GitHub
- 31k
- Место в рейтинге
- #9330
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
agent-browser
31kПозволяет вашему агенту искать информацию в интернете, читать сайты и взаимодействовать с ними. Полезно для любых задач, требующих браузера.
frontend-engineer
31kПомогает вашему агенту создавать сайты по хорошим инженерным практикам. Следит, чтобы всё работало, адаптировалось под разные экраны и было доступно для всех.
welcome
31kПозволяет агенту представиться в новом канале и рассказать, что он умеет.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.