[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77THP6Y4VA80A35VJ0QQP7A":3,"skill-same:01M77THP6Y4VA80A35VJ0QQP7A":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M77THP6Y4VA80A35VJ0QQP7A","self-improvement-loop",null,"Per-agent feedback loop for OpenClaw — captures corrections\u002Ferrors\u002Ffeatures, detects patterns per agent workspace, notifies via per-agent channel bot, and executes A\u002FB\u002FC\u002FD decisions in the correct agent session.\nAuto-detects agents from openclaw.json, auto-maps agent ID → channel account → bindings.\nA\u002FB\u002FC\u002FD handling logic lives in scripts\u002Fagents-append.md (shared); install.sh injects a reference into each agent's AGENTS.md and memory.md.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fself-improvement-loop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: self-improvement-loop\nversion: 4.6.13\ndescription: |\n  Per-agent feedback loop for OpenClaw — captures corrections\u002Ferrors\u002Ffeatures, detects patterns per agent workspace, notifies via per-agent channel bot, and executes A\u002FB\u002FC\u002FD decisions in the correct agent session.\n  Auto-detects agents from openclaw.json, auto-maps agent ID → channel account → bindings.\n  A\u002FB\u002FC\u002FD handling logic lives in scripts\u002Fagents-append.md (shared); install.sh injects a reference into each agent's AGENTS.md and memory.md.\n---\n\n# self-improvement-loop v4.6.13\n\n## Overview\n\n**Core Capability**: Each agent has its own self-improvement feedback loop — isolated learnings directory, independent cron scan, notifications bound to their own channel bot, and A\u002FB\u002FC\u002FD execution in the correct agent session.\n\n```\nUser corrects code-dev agent\n    ↓\ncode-dev hook captures → writes to code-dev\u002F.learnings\u002F\n    ↓\nself-improvement-code-dev cron (hourly) → scans only code-dev\u002F.learnings\u002F\n    ↓\nPattern detected (count≥2) → notifies user via code bot\n    ↓\nUser replies A → code-dev agent session executes → writes back to code-dev workspace\n```\n\n---\n\n## Data Flow (Per-Agent Isolation)\n\n```\nopenclaw.json (agents.list + bindings)\n    │\n    ├─→ install.sh reads agents\n    │         ↓\n    │    Creates per-agent directories (e.g., agents\u002Fworkspace\u002F.learnings\u002F)\n    │\n    ├─→ install.sh reads channel accounts\n    │         ↓\n    │    Writes bindings (agentId → accountId)\n    │    { \"agentId\": \"code-dev\", \"match\": { \"channel\": \"telegram\", \"accountId\": \"code\" } }\n    │\n    └─→ setup_crons.py creates per-agent cron\n              ↓\n         Each cron carries --agent flag\n         LEARNINGS_DIR points to that agent's workspace\n         delivery uses that agent's account\n\n┌─────────────────────────────────────────────────────────────┐\n│  Hook (handler.js) - Global shared, dynamic routing         │\n│  sessionKey: \"agent:code-dev:telegram:...\"                 │\n│  → extractAgentId(\"code-dev\")                              │\n│  → getAgentWorkspace(\"code-dev\") → agent workspace path     │\n│  → learningsDir = workspace + \"\u002F.learnings\u002F\"               │\n│  Pushes reminders to context.messages                      │\n└─────────────────────────────────────────────────────────────┘\n\n┌─────────────────────────────────────────────────────────────┐\n│  Cron (per-agent) - Independent execution                   │\n│  Name: self-improvement-code-dev                           │\n│  --agent code-dev → bound to code-dev agent session        │\n│  LEARNINGS_DIR=\"...\u002Fagents\u002Fcode-dev\u002F.learnings\"             │\n│  delivery: channel=telegram, accountId=code                │\n│  Scans only its own LEARNINGS_DIR                          │\n└─────────────────────────────────────────────────────────────┘\n\n┌─────────────────────────────────────────────────────────────┐\n│  Notification - Sent via respective channel bot           │\n│  code bot → user conversation with code-dev                 │\n│  moling bot → user conversation with moling                 │\n│  User replies A\u002FB\u002FC\u002FD → OpenClaw routes to correct agent   │\n└─────────────────────────────────────────────────────────────┘\n\n┌─────────────────────────────────────────────────────────────┐\n│  A\u002FB\u002FC\u002FD Execution - Runs in correct agent session        │\n│  Reads pending JSON → executes skill-creator\u002Fskill-improvement\n│  Writes back to that agent's learnings directory            │\n└─────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Permissions Required\n\n| Permission    | Scope                        | Purpose                                            |\n|---------------|------------------------------|----------------------------------------------------|\n| `exec`        | `scripts\u002F`                  | Run distill.sh, archive.sh (mechanical scan\u002Farchive) |\n| `read`        | `\u003Cagent>\u002Fworkspace\u002F.learnings\u002F` | Read LEARNINGS.md, ERRORS.md, FEATURE_REQUESTS.md |\n| `write`       | `\u003Cagent>\u002Fworkspace\u002F.learnings\u002F` | Update notified status; create `.pending_notifications\u002F*.json` |\n| `cron`        | Global                      | Create and manage self-improvement-{agent} cron jobs |\n| `gateway_api` | Gateway :18789              | setup_crons.py calls API to create crons           |\n| `openclaw.json` | `HOME\u002F.openclaw\u002F`         | install.sh reads agent config; writes bindings     |\n\n**Security Boundaries**:\n\n- File operations strictly scoped to per-agent learnings directories under `~\u002F.openclaw\u002Fworkspace\u002F`\n- All paths dynamically generated, no hardcoding\n- Cron runs in isolated session with minimal toolset\n- install.sh prompts for confirmation before writing bindings, can be skipped\n\n---\n\n## Core Components\n\n| Component           | Type          | Routing Basis                        |\n|---------------------|---------------|--------------------------------------|\n| `handler.js`        | Global Hook   | sessionKey → agent ID → workspace    |\n| `distill.sh`        | Shared Script | `LEARNINGS_DIR` environment variable |\n| `setup_crons.py`    | Shared Script | agent config → cron --agent flag     |\n| `install.sh`        | Install Script| agents.list + accounts → bindings     |\n| `agents-append.md`   | A\u002FB\u002FC\u002FD Logic | Shared across agents; install.sh injects index reference |\n\n---\n\n## Installation\n\n```bash\nbash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fself-improvement-loop\u002Finstall.sh\nopenclaw gateway restart\n```\n\nInstallation automatically:\n\n1. Creates `.learnings\u002F` directories for each agent\n2. Installs hook and scripts\n3. Creates per-agent cron jobs\n4. Updates `openclaw.json` bindings (enables message routing)\n5. Injects self-improvement index instructions into each agent workspace's `AGENTS.md` and `memory.md`\n\n**A\u002FB\u002FC\u002FD handling logic** is stored in `skills\u002Fself-improvement-loop\u002Fscripts\u002Fagents-append.md` (shared). During install, index references are injected into each agent's `AGENTS.md` and `memory.md`:\n\n```markdown\n## Self-Improvement (A\u002FB\u002FC\u002FD)\n\nBefore handling A\u002FB\u002FC\u002FD, must consult:\nskills\u002Fself-improvement-loop\u002Fscripts\u002Fagents-append.md\n```\n\nNo manual appending needed after install; skill updates automatically use the latest version for all agents.\n\n---\n\n## Verification\n\n```bash\n# Check bindings\npython3 -c \"import json; print(json.dumps(json.load(open('$HOME\u002F.openclaw\u002Fopenclaw.json')).get('bindings',[]), indent=2))\"\n\n# Check per-agent crons\nopenclaw cron list | grep self-improvement\n\n# Test distill (specific agent)\nLEARNINGS_DIR=\"$HOME\u002F.openclaw\u002Fworkspace\u002Fagents\u002Fcode-dev\u002F.learnings\" \\\n  bash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fself-improvement-loop\u002Fscripts\u002Fdistill.sh --check-only\n```\n\n---\n\n## Dependencies\n\n| Dependency        | Version   | Purpose                                |\n|-------------------|-----------|----------------------------------------|\n| OpenClaw          | ≥2026.4   | Platform foundation                    |\n| Python3           | ≥3.8      | distill_json.py, write_notified.py     |\n| Node.js           | any       | handler.js                             |\n| skill-creator     | any       | Path A - create skills                 |\n| skill-improvement | any       | Path B - improve skills                |\n\n---\n\n## Limitations & Known Issues\n\n- **ACP runtime agent (claude)**: No independent channel, falls back to `defaultAccount`\n- **API (Gateway)**: API unreachable (404), falls back to CLI for cron creation, sessionTarget downgraded to isolated\n- **Concurrent notifications**: When multiple agents trigger simultaneously, user replies may route to wrong agent session\n- **sessionTarget=current**: Requires Gateway API support, currently unavailable\n\n---\n\n## See Also\n\n- `references\u002Fsetup-guide.md` — Full installation and configuration guide\n","# self-improvement-loop v4.6.13\n\n## Overview\n\n**Core Capability**: Each agent has its own self-improvement feedback loop — isolated learnings directory, independent cron scan, notifications bound to their own channel bot, and A\u002FB\u002FC\u002FD execution in the correct agent session.\n\n```\nUser corrects code-dev agent\n    ↓\ncode-dev hook captures → writes to code-dev\u002F.learnings\u002F\n    ↓\nself-improvement-code-dev cron (hourly) → scans only code-dev\u002F.learnings\u002F\n    ↓\nPattern detected (count≥2) → notifies user via code bot\n    ↓\nUser replies A → code-dev agent session executes → writes back to code-dev workspace\n```\n\n---\n\n## Data Flow (Per-Agent Isolation)\n\n```\nopenclaw.json (agents.list + bindings)\n    │\n    ├─→ install.sh reads agents\n    │         ↓\n    │    Creates per-agent directories (e.g., agents\u002Fworkspace\u002F.learnings\u002F)\n    │\n    ├─→ install.sh reads channel accounts\n    │         ↓\n    │    Writes bindings (agentId → accountId)\n    │    { \"agentId\": \"code-dev\", \"match\": { \"channel\": \"telegram\", \"accountId\": \"code\" } }\n    │\n    └─→ setup_crons.py creates per-agent cron\n              ↓\n         Each cron carries --agent flag\n         LEARNINGS_DIR points to that agent's workspace\n         delivery uses that agent's account\n\n┌─────────────────────────────────────────────────────────────┐\n│  Hook (handler.js) - Global shared, dynamic routing         │\n│  sessionKey: \"agent:code-dev:telegram:...\"                 │\n│  → extractAgentId(\"code-dev\")                              │\n│  → getAgentWorkspace(\"code-dev\") → agent workspace path     │\n│  → learningsDir = workspace + \"\u002F.learnings\u002F\"               │\n│  Pushes reminders to context.messages                      │\n└─────────────────────────────────────────────────────────────┘\n\n┌─────────────────────────────────────────────────────────────┐\n│  Cron (per-agent) - Independent execution                   │\n│  Name: self-improvement-code-dev                           │\n│  --agent code-dev → bound to code-dev agent session        │\n│  LEARNINGS_DIR=\"...\u002Fagents\u002Fcode-dev\u002F.learnings\"             │\n│  delivery: channel=telegram, accountId=code                │\n│  Scans only its own LEARNINGS_DIR                          │\n└─────────────────────────────────────────────────────────────┘\n\n┌─────────────────────────────────────────────────────────────┐\n│  Notification - Sent via respective channel bot           │\n│  code bot → user conversation with code-dev                 │\n│  moling bot → user conversation with moling                 │\n│  User replies A\u002FB\u002FC\u002FD → OpenClaw routes to correct agent   │\n└─────────────────────────────────────────────────────────────┘\n\n┌─────────────────────────────────────────────────────────────┐\n│  A\u002FB\u002FC\u002FD Execution - Runs in correct agent session        │\n│  Reads pending JSON → executes skill-creator\u002Fskill-improvement\n│  Writes back to that agent's learnings directory            │\n└─────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Permissions Required\n\n| Permission    | Scope                        | Purpose                                            |\n|---------------|------------------------------|----------------------------------------------------|\n| `exec`        | `scripts\u002F`                  | Run distill.sh, archive.sh (mechanical scan\u002Farchive) |\n| `read`        | `\u003Cagent>\u002Fworkspace\u002F.learnings\u002F` | Read LEARNINGS.md, ERRORS.md, FEATURE_REQUESTS.md |\n| `write`       | `\u003Cagent>\u002Fworkspace\u002F.learnings\u002F` | Update notified status; create `.pending_notifications\u002F*.json` |\n| `cron`        | Global                      | Create and manage self-improvement-{agent} cron jobs |\n| `gateway_api` | Gateway :18789              | setup_crons.py calls API to create crons           |\n| `openclaw.json` | `HOME\u002F.openclaw\u002F`         | install.sh reads agent config; writes bindings     |\n\n**Security Boundaries**:\n\n- File operations strictly scoped to per-agent learnings directories under `~\u002F.openclaw\u002Fworkspace\u002F`\n- All paths dynamically generated, no hardcoding\n- Cron runs in isolated session with minimal toolset\n- install.sh prompts for confirmation before writing bindings, can be skipped\n\n---\n\n## Core Components\n\n| Component           | Type          | Routing Basis                        |\n|---------------------|---------------|--------------------------------------|\n| `handler.js`        | Global Hook   | sessionKey → agent ID → workspace    |\n| `distill.sh`        | Shared Script | `LEARNINGS_DIR` environment variable |\n| `setup_crons.py`    | Shared Script | agent config → cron --agent flag     |\n| `install.sh`        | Install Script| agents.list + accounts → bindings     |\n| `agents-append.md`   | A\u002FB\u002FC\u002FD Logic | Shared across agents; install.sh injects index reference |\n\n---\n\n## Installation\n\n```bash\nbash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fself-improvement-loop\u002Finstall.sh\nopenclaw gateway restart\n```\n\nInstallation automatically:\n\n1. Creates `.learnings\u002F` directories for each agent\n2. Installs hook and scripts\n3. Creates per-agent cron jobs\n4. Updates `openclaw.json` bindings (enables message routing)\n5. Injects self-improvement index instructions into each agent workspace's `AGENTS.md` and `memory.md`\n\n**A\u002FB\u002FC\u002FD handling logic** is stored in `skills\u002Fself-improvement-loop\u002Fscripts\u002Fagents-append.md` (shared). During install, index references are injected into each agent's `AGENTS.md` and `memory.md`:\n\n```markdown\n## Self-Improvement (A\u002FB\u002FC\u002FD)\n\nBefore handling A\u002FB\u002FC\u002FD, must consult:\nskills\u002Fself-improvement-loop\u002Fscripts\u002Fagents-append.md\n```\n\nNo manual appending needed after install; skill updates automatically use the latest version for all agents.\n\n---\n\n## Verification\n\n```bash\n# Check bindings\npython3 -c \"import json; print(json.dumps(json.load(open('$HOME\u002F.openclaw\u002Fopenclaw.json')).get('bindings',[]), indent=2))\"\n\n# Check per-agent crons\nopenclaw cron list | grep self-improvement\n\n# Test distill (specific agent)\nLEARNINGS_DIR=\"$HOME\u002F.openclaw\u002Fworkspace\u002Fagents\u002Fcode-dev\u002F.learnings\" \\\n  bash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fself-improvement-loop\u002Fscripts\u002Fdistill.sh --check-only\n```\n\n---\n\n## Dependencies\n\n| Dependency        | Version   | Purpose                                |\n|-------------------|-----------|----------------------------------------|\n| OpenClaw          | ≥2026.4   | Platform foundation                    |\n| Python3           | ≥3.8      | distill_json.py, write_notified.py     |\n| Node.js           | any       | handler.js                             |\n| skill-creator     | any       | Path A - create skills                 |\n| skill-improvement | any       | Path B - improve skills                |\n\n---\n\n## Limitations & Known Issues\n\n- **ACP runtime agent (claude)**: No independent channel, falls back to `defaultAccount`\n- **API (Gateway)**: API unreachable (404), falls back to CLI for cron creation, sessionTarget downgraded to isolated\n- **Concurrent notifications**: When multiple agents trigger simultaneously, user replies may route to wrong agent session\n- **sessionTarget=current**: Requires Gateway API support, currently unavailable\n\n---\n\n## See Also\n\n- `references\u002Fsetup-guide.md` — Full installation and configuration guide\n",{"name":5,"version":24,"description":7},"4.6.13","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fself-improvement-loop",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill self-improvement-loop",{"tool":40,"command":41},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill self-improvement-loop",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill self-improvement-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fself-improvement-loop\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]