[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M732A45QTQRFDB5E340Z5VPK":3,"skill-same:01M732A45QTQRFDB5E340Z5VPK":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},"01M732A45QTQRFDB5E340Z5VPK","design-docs",null,"Full execution protocol for MODE: DESIGN_DOCS — generate or sync structured, language-agnostic design docs (domain.md, technical-spec.md, behavior-spec.md, reference\u002F) for the project under build, with a stable section-ID registry and a design changelog. Loaded on demand by the architect when the design-docs command emits a [MODE: DESIGN_DOCS ...] signal (issue #1080).","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\u002Fdesign-docs\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: design-docs\ndescription: >\n  Full execution protocol for MODE: DESIGN_DOCS — generate or sync structured,\n  language-agnostic design docs (domain.md, technical-spec.md, behavior-spec.md,\n  reference\u002F) for the project under build, with a stable section-ID registry and\n  a design changelog. Loaded on demand by the architect when the design-docs\n  command emits a [MODE: DESIGN_DOCS ...] signal (issue #1080).\n---\n\n# Design-Doc Generation & Sync Protocol\n\nGenerate or maintain the project's structured design documentation. The work is delegated to the `docs_design` agent (a design-doc-author role variant of the docs agent). This mode authors a fixed set of version-controlled docs in the **target project repo** (NOT under `.swarm\u002F`). It does NOT modify source code, does NOT call `declare_scope`, and does NOT touch `.swarm\u002Fspec.md`, `CHANGELOG.md`, or `docs\u002Freleases\u002Fpending\u002F*`.\n\n### MODE: DESIGN_DOCS\n\n## Step 0 — Parse Header\n\nParse the `[MODE: DESIGN_DOCS ...]` header to extract:\n- `out`: output directory, project-relative (default `docs`)\n- `lang`: target language for `reference\u002F` docs, or `auto` (default `auto`)\n- `update`: boolean — `true` = sync existing docs to current code\u002Fspec; `false` = generate fresh\n- the trailing free text = the system description (required when `update=false`)\n\nIf the header is malformed, report the error and stop.\n\n## Step 1 — Preconditions\n\n1. Confirm `design_docs.enabled` is true (the `docs_design` agent only exists when enabled). If it is not, tell the user to set `design_docs.enabled: true` in `opencode-swarm.json` and stop.\n2. If a spec-staleness block is active (`.swarm\u002Fspec-staleness.json` present), resolve\u002Facknowledge spec staleness FIRST — otherwise design-doc writes may be blocked by the guardrail. Do not blindly retry on `SPEC_STALENESS_BLOCK`.\n3. Read `.swarm\u002Fspec.md` if present — it is the authoritative requirements source (FR-### IDs). The design docs must be consistent with it.\n\n## Step 2 — Index Existing State (always)\n\nHave the `docs_design` agent (or `doc_scan`) index `\u003Cout>\u002F` to discover any existing design docs. If `\u003Cout>\u002Freference\u002Ftraceability.json` exists, it is the section-ID registry — load it. Existing section IDs MUST be preserved on regeneration.\n\n## Step 3 — Generate or Sync\n\nDispatch the **`docs_design`** agent (the active swarm's `docs_design` — never the standard `docs` agent) with:\n- `TASK`, `MODE` (generate|sync), `OUT_DIR`, `LANGUAGE`\n- For sync: `FILES CHANGED` and `CHANGES SUMMARY` from the current phase\u002Fdiff\n- `SKILLS: file:.opencode\u002Fskills\u002Fdesign-docs\u002FSKILL.md` (this skill)\n\nThe agent owns exactly these files under `\u003Cout>` and creates NOTHING else:\n\n```\n\u003Cout>\u002F\n├── domain.md              # 100% language-agnostic. Entities in neutral notation\n│                          #   (field: type-class), domain invariants. ZERO framework\n│                          #   names in normative text. Section IDs: D-###\n├── technical-spec.md      # Language-agnostic architecture: layers, dependency rules,\n│                          #   contract SHAPES (inputs→outputs→error-kinds), algorithms,\n│                          #   invariants. + the traceability table. Section IDs: S-###\n├── behavior-spec.md       # 100% language-agnostic Given\u002FWhen\u002FThen specs. IDs: B-###\n├── design-changelog.md    # Keep-a-Changelog log of design-doc changes (NOT release notes)\n└── reference\u002F             # ALL [INCIDENTAL] language\u002Fframework-specific material here.\n    ├── reference-impl.md  #   Exact signatures, CLI strings, SQL, code. Mapped to\n    │                      #   spec sections by ID. Section IDs: R-###\n    ├── idiom-notes.md     #   \"Here is how the reference solved X\" — examples only.\n    └── traceability.json  #   Machine-readable section-ID registry (source of truth)\n```\n\n## Step 4 — Invariants the docs MUST satisfy\n\n- **Language-agnostic normative text**: `domain.md`, `technical-spec.md`, and `behavior-spec.md` contain ZERO framework\u002Flibrary\u002Flanguage names in normative content. All such material lives ONLY in `reference\u002F`.\n- **Version header** on every doc:\n  `\u003C!-- design-doc: \u003Cname>  version: \u003Cphase-or-counter>  generated: \u003CISO-8601>  spec-hash: \u003C8 chars> -->`\n- **Stable section IDs**: assigned once, never renumbered. `D-###` domain, `S-###` technical-spec, `B-###` behavior-spec, `R-###` reference. On sync, reuse every existing ID; mint new IDs only for genuinely new sections.\n- **Traceability footer** ending each section: `> Traceability: FR-012, FR-013 | invariant: \u003Cid-or-none>`.\n- **traceability.json** kept in sync: `{ \"schema_version\": 1, \"sections\": [ { \"section_id\", \"doc\", \"title\", \"spec_frs\": [], \"invariants\": [], \"code_anchors\": [] } ] }`. `technical-spec.md` renders a human-readable mirror table `| Doc Section | Spec FR | Invariant | Code anchors |`.\n- **design-changelog.md**: append one entry per generate\u002Fsync under `## [Unreleased]` (Added\u002FChanged\u002FRemoved), e.g. `- \u003CISO date> phase \u003CN>: \u003Csections touched> (\u003CFR refs>)`. This file is SEPARATE from release-please artifacts — never edit `CHANGELOG.md` or `docs\u002Freleases\u002Fpending\u002F*` here.\n\n## Step 5 — Verify & Report\n\n1. Confirm the agent created\u002Fupdated only the allowed files and `traceability.json` is consistent with the docs.\n2. Confirm no normative doc names a framework (spot-check) and every section has an ID + traceability footer.\n3. Report `UPDATED` \u002F `ADDED` \u002F `REMOVED` \u002F `SUMMARY` back to the user.\n\n## Notes on the PHASE-WRAP sync path\n\nDuring PHASE-WRAP, the deterministic design-doc drift check (`runDesignDocDriftCheck`) writes `.swarm\u002Fdoc-drift-phase-N.json`. If the verdict is `DOC_STALE` and `design_docs.enabled`, dispatch `docs_design` in **sync** mode for the affected sections only, then append a design-changelog entry. This is advisory and non-blocking — never block phase completion on design-doc lag.\n","# Design-Doc Generation & Sync Protocol\n\nGenerate or maintain the project's structured design documentation. The work is delegated to the `docs_design` agent (a design-doc-author role variant of the docs agent). This mode authors a fixed set of version-controlled docs in the **target project repo** (NOT under `.swarm\u002F`). It does NOT modify source code, does NOT call `declare_scope`, and does NOT touch `.swarm\u002Fspec.md`, `CHANGELOG.md`, or `docs\u002Freleases\u002Fpending\u002F*`.\n\n### MODE: DESIGN_DOCS\n\n## Step 0 — Parse Header\n\nParse the `[MODE: DESIGN_DOCS ...]` header to extract:\n- `out`: output directory, project-relative (default `docs`)\n- `lang`: target language for `reference\u002F` docs, or `auto` (default `auto`)\n- `update`: boolean — `true` = sync existing docs to current code\u002Fspec; `false` = generate fresh\n- the trailing free text = the system description (required when `update=false`)\n\nIf the header is malformed, report the error and stop.\n\n## Step 1 — Preconditions\n\n1. Confirm `design_docs.enabled` is true (the `docs_design` agent only exists when enabled). If it is not, tell the user to set `design_docs.enabled: true` in `opencode-swarm.json` and stop.\n2. If a spec-staleness block is active (`.swarm\u002Fspec-staleness.json` present), resolve\u002Facknowledge spec staleness FIRST — otherwise design-doc writes may be blocked by the guardrail. Do not blindly retry on `SPEC_STALENESS_BLOCK`.\n3. Read `.swarm\u002Fspec.md` if present — it is the authoritative requirements source (FR-### IDs). The design docs must be consistent with it.\n\n## Step 2 — Index Existing State (always)\n\nHave the `docs_design` agent (or `doc_scan`) index `\u003Cout>\u002F` to discover any existing design docs. If `\u003Cout>\u002Freference\u002Ftraceability.json` exists, it is the section-ID registry — load it. Existing section IDs MUST be preserved on regeneration.\n\n## Step 3 — Generate or Sync\n\nDispatch the **`docs_design`** agent (the active swarm's `docs_design` — never the standard `docs` agent) with:\n- `TASK`, `MODE` (generate|sync), `OUT_DIR`, `LANGUAGE`\n- For sync: `FILES CHANGED` and `CHANGES SUMMARY` from the current phase\u002Fdiff\n- `SKILLS: file:.opencode\u002Fskills\u002Fdesign-docs\u002FSKILL.md` (this skill)\n\nThe agent owns exactly these files under `\u003Cout>` and creates NOTHING else:\n\n```\n\u003Cout>\u002F\n├── domain.md              # 100% language-agnostic. Entities in neutral notation\n│                          #   (field: type-class), domain invariants. ZERO framework\n│                          #   names in normative text. Section IDs: D-###\n├── technical-spec.md      # Language-agnostic architecture: layers, dependency rules,\n│                          #   contract SHAPES (inputs→outputs→error-kinds), algorithms,\n│                          #   invariants. + the traceability table. Section IDs: S-###\n├── behavior-spec.md       # 100% language-agnostic Given\u002FWhen\u002FThen specs. IDs: B-###\n├── design-changelog.md    # Keep-a-Changelog log of design-doc changes (NOT release notes)\n└── reference\u002F             # ALL [INCIDENTAL] language\u002Fframework-specific material here.\n    ├── reference-impl.md  #   Exact signatures, CLI strings, SQL, code. Mapped to\n    │                      #   spec sections by ID. Section IDs: R-###\n    ├── idiom-notes.md     #   \"Here is how the reference solved X\" — examples only.\n    └── traceability.json  #   Machine-readable section-ID registry (source of truth)\n```\n\n## Step 4 — Invariants the docs MUST satisfy\n\n- **Language-agnostic normative text**: `domain.md`, `technical-spec.md`, and `behavior-spec.md` contain ZERO framework\u002Flibrary\u002Flanguage names in normative content. All such material lives ONLY in `reference\u002F`.\n- **Version header** on every doc:\n  `\u003C!-- design-doc: \u003Cname>  version: \u003Cphase-or-counter>  generated: \u003CISO-8601>  spec-hash: \u003C8 chars> -->`\n- **Stable section IDs**: assigned once, never renumbered. `D-###` domain, `S-###` technical-spec, `B-###` behavior-spec, `R-###` reference. On sync, reuse every existing ID; mint new IDs only for genuinely new sections.\n- **Traceability footer** ending each section: `> Traceability: FR-012, FR-013 | invariant: \u003Cid-or-none>`.\n- **traceability.json** kept in sync: `{ \"schema_version\": 1, \"sections\": [ { \"section_id\", \"doc\", \"title\", \"spec_frs\": [], \"invariants\": [], \"code_anchors\": [] } ] }`. `technical-spec.md` renders a human-readable mirror table `| Doc Section | Spec FR | Invariant | Code anchors |`.\n- **design-changelog.md**: append one entry per generate\u002Fsync under `## [Unreleased]` (Added\u002FChanged\u002FRemoved), e.g. `- \u003CISO date> phase \u003CN>: \u003Csections touched> (\u003CFR refs>)`. This file is SEPARATE from release-please artifacts — never edit `CHANGELOG.md` or `docs\u002Freleases\u002Fpending\u002F*` here.\n\n## Step 5 — Verify & Report\n\n1. Confirm the agent created\u002Fupdated only the allowed files and `traceability.json` is consistent with the docs.\n2. Confirm no normative doc names a framework (spot-check) and every section has an ID + traceability footer.\n3. Report `UPDATED` \u002F `ADDED` \u002F `REMOVED` \u002F `SUMMARY` back to the user.\n\n## Notes on the PHASE-WRAP sync path\n\nDuring PHASE-WRAP, the deterministic design-doc drift check (`runDesignDocDriftCheck`) writes `.swarm\u002Fdoc-drift-phase-N.json`. If the verdict is `DOC_STALE` and `design_docs.enabled`, dispatch `docs_design` in **sync** mode for the affected sections only, then append a design-changelog entry. This is advisory and non-blocking — never block phase completion on design-doc lag.\n",{"name":5,"description":7},"main","1667541871a3a917f9e544e5584ef06a544a119d",".opencode\u002Fskills\u002Fdesign-docs",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 design-docs",{"tool":39,"command":40},"bunx","bunx skills add djimit\u002Fdjimitflo --skill design-docs",{"tool":42,"command":43},"pnpm","pnpm dlx skills add djimit\u002Fdjimitflo --skill design-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fdesign-docs\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",[],[]]