Skillpedia
الوكلاء31k · #9330

self-customize

ما الذي تفعله

تتيح لك هذه المهارة تعديل الوكيل نفسه، بإضافة قدرات جديدة أو تثبيت برامج أو تغيير كوده. وهي أشبه بمنحه قدرات خارقة أو إصلاح شيء لا يعمل بشكل صحيح.

متى تستخدمها

  • ✓عندما تطلب مني إضافة ميزة جديدة لا أملكها.
  • ✓عندما تريدني أن أثبّت برنامجًا جديدًا يساعدني.
  • ✓عندما تريد أن أغيّر طريقة عملي الداخلية.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/nanocoai/nanoclaw/blob/main/container/skills/self-customize/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك إضافة أداة لتلخيص النصوص الطويلة؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

أستخدم عملية خاصة للتعديلات. أنفّذ الأمور البسيطة مباشرةً. أما التغييرات المعقدة في الكود أو إضافة برامج على مستوى النظام، فأطلب من «وكيل بنّاء» متخصص إجراءها، ثم نراجعها قبل تطبيقها.

المحتوى التقني (ملف 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." })

…

الأسئلة الشائعة

ما هو «الوكيل البنّاء»؟

هو وكيل ذكاء اصطناعي متخصص في تعديلات الكود. يتلقى تعليمات دقيقة عما يجب تغييره، وينفذها في بيئة منفصلة حتى نراجعها قبل تطبيقها.

هل أحتاج إلى الموافقة على كل التغييرات؟

عادةً تحتاج التغييرات التي تؤثر في النظام أو تثبّت برامج جديدة إلى موافقة المسؤول. أما التعديلات البسيطة على تعليماتي أو ذاكرتي فلا تحتاج إلى ذلك.

ماذا يحدث إذا كان التغيير كبيرًا جدًا؟

إذا كان التغيير معقدًا، يقسّمه «الوكيل البنّاء» إلى أجزاء أصغر وأسهل في المراجعة والموافقة، بحيث يكون كل جزء بسيطًا بما يكفي لمراجعته.

التفاصيل

الوصف الأصلي من المؤلف

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

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة