clarify-spec

clarify-spec is a skill for Claude Code from ZaxbyHub/opencode-swarm. It costs 27 tokens per session (1,568 once invoked), scanned A, original, MIT.

A process for resolving unclear parts of an existing software specification, the document that describes what should be built.

In plain words
What is it for?
It is for reviewing a resolved specification, answering clarification markers, and refining requirements without creating a new specification.
Why use it?
It keeps the specification and later planning aligned instead of allowing unanswered questions to become implementation mistakes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It is for reviewing a resolved specification, answering clarification markers, and refining requirements without creating a new specification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zaxbyhub/opencode-swarm/clarify-spec
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 clarify-spec
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 clarify-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/clarify-spec/github.svg)](https://agentmods.dev/skills/zaxbyhub/opencode-swarm/clarify-spec)
Your own site
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/clarify-spec"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/clarify-spec/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 clarify-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/zaxbyhub/opencode-swarm/clarify-spec"><img src="https://agentmods.dev/badge/skills/zaxbyhub/opencode-swarm/clarify-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,568 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 pass 7 Sept 2026
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.00027 $0.01568
Opus 5.5 $0.00011 $0.00627
Sonnet 5.5 $0.00005 $0.00314
Haiku 4.5 $0.00003 $0.00157

Measured 9d ago against content hash 0ea67ad5c2c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clarify-spec 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 9d 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/clarify-spec/SKILL.md · 67 lines

How it starts

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

Clarify Spec Protocol

This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.

MODE: CLARIFY-SPEC

Activates when: /swarm sdd status reports a single resolved EFFECTIVE spec (non-null) AND it contains [NEEDS CLARIFICATION] markers; OR user says "clarify", "refine spec", "review spec", or "/swarm clarify" is invoked; OR architect transitions from MODE: SPECIFY or MODE: BRAINSTORM with open markers.

/swarm sdd status reflects readEffectiveSpecSync, which returns null (NO effective spec) for: no sources at all, multiple competing sources (e.g. openspec/ AND .specify/), multi-feature Spec-Kit without a selected feature, or any other unresolvable state. CLARIFY-SPEC does NOT activate in these null cases — tell the user: "No resolved effective spec exists. Disambiguate with /swarm sdd project --source <source> or --feature <feature>, or run /swarm specify to generate one first." and stop.

CONSTRAINT: CLARIFY-SPEC must NEVER create a spec. Always consult /swarm sdd status to determine the effective spec source before proceeding.

  1. Read the effective spec resolved by /swarm sdd status (native .swarm/spec.md OR OpenSpec openspec/ OR Spec-Kit .specify/ — read the resolved spec FIRST before making any changes).
  2. Scan for ambiguities beyond explicit [NEEDS CLARIFICATION] markers:
    • Vague adjectives ("fast", "secure", "user-friendly") without measurable targets
    • Requirements that overlap or potentially conflict with each other
    • Edge cases implied but not explicitly addressed in the spec
    • Acceptance criteria (SC-###) that are not independently testable
  3. Present all spec modifications using delta format with ## ADDED/MODIFIED/REMOVED Requirements sections:
    • ADDED Requirements: New requirements being added to the spec

    • MODIFIED Requirements: Existing requirements being revised (show old vs new)

    • REMOVED Requirements: Requirements being deleted (show what was removed)

  4. Delegate to the active swarm's sme agent for domain research on ambiguous areas before presenting questions.
  5. Present questions to the user ONE AT A TIME (max 8 per session):
    • Offer 2–4 multiple-choice options for each question
    • Mark the recommended option with reasoning (e.g., "Recommended: Option 2 because…")
    • Allow free-form input as an alternative to the options
  6. After each accepted answer, write the resolution to the resolved effective source (source-aware write-back):
    • NATIVE effective spec (.swarm/spec.md exists): update .swarm/spec.md with the resolution directly.
    • NON-NATIVE effective spec (openspec/specify-only, NO native .swarm/spec.md): do NOT write .swarm/spec.md — this would silently shadow the non-native source. Instead:
      • (a) If the resolved source supports in-place edits (e.g., OpenSpec sections), update the source artifacts directly.
      • (b) If no in-place edit path exists, ask the user: "The effective spec lives in <source>. To persist this resolution as a native spec, run /swarm sdd project first to materialize one, or I can stop here. Proceed?" — if the user consents to project, materialize via /swarm sdd project then write .swarm/spec.md; otherwise stop.
      • (c) If neither (a) nor (b) applies, stop and tell the user the clarification cannot be auto-written to a non-native source without a projection step.
    • Replace the relevant [NEEDS CLARIFICATION] marker or vague language with the accepted answer.
    • If the answer invalidates an earlier requirement, update it to remove the contradiction.
  7. Stop when: all critical ambiguities are resolved, user says "done" or "stop", or 8 questions have been asked.
  8. Report a ## Clarification Summary: total questions asked, requirements added/modified/removed, remaining open ambiguities (if any), and suggest next step (PLAN if spec is clear, or continue clarifying).

Read the full file on GitHub · 67 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. 9d ago Changed · +1 lines 0ea67ad5c2c3
  2. 1mo ago First seen · 66 lines · 27 tokens per session scan A 822f6c6b34ce

Subscribe to this mod's changes

clarify-spec is a skill published in the GitHub repository ZaxbyHub/opencode-swarm (511 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 1,568 once invoked, about $0.0001 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

Other skills, from other repositories

repo-hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

QwenLM/qwen-code · 48 tokens

requirements-writer

Use when converting PM intake into a slice SPEC.md with observable acceptance outcomes, explicit scope, and advisory sibling build dependencies.

mvschwarz/openrig · 28 tokens

clinicaltrials-database

Query ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical research and patient matching.

synthetic-sciences/openscience · 47 tokens

glycoengineering

Analyze and engineer protein glycosylation. Scan sequences for N-glycosylation sequons (N-X-S/T), predict O-glycosylation hotspots, and access curated glycoengineering tools (NetOGlyc, GlycoShield, GlycoWorkbench). For glycoprotein engineering, therapeutic antibody optimization, and vaccine design.

synthetic-sciences/openscience · 75 tokens

esm

Comprehensive toolkit for protein language models including ESM3 (generative multimodal protein design across sequence, structure, and function) and ESM C (efficient protein embeddings and representations). Use this skill when working with protein sequences, structures, or function prediction; designing novel…

synthetic-sciences/openscience · 86 tokens

pysam

Genomic file toolkit. Read/write SAM/BAM/CRAM alignments, VCF/BCF variants, FASTA/FASTQ sequences, extract regions, calculate coverage, for NGS data processing pipelines.

synthetic-sciences/openscience · 47 tokens