self-customize
Skill này làm gì
Công cụ này cho phép agent tự thay đổi bản thân: thêm khả năng mới, cài đặt chương trình hoặc chỉnh sửa mã của chính nó. Giống như trao thêm sức mạnh cho agent, hoặc sửa lại điều gì đó chưa hoạt động tốt.
Khi nào nên dùng
- ✓Khi bạn yêu cầu tôi thêm một tính năng mới mà tôi chưa có.
- ✓Khi bạn muốn tôi cài một chương trình mới để hỗ trợ công việc.
- ✓Khi bạn muốn tôi thay đổi cách hoạt động bên trong của mình.
Liên kết skill
https://github.com/nanocoai/nanoclaw/blob/main/container/skills/self-customize/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể thêm một công cụ để tóm tắt các văn bản dài không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Tôi dùng một quy trình riêng để thực hiện thay đổi. Với việc đơn giản, tôi làm trực tiếp. Với thay đổi mã phức tạp hoặc cài chương trình dùng cho toàn hệ thống, tôi nhờ một 'builder agent' chuyên biệt thực hiện, rồi chúng ta xem xét trước khi áp dụng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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." })
…
Câu hỏi thường gặp
'Builder agent' là gì?
Đó là một AI agent chuyên thực hiện thay đổi mã. Nó nhận hướng dẫn chính xác về những gì cần sửa và làm việc trong một môi trường riêng để chúng ta xem xét trước khi áp dụng.
Tôi có cần phê duyệt mọi thay đổi không?
Các thay đổi ảnh hưởng đến hệ thống hoặc cài chương trình mới thường cần quyền quản trị viên phê duyệt. Những thay đổi đơn giản với hướng dẫn hoặc bộ nhớ của tôi thì không cần.
Điều gì xảy ra nếu một thay đổi quá lớn?
Nếu thay đổi quá phức tạp, 'builder agent' sẽ chia nhỏ thành các phần dễ quản lý hơn. Mỗi phần đủ đơn giản để bạn xem xét và phê duyệt.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 31k
- Vị trí xếp hạng
- #9330
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-browser
31kCho phép agent của bạn duyệt web để nghiên cứu, đọc hoặc tương tác với các trang web. Hữu ích cho mọi tác vụ cần trình duyệt.
frontend-engineer
31kGiúp agent của bạn xây dựng website theo nguyên tắc kỹ thuật tốt. Đảm bảo website hoạt động tốt, hiển thị đúng trên mọi màn hình và dễ tiếp cận.
welcome
31kCho phép agent tự giới thiệu trong một kênh mới, giải thích những việc mình có thể làm.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.