Agent skill

Clarify Spec

by ZaxbyHub in ZaxbyHub/opencode-swarm

Full execution protocol for MODE: CLARIFY-SPEC -- resolving spec clarification markers and maintaining spec/planning alignment.

MITAuto-check passed

Install Clarify Spec

skills CLI
$ npx skills add ZaxbyHub/opencode-swarm --skill clarify-spec -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZaxbyHub/opencode-swarm clarify-spec --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/clarify-spec .claude/skills/clarify-spec && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
clarify-spec
GitHub stars
494
Token cost
~1.7k tokens
SKILL.md length
885 words
Files
1
Skills in repo
91
Repo updated
First seen
Licence
MIT

At a glance

Full execution protocol for MODE: CLARIFY-SPEC -- resolving spec clarification markers and maintaining spec/planning alignment.

  • Works in 8 steps: Read the effective spec resolved by… → Scan for ambiguities beyond explicit… → Present all spec modifications using… → …
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Clarify Spec is an agent skill from ZaxbyHub/opencode-swarm. Full execution protocol for MODE: CLARIFY-SPEC -- resolving spec clarification markers and maintaining spec/planning alignment.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Architect-centric agentic swarm plugin for OpenCode. Hub-and-spoke orchestration with SME consultation, code generation, and QA review. The licence is MIT.

Example prompts

  • “/clarify-spec”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Read the effective spec resolved by /swarm sdd status (native .swarm/spec.md OR OpenSpec openspec/ OR Spec-Kit .specify/ — read the…
  2. Scan for ambiguities beyond explicit [NEEDS CLARIFICATION] markers
  3. Present all spec modifications using delta format with ## ADDED/MODIFIED/REMOVED Requirements sections
  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)
  6. After each accepted answer, write the resolution to the resolved effective source (source-aware write-back)
  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…

What it can do on your machine

Read from SKILL.md and the folder at commit b63a4bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Clarify Spec loads about 1.7k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 885 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ZaxbyHub/opencode-swarm at commit b63a4bd, republished under its MIT licence (© ZaxbyHub). 885 words, ~1,708 tokens.

Download SKILL.mdSave it as .claude/skills/clarify-spec/SKILL.md (or your agent's skills folder).
name
clarify-spec
description
Full execution protocol for MODE: CLARIFY-SPEC -- resolving spec clarification markers and maintaining spec/planning alignment.
audience
swarm-plugin

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).
Show full SKILL.md (339 more words)Show less

CLARIFY-SPEC RULES:

  • FR-ID increment rule: When adding new requirements, find the highest existing FR-ID and increment from there (FR-001 → FR-002). Never reuse or skip FR-IDs.
  • One question at a time — never ask multiple questions in the same message.
  • Do not modify any part of the spec that was not affected by the accepted answer.
  • Always write the accepted answer back to the resolved effective source before presenting the next question. Never write .swarm/spec.md in a non-native (openspec/specify-only) repo — see step 5 source-aware write-back rule.
  • Max 8 questions per session — if limit reached, report remaining ambiguities and stop.
  • Do not create, overwrite, or shadow the spec file — only refine what exists. In non-native (openspec/specify-only) repos, never silently materialize a .swarm/spec.md that would shadow the effective source.
Scoped Funnel Protocol (CLARIFY-SPEC only)

CLARIFY-SPEC handles already-surfaced [NEEDS CLARIFICATION] markers and spec ambiguities — it does not perform open-ended discovery of new uncertainties. The full four-stage clarification funnel (inventory, classify, consult critic, surface) described in the clarify skill applies to MODE: CLARIFY and MODE: PLAN, not here.

However, before surfacing each marker question to the user, CLARIFY-SPEC MUST:

  1. Consult critic_sounding_board with the candidate marker question and surrounding spec context to check whether the question wording can be improved or the item can be resolved from existing context.
  2. Apply the Overconfidence guard: If the critic supplies a RESOLVE verdict with a default answer, but that default is not directly supported by user request, spec, or recorded context, classify the item as user_decision rather than self_resolved.
  3. Apply always-surface protection: If the marker belongs to an always-surface category (scope boundaries, destructive behavior, security/privacy, backward compatibility, breaking API changes, new dependencies, deprecations, cross-platform impact, cost/performance tradeoffs, user-visible UX, rollout strategy, QA gates), the item MUST NOT receive UNNECESSARY/DROP from the critic — override to APPROVED/ASK_USER.

Critic verdict mapping (SoundingBoardVerdict): UNNECESSARY→DROP, RESOLVE→RESOLVE, REPHRASE→REPHRASE, APPROVED→ASK_USER.

This scoped protocol is lighter than the full funnel because CLARIFY-SPEC starts from known markers rather than open uncertainty inventory, but it still protects against overconfident self-resolution and premature dropping of important questions.

© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/clarify-spec of ZaxbyHub/opencode-swarm.

Open the folder on GitHubat commit b63a4bd

Compare with similar skills

