[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DM145XR2N8G42J6N3K6JRT":3,"skill-same:01M7DM145XR2N8G42J6N3K6JRT":45},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7DM145XR2N8G42J6N3K6JRT","harness-optimize",null,"Self-tuning pass for the agent harness. Reads real session signal (corrections, tool and hook failures, skill usage, spend), turns recurring patterns into durable harness changes, runs a mandatory pruning pass, and opens a PR. Use weekly, when the session-start healthcheck says it is overdue, or when the complexity or spend budget is exceeded.","foxinthehenhouse\u002Fapp-in-a-box","foxinthehenhouse","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F144333692?v=4","01M7DKXRK1CCGY9F45FYGWVD29","Kyle Fox","01M7DKXRKNG8A1ADJFXVH15RXT",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fharness-optimize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: harness-optimize\ndescription: Self-tuning pass for the agent harness. Reads real session signal (corrections, tool and hook failures, skill usage, spend), turns recurring patterns into durable harness changes, runs a mandatory pruning pass, and opens a PR. Use weekly, when the session-start healthcheck says it is overdue, or when the complexity or spend budget is exceeded.\n---\n\n# Harness optimize\n\nCloses the gap between the sensors (capture, extractor) and the guides (AGENTS.md,\nskills, rules, memory): \"the agent got corrected\" becomes \"the harness changed so it\nwon't need correcting again\". Propose-first, evidence-cited, and it never touches a\nprotected component except as a verified improvement. Default window 7 days.\n\n## 0. Hard gate: read the manifest\n\n```bash\ncat .claude\u002Fharness\u002Fmanifest.json\n```\n\nFor the rest of the run you MUST NOT remove, disable or move any `protected_*`\ncomponent for \"budget\", \"looks unused\" or \"the model could do it ad hoc\". The only\nallowed change is a **verified net improvement**: build the strictly-better\nreplacement, confirm `harness-check` passes, update the manifest, retire the old one,\nlog it. A protected component that looks obsolete is **surfaced to the owner, never\nremoved**. A new component with zero usage is not a zombie; it is new.\n\n## 1. Gather signal\n\n```bash\npython3 .claude\u002Fhooks\u002Fpattern-extractor.py --days 7 --output json\npython3 .claude\u002Fhooks\u002Fharness-healthcheck.py || true\npython3 .claude\u002Fhooks\u002Fskill-lifecycle.py || true\npython3 .claude\u002Fhooks\u002Fspend_ledger.py --by agent || true\npython3 .claude\u002Fhooks\u002Fharness_paths.py      # where captures \u002F seed live\n```\n\nSkim the newest capture log (`\u003Ccaptures_dir>\u002F*-activity.md`, last 40 lines).\n\n- `transcripts_scanned: 0` means **disconnected, not a quiet week**. Every count,\n  including `corrections: 0`, is meaningless. Stop, fix the wiring (`harness-check`),\n  re-run. Same for exit 2 from `skill-lifecycle.py` \u002F `spend_ledger.py`.\n- Act on `tool_failures` (the agent flagged them). `tool_failures_suspected` are calls\n  that **succeeded**; their text merely said \"error\". Never act on those alone.\n- **Skill evals** (Claude Code): if `.agents\u002Fevals\u002Fresults\u002F` holds runs, compare the\n  newest two `aggregate-result.json` files. A case whose score dropped, or a skill\n  whose with-vs-without Δ is ≤ 0, is a skill that doesn't earn its context. Re-run\n  after any skill edit you propose: `claude plugin eval .agents --ablation with-without --no-publish`.\n\n## 2. Classify (first match wins)\n\n| Signal | Change | Tier |\n|---|---|---|\n| Correction theme recurring 3+ times | a rule line in AGENTS.md \u002F a `.agents\u002Frules\u002F` file | 🟡 propose |\n| Correction seen 2x | a `feedback_` note in `.agents\u002Fmemory\u002F` (via `reflect` format) | 🟢 apply |\n| Repeated `tool_failures` on one tool, or any `hook_failures` | config \u002F permission \u002F hook fix | 🟡 propose |\n| Skill that exists but never fires when it should, or an eval case regressed | sharpen its `description` \u002F body, prove it with the eval | 🟡 propose |\n| Same manual orchestration across sessions | a new skill encoding it | 🟡 propose |\n| Heaviest spend line out of proportion to its value | `model:` downgrade or prune | 🟡 propose |\n\n🟢 = safe, reversible, file-local: apply now. 🟡 = changes behaviour or removes\nsomething: propose and wait for the owner's go. When torn, pick 🟡.\n\n## 3. Pruning pass (mandatory, even when the budget is clean)\n\nA harness encodes what the model can't do *yet*, so a pass that only adds is broken.\nName at least one honest candidate, or say why there is none. Over budget (healthcheck\nnote) makes a prune mandatory. Candidates in order: `dormant` \u002F `over-capacity` rows\nfrom `skill-lifecycle.py` (never `probation`), a rule the agent now follows unprompted,\nan AGENTS.md line restating default behaviour. For each:\n\n1. **Capability re-test**: clean session *without* it, the task that motivated it, 3\u002F3.\n2. **Sunset, don't delete**: follow `manifest.sunset.protocol` (move to `.claude\u002F_sunset\u002F`,\n   unregister hooks, regenerate `.codex\u002Fhooks.json`, log evidence, delete after two weeks).\n\nMemory is **never** auto-pruned (that is `reflect`'s job, with the owner). All prunes are 🟡.\n\n## 4. Propose, apply, verify\n\nPrint the proposal: 🟢 applying now \u002F 🟡 proposed \u002F pruning pass (candidate, re-test\nresult, decision; protected ones marked SURFACED) \u002F complexity counts vs limits. Each line\ncites its signal. Apply 🟢 and approved 🟡 items minimally, in the voice of the file, then:\n\n```bash\npython3 .claude\u002Fhooks\u002Fharness-healthcheck.py\n```\n\n## 5. Log, stamp, PR\n\nAppend `## \u003CYYYY-MM-DD>: harness-optimize` with one line per change + evidence to\n`.claude\u002Fharness\u002FCHANGELOG.md`, then stamp the cadence clock:\n\n```bash\npython3 .claude\u002Fhooks\u002Fharness_paths.py stamp harness-optimize\n```\n\nShip through the normal flow: a ticket (`backlog` skill), a `chore\u002F\u003Cticket>-harness-optimize`\nbranch in its own worktree (`new-worktree` skill), commit, push, open a PR citing the\nevidence. Never commit on main. Summary line:\n`Harness tuned: N applied, N proposed, N surfaced. PR: \u003Curl>. Next run in ~7d.`\n\n## Rules\n\n- Never remove or disable a protected component except as a verified improvement.\n- Never propose off a disconnected sensor, or off a single correction (2x note, 3x rule).\n- Precision over recall: a wrong harness change is worse than a missed one.\n- The harness should **shrink** as the model improves.\n","# Harness optimize\n\nCloses the gap between the sensors (capture, extractor) and the guides (AGENTS.md,\nskills, rules, memory): \"the agent got corrected\" becomes \"the harness changed so it\nwon't need correcting again\". Propose-first, evidence-cited, and it never touches a\nprotected component except as a verified improvement. Default window 7 days.\n\n## 0. Hard gate: read the manifest\n\n```bash\ncat .claude\u002Fharness\u002Fmanifest.json\n```\n\nFor the rest of the run you MUST NOT remove, disable or move any `protected_*`\ncomponent for \"budget\", \"looks unused\" or \"the model could do it ad hoc\". The only\nallowed change is a **verified net improvement**: build the strictly-better\nreplacement, confirm `harness-check` passes, update the manifest, retire the old one,\nlog it. A protected component that looks obsolete is **surfaced to the owner, never\nremoved**. A new component with zero usage is not a zombie; it is new.\n\n## 1. Gather signal\n\n```bash\npython3 .claude\u002Fhooks\u002Fpattern-extractor.py --days 7 --output json\npython3 .claude\u002Fhooks\u002Fharness-healthcheck.py || true\npython3 .claude\u002Fhooks\u002Fskill-lifecycle.py || true\npython3 .claude\u002Fhooks\u002Fspend_ledger.py --by agent || true\npython3 .claude\u002Fhooks\u002Fharness_paths.py      # where captures \u002F seed live\n```\n\nSkim the newest capture log (`\u003Ccaptures_dir>\u002F*-activity.md`, last 40 lines).\n\n- `transcripts_scanned: 0` means **disconnected, not a quiet week**. Every count,\n  including `corrections: 0`, is meaningless. Stop, fix the wiring (`harness-check`),\n  re-run. Same for exit 2 from `skill-lifecycle.py` \u002F `spend_ledger.py`.\n- Act on `tool_failures` (the agent flagged them). `tool_failures_suspected` are calls\n  that **succeeded**; their text merely said \"error\". Never act on those alone.\n- **Skill evals** (Claude Code): if `.agents\u002Fevals\u002Fresults\u002F` holds runs, compare the\n  newest two `aggregate-result.json` files. A case whose score dropped, or a skill\n  whose with-vs-without Δ is ≤ 0, is a skill that doesn't earn its context. Re-run\n  after any skill edit you propose: `claude plugin eval .agents --ablation with-without --no-publish`.\n\n## 2. Classify (first match wins)\n\n| Signal | Change | Tier |\n|---|---|---|\n| Correction theme recurring 3+ times | a rule line in AGENTS.md \u002F a `.agents\u002Frules\u002F` file | 🟡 propose |\n| Correction seen 2x | a `feedback_` note in `.agents\u002Fmemory\u002F` (via `reflect` format) | 🟢 apply |\n| Repeated `tool_failures` on one tool, or any `hook_failures` | config \u002F permission \u002F hook fix | 🟡 propose |\n| Skill that exists but never fires when it should, or an eval case regressed | sharpen its `description` \u002F body, prove it with the eval | 🟡 propose |\n| Same manual orchestration across sessions | a new skill encoding it | 🟡 propose |\n| Heaviest spend line out of proportion to its value | `model:` downgrade or prune | 🟡 propose |\n\n🟢 = safe, reversible, file-local: apply now. 🟡 = changes behaviour or removes\nsomething: propose and wait for the owner's go. When torn, pick 🟡.\n\n## 3. Pruning pass (mandatory, even when the budget is clean)\n\nA harness encodes what the model can't do *yet*, so a pass that only adds is broken.\nName at least one honest candidate, or say why there is none. Over budget (healthcheck\nnote) makes a prune mandatory. Candidates in order: `dormant` \u002F `over-capacity` rows\nfrom `skill-lifecycle.py` (never `probation`), a rule the agent now follows unprompted,\nan AGENTS.md line restating default behaviour. For each:\n\n1. **Capability re-test**: clean session *without* it, the task that motivated it, 3\u002F3.\n2. **Sunset, don't delete**: follow `manifest.sunset.protocol` (move to `.claude\u002F_sunset\u002F`,\n   unregister hooks, regenerate `.codex\u002Fhooks.json`, log evidence, delete after two weeks).\n\nMemory is **never** auto-pruned (that is `reflect`'s job, with the owner). All prunes are 🟡.\n\n## 4. Propose, apply, verify\n\nPrint the proposal: 🟢 applying now \u002F 🟡 proposed \u002F pruning pass (candidate, re-test\nresult, decision; protected ones marked SURFACED) \u002F complexity counts vs limits. Each line\ncites its signal. Apply 🟢 and approved 🟡 items minimally, in the voice of the file, then:\n\n```bash\npython3 .claude\u002Fhooks\u002Fharness-healthcheck.py\n```\n\n## 5. Log, stamp, PR\n\nAppend `## \u003CYYYY-MM-DD>: harness-optimize` with one line per change + evidence to\n`.claude\u002Fharness\u002FCHANGELOG.md`, then stamp the cadence clock:\n\n```bash\npython3 .claude\u002Fhooks\u002Fharness_paths.py stamp harness-optimize\n```\n\nShip through the normal flow: a ticket (`backlog` skill), a `chore\u002F\u003Cticket>-harness-optimize`\nbranch in its own worktree (`new-worktree` skill), commit, push, open a PR citing the\nevidence. Never commit on main. Summary line:\n`Harness tuned: N applied, N proposed, N surfaced. PR: \u003Curl>. Next run in ~7d.`\n\n## Rules\n\n- Never remove or disable a protected component except as a verified improvement.\n- Never propose off a disconnected sensor, or off a single correction (2x note, 3x rule).\n- Precision over recall: a wrong harness change is worse than a missed one.\n- The harness should **shrink** as the model improves.\n",{"name":5,"description":7},"main","82b5819f074e18b5d31db7a122e1f0ae5f5abbf7","plugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fharness-optimize","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse","Not a developer","2026-10-06 17:24:46",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add foxinthehenhouse\u002Fapp-in-a-box --skill harness-optimize",{"tool":37,"command":38},"bunx","bunx skills add foxinthehenhouse\u002Fapp-in-a-box --skill harness-optimize",{"tool":40,"command":41},"pnpm","pnpm dlx skills add foxinthehenhouse\u002Fapp-in-a-box --skill harness-optimize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fharness-optimize\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7DM2EPAFBTFNV5EW5GHKD5Q","ship","Release checklist for getting a build to testers or the stores. Runs the risk gate first (refuses while a risk item is open) and walks the owner through the compliance checklist. Covers the version bump, EAS build and submit, OTA updates and when they're safe, changelog, store listing, privacy nutrition label \u002F data safety form, the Accessibility Nutrition Labels, and the account-deletion requirement. Guidance-level; it never handles signing secrets. Use when asked to ship, release, submit to TestFlight \u002F App Store \u002F Play, or push an OTA update.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"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":19},"01M7DM2AGRJ822B3C8NQCDK3JG","routines","Put the project's recurring rituals on a schedule, with the owner's consent. Weekly north-star report, monthly market watch, dependency triage, Supabase advisor sweep, reflect and harness-optimize. Uses Claude Code Routines (cloud cron) where they fit, and documents the Codex \u002F local cron equivalent. Use when asked to automate, schedule or \"keep the project moving on its own\", or after setup finishes.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Froutines\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":19},"01M7DM27C3K1Y7FM0NZSBRSVEN","reflect","Consolidate what recent sessions learned into the project's long-term memory (.agents\u002Fmemory). Use at the end of a substantial session, after a correction from the user, after a painful debugging session, when the session-start healthcheck says reflect is overdue or a pending-reflection seed is waiting, or when MEMORY.md exceeds its budget.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Freflect\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":19},"01M7DM2146TCNYXVVS2QXF08GS","pr-review","Review a pull request on the owner's behalf and fix what's safe to fix. Runs the deterministic gates first, then correctness\u002Fsecurity, design-system, accessibility and analytics review passes, verifies each blocking finding, applies safe fixes, re-checks, and ends with a plain-English verdict. Use when a PR is opened, when asked to review a PR, a branch or a pasted diff, or before merging anything.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fpr-review\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":19},"01M7DM1X6QP3QAT47ET852S0P8","north-star-report","Weekly product-analytics and reliability readout. Pulls the funnel of the brief's 5 north-star events from PostHog, finds the biggest drop-offs and errors, checks each SLO in docs\u002Fslo.yaml against its error budget, compares with last week, and proposes (then, with a yes, files) tickets that target them. Use weekly, when the session-start line says it's overdue, when the backlog is empty, or when asked \"how is the app doing?\".","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fnorth-star-report\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":19},"01M7DM1QX8F3D95JSTEHC0P9QA","next","Decide the single next best thing to work on, with two alternates. Reads setup progress, work in progress, open PRs and failing CI, the backlog (GitHub Issues or Linear), overdue harness rituals, product decisions parked until now, and north-star analytics if PostHog is connected. Use when someone asks \"what next?\", \"what should I work on?\", at the start of a session, or after a PR merges.","https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Ftemplate\u002F.agents\u002Fskills\u002Fnext\u002FSKILL.md",[],[]]