[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77V0BYCR7P40Y5694D81721":3,"skill-same:01M77V0BYCR7P40Y5694D81721":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77V0BYCR7P40Y5694D81721","skillopt",null,"Train, evaluate, and improve Agent skill files as reusable external capabilities. Use when a user wants to optimize SKILL.md, prompt procedures, OpenClaw\u002FHermes\u002FCodex\u002FClaude Code skills, agent workflows, skill factories, benchmark-driven skill iteration, rollout analysis, validation gates, best_skill.md export, or controlled self-evolving skills inspired by Microsoft SkillOpt.","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\u002Fskillopt\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skillopt\ndescription: Train, evaluate, and improve Agent skill files as reusable external capabilities. Use when a user wants to optimize SKILL.md, prompt procedures, OpenClaw\u002FHermes\u002FCodex\u002FClaude Code skills, agent workflows, skill factories, benchmark-driven skill iteration, rollout analysis, validation gates, best_skill.md export, or controlled self-evolving skills inspired by Microsoft SkillOpt.\n---\n\n# SkillOpt\n\n## Operating Idea\n\nTreat a skill document as trainable external state. Keep the target model, tools, and runtime fixed; optimize only the skill text through measured task rollouts, failure reflection, small edits, validation gating, and versioned export.\n\nDefault output is a deployable `best_skill.md` plus a short optimization report. Training may use many traces and candidate files; deployment should require only the final skill file.\n\n## Invariants\n\n- Preserve the original skill before editing.\n- Separate train and validation tasks. Never accept an edit based only on the examples used to propose it.\n- Prefer small, reviewable edits over full rewrites. Keep the skill's public contract stable unless the task suite proves the contract is wrong.\n- Score behavior, not eloquence. A prettier skill that does not improve validation is rejected.\n- Record rejected edits and the reason, then consult that buffer before proposing another edit.\n- Do not add model-specific hacks unless the target deployment is explicitly model-specific.\n- Do not leak validation answers into the skill. Validation data may guide accept\u002Freject decisions, not become memorized instructions.\n\n## Run Directory\n\nCreate a run directory near the skill being optimized unless the user specifies another path:\n\n```text\nskillopt_runs\u002F\u003Ctarget-skill-slug>\u002F\n  source_skill.md\n  candidates\u002F\n    candidate_000.md\n    candidate_001.md\n  tasks\u002F\n    train.jsonl\n    val.jsonl\n  rollouts\u002F\n    train\u002F\n    val\u002F\n  rejected_edits.md\n  best_skill.md\n  report.md\n```\n\nUse `scripts\u002Fskillopt.py` for deterministic run setup, JSONL validation, simple command-backed rollouts, score aggregation, validation gates, and report generation. Read `references\u002Fevaluation.md` when defining task schemas or scorers.\n\n## Workflow\n\n### 1. Define the Optimization Contract\n\nIdentify:\n\n- target skill path and deployment agents\n- target model\u002Fruntime\u002Ftool constraints to keep fixed during evaluation\n- success metric and acceptance threshold\n- task distribution the skill should serve\n- allowed edit budget, such as max 3 sections or max 25% changed lines per round\n\nIf no task suite exists, create a small proxy suite first, label it as proxy data, and tell the user that real production traces are needed for stronger conclusions.\n\n### 2. Build Train and Validation Sets\n\nRepresent each task as JSONL with an id, prompt, optional inputs, and a scorer. Keep validation examples independent and representative.\n\nMinimum split:\n\n- `train.jsonl`: failure discovery and edit proposal\n- `val.jsonl`: accept\u002Freject gate\n\nFor fragile or high-stakes skills, add a hidden or holdout split outside the optimization loop and use it only for final reporting.\n\n### 3. Run Baseline Rollouts\n\nEvaluate the unmodified skill on train and validation tasks using the same target agent that will later deploy it.\n\nExamples:\n\n```bash\npython3 scripts\u002Fskillopt.py init --skill path\u002Fto\u002FSKILL.md --out skillopt_runs\u002Fmy-skill\npython3 scripts\u002Fskillopt.py validate-tasks skillopt_runs\u002Fmy-skill\u002Ftasks\u002Ftrain.jsonl\npython3 scripts\u002Fskillopt.py run --tasks skillopt_runs\u002Fmy-skill\u002Ftasks\u002Fval.jsonl --skill skillopt_runs\u002Fmy-skill\u002Fsource_skill.md --out skillopt_runs\u002Fmy-skill\u002Frollouts\u002Fval_baseline --agent-command \"hermes -s {skill_path} -z {prompt}\"\n```\n\nFor OpenClaw or any other agent, replace `--agent-command` with a command template that accepts `{skill_path}`, `{prompt}`, `{task_id}`, and optionally `{output_path}`.\n\n### 4. Reflect on Traces\n\nAnalyze successful and failed rollouts separately.\n\nFor each failure, classify the root cause:\n\n- missing procedure\n- wrong tool order\n- weak verification\n- ambiguous output contract\n- missing edge case\n- over-broad instruction\n- environment assumption\n- scoring mismatch\n\nExtract patterns across failures before editing. Do not chase one-off errors unless they reveal a generalizable instruction.\n\n### 5. Propose a Controlled Edit\n\nGenerate one candidate skill with a concise edit rationale:\n\n- add: missing guardrail, checklist, or workflow step\n- delete: harmful or distracting instruction\n- replace: ambiguous wording with operational criteria\n- reorder: move high-leverage instructions earlier\n\nKeep the candidate deployable as a normal skill. Avoid embedding run logs, benchmark answers, private traces, or optimizer notes in the final skill text.\n\n### 6. Gate on Validation\n\nRun the same validation set on the candidate. Accept only when the candidate beats the baseline by the configured threshold and does not introduce unacceptable regressions.\n\nDefault acceptance:\n\n- validation average improves by at least `0.02`\n- no critical task regresses from pass to fail\n- skill remains shorter or only grows for a clear procedural reason\n- output format and trigger metadata remain valid\n\nIf rejected, append a short note to `rejected_edits.md`:\n\n```text\n## candidate_003\nRejected because validation avg +0.00 and task val_docx_04 regressed.\nAvoid adding broad \"always rewrite\" instructions; they caused format drift.\n```\n\n### 7. Iterate\n\nRepeat rollout, reflection, candidate edit, and validation gate until:\n\n- validation score plateaus for 2 rounds\n- edit budget is exhausted\n- regressions become persistent\n- the skill is good enough for the user's target use\n\nTrack the best candidate, not merely the latest candidate.\n\n### 8. Export\n\nCopy the best accepted candidate to `best_skill.md`. If the user wants installation, replace or install the deployed skill only after showing the report summary.\n\nThe final report should include:\n\n- baseline train\u002Fvalidation scores\n- best candidate train\u002Fvalidation scores\n- accepted edits\n- rejected edit patterns\n- known overfitting risks\n- deployment instructions for OpenClaw, Hermes, or the current agent\n\n## Cross-Agent Notes\n\n- For Codex-style skills, keep required YAML frontmatter to `name` and `description`.\n- For Hermes, prefer standard `SKILL.md` folders and invoke with `hermes -s \u003Cskill-or-path>` when testing locally.\n- For OpenClaw, keep the same folder portable and install from the local directory when needed.\n- For unknown agents, use the skill as plain Markdown instructions plus any bundled scripts. The only required contract is: load the candidate skill, run the task prompt, capture output, score it, and compare against the baseline.\n\n## Quality Bar\n\nA good SkillOpt run feels like engineering, not vibes:\n\n- claims are backed by recorded rollouts\n- edits are small enough to review\n- validation decides acceptance\n- rejected edits teach the next round\n- final deployment is one clean skill file\n","# SkillOpt\n\n## Operating Idea\n\nTreat a skill document as trainable external state. Keep the target model, tools, and runtime fixed; optimize only the skill text through measured task rollouts, failure reflection, small edits, validation gating, and versioned export.\n\nDefault output is a deployable `best_skill.md` plus a short optimization report. Training may use many traces and candidate files; deployment should require only the final skill file.\n\n## Invariants\n\n- Preserve the original skill before editing.\n- Separate train and validation tasks. Never accept an edit based only on the examples used to propose it.\n- Prefer small, reviewable edits over full rewrites. Keep the skill's public contract stable unless the task suite proves the contract is wrong.\n- Score behavior, not eloquence. A prettier skill that does not improve validation is rejected.\n- Record rejected edits and the reason, then consult that buffer before proposing another edit.\n- Do not add model-specific hacks unless the target deployment is explicitly model-specific.\n- Do not leak validation answers into the skill. Validation data may guide accept\u002Freject decisions, not become memorized instructions.\n\n## Run Directory\n\nCreate a run directory near the skill being optimized unless the user specifies another path:\n\n```text\nskillopt_runs\u002F\u003Ctarget-skill-slug>\u002F\n  source_skill.md\n  candidates\u002F\n    candidate_000.md\n    candidate_001.md\n  tasks\u002F\n    train.jsonl\n    val.jsonl\n  rollouts\u002F\n    train\u002F\n    val\u002F\n  rejected_edits.md\n  best_skill.md\n  report.md\n```\n\nUse `scripts\u002Fskillopt.py` for deterministic run setup, JSONL validation, simple command-backed rollouts, score aggregation, validation gates, and report generation. Read `references\u002Fevaluation.md` when defining task schemas or scorers.\n\n## Workflow\n\n### 1. Define the Optimization Contract\n\nIdentify:\n\n- target skill path and deployment agents\n- target model\u002Fruntime\u002Ftool constraints to keep fixed during evaluation\n- success metric and acceptance threshold\n- task distribution the skill should serve\n- allowed edit budget, such as max 3 sections or max 25% changed lines per round\n\nIf no task suite exists, create a small proxy suite first, label it as proxy data, and tell the user that real production traces are needed for stronger conclusions.\n\n### 2. Build Train and Validation Sets\n\nRepresent each task as JSONL with an id, prompt, optional inputs, and a scorer. Keep validation examples independent and representative.\n\nMinimum split:\n\n- `train.jsonl`: failure discovery and edit proposal\n- `val.jsonl`: accept\u002Freject gate\n\nFor fragile or high-stakes skills, add a hidden or holdout split outside the optimization loop and use it only for final reporting.\n\n### 3. Run Baseline Rollouts\n\nEvaluate the unmodified skill on train and validation tasks using the same target agent that will later deploy it.\n\nExamples:\n\n```bash\npython3 scripts\u002Fskillopt.py init --skill path\u002Fto\u002FSKILL.md --out skillopt_runs\u002Fmy-skill\npython3 scripts\u002Fskillopt.py validate-tasks skillopt_runs\u002Fmy-skill\u002Ftasks\u002Ftrain.jsonl\npython3 scripts\u002Fskillopt.py run --tasks skillopt_runs\u002Fmy-skill\u002Ftasks\u002Fval.jsonl --skill skillopt_runs\u002Fmy-skill\u002Fsource_skill.md --out skillopt_runs\u002Fmy-skill\u002Frollouts\u002Fval_baseline --agent-command \"hermes -s {skill_path} -z {prompt}\"\n```\n\nFor OpenClaw or any other agent, replace `--agent-command` with a command template that accepts `{skill_path}`, `{prompt}`, `{task_id}`, and optionally `{output_path}`.\n\n### 4. Reflect on Traces\n\nAnalyze successful and failed rollouts separately.\n\nFor each failure, classify the root cause:\n\n- missing procedure\n- wrong tool order\n- weak verification\n- ambiguous output contract\n- missing edge case\n- over-broad instruction\n- environment assumption\n- scoring mismatch\n\nExtract patterns across failures before editing. Do not chase one-off errors unless they reveal a generalizable instruction.\n\n### 5. Propose a Controlled Edit\n\nGenerate one candidate skill with a concise edit rationale:\n\n- add: missing guardrail, checklist, or workflow step\n- delete: harmful or distracting instruction\n- replace: ambiguous wording with operational criteria\n- reorder: move high-leverage instructions earlier\n\nKeep the candidate deployable as a normal skill. Avoid embedding run logs, benchmark answers, private traces, or optimizer notes in the final skill text.\n\n### 6. Gate on Validation\n\nRun the same validation set on the candidate. Accept only when the candidate beats the baseline by the configured threshold and does not introduce unacceptable regressions.\n\nDefault acceptance:\n\n- validation average improves by at least `0.02`\n- no critical task regresses from pass to fail\n- skill remains shorter or only grows for a clear procedural reason\n- output format and trigger metadata remain valid\n\nIf rejected, append a short note to `rejected_edits.md`:\n\n```text\n## candidate_003\nRejected because validation avg +0.00 and task val_docx_04 regressed.\nAvoid adding broad \"always rewrite\" instructions; they caused format drift.\n```\n\n### 7. Iterate\n\nRepeat rollout, reflection, candidate edit, and validation gate until:\n\n- validation score plateaus for 2 rounds\n- edit budget is exhausted\n- regressions become persistent\n- the skill is good enough for the user's target use\n\nTrack the best candidate, not merely the latest candidate.\n\n### 8. Export\n\nCopy the best accepted candidate to `best_skill.md`. If the user wants installation, replace or install the deployed skill only after showing the report summary.\n\nThe final report should include:\n\n- baseline train\u002Fvalidation scores\n- best candidate train\u002Fvalidation scores\n- accepted edits\n- rejected edit patterns\n- known overfitting risks\n- deployment instructions for OpenClaw, Hermes, or the current agent\n\n## Cross-Agent Notes\n\n- For Codex-style skills, keep required YAML frontmatter to `name` and `description`.\n- For Hermes, prefer standard `SKILL.md` folders and invoke with `hermes -s \u003Cskill-or-path>` when testing locally.\n- For OpenClaw, keep the same folder portable and install from the local directory when needed.\n- For unknown agents, use the skill as plain Markdown instructions plus any bundled scripts. The only required contract is: load the candidate skill, run the task prompt, capture output, score it, and compare against the baseline.\n\n## Quality Bar\n\nA good SkillOpt run feels like engineering, not vibes:\n\n- claims are backed by recorded rollouts\n- edits are small enough to review\n- validation decides acceptance\n- rejected edits teach the next round\n- final deployment is one clean skill file\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fskillopt",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":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill skillopt",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill skillopt",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill skillopt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fskillopt\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"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":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"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":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"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":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"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":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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",[],[]]