clarify-spec

clarify-spec is a skill for Claude Code from ZaxbyHub/opencode-swarm. It costs 27 tokens per session (1,566 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…

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.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.svg" alt="Measured on agentmods" 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,566 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.
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.01566
Opus 5 $0.00014 $0.00783
Sonnet 5 $0.00005 $0.00313
Haiku 4.5 $0.00003 $0.00157

Measured 7d ago against content hash 822f6c6b34ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 7d 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 · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 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 · 66 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. 7d 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 (463 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 1,566 once invoked, about $0.0001 per session on Opus 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