[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ESRZCFBHM4DZH1GW3KSZ04":3,"skill-same:01M7ESRZCFBHM4DZH1GW3KSZ04":46},{"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":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M7ESRZCFBHM4DZH1GW3KSZ04","skill-optimizer",null,"SkillOpt-flavored offline training loop for any SKILL.md. Treats accumulated learn-rule corrections as training trajectories, proposes bounded patches via an optimizer LLM, gates each candidate against a held-out validation set built from the user's own past corrections, and ships only candidates that demonstrably improve the score. Inspired by Microsoft SkillOpt's ReflACT pipeline (rollout → reflect → aggregate → select → update → evaluate) adapted to pro-workflow's SQLite store. Use when a skill has accumulated 8+ learn-rule rows and the user wants the skill itself to get better, not just longer.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fskill-optimizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skill-optimizer\ndescription: SkillOpt-flavored offline training loop for any SKILL.md. Treats accumulated learn-rule corrections as training trajectories, proposes bounded patches via an optimizer LLM, gates each candidate against a held-out validation set built from the user's own past corrections, and ships only candidates that demonstrably improve the score. Inspired by Microsoft SkillOpt's ReflACT pipeline (rollout → reflect → aggregate → select → update → evaluate) adapted to pro-workflow's SQLite store. Use when a skill has accumulated 8+ learn-rule rows and the user wants the skill itself to get better, not just longer.\nuser-invocable: true\n---\n\n# Skill Optimizer\n\nTrain an existing SKILL.md the way a deep-learning optimizer trains weights: via rollouts, gradient-like reflections, validation-gated acceptance. No model retraining; only the skill markdown changes.\n\n## When to use\n\nUse this skill when:\n- A pro-workflow skill has accumulated 8+ learn-rule rows for it\n- The user reports the skill is \"getting bloated\" or \"rules keep being repeated\"\n- The user wants offline, budget-capped improvement over multiple sessions\n\nDo not use when:\n- Skill has fewer than 8 trajectories (nothing to learn from)\n- The user wants real-time edits (this is offline, single-shot)\n- No `ANTHROPIC_API_KEY` (or equivalent provider key) is available\n\n## Architecture (mirrors SkillOpt's six-stage loop)\n\n```text\nrollout      pull recent learnings from SQLite (existing learn-rule rows)\nreflect      optimizer LLM analyzes a minibatch, proposes add\u002Fdelete\u002Freplace patches\naggregate    vote-merge patches across minibatches\nselect       clip by LR budget (default: 3 adds, 2 deletes, 3 replaces per step)\nupdate       apply selected patches to a candidate skill content\nevaluate     evaluator LLM scores candidate against held-out validation items\ngate         accept candidate only if weighted score >= current + acceptThreshold\nslow update  at epoch boundary, consolidate accepted edits into a coherent rewrite\n```\n\nFailed candidates are stored in a rejection buffer and fed back to the next reflect step so the optimizer doesn't propose the same patch twice.\n\n## Run it\n\n```bash\n\u002Fskill-optimize \u003Cslug> [options]\n```\n\nOptions (all optional; sensible defaults shown):\n\n| Flag | Default | Notes |\n|---|---|---|\n| `--epochs N` | 3 | Outer loop count |\n| `--batch-size N` | 8 | Trajectories per minibatch |\n| `--minibatches N` | 2 | Minibatches per epoch |\n| `--holdout N` | 6 | Validation items reserved (max ~25% of trajectories) |\n| `--budget-usd X` | 0.50 | Hard cap; loop aborts when spent |\n| `--optimizer-model M` | `claude-sonnet-4-6` | Reflect + slow-update model |\n| `--evaluator-model M` | `claude-haiku-4-5-20251001` | Gate model (cheaper) |\n| `--max-adds N` | 3 | LR budget per step |\n| `--max-deletes N` | 2 | |\n| `--max-replaces N` | 3 | |\n| `--accept-threshold X` | 0.0 | Minimum score delta to accept candidate |\n| `--max-skill-tokens N` | 2000 | Hard cap on candidate length |\n| `--slow-every N` | 2 | Epochs between consolidation passes |\n| `--json` | off | Machine-readable output |\n\nKill switch: `touch ~\u002F.pro-workflow\u002FSTOP` aborts the loop between steps.\n\n## Output\n\n- Candidate accepted → SKILL.md overwritten, hash stamp appended in HTML comment\n- Run details persist in `optimization_runs`, `optimization_candidates`, `optimization_patches`, `optimization_rejections`\n- Validation set persists in `optimization_validation` (reusable across runs)\n\nInspect after:\n\n```bash\nsqlite3 ~\u002F.pro-workflow\u002Fdata.db \"SELECT id, skill_slug, initial_score, best_score, accepted_steps, rejected_steps, spent_usd FROM optimization_runs ORDER BY id DESC LIMIT 5\"\n```\n\n## Rules\n\n- Validation set is frozen at run start. Never re-derive from new corrections mid-run.\n- One candidate per step. No parallel branches.\n- Slow-update output is itself a candidate; it must pass the gate to replace the best.\n- The optimizer LLM and evaluator LLM may be different models. Mixing a strong optimizer with a cheap evaluator is the SkillOpt-recommended config.\n- If `spent_usd >= budget_usd` at any step boundary, the loop ends with `stopped_reason=\"budget exhausted\"`.\n- Patches whose anchor is no longer present in the skill (because a prior patch in the same step removed it) are recorded as rejected with reason `anchor_missing`.\n\n## Provenance\n\nInspired by Microsoft SkillOpt (arXiv:2605.23904). The six-stage rollout\u002Freflect\u002Faggregate\u002Fselect\u002Fupdate\u002Fevaluate pipeline, LR budget, rejection buffer, and slow \u002F meta update mechanics are adapted to pro-workflow's existing SQLite + learn-rule data plane. No SkillOpt code is reused. \"ReflACT\" is not a SkillOpt term and is not used here; the loop is referred to by stage names only.\n","# Skill Optimizer\n\nTrain an existing SKILL.md the way a deep-learning optimizer trains weights: via rollouts, gradient-like reflections, validation-gated acceptance. No model retraining; only the skill markdown changes.\n\n## When to use\n\nUse this skill when:\n- A pro-workflow skill has accumulated 8+ learn-rule rows for it\n- The user reports the skill is \"getting bloated\" or \"rules keep being repeated\"\n- The user wants offline, budget-capped improvement over multiple sessions\n\nDo not use when:\n- Skill has fewer than 8 trajectories (nothing to learn from)\n- The user wants real-time edits (this is offline, single-shot)\n- No `ANTHROPIC_API_KEY` (or equivalent provider key) is available\n\n## Architecture (mirrors SkillOpt's six-stage loop)\n\n```text\nrollout      pull recent learnings from SQLite (existing learn-rule rows)\nreflect      optimizer LLM analyzes a minibatch, proposes add\u002Fdelete\u002Freplace patches\naggregate    vote-merge patches across minibatches\nselect       clip by LR budget (default: 3 adds, 2 deletes, 3 replaces per step)\nupdate       apply selected patches to a candidate skill content\nevaluate     evaluator LLM scores candidate against held-out validation items\ngate         accept candidate only if weighted score >= current + acceptThreshold\nslow update  at epoch boundary, consolidate accepted edits into a coherent rewrite\n```\n\nFailed candidates are stored in a rejection buffer and fed back to the next reflect step so the optimizer doesn't propose the same patch twice.\n\n## Run it\n\n```bash\n\u002Fskill-optimize \u003Cslug> [options]\n```\n\nOptions (all optional; sensible defaults shown):\n\n| Flag | Default | Notes |\n|---|---|---|\n| `--epochs N` | 3 | Outer loop count |\n| `--batch-size N` | 8 | Trajectories per minibatch |\n| `--minibatches N` | 2 | Minibatches per epoch |\n| `--holdout N` | 6 | Validation items reserved (max ~25% of trajectories) |\n| `--budget-usd X` | 0.50 | Hard cap; loop aborts when spent |\n| `--optimizer-model M` | `claude-sonnet-4-6` | Reflect + slow-update model |\n| `--evaluator-model M` | `claude-haiku-4-5-20251001` | Gate model (cheaper) |\n| `--max-adds N` | 3 | LR budget per step |\n| `--max-deletes N` | 2 | |\n| `--max-replaces N` | 3 | |\n| `--accept-threshold X` | 0.0 | Minimum score delta to accept candidate |\n| `--max-skill-tokens N` | 2000 | Hard cap on candidate length |\n| `--slow-every N` | 2 | Epochs between consolidation passes |\n| `--json` | off | Machine-readable output |\n\nKill switch: `touch ~\u002F.pro-workflow\u002FSTOP` aborts the loop between steps.\n\n## Output\n\n- Candidate accepted → SKILL.md overwritten, hash stamp appended in HTML comment\n- Run details persist in `optimization_runs`, `optimization_candidates`, `optimization_patches`, `optimization_rejections`\n- Validation set persists in `optimization_validation` (reusable across runs)\n\nInspect after:\n\n```bash\nsqlite3 ~\u002F.pro-workflow\u002Fdata.db \"SELECT id, skill_slug, initial_score, best_score, accepted_steps, rejected_steps, spent_usd FROM optimization_runs ORDER BY id DESC LIMIT 5\"\n```\n\n## Rules\n\n- Validation set is frozen at run start. Never re-derive from new corrections mid-run.\n- One candidate per step. No parallel branches.\n- Slow-update output is itself a candidate; it must pass the gate to replace the best.\n- The optimizer LLM and evaluator LLM may be different models. Mixing a strong optimizer with a cheap evaluator is the SkillOpt-recommended config.\n- If `spent_usd >= budget_usd` at any step boundary, the loop ends with `stopped_reason=\"budget exhausted\"`.\n- Patches whose anchor is no longer present in the skill (because a prior patch in the same step removed it) are recorded as rejected with reason `anchor_missing`.\n\n## Provenance\n\nInspired by Microsoft SkillOpt (arXiv:2605.23904). The six-stage rollout\u002Freflect\u002Faggregate\u002Fselect\u002Fupdate\u002Fevaluate pipeline, LR budget, rejection buffer, and slow \u002F meta update mechanics are adapted to pro-workflow's existing SQLite + learn-rule data plane. No SkillOpt code is reused. \"ReflACT\" is not a SkillOpt term and is not used here; the loop is referred to by stage names only.\n",{"name":5,"description":7,"user-invocable":24},true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fskill-optimizer",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-optimizer",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-optimizer",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fskill-optimizer\u002FSKILL.md",[],[47,55,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":54},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":56,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":54},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":54},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":54},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":54},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":54},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]