design-docs

design-docs is a skill for Claude Code from ZaxbyHub/opencode-swarm. It costs 86 tokens per session (1,499 once invoked), scanned A, original, MIT.

A structured documentation workflow for creating or updating design documents in a project repository. It produces documents such as domain, technical, and behavior specifications, plus reference material.

In plain words
What is it for?
Use it to generate new design documentation or synchronize existing design documents with the current code or specifications.
Why use it?
It keeps design decisions organized and linked to stable section IDs, so documentation can be updated without losing track of changes. It does not change the project's source code.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions OpenCode.

Good fit Use it to generate new design documentation or synchronize existing design documents with the current code or specifications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zaxbyhub/opencode-swarm/design-docs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ZaxbyHub/opencode-swarm --skill design-docs
Clone the repo
git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/design-docs/github.svg)](https://agentmods.dev/skills/zaxbyhub/opencode-swarm/design-docs)
Your own site
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/design-docs"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/design-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/design-docs"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/design-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 44
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.01499
Opus 5.5 $0.00034 $0.00600
Sonnet 5.5 $0.00017 $0.00300
Haiku 4.5 $0.00009 $0.00150

Measured 1mo ago against content hash 8ab7d60c5f45, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/design-docs/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design-Doc Generation & Sync Protocol

Generate 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/). It does NOT modify source code, does NOT call declare_scope, and does NOT touch .swarm/spec.md, CHANGELOG.md, or docs/releases/pending/*.

MODE: DESIGN_DOCS

Step 0 — Parse Header

Parse the [MODE: DESIGN_DOCS ...] header to extract:

  • out: output directory, project-relative (default docs)
  • lang: target language for reference/ docs, or auto (default auto)
  • update: boolean — true = sync existing docs to current code/spec; false = generate fresh
  • the trailing free text = the system description (required when update=false)

If the header is malformed, report the error and stop.

Step 1 — Preconditions

  1. 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.
  2. If a spec-staleness block is active (.swarm/spec-staleness.json present), resolve/acknowledge spec staleness FIRST — otherwise design-doc writes may be blocked by the guardrail, which emits SPEC_DRIFT_BLOCK. Do not blindly retry on SPEC_DRIFT_BLOCK.
  3. Read .swarm/spec.md if present — it is the authoritative requirements source (FR-### IDs). The design docs must be consistent with it. Run /swarm sdd status to resolve the effective spec before reading.

Step 2 — Index Existing State (always)

Have the docs_design agent (or doc_scan) index <out>/ to discover any existing design docs. If <out>/reference/traceability.json exists, it is the section-ID registry — load it. Existing section IDs MUST be preserved on regeneration.

Step 3 — Generate or Sync

Dispatch the docs_design agent (the active swarm's docs_design — never the standard docs agent) with:

  • TASK, MODE (generate|sync), OUT_DIR, LANGUAGE
  • For sync: FILES CHANGED and CHANGES SUMMARY from the current phase/diff
  • SKILLS: file:.swarm/bundled-skills/design-docs/SKILL.md (this skill)

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 8ab7d60c5f45
  2. 3mo ago First seen · 84 lines · 86 tokens per session scan A 1deda69558f6

Subscribe to this mod's changes

design-docs is a skill published in the GitHub repository ZaxbyHub/opencode-swarm (549 stars, last pushed today), licensed MIT. It adds 86 tokens to every session and 1,499 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

design-docs compared with skills from other repositories

design-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-docsZaxbyHub/opencode-swarmSkill549todayMITA86Claude Code
safeinstall-installMickdownunder/SafeInstallSkill34d agoMITA49Codex
safeinstall-setupMickdownunder/SafeInstallSkill34d agoMITA49Codex
safeinstall-checkMickdownunder/SafeInstallSkill34d agoMITA51Codex
safeinstall-statusMickdownunder/SafeInstallSkill34d agoMITA53Codex
repo-hygieneQwenLM/qwen-codeSkill31ktodayApache-2.0A48Claude Code, Codex
requirements-writermvschwarz/openrigSkill9.0ktodayApache-2.0A28Claude Code, Codex