spec-driven-development

spec-driven-development is a skill for Claude Code, Codex from swimmwatch/cloakbrowser-mcp. It costs 89 tokens per session (786 once invoked), scanned A, original, MIT.

A specification-writing workflow for substantial changes to the cloakbrowser-mcp project. A specification is a written contract that states what will be built and prevents implementation choices from being guessed.

In plain words
What is it for?
Use it when invoking /spec or when a major change needs a durable specification. It covers repository research, structured decisions, and saving the resulting specification and decision record.
Why use it?
It records known facts, user decisions, assumptions, and items that do not apply before coding begins. This reduces ambiguity and keeps the implementation tied to an agreed contract.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/swimmwatch/cloakbrowser-mcp/spec-driven-development
Any agent
npx skills add swimmwatch/cloakbrowser-mcp --skill spec-driven-development
Clone the repo
git clone --depth 1 https://github.com/swimmwatch/cloakbrowser-mcp

Made for: Claude Code, Codex.

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 spec-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/swimmwatch/cloakbrowser-mcp/spec-driven-development.svg)](https://agentmods.dev/skills/swimmwatch/cloakbrowser-mcp/spec-driven-development)
Your own site
<a href="https://agentmods.dev/skills/swimmwatch/cloakbrowser-mcp/spec-driven-development"><img src="https://agentmods.dev/badge/skills/swimmwatch/cloakbrowser-mcp/spec-driven-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00089 $0.00786
Opus 5 $0.00044 $0.00393
Sonnet 5 $0.00018 $0.00157
Haiku 4.5 $0.00009 $0.00079

Measured 5d ago against content hash 8a13fb3c53a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spec-driven-development 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 5d 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.

.agents/skills/spec-driven-development/SKILL.md · 61 lines

What it actually says

Spec-Driven Development

Write the smallest complete contract that prevents implementation from inventing behavior. Keep the entire workflow specification-only.

  1. Read AGENTS.md, .agents/references/specification-interview.md, the closest relevant public docs, affected code/tests/configuration, package and workflow contracts, and existing specification bundle. Use CodeGraph before broad source search when indexed.
  2. Select a stable slug and create docs/specs/<slug>/decisions.yaml before the first material question. Keep spec.md separate from interview state.
  3. Establish repository-observable facts first. Record evidence-backed facts as observed, explicit request decisions as answered, reversible defaults as visible assumed entries, and irrelevant categories as not_applicable.
  4. Inspect the Prompt MCP schemas. Start or reopen the persistent workspace interview spec:<slug>. Checkpoint pending ledger entries before displaying them, use stable semantic IDs, and save each returned status and committed result immediately.
  5. Use ask_user_batch for one to five related decisions or ask_user for one focused decision. Choose single, multiple, or text from answer semantics. Do not substitute plain-chat multiple choice while Prompt MCP is callable.
  6. Cover outcome and stakeholders; scope and non-goals; normal and alternate flows; invalid input and failures; interfaces and data; architecture and dependencies; security and privacy; configuration and operations; compatibility and migration; and objective automated/manual acceptance.
  7. Derive follow-ups for implications, limits, exceptions, concurrency, cleanup, rollback, contradictions, and external effects. A cancelled, timed-out, unavailable, invalid, conflicting, failed, paused, or unresolved result is not an answer.
  8. After interruption or compaction, reload the ledger, inspect the persistent interview, reconcile revisions, and resume unresolved questions only. Preserve superseded answers as new revisions; never overwrite or repeat a committed decision unnecessarily.
  9. Run the reference's gap analysis from user, operator, implementer, tester, security reviewer, and maintainer perspectives. A deferred material decision is a blocker, not an implementation assumption.
  10. Normalize active decisions into numbered requirements, defaults, constraints, non-goals, compatibility duties, and objective acceptance criteria. Map every active ledger item to requirement IDs.
  11. Write docs/specs/<slug>/spec.md with Status: Draft. Exclude raw transcript, model reasoning, task sequence, estimates, and implementation packets.
  12. After the complete draft is inspectable, checkpoint approval.spec and ask a separate Prompt MCP single question with approve, request-changes, and leave-draft.
  13. Set Status: Approved only after an explicit committed approve answer. Custom text requests changes and cannot implicitly approve.
  14. Report the specification, ledger, unresolved blockers, and evidence, then stop. Recommend /plan only as a separate next invocation.

This skill is the single authoritative /spec route. Never begin planning, implementation, commit, push, PR, release, or publication automatically, and never request or persist secrets.

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. 5d ago First seen · 61 lines · 89 tokens per session scan A 8a13fb3c53a1

Subscribe to this mod's changes

spec-driven-development is a skill published in the GitHub repository swimmwatch/cloakbrowser-mcp (56 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 786 once invoked, about $0.0004 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

browser-search

Multi-engine web search (SearXNG) + browsing/scraping (Camofox, CloakBrowser). Use whenever you need to do web research.

Johell1NS/browser-search · 36 tokens

chrome-orchestrator

Teach agents how to orchestrate Arthur and Gloria headless Chrome environments dynamically via the Python SDK and CLI.

sh7vansh/chrome-orchestrator · 26 tokens

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work.

browser-use/browser-use · 26 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/OpenCLI · 61 tokens