본문으로 건너뛰기
Skillpedia
에이전트31k · #9330

self-customize

하는 일

이 도구는 제가 스스로를 수정하도록 합니다. 새 능력을 추가하거나, 프로그램을 설치하거나, 제 코드를 바꿀 수 있습니다. 마치 저에게 특별한 능력을 주거나, 제대로 작동하지 않는 것을 고치는 것과 같습니다.

사용하는 경우

  • ✓제가 아직 가지지 않은 새 기능을 추가해 달라고 요청할 때.
  • ✓저를 도울 새 프로그램을 설치하고 싶을 때.
  • ✓제 내부 작동 방식을 바꾸고 싶을 때.

스킬 링크

https://github.com/nanocoai/nanoclaw/blob/main/container/skills/self-customize/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/nanocoai/nanoclaw/blob/main/container/skills/self-customize/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“긴 글을 요약하는 도구를 추가해 줄 수 있나요?”

매주 새 스킬 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/ or instructions.prepend.md directly, no approval needed. The workspace is persisted on the host. The composed provider document (CLAUDE.md or AGENTS.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_agent to 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.

  1. Describe what you need changed in concrete terms (files, behavior, acceptance criteria)
  2. Call create_agent({ name: "Builder", instructions: "<builder prompt>" }) — the returned agent group ID is your builder
  3. Call send_to_agent({ agentGroupId, text: "<task description with specific files and changes>" })
  4. The builder works in its own container, makes the changes, and reports back
  5. You review the builder's summary and confirm with the user. Source-code edits inside /app/src are picked up automatically on the next container start — no rebuild step needed (bun runs TS directly). If the builder also installed packages, its own install_packages approval 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?"

  1. Check mcp.so for an existing RSS MCP server
  2. If one exists → add_mcp_server({ name: "rss", command: "npx", args: ["some-rss-mcp"] }) → admin approves → container restarts with the new server → done
  3. 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." })

…

자주 묻는 질문

'빌더 에이전트'란 무엇인가요?

코드 변경을 전문으로 하는 AI 에이전트입니다. 무엇을 바꿔야 하는지 정확한 지침을 받고, 별도의 환경에서 작업하므로 적용하기 전에 검토할 수 있습니다.

모든 변경을 승인해야 하나요?

시스템에 영향을 주거나 새 프로그램을 설치하는 변경은 보통 관리자 승인이 필요합니다. 제 지침이나 메모리를 간단히 바꾸는 것은 승인이 필요하지 않습니다.

변경이 너무 크면 어떻게 되나요?

변경이 너무 복잡하면 ‘빌더 에이전트’가 작업을 더 작은 부분으로 나눕니다. 각 부분은 검토하고 승인할 수 있을 만큼 단순해집니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