Clarify Spec next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Clarify Spec compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clarify Spec this skillZaxbyHub/opencode-swarm494—~1.7kAutomated safety check: PassMIT
Requirements Clarificationasgeirtj/system_prompts_leaks69k—~687Automated safety check: PassCC0-1.0
Resolve Git Conflictspenpot/penpot61k—~772Automated safety check: PassMPL-2.0
Resolving Ingestion WarningsPostHog/posthog40k—~7kAutomated safety check: PassCustom licence
Resolve Inputsomnigent-ai/omnigent11k—~2kAutomated safety check: PassApache-2.0
Resolve Handoffomnigent-ai/omnigent11k—~4.6kAutomated safety check: PassApache-2.0

Similar skills

  • Requirements Clarification

    asgeirtj/system_prompts_leaks

    Clarify a material user-owned product decision before substantive implementation commitments.

    69k GitHub stars~687 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Conflict resolution flow — understand the local git conflicts, present a resolution plan, and resolve them after the user approves it.

    61k GitHub stars~772 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Official

    Diagnoses and resolves PostHog ingestion warnings — problems recorded while ingesting events (dropped events, rejected person merges, oversized payloads, invalid data).

    40k GitHub stars~7k tokensUpdated yesterday
    Auto-check passed
  • Resolve Inputs

    omnigent-ai/omnigent

    Select the Resolve mode, recover its input, check the workspace, and discover existing fixes.

    11k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Resolve Handoff

    omnigent-ai/omnigent

    Emit the complete Resolve handoff with exact modes, outcomes, test evidence, and publication state.

    11k GitHub stars~4.6k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Resolve Audio

    samuelgursky/davinci-resolve-mcp

    Audio and Fairlight work in the DaVinci Resolve MCP. An agent skill from samuelgursky/davinci-resolve-mcp.

    3.5k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed

More from ZaxbyHub/opencode-swarm

All 91 skills in this repo
  • Codebase Review Swarm

    ZaxbyHub/opencode-swarm

    Runs an evidence-gated, quote-grounded audit of a codebase for security, QA, accessibility, performance and more, and writes a verified report without changing source files.

    496 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Issue Tracer

    ZaxbyHub/opencode-swarm

    Drives a bug report from validation and root-cause tracing through a critic-reviewed plan, an approved minimal fix and a PR-ready closure, never merging without recorded human approval.

    496 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Commit and PR Publishing for Codex

    ZaxbyHub/opencode-swarm

    Codex adapter for opencode-swarm that governs commits, pushes, draft PRs, PR body updates and CI closeout, deferring to the repo's canonical commit-pr protocol.

    496 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Durable Session State

    ZaxbyHub/opencode-swarm

    Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.

    496 GitHub stars~896 tokensUpdated today
    Auto-check passed
  • Swarm PR Feedback Closer

    ZaxbyHub/opencode-swarm

    Ingests existing pull request feedback such as review comments and CI failures, verifies each claim, fixes confirmed issues and reports closure status for every item.

    496 GitHub stars~14k tokensUpdated today
    Auto-check passed
  • Swarm PR Subscribe

    ZaxbyHub/opencode-swarm

    Monitor a pull request after creation and act autonomously on pushed PR activity.

    496 GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Questions about Clarify Spec

What does Clarify Spec do?

Full execution protocol for MODE: CLARIFY-SPEC -- resolving spec clarification markers and maintaining spec/planning alignment. Clarify Spec is an agent skill from ZaxbyHub/opencode-swarm. Full execution protocol for MODE: CLARIFY-SPEC -- resolving spec clarification markers and maintaining spec/planning alignment.

How do I install Clarify Spec in Claude Code?

Run `npx skills add ZaxbyHub/opencode-swarm --skill clarify-spec -a claude-code`. Or copy the skill folder (.claude/skills/clarify-spec in ZaxbyHub/opencode-swarm) into .claude/skills/clarify-spec in your project. Claude Code loads it when a task matches its description.

How do I install Clarify Spec in Codex?

Run `npx skills add ZaxbyHub/opencode-swarm --skill clarify-spec -a codex`. Or copy the skill folder (.claude/skills/clarify-spec in ZaxbyHub/opencode-swarm) into .agents/skills/clarify-spec in your project. Codex loads it when a task matches its description.

Can I use Clarify Spec in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZaxbyHub/opencode-swarm --skill clarify-spec -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clarify-spec, .gemini/skills/clarify-spec, .github/skills/clarify-spec and .opencode/skills/clarify-spec in your project.

What does Clarify Spec need to run?

SKILL.md names no scripts, command-line tools or credentials: Clarify Spec is instructions for the agent only.

Does Clarify Spec access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Clarify Spec safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Clarify Spec use?

Clarify Spec is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Clarify Spec use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Clarify Spec?

Skills that share tags, products or a category with Clarify Spec: Requirements Clarification (asgeirtj/system_prompts_leaks, 69k stars), Resolve Git Conflicts (penpot/penpot, 61k stars), Resolving Ingestion Warnings (PostHog/posthog, 40k stars) and Resolve Inputs (omnigent-ai/omnigent, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clarify Spec?

ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 494 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 10, 2026.

Source: ZaxbyHub/opencode-swarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.