[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DKY890CH5N7TYZYF4VPJDK":3,"skill-same:01M7DKY890CH5N7TYZYF4VPJDK":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":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7DKY890CH5N7TYZYF4VPJDK","harness",null,"Phase 6 of App in a Box. Switches on the agent harness the scaffold wrote. It covers GitHub branch protection, labels and the AI review workflow, git hooks, Claude Code and Codex adapters (trust, hooks, MCP auth), and a smoke test that every guard actually fires. Use after provisioning, or to repair a harness that drifted.","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\u002Fskills\u002Fharness\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: harness\ndescription: Phase 6 of App in a Box. Switches on the agent harness the scaffold wrote. It covers GitHub branch protection, labels and the AI review workflow, git hooks, Claude Code and Codex adapters (trust, hooks, MCP auth), and a smoke test that every guard actually fires. Use after provisioning, or to repair a harness that drifted.\nallowed-tools: \"Bash(git:*), Bash(gh:*), Bash(python3:*), Bash(bash:*), Read, Glob, Grep\"\n---\n\n# Phase 6: Harness\n\n`$KIT` is the plugin root: `appbox.yaml` → `kit_root` if present, else\n`${CLAUDE_PLUGIN_ROOT}` (Claude Code) or the folder two levels above this file (Codex \u002F\npasted prompt).\n\nThe files already exist (the renderer wrote them in phase 4). This phase turns them\non and **proves each one works**. A guard that can't fail reads as a guard that\npasses.\n\n## 1. What was installed (tell the user in 4 lines, not a table dump)\n\n- `AGENTS.md` (+ `mobile\u002F`, `backend\u002F`) is the instructions every agent reads.\n  `CLAUDE.md` files import it.\n- `.agents\u002F`: 15 skills (backlog, next, feature-discovery, build-feature, pr-review,\n  land, ship, incident, new-worktree, reflect, north-star-report, market-watch, routines,\n  harness-check, harness-optimize), 10 subagent roles with routed models, path rules, a memory\n  vault and skill evals. Claude Code also gets opt-in Workflows in `.claude\u002Fworkflows\u002F`.\n- Adapters: `.claude\u002F` (settings, hooks, symlinks) and `.codex\u002F` (agents, MCP config,\n  hooks), both generated from `.agents\u002F`.\n- `.githooks\u002F` + `.github\u002Fworkflows\u002F` are the hard guards that bind every agent and\n  human.\n\n## 2. Git + GitHub\n\n```\ngit config core.hooksPath .githooks\n```\n\nBranch protection on `main` (require PR + the CI checks). The required contexts are\nthe **job ids** from the workflows, every one of which runs on every PR: `python` and\n`mobile` (`ci.yml`), `migrations-rls` (`db.yml`), `gitleaks` (`security.yml`),\n`ticket` (`ticket.yml`) and `pr-title` (`pr-title.yml`). Six ids; the marker below,\nthe `gh` command and the kit selftest all carry the same six, so a seventh job joins\nall four places or none.\nNever require a job that can be skipped by a path filter or an `if:` condition\n(`codeql`, `review`), or PRs wait forever on a check that never reports. The kit\nselftest fails if this list names a job that doesn't exist.\n\n\u003C!-- required-checks: python mobile migrations-rls gitleaks ticket pr-title -->\n\n```\ngh api -X PUT \"repos\u002F\u003Cowner>\u002F\u003Cslug>\u002Fbranches\u002Fmain\u002Fprotection\" -F \"required_status_checks[strict]=true\" -F \"required_status_checks[contexts][]=python\" -F \"required_status_checks[contexts][]=mobile\" -F \"required_status_checks[contexts][]=migrations-rls\" -F \"required_status_checks[contexts][]=gitleaks\" -F \"required_status_checks[contexts][]=ticket\" -F \"required_status_checks[contexts][]=pr-title\" -F \"enforce_admins=false\" -F \"required_pull_request_reviews=null\" -F \"restrictions=null\"\n```\n\nGitHub only offers checks it has seen, so this call is **deferred to phase 7**: the\ndoctor's Full mode runs it after the first PR's CI has reported, then verifies with\n`gh api \"repos\u002F\u003Cowner>\u002F\u003Cslug>\u002Fbranches\u002Fmain\u002Fprotection\" --jq '.required_status_checks.contexts'`\n(all six ids listed). This phase's exit check only needs the hooks on and the\ncommand ready. Private repos on a free GitHub plan can't use branch protection: if\nthe call returns 403, record `resources.github.protection: unavailable (plan)` in\n`appbox.yaml`, say so, and rely on the git hooks.\n\nLabels for the backlog skill:\n\n```\nfor l in feat fix chore p0 p1 p2 ready; do gh label create \"$l\" --force >\u002Fdev\u002Fnull; done\n```\n\nAI review in CI, by the user's agent:\n- **Claude Code:** install https:\u002F\u002Fgithub.com\u002Fapps\u002Fclaude on the repo, run\n  `claude setup-token`, put the token in `.env` as `CLAUDE_CODE_OAUTH_TOKEN`, then\n  `gh secret set CLAUDE_CODE_OAUTH_TOKEN` (from `.env`) and\n  `gh variable set ENABLE_CLAUDE_REVIEW --body true`.\n- **Codex:** enable Codex code review for the repo in Codex's settings (it follows\n  the \"Review guidelines\" section of `AGENTS.md`). Leave `ENABLE_CLAUDE_REVIEW` unset.\n- Both is fine. They review independently.\n\n## 3. Agent adapters\n\n- **Claude Code:** nothing to trust. Hooks load from `.claude\u002Fsettings.json` on\n  the next session. `\u002Fmcp` → authenticate `supabase`, `posthog`, `sentry` (and\n  `linear` if used). Set `GITHUB_PAT` in the shell env for the GitHub MCP, or rely\n  on `gh`.\n- **Codex:** mark the project trusted (Codex asks on first launch in the folder; the\n  project `.codex\u002Fconfig.toml` is ignored until then). Approve each hook in\n  `.codex\u002Fhooks.json` once when prompted. Run `codex mcp login \u003Cserver>` for each\n  OAuth server.\n- **Symlinks.** If `.claude\u002Fskills` is a copy rather than a symlink (Windows),\n  remind the user to re-run `render.py --adapters-only` after editing skills.\n\n## 4. Smoke test: every guard must fire\n\nRun these on a throwaway branch and report a pass\u002Ffail table:\n\n| Guard | Test | Expected |\n|---|---|---|\n| no commits on main | `git switch main`, then an empty commit attempt | refused by pre-commit |\n| no .env commits | `git add -f .env`, then commit | refused; then `git restore --staged .env` |\n| push gates | `git push` of a branch with a failing test | pre-push fails |\n| path rules (Claude) | edit any file in `supabase\u002Fmigrations\u002F` | db-migrations rule injected |\n| memory recall (Claude) | `python3 .claude\u002Fhooks\u002Fmemory_recall.py \"migration rls\"` | no crash |\n| CI | open a draft PR (the phase 7 PR) | `python`, `mobile`, `migrations-rls`, `gitleaks`, `actionlint`, `zizmor` and `harness` run |\n\n`dependencies` (`security.yml`) runs too, and is deliberately not a required check: an\nadvisory published overnight would otherwise block every unrelated PR. A fresh Expo app\nusually inherits a few high advisories in the SDK's own build tooling, so its first run\nis often red. Look at each one: fix it, or record it in `mobile\u002Fnpm-audit-allowlist.json`\nwith a reason and an `until` date at most 90 days out (`scripts\u002Fcheck_npm_audit.py`\ndocuments the shape). Never allowlist one you haven't read.\n\nClean up the throwaway branch. Set `progress.harness: done`.\n","# Phase 6: Harness\n\n`$KIT` is the plugin root: `appbox.yaml` → `kit_root` if present, else\n`${CLAUDE_PLUGIN_ROOT}` (Claude Code) or the folder two levels above this file (Codex \u002F\npasted prompt).\n\nThe files already exist (the renderer wrote them in phase 4). This phase turns them\non and **proves each one works**. A guard that can't fail reads as a guard that\npasses.\n\n## 1. What was installed (tell the user in 4 lines, not a table dump)\n\n- `AGENTS.md` (+ `mobile\u002F`, `backend\u002F`) is the instructions every agent reads.\n  `CLAUDE.md` files import it.\n- `.agents\u002F`: 15 skills (backlog, next, feature-discovery, build-feature, pr-review,\n  land, ship, incident, new-worktree, reflect, north-star-report, market-watch, routines,\n  harness-check, harness-optimize), 10 subagent roles with routed models, path rules, a memory\n  vault and skill evals. Claude Code also gets opt-in Workflows in `.claude\u002Fworkflows\u002F`.\n- Adapters: `.claude\u002F` (settings, hooks, symlinks) and `.codex\u002F` (agents, MCP config,\n  hooks), both generated from `.agents\u002F`.\n- `.githooks\u002F` + `.github\u002Fworkflows\u002F` are the hard guards that bind every agent and\n  human.\n\n## 2. Git + GitHub\n\n```\ngit config core.hooksPath .githooks\n```\n\nBranch protection on `main` (require PR + the CI checks). The required contexts are\nthe **job ids** from the workflows, every one of which runs on every PR: `python` and\n`mobile` (`ci.yml`), `migrations-rls` (`db.yml`), `gitleaks` (`security.yml`),\n`ticket` (`ticket.yml`) and `pr-title` (`pr-title.yml`). Six ids; the marker below,\nthe `gh` command and the kit selftest all carry the same six, so a seventh job joins\nall four places or none.\nNever require a job that can be skipped by a path filter or an `if:` condition\n(`codeql`, `review`), or PRs wait forever on a check that never reports. The kit\nselftest fails if this list names a job that doesn't exist.\n\n\u003C!-- required-checks: python mobile migrations-rls gitleaks ticket pr-title -->\n\n```\ngh api -X PUT \"repos\u002F\u003Cowner>\u002F\u003Cslug>\u002Fbranches\u002Fmain\u002Fprotection\" -F \"required_status_checks[strict]=true\" -F \"required_status_checks[contexts][]=python\" -F \"required_status_checks[contexts][]=mobile\" -F \"required_status_checks[contexts][]=migrations-rls\" -F \"required_status_checks[contexts][]=gitleaks\" -F \"required_status_checks[contexts][]=ticket\" -F \"required_status_checks[contexts][]=pr-title\" -F \"enforce_admins=false\" -F \"required_pull_request_reviews=null\" -F \"restrictions=null\"\n```\n\nGitHub only offers checks it has seen, so this call is **deferred to phase 7**: the\ndoctor's Full mode runs it after the first PR's CI has reported, then verifies with\n`gh api \"repos\u002F\u003Cowner>\u002F\u003Cslug>\u002Fbranches\u002Fmain\u002Fprotection\" --jq '.required_status_checks.contexts'`\n(all six ids listed). This phase's exit check only needs the hooks on and the\ncommand ready. Private repos on a free GitHub plan can't use branch protection: if\nthe call returns 403, record `resources.github.protection: unavailable (plan)` in\n`appbox.yaml`, say so, and rely on the git hooks.\n\nLabels for the backlog skill:\n\n```\nfor l in feat fix chore p0 p1 p2 ready; do gh label create \"$l\" --force >\u002Fdev\u002Fnull; done\n```\n\nAI review in CI, by the user's agent:\n- **Claude Code:** install https:\u002F\u002Fgithub.com\u002Fapps\u002Fclaude on the repo, run\n  `claude setup-token`, put the token in `.env` as `CLAUDE_CODE_OAUTH_TOKEN`, then\n  `gh secret set CLAUDE_CODE_OAUTH_TOKEN` (from `.env`) and\n  `gh variable set ENABLE_CLAUDE_REVIEW --body true`.\n- **Codex:** enable Codex code review for the repo in Codex's settings (it follows\n  the \"Review guidelines\" section of `AGENTS.md`). Leave `ENABLE_CLAUDE_REVIEW` unset.\n- Both is fine. They review independently.\n\n## 3. Agent adapters\n\n- **Claude Code:** nothing to trust. Hooks load from `.claude\u002Fsettings.json` on\n  the next session. `\u002Fmcp` → authenticate `supabase`, `posthog`, `sentry` (and\n  `linear` if used). Set `GITHUB_PAT` in the shell env for the GitHub MCP, or rely\n  on `gh`.\n- **Codex:** mark the project trusted (Codex asks on first launch in the folder; the\n  project `.codex\u002Fconfig.toml` is ignored until then). Approve each hook in\n  `.codex\u002Fhooks.json` once when prompted. Run `codex mcp login \u003Cserver>` for each\n  OAuth server.\n- **Symlinks.** If `.claude\u002Fskills` is a copy rather than a symlink (Windows),\n  remind the user to re-run `render.py --adapters-only` after editing skills.\n\n## 4. Smoke test: every guard must fire\n\nRun these on a throwaway branch and report a pass\u002Ffail table:\n\n| Guard | Test | Expected |\n|---|---|---|\n| no commits on main | `git switch main`, then an empty commit attempt | refused by pre-commit |\n| no .env commits | `git add -f .env`, then commit | refused; then `git restore --staged .env` |\n| push gates | `git push` of a branch with a failing test | pre-push fails |\n| path rules (Claude) | edit any file in `supabase\u002Fmigrations\u002F` | db-migrations rule injected |\n| memory recall (Claude) | `python3 .claude\u002Fhooks\u002Fmemory_recall.py \"migration rls\"` | no crash |\n| CI | open a draft PR (the phase 7 PR) | `python`, `mobile`, `migrations-rls`, `gitleaks`, `actionlint`, `zizmor` and `harness` run |\n\n`dependencies` (`security.yml`) runs too, and is deliberately not a required check: an\nadvisory published overnight would otherwise block every unrelated PR. A fresh Expo app\nusually inherits a few high advisories in the SDK's own build tooling, so its first run\nis often red. Look at each one: fix it, or record it in `mobile\u002Fnpm-audit-allowlist.json`\nwith a reason and an `until` date at most 90 days out (`scripts\u002Fcheck_npm_audit.py`\ndocuments the shape). Never allowlist one you haven't read.\n\nClean up the throwaway branch. Set `progress.harness: done`.\n",{"name":5,"description":7,"allowed-tools":24},"Bash(git:*), Bash(gh:*), Bash(python3:*), Bash(bash:*), Read, Glob, Grep","main","82b5819f074e18b5d31db7a122e1f0ae5f5abbf7","plugins\u002Fapp-in-a-box\u002Fskills\u002Fharness","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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add foxinthehenhouse\u002Fapp-in-a-box --skill harness",{"tool":38,"command":39},"bunx","bunx skills add foxinthehenhouse\u002Fapp-in-a-box --skill harness",{"tool":41,"command":42},"pnpm","pnpm dlx skills add foxinthehenhouse\u002Fapp-in-a-box --skill harness","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffoxinthehenhouse\u002Fapp-in-a-box\u002Fblob\u002Fmain\u002Fplugins\u002Fapp-in-a-box\u002Fskills\u002Fharness\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"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":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":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"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":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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",[],[]]