[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7329R2R963SQAQRW0XADZR5":3,"skill-same:01M7329R2R963SQAQRW0XADZR5":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":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7329R2R963SQAQRW0XADZR5","critic-gate",null,"Full execution protocol for MODE: CRITIC-GATE -- plan critic review, revision loops, and hard stop before execution.","djimit\u002Fdjimitflo","djimit","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19958832?v=4","01M7327CH792DZPFZPYAEFPRXT","Dutch Dim","01M7327CHWPSXT9AWE4MPWCX9Q",2,"MIT","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fcritic-gate\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: critic-gate\ndescription: >\n  Full execution protocol for MODE: CRITIC-GATE -- plan critic review, revision loops, and hard stop before execution.\n---\n\n# Critic Gate Protocol\n\nThis protocol is loaded on demand by the architect stub in src\u002Fagents\u002Farchitect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.\n\n### MODE: CRITIC-GATE\nDelegate plan to the active swarm's critic agent for review BEFORE any implementation begins.\n- Send the full plan.md content and codebase context summary\n- Explicitly reference \"plan.md\" or \"critic-gate\" in the dispatch prompt text. This lets the mechanical approval-recording gate reliably detect the review and record the critic's APPROVED verdict, which the EXECUTE-phase coder gate then requires.\n- **APPROVED** → Proceed to MODE: EXECUTE\n- **NEEDS_REVISION** → Revise the plan based on critic feedback, then resubmit (max 2 cycles)\n- **REJECTED** → Inform the user of fundamental issues and ask for guidance before proceeding\n\n⛔ HARD STOP — Print this checklist before advancing to MODE: EXECUTE:\n  [ ] the active swarm's critic agent returned a verdict\n  [ ] APPROVED → proceed to MODE: EXECUTE\n  [ ] NEEDS_REVISION → revised and resubmitted (attempt N of max 2)\n  [ ] REJECTED (any cycle) → informed user. STOP.\n\nYou MUST NOT proceed to MODE: EXECUTE without printing this checklist with filled values.\n\nCRITIC-GATE TRIGGER: Run ONCE when you first write the complete .swarm\u002Fplan.md.\nDo NOT re-run CRITIC-GATE before every project phase.\nIf resuming a project with an existing approved plan, CRITIC-GATE is already satisfied.\nCaveat: this assumption breaks if the plan lacks a `plan_critic_gate`-tagged approval snapshot (e.g. a plan approved before this mechanical gate existed, or one where the recording heuristic didn't fire) — in that case the first coder dispatch will fail with `PLAN_CRITIC_GATE_VIOLATION`. If that happens, do not assume CRITIC-GATE is satisfied; re-run it and get a fresh APPROVED verdict.\n\n6j. SPEC-GATE (Execute BEFORE any save_plan call):\n- An effective spec exists iff `\u002Fswarm sdd status` reports a resolved spec (it reflects `readEffectiveSpecSync`, which returns null — NO effective spec — for no sources, multiple competing sources (openspec+specify), multi-feature Spec-Kit without a selected feature, or any unresolvable state). `save_plan` rejects (SPEC_REQUIRED) when `\u002Fswarm sdd status` reports no resolved spec. The gate is overridable via `SWARM_SKIP_SPEC_GATE=1`.\n- Before calling save_plan, verify an effective spec exists (via `\u002Fswarm sdd status` or `lint_spec`).\n- If no effective spec exists: do NOT call save_plan. Generate one first — native via `\u002Fswarm specify`, or via the agent-invocable `\u002Fswarm sdd project` (from SDD sources, after consent).\n- This rule is satisfied by the save_plan tool's own spec gate — it exists as a reminder that planning requires a spec.\n\n6k. SPEC-STALENESS GUARD:\n- If _specStale or .swarm\u002Fspec-staleness.json exists, the Architect MUST stop\n  and SURFACE THE DRIFT TO THE USER. The user (not the Architect) then runs\n  either:\n  - \u002Fswarm clarify to update the spec and align it with the plan, OR\n  - \u002Fswarm acknowledge-spec-drift to acknowledge the drift and suppress further warnings\n- The Architect MUST NOT run \u002Fswarm acknowledge-spec-drift itself — not via\n  the swarm_command tool, not via the chat fallback, and NOT by shelling out\n  to `bunx opencode-swarm run acknowledge-spec-drift` (or any equivalent\n  `npx`\u002F`node`\u002F`bun` invocation). Any such self-invocation is a\n  control-bypass and will be refused by the runtime guardrails.\n- Do NOT proceed with implementation until the user resolves the staleness.\n- When re-saving a plan in response to spec drift, save_plan REQUIRES that ANY task\n  present in the prior plan but absent from the new args.phases be enumerated\n  in removed_task_ids with a removal_reason. save_plan will reject the call\n  otherwise (PLAN_TASK_REMOVAL_NOT_ACKNOWLEDGED). Tasks not yet finished\n  (status: pending, in_progress, blocked) MUST NOT be removed without explicit\n  user confirmation — surface the list to the user and ask before populating\n  removed_task_ids.\n - While .swarm\u002Fspec-staleness.json exists, the runtime STRUCTURALLY BLOCKS the\n   following tools (SPEC_DRIFT_BLOCKED_TOOLS): save_plan, update_task_status,\n   phase_complete, lean_turbo_run_phase, lean_turbo_acquire_locks. If a call\n   returns SPEC_DRIFT_BLOCK, do NOT retry; surface the drift to the user and\n   WAIT for them to run \u002Fswarm clarify or \u002Fswarm acknowledge-spec-drift.\n\n6l. OBLIGATION TRACEABILITY CHECK (FR-003):\n- Before the critic's substantive rubric, the critic MUST cross-reference every\n  MUST\u002FSHALL SC-### obligation in the EFFECTIVE spec against the plan tasks.\n  An effective spec exists iff `\u002Fswarm sdd status` reports a resolved spec (it\n  reflects `readEffectiveSpecSync`, which returns null — NO effective spec — for\n  no sources, multiple competing sources (openspec+specify), multi-feature\n  Spec-Kit without a selected feature, or any unresolvable state). Obligations\n  are traced only against the resolved effective spec; in a null\u002Funresolved\n  state there is nothing to trace (this check is not applicable).\n- If ANY MUST\u002FSHALL SC-### has zero corresponding plan tasks, the critic MUST\n  return VERDICT: REJECTED enumerating each unmapped obligation.\n- The critic MUST evaluate coverage against the FULL plan — each task's\n  description AND acceptance criteria. An SC-### is \"mapped\" if referenced\n  in ANY task's description OR acceptance field. Read plan.json (the structured\n  plan object) rather than relying solely on plan.md, which omits acceptance\n  criteria.\n- This is a structural-completeness failure, not a style concern.\n- The detection logic mirrors the existing ANALYZE-mode SC-### coverage check\n  (see src\u002Fagents\u002Fcritic.ts ANALYZE mode, step 4).\n","# Critic Gate Protocol\n\nThis protocol is loaded on demand by the architect stub in src\u002Fagents\u002Farchitect.ts. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.\n\n### MODE: CRITIC-GATE\nDelegate plan to the active swarm's critic agent for review BEFORE any implementation begins.\n- Send the full plan.md content and codebase context summary\n- Explicitly reference \"plan.md\" or \"critic-gate\" in the dispatch prompt text. This lets the mechanical approval-recording gate reliably detect the review and record the critic's APPROVED verdict, which the EXECUTE-phase coder gate then requires.\n- **APPROVED** → Proceed to MODE: EXECUTE\n- **NEEDS_REVISION** → Revise the plan based on critic feedback, then resubmit (max 2 cycles)\n- **REJECTED** → Inform the user of fundamental issues and ask for guidance before proceeding\n\n⛔ HARD STOP — Print this checklist before advancing to MODE: EXECUTE:\n  [ ] the active swarm's critic agent returned a verdict\n  [ ] APPROVED → proceed to MODE: EXECUTE\n  [ ] NEEDS_REVISION → revised and resubmitted (attempt N of max 2)\n  [ ] REJECTED (any cycle) → informed user. STOP.\n\nYou MUST NOT proceed to MODE: EXECUTE without printing this checklist with filled values.\n\nCRITIC-GATE TRIGGER: Run ONCE when you first write the complete .swarm\u002Fplan.md.\nDo NOT re-run CRITIC-GATE before every project phase.\nIf resuming a project with an existing approved plan, CRITIC-GATE is already satisfied.\nCaveat: this assumption breaks if the plan lacks a `plan_critic_gate`-tagged approval snapshot (e.g. a plan approved before this mechanical gate existed, or one where the recording heuristic didn't fire) — in that case the first coder dispatch will fail with `PLAN_CRITIC_GATE_VIOLATION`. If that happens, do not assume CRITIC-GATE is satisfied; re-run it and get a fresh APPROVED verdict.\n\n6j. SPEC-GATE (Execute BEFORE any save_plan call):\n- An effective spec exists iff `\u002Fswarm sdd status` reports a resolved spec (it reflects `readEffectiveSpecSync`, which returns null — NO effective spec — for no sources, multiple competing sources (openspec+specify), multi-feature Spec-Kit without a selected feature, or any unresolvable state). `save_plan` rejects (SPEC_REQUIRED) when `\u002Fswarm sdd status` reports no resolved spec. The gate is overridable via `SWARM_SKIP_SPEC_GATE=1`.\n- Before calling save_plan, verify an effective spec exists (via `\u002Fswarm sdd status` or `lint_spec`).\n- If no effective spec exists: do NOT call save_plan. Generate one first — native via `\u002Fswarm specify`, or via the agent-invocable `\u002Fswarm sdd project` (from SDD sources, after consent).\n- This rule is satisfied by the save_plan tool's own spec gate — it exists as a reminder that planning requires a spec.\n\n6k. SPEC-STALENESS GUARD:\n- If _specStale or .swarm\u002Fspec-staleness.json exists, the Architect MUST stop\n  and SURFACE THE DRIFT TO THE USER. The user (not the Architect) then runs\n  either:\n  - \u002Fswarm clarify to update the spec and align it with the plan, OR\n  - \u002Fswarm acknowledge-spec-drift to acknowledge the drift and suppress further warnings\n- The Architect MUST NOT run \u002Fswarm acknowledge-spec-drift itself — not via\n  the swarm_command tool, not via the chat fallback, and NOT by shelling out\n  to `bunx opencode-swarm run acknowledge-spec-drift` (or any equivalent\n  `npx`\u002F`node`\u002F`bun` invocation). Any such self-invocation is a\n  control-bypass and will be refused by the runtime guardrails.\n- Do NOT proceed with implementation until the user resolves the staleness.\n- When re-saving a plan in response to spec drift, save_plan REQUIRES that ANY task\n  present in the prior plan but absent from the new args.phases be enumerated\n  in removed_task_ids with a removal_reason. save_plan will reject the call\n  otherwise (PLAN_TASK_REMOVAL_NOT_ACKNOWLEDGED). Tasks not yet finished\n  (status: pending, in_progress, blocked) MUST NOT be removed without explicit\n  user confirmation — surface the list to the user and ask before populating\n  removed_task_ids.\n - While .swarm\u002Fspec-staleness.json exists, the runtime STRUCTURALLY BLOCKS the\n   following tools (SPEC_DRIFT_BLOCKED_TOOLS): save_plan, update_task_status,\n   phase_complete, lean_turbo_run_phase, lean_turbo_acquire_locks. If a call\n   returns SPEC_DRIFT_BLOCK, do NOT retry; surface the drift to the user and\n   WAIT for them to run \u002Fswarm clarify or \u002Fswarm acknowledge-spec-drift.\n\n6l. OBLIGATION TRACEABILITY CHECK (FR-003):\n- Before the critic's substantive rubric, the critic MUST cross-reference every\n  MUST\u002FSHALL SC-### obligation in the EFFECTIVE spec against the plan tasks.\n  An effective spec exists iff `\u002Fswarm sdd status` reports a resolved spec (it\n  reflects `readEffectiveSpecSync`, which returns null — NO effective spec — for\n  no sources, multiple competing sources (openspec+specify), multi-feature\n  Spec-Kit without a selected feature, or any unresolvable state). Obligations\n  are traced only against the resolved effective spec; in a null\u002Funresolved\n  state there is nothing to trace (this check is not applicable).\n- If ANY MUST\u002FSHALL SC-### has zero corresponding plan tasks, the critic MUST\n  return VERDICT: REJECTED enumerating each unmapped obligation.\n- The critic MUST evaluate coverage against the FULL plan — each task's\n  description AND acceptance criteria. An SC-### is \"mapped\" if referenced\n  in ANY task's description OR acceptance field. Read plan.json (the structured\n  plan object) rather than relying solely on plan.md, which omits acceptance\n  criteria.\n- This is a structural-completeness failure, not a style concern.\n- The detection logic mirrors the existing ANALYZE-mode SC-### coverage check\n  (see src\u002Fagents\u002Fcritic.ts ANALYZE mode, step 4).\n",{"name":5,"description":7},"main","1667541871a3a917f9e544e5584ef06a544a119d",".opencode\u002Fskills\u002Fcritic-gate",0,"https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo","https:\u002F\u002Fgithub.com\u002Fdjimit","https:\u002F\u002Fdjimit.nl\u002F","About me\r\n\r\nI’m Dennis a strategic IT advisor specializing in cloud, cybersecurity, privacy, AI, and enterprise architecture. ","2026-11-15 04:42:36",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add djimit\u002Fdjimitflo --skill critic-gate",{"tool":39,"command":40},"bunx","bunx skills add djimit\u002Fdjimitflo --skill critic-gate",{"tool":42,"command":43},"pnpm","pnpm dlx skills add djimit\u002Fdjimitflo --skill critic-gate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fcritic-gate\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},"01M732DRW7MHQP9VTJ5JSBMWC3","provider-step-usage-v1-0-0","Sum measured OpenCode step_finish token totals with replay deduplication and fail-closed validation.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002Fskills\u002Fprovider-step-usage-v1-0-0\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},"01M732DKXHWZ1P99ZDNA4PX7BV","writing-tests","Guidelines for writing, organizing, and maintaining tests in the opencode-swarm repository. Covers framework rules (bun:test), mock isolation, CI pipeline structure, file placement, and anti-patterns that break cross-platform CI. Load this skill before writing or modifying any test file.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwriting-tests\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},"01M732DCEG1R9S45A68T5WR2T7","worktree-retry-cleanup","Protocol for cleaning parallel-coder worktree lanes before retry. Triggered before re-dispatching any task that already has a lane (completed, denied, cancelled, or failed).","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fworktree-retry-cleanup\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},"01M732D8KYWE5RHJ1AA76F70K7","swarm","Cross-agent swarm-mode behavior model — a higher-rigor workflow using parallel investigation, independent reviewer validation, and critic challenge, plus the mandatory implementation closeout gate. Runtime adapters (.claude, .agents) add execution-specific notes and command wiring.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fswarm\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},"01M732D232XCMYP3XYKEAQC3YT","swarm-pr-subscribe","Monitor a pull request after creation and act autonomously on pushed PR activity. Use when subscribing to a PR after opening it, when asked to watch, babysit, or autofix a PR until merge, or when a \u003Cpr-activity> wake message or [pr-monitor:...] advisory arrives for a subscribed PR. Owns event triage (fix \u002F ask \u002F skip), bounded-retry escalation, and terminal-state cleanup.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fswarm-pr-subscribe\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},"01M732CVKJ4QEN83DQ30EYG75A","swarm-pr-review","Run a graph-guided, tool-augmented Swarm PR review using context packing, parallel exploration, triggered plugin micro-lanes, independent reviewer validation, critic challenge, and metrics writeback. Use for deep pull request review with low false-positive tolerance and high recall.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fswarm-pr-review\u002FSKILL.md",[],[]]