[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RPC9XE9PEJ611XPER3GRV":3,"skill-same:01M71RPC9XE9PEJ611XPER3GRV":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"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":6,"updatedAt":31,"install":32,"resources":45},"01M71RPC9XE9PEJ611XPER3GRV","garrison-test",null,"gongiskhan\u002Fagent-garrison","gongiskhan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1997392?v=4","01M71RKMFR53TKXE308C22QTNZ","01M71RKMJA57KZHNDCBNKTWZRR",1,"MIT","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fduty-test\u002F.apm\u002Fskills\u002Fgarrison-test\u002FSKILL.md",[],[17,18],"test","garrison test","2026-11-10 13:02:02",false,"---\nname: garrison-test\ndescription: Garrison's objective correctness gate: writes a COMMITTED, re-runnable correctness test for the current change and runs it, plus a clean build\u002Ftypecheck\u002Flint. The default is end-to-end through the UI (Playwright \u002F playwright-cli) plus unit tests; a CLI\u002FTUI deliverable uses a committed driver plus asciinema capture. In a garrison build a failure sends the slice back to garrison-implement; standalone it reports the findings. NOT a one-off manual run (use \u002Frun or \u002Fverify) and NOT the independent fresh-context test pass (use garrison-adversarial-test). Invoked by the Garrison run engine as its correctness-test step, or standalone only when the user explicitly asks for it. Do NOT auto-invoke this skill from task inference - Garrison decides when its phase skills run.\n---\n\n# garrison-test\n\n## Policy-read preamble (soft - D5\u002FD12)\n\nAt the start of every invocation, look for the compiled Orchestrator policy at\n`~\u002F.garrison\u002Forchestrator\u002Fpolicy.json` (or `$GARRISON_POLICY_PATH`).\n\n- **Policy present** (a Garrison run): it is the single authority. This skill\n  carries NO model\u002Feffort pins - its execution parameters come from the policy\n  matrix cell for its phase (`matrix[\u003Cphase>][\u003Ctier>]`), and its gate duties\n  from the bindable phase-skill contract (the Orchestrator fitting's\n  PHASE_SKILL_CONTRACT.md): do the phase's work in the run context handed to you\n  (runDir, card, phase), write the phase's gate-status entry under the runDir,\n  and print the phase's `GATE \u003Cphase>: \u003Cverdict>` line before choosing the next\n  list.\n- **Policy absent** (standalone, any repo): proceed with the caller-supplied\n  context and sensible defaults - NEVER stop. Report to the caller rather than\n  writing gate-status\u002Frun artifacts, and skip any board\u002Frun-engine steps.\n\n\nThe objective correctness gate — write a COMMITTED, re-runnable test for the current change and run it, plus a clean build\u002Ftypecheck\u002Flint. A standalone test-writer\u002Frunner, and the test gate of a garrison build.\n\n## What \"test\" means here (committed, not ephemeral) — prefer e2e through the UI\nA test that survives the run and catches regressions. **Default to end-to-end through the UI** — most projects have a UI, and exercising a change through the real UI is the truest proof (it even covers the backend\u002FAPI a flow touches):\n- **Web flow** → a spec file (Playwright \u002F vitest \u002F jest), or a committed **playwright-cli driver** that re-drives the flow and asserts where no runner ships. Drive the real UI; ephemeral `.playwright-cli\u002F` logs are exploration, NOT the gate.\n- **CLI\u002FTUI deliverable** → a committed driver + an asciinema capture of the real flow.\n\nPlus unit tests where they fit. **No committed re-runnable assertion ⇒ the change is not done.**\n\n## Run + gates\n**Deterministic wall FIRST (Part 8.3 — cheapest gates before any model judgment).** Before the committed test, run the deterministic wall and capture each exit code: `typecheck`, `lint`, structural greps, and the universal **`securityWall`** — `gitleaks` (secrets) + `semgrep` (SAST) + a dependency-audit severity check (Part 12.5, installed by the foundation\u002Fpreflight, zero tokens). **The floor never lowers:** the securityWall runs on EVERY slice regardless of profile or gate toggles; a non-zero exit \u002F high-or-critical finding is a correctness failure that sends the slice back to `garrison-implement` like any other. Record `securityWall: {gitleaks, semgrep, depAudit, at, durationMs}` in the slice gate-status (schema: `~\u002F.claude\u002Fskills\u002Fgarrison\u002Fassets\u002Fgate-status.example.json`).\n\nThen run the test and the remaining objective gates — `tests`, `e2e` (where applicable), `build` — and capture each exit code. Respect the dev-server hazard in `~\u002F.claude\u002Fskills\u002Fgarrison\u002Freferences\u002Fbuild-loop.md` (\"Gate builds must not clobber a live dev server\").\n\n**Concurrent-session typecheck flap:** if `tsc` exits non-zero on a file you did not edit (outside your slice), retry once — a concurrent session may have that file mid-edit. If the retry clears and your slice's own files typecheck clean, proceed. Only a failure on a file inside your slice is a real slice defect; cross-session noise is not.\n\n**Size e2e waits for a LOADED machine, not an idle one:** a build run loads the machine with its own parallel work (batch e2e, concurrent builds, other sessions), so waits tuned on an isolated run flake in the batch (a 30 s login wait that passes alone times out under load). Write committed specs with generous waits for boot\u002Flogin-class steps (60-90 s). When a batch failure is a pure timeout, re-run that spec once in isolation: if it passes alone, fix the spec's waits (the committed spec must pass IN the batch) rather than treating it as a slice defect.\n\n## Loop role + output\n- **In a garrison build:** any non-zero gate or failing assertion **sends the slice back to `garrison-implement`** to fix (garrison owns the retry ceiling, default 5); re-run after each fix. Record the gate exits in the slice gate-status.\n- **Standalone:** write + run the test and **report the findings** (pass\u002Ffail + exit codes + what failed); do not loop to fix unless asked.\n\nPrint in the lead context, both lines: `GATE security: \u003Cclean|issues> — gitleaks:\u003Cexit> semgrep:\u003Cfindings> depAudit:\u003Chigh>\u002F\u003Ccritical> \u003Csummary>` (the deterministic security wall) and `GATE test: \u003Cpass|fail> — tests:\u003Cexit> typecheck:\u003Cexit> lint:\u003Cexit> build:\u003Cexit> \u003Csummary>`. Distinct from `garrison-adversarial-test` (this session's committed test vs. a FRESH-CONTEXT Anthropic session's own independent probes) and from `garrison-codex-checkpoint` (the genuine cross-model check, now run once in the final phase, not per slice).\n","# garrison-test\n\n## Policy-read preamble (soft - D5\u002FD12)\n\nAt the start of every invocation, look for the compiled Orchestrator policy at\n`~\u002F.garrison\u002Forchestrator\u002Fpolicy.json` (or `$GARRISON_POLICY_PATH`).\n\n- **Policy present** (a Garrison run): it is the single authority. This skill\n  carries NO model\u002Feffort pins - its execution parameters come from the policy\n  matrix cell for its phase (`matrix[\u003Cphase>][\u003Ctier>]`), and its gate duties\n  from the bindable phase-skill contract (the Orchestrator fitting's\n  PHASE_SKILL_CONTRACT.md): do the phase's work in the run context handed to you\n  (runDir, card, phase), write the phase's gate-status entry under the runDir,\n  and print the phase's `GATE \u003Cphase>: \u003Cverdict>` line before choosing the next\n  list.\n- **Policy absent** (standalone, any repo): proceed with the caller-supplied\n  context and sensible defaults - NEVER stop. Report to the caller rather than\n  writing gate-status\u002Frun artifacts, and skip any board\u002Frun-engine steps.\n\n\nThe objective correctness gate — write a COMMITTED, re-runnable test for the current change and run it, plus a clean build\u002Ftypecheck\u002Flint. A standalone test-writer\u002Frunner, and the test gate of a garrison build.\n\n## What \"test\" means here (committed, not ephemeral) — prefer e2e through the UI\nA test that survives the run and catches regressions. **Default to end-to-end through the UI** — most projects have a UI, and exercising a change through the real UI is the truest proof (it even covers the backend\u002FAPI a flow touches):\n- **Web flow** → a spec file (Playwright \u002F vitest \u002F jest), or a committed **playwright-cli driver** that re-drives the flow and asserts where no runner ships. Drive the real UI; ephemeral `.playwright-cli\u002F` logs are exploration, NOT the gate.\n- **CLI\u002FTUI deliverable** → a committed driver + an asciinema capture of the real flow.\n\nPlus unit tests where they fit. **No committed re-runnable assertion ⇒ the change is not done.**\n\n## Run + gates\n**Deterministic wall FIRST (Part 8.3 — cheapest gates before any model judgment).** Before the committed test, run the deterministic wall and capture each exit code: `typecheck`, `lint`, structural greps, and the universal **`securityWall`** — `gitleaks` (secrets) + `semgrep` (SAST) + a dependency-audit severity check (Part 12.5, installed by the foundation\u002Fpreflight, zero tokens). **The floor never lowers:** the securityWall runs on EVERY slice regardless of profile or gate toggles; a non-zero exit \u002F high-or-critical finding is a correctness failure that sends the slice back to `garrison-implement` like any other. Record `securityWall: {gitleaks, semgrep, depAudit, at, durationMs}` in the slice gate-status (schema: `~\u002F.claude\u002Fskills\u002Fgarrison\u002Fassets\u002Fgate-status.example.json`).\n\nThen run the test and the remaining objective gates — `tests`, `e2e` (where applicable), `build` — and capture each exit code. Respect the dev-server hazard in `~\u002F.claude\u002Fskills\u002Fgarrison\u002Freferences\u002Fbuild-loop.md` (\"Gate builds must not clobber a live dev server\").\n\n**Concurrent-session typecheck flap:** if `tsc` exits non-zero on a file you did not edit (outside your slice), retry once — a concurrent session may have that file mid-edit. If the retry clears and your slice's own files typecheck clean, proceed. Only a failure on a file inside your slice is a real slice defect; cross-session noise is not.\n\n**Size e2e waits for a LOADED machine, not an idle one:** a build run loads the machine with its own parallel work (batch e2e, concurrent builds, other sessions), so waits tuned on an isolated run flake in the batch (a 30 s login wait that passes alone times out under load). Write committed specs with generous waits for boot\u002Flogin-class steps (60-90 s). When a batch failure is a pure timeout, re-run that spec once in isolation: if it passes alone, fix the spec's waits (the committed spec must pass IN the batch) rather than treating it as a slice defect.\n\n## Loop role + output\n- **In a garrison build:** any non-zero gate or failing assertion **sends the slice back to `garrison-implement`** to fix (garrison owns the retry ceiling, default 5); re-run after each fix. Record the gate exits in the slice gate-status.\n- **Standalone:** write + run the test and **report the findings** (pass\u002Ffail + exit codes + what failed); do not loop to fix unless asked.\n\nPrint in the lead context, both lines: `GATE security: \u003Cclean|issues> — gitleaks:\u003Cexit> semgrep:\u003Cfindings> depAudit:\u003Chigh>\u002F\u003Ccritical> \u003Csummary>` (the deterministic security wall) and `GATE test: \u003Cpass|fail> — tests:\u003Cexit> typecheck:\u003Cexit> lint:\u003Cexit> build:\u003Cexit> \u003Csummary>`. Distinct from `garrison-adversarial-test` (this session's committed test vs. a FRESH-CONTEXT Anthropic session's own independent probes) and from `garrison-codex-checkpoint` (the genuine cross-model check, now run once in the final phase, not per slice).\n",{},"main","31458d7e0e08a7b3494c27bf2b912ed41c87a138","fittings\u002Fseed\u002Fduty-test\u002F.apm\u002Fskills\u002Fgarrison-test",0,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison","https:\u002F\u002Fgongiskhan.github.io\u002Fagent-garrison\u002F","https:\u002F\u002Fgithub.com\u002Fgongiskhan","2026-11-07 05:27:23",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add gongiskhan\u002Fagent-garrison --skill garrison-test",{"tool":38,"command":39},"bunx","bunx skills add gongiskhan\u002Fagent-garrison --skill garrison-test",{"tool":41,"command":42},"pnpm","pnpm dlx skills add gongiskhan\u002Fagent-garrison --skill garrison-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fduty-test\u002F.apm\u002Fskills\u002Fgarrison-test\u002FSKILL.md",true,[],[47,59,69,80,92,118],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M71RTFA0HD83YBE1TE7DCE6B","pinned-helper","An owned skill the human has pinned so the Improver must not touch it.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fpinned-helper\u002FSKILL.md",[],[54,55,56,57,58],"pinned helper","helper","human","touch","it",{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M71RTDKBG0WQHPHKFZKFWDHF","legacy-helper","A rarely used helper kept around from an earlier workflow.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Flegacy-helper\u002FSKILL.md",[],[66,55,67,68],"Legacy","legacy helper","workflow",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M71RTCC6ZVVJ9MHHESXPHWA6","human-notes","A human-authored skill not deployed by APM (loose, not in the lock).","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fhuman-notes\u002FSKILL.md",[],[76,56,77,78,79],"notes","human notes","lock","apm",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M71RTB83ZP6VK6XH19Z93FAC","garrison-helper","Helps compose and station Garrison Fittings into Faculty role slots.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fgarrison-helper\u002FSKILL.md",[],[55,87,88,89,90,91],"garrison","garrison helper","slots","role","compose",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M71RT6MBGJC4QQZBGHF4H1M8","walkthrough","Record a short, narrated, captioned video walkthrough that proves a finished coding task and shows how it behaves, then self-verify the video via vision on extracted frames and publish it as one scrubbable Tailscale link. Use after completing a change\u002Ffix\u002Ffeature on a web project (Next.js\u002FReact etc.) when the user wants visual proof of work, a demo of a user flow, or to avoid manually retesting and watching a long raw screen recording. Triggers on requests like \"record a walkthrough\", \"show me it working\", \"make a demo video of this\", \"prove the feature\", or finishing a UI\u002Froute\u002Fform\u002FAPI change worth demonstrating. Not for walking through a full from-scratch project build.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fwalkthrough\u002F.apm\u002Fskills\u002Fwalkthrough\u002FSKILL.md",[],[94,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],"when","project","project build","api","react","change","demo video","publish","recording","Video","show me","work","short","fix","show","route","me","next","self",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M71RT54T0SQS42XEP5FVQ28K","Trello","Manage tasks via Trello REST API.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Ftrello\u002F.apm\u002Fskills\u002Ftrello\u002FSKILL.md",[],[125,126,127,102,128,129,130],"trello","tasks","REST","manage","rest api","via"]