spec

spec is a command for Claude Code from GuillemRoca/agent-skills-android. It costs 0 tokens per session (359 once invoked), scanned A, original, MIT.

A command that writes a structured software specification before coding begins. The specification records the goal, project setup, boundaries, and testing approach.

In plain words
What is it for?
Documenting the problem, users, features, technology choices, project structure, testing strategy, and excluded work in SPEC.md.
Why use it?
It clarifies the work and creates a shared development contract before implementation starts.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the agent-skills-android plugin — 30 skills, 8 commands, 3 agents shipped together

Good fit Documenting the problem, users, features, technology choices, project structure, testing strategy, and excluded work in SPEC.md.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/guillemroca/agent-skills-android/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.

Clone the repo
git clone --depth 1 https://github.com/GuillemRoca/agent-skills-android

Made for: Claude Code.

Or install agent-skills-android, the plugin that ships this one along with the rest of its 30 skills, 8 commands, 3 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/guillemroca/agent-skills-android/spec"><img src="https://agentmods.dev/badge/commands/guillemroca/agent-skills-android/spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 359 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.00000 $0.00359
Opus 5.5 $0.00000 $0.00144
Sonnet 5.5 $0.00000 $0.00072
Haiku 4.5 $0.00000 $0.00036

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

Security

Grade A, and why

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 22d 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/commands/spec.md · 33 lines

What it actually says

/spec — Spec-Driven Development

Write a structured specification before writing any code.

Instructions

Load and follow the spec-driven-development skill from skills/spec-driven-development/SKILL.md.

If the request bundles several independently testable capabilities, first propose a capability map (module ids, Gradle modules, dependency direction, build order) per the skill's Phase 0 and get it approved, then spec each module in dependency order.

Clarifying Questions

Before writing the spec, ask:

  1. What problem does this solve? Who is the user?
  2. Which features are in scope? Which are explicitly excluded?
  3. What stack? (minSdk, Compose vs XML, Hilt, Room, Retrofit, etc.)
  4. What boundaries? (offline support? tablet? accessibility? deep links?)

Spec Structure

Document these sections in SPEC.md:

  1. Objective — what and why (1 paragraph)
  2. Commands — key Gradle tasks (./gradlew assembleDebug, ./gradlew test, etc.)
  3. Project Structure — module hierarchy (:app, :feature:*, :core:*)
  4. Code Style — Kotlin, Compose, MVVM/MVI, Hilt, Coroutines, etc.
  5. Testing Strategy — JUnit5 + MockK, Compose test rules, Espresso
  6. Boundaries — what is explicitly NOT in scope

Output

Save as SPEC.md in the project root. This becomes the development contract. Summarize it, list open questions, ask for approval — then end the turn. Don't start planning or code until the human approves in a later turn.

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. 22d ago Changed · +2 lines 196acf218868
  2. 1mo ago First seen · 31 lines · 0 tokens per session scan A 2ee84d780a09

Subscribe to this mod's changes

spec is a command published in the GitHub repository GuillemRoca/agent-skills-android (4 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 359 tokens. 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-31.