spec

A structured process for defining a software feature before implementation, using codebase exploration, user stories, acceptance criteria, and clarification questions.

In plain words
What is it for?
It is for specifying medium or large changes, documenting edge cases, and handing a validated feature description to a planning step.
Why use it?
It turns vague requests into testable requirements and surfaces ambiguities before they cause rework.

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/kashzod/devloop/spec
Any agent
npx skills add KashZod/devloop --skill spec
Clone the repo
git clone --depth 1 https://github.com/KashZod/devloop

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,334 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.00044 $0.04334
Opus 5 $0.00022 $0.02167
Sonnet 5 $0.00009 $0.00867
Haiku 4.5 $0.00004 $0.00433

Measured yesterday against content hash 6af98cd75c20, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

skills/spec/SKILL.md · 482 lines

How it starts

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

Feature Specification Process

Create a specification for the following: $ARGUMENTS

Specifications clarify WHAT to build before implementation begins. Instead of discovering ambiguity mid-implementation (expensive), surface it upfront through structured exploration and clarification, where resolving it costs a question instead of a rewrite.

Mapping to the Explore -> Plan -> Code Loop

Workflow Phase Spec Phase What Happens
Explore Phase 1: Explore Read files, understand context, check .devloop/domain.md
Plan Phase 2: Specify User stories, acceptance criteria, edge cases
Plan Phase 3: Clarify Interactive disambiguation (max 5 questions)
Plan Phase 4: Validate 8-point spec quality checklist
Plan Phase 5: Handoff Summary report, suggest /plan

When to Use This Process

Scope Approach
Trivial (typo, config, rename) Don't use this skill -- just do it directly
Small (well-understood, single concern) Quick spec shortcut (skip clarification)
Medium (multi-concern, some ambiguity) Full process
Large (cross-cutting, unfamiliar domain) Full process, thorough clarification

Quick spec shortcut: For small well-understood changes with no domain ambiguity, collapse to: Explore -> Specify -> Validate -> Handoff. Skip clarification entirely. Use when the feature can be described in one sentence and has no competing interpretations.

Scope negotiation: If the request contains 3+ distinct features, recommend splitting into separate specs before proceeding. Each spec should cover one coherent feature with independent user value.

Product vs feature: If the request describes an entire product or system (multiple independent capabilities, separate components, its own installation story), treat it as a product-level spec:

  • One user story per major capability (not per implementation task)
  • Acceptance criteria verify capability, not component details
  • Implementation chunking goes in Notes or during TDD, not as separate specs
  • Spec size will exceed the standard guideline, this is expected

Read the full file on GitHub · 482 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 482 lines · 44 tokens per session scan A 6af98cd75c20

Subscribe to this mod's changes

spec is a skill published in the GitHub repository KashZod/devloop (2 stars, last pushed 9d ago), licensed Apache-2.0. It adds 44 tokens to every session and 4,334 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

align

Interview the person before implementation when requirements, scope, expected behavior, design, or an important assumption needs shared agreement.

dkstm95/hope · 25 tokens

diff

Use when someone asks to explain or review a GitHub pull request as an evidence-linked, self-contained offline HTML review.

dkstm95/hope · 26 tokens

spring-boot-4-conventions

Spring Framework 7 / Spring Boot 4 idioms and defaults. Use when writing or reviewing controllers, services, configuration, HTTP clients, async/virtual-thread code, or anything touching Spring's programming model.

loiane/specs-driven-development-spring-angular · 50 tokens

performance-optimization

Spring Boot 4 / JVM performance work — measure first, then fix. Profiling (async-profiler, JFR, JMH), Micrometer, common Spring antipatterns (N+1, unbounded lists, HikariCP sizing, virtual-thread pinning), caching, GC, and SLO-driven work. Used by /plan for risk callouts and by /review to flag perf regressions.

loiane/specs-driven-development-spring-angular · 89 tokens

maven-harness-pom

Reference Maven POM fragments for the full harness — Spotless, Checkstyle, SpotBugs, Error Prone, JaCoCo, PIT, OpenAPI generator + diff, OWASP dependency check, Surefire/Failsafe. Use when wiring the harness into a new project or upgrading a brownfield POM.

loiane/specs-driven-development-spring-angular · 71 tokens

shipping-and-launch

Pre-deploy hygiene for a Spring Boot 4 feature — verify gates, capture rollback plan, sign off observability, generate release notes, and stage the rollout. Used by /ship after /review approves the diff. The agent never deploys; it produces the plan a human executes.

loiane/specs-driven-development-spring-angular · 64 tokens