spec

spec is a skill for Claude Code, Codex from int2t05/engineering-skills. It costs 85 tokens per session (1,330 once invoked), scanned A, original, MIT.

A skill for writing a structured specification before building a new project, feature, or major change. A specification records the goal, structure, commands, coding and testing expectations, and boundaries.

In plain words
What is it for?
Use it to define requirements, surface assumptions, ask focused clarification questions, plan testing, and set limits before coding begins.
Why use it?
It turns an unclear idea into an agreed reference so implementation decisions and completion checks are explicit.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the engineering-skills plugin — 48 skills, 1 agent, 1 hook shipped together

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

Made for: Claude Code, Codex.

Or install engineering-skills, the plugin that ships this one along with the rest of its 48 skills, 1 agent, 1 hook.

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/skills/int2t05/engineering-skills/spec.svg)](https://agentmods.dev/skills/int2t05/engineering-skills/spec)
Your own site
<a href="https://agentmods.dev/skills/int2t05/engineering-skills/spec"><img src="https://agentmods.dev/badge/skills/int2t05/engineering-skills/spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,330 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.00085 $0.01330
Opus 5 $0.00043 $0.00665
Sonnet 5 $0.00017 $0.00266
Haiku 4.5 $0.00009 $0.00133

Measured 4d ago against content hash 7bf5f62d853f, 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 4d 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.

skills/01-product/spec/SKILL.md · 106 lines

How it starts

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

Spec

Write a structured specification before any code. The spec is the shared source of truth — it defines what we're building, why, and how we'll know it's done. Code without a spec is guessing.

When to use

  • Starting a new project, feature, or significant change.
  • Requirements are ambiguous or only exist as a vague idea.
  • The change touches multiple files or modules.
  • User says "write spec", "create prd", "spec out", "to spec", "写需求文档", "写规格", or "需求文档".

Not for: single-line fixes, typos, or changes where requirements are unambiguous; changes needing design decisions only — use architecture for system design.

Steps

  1. Surface assumptions. Before writing any spec content, list what you're assuming (tech stack, auth model, database, target environment). Ask the user to correct before proceeding. Don't silently fill ambiguous requirements.

  2. Ask 3–5 clarifying questions where the prompt is ambiguous — problem/goal, core functionality, scope, success criteria. Offer lettered options (A/B/C/D) so the user can respond "1A, 2C, 3B" for quick iteration. Only ask what's actually ambiguous. If the conversation already resolved the ambiguities, skip questions and synthesize directly.

  3. Write the spec using the template below. Reframe vague requirements as testable success criteria ("make the dashboard faster" → "LCP < 2.5s on 4G; initial load < 500ms"). For PRD structure, user-story format, Given/When/Then acceptance criteria, and INVEST — load references/prd-patterns.md. For success-criteria frameworks (North Star, AARRR, retention, A/B testing) — load references/metrics-frameworks.md. For feature prioritization (RICE, Kano, MoSCoW) — load references/prioritization.md.

  4. Publish. Two layers:

    • docs/PRD.md — project-level requirements, concise (mermaid-heavy), on main. The shared source of truth for the whole project.
    • docs/vX.Y/prd.md — the current version's detailed PRD (user stories, full acceptance criteria, rules, boundaries), on the version branch. Falls back to docs/PRD.md alone for single-version projects. Commit both — they are living documents. Update when decisions or scope change; reference in PRs.

Read the full file on GitHub · 106 lines

Files

What ships with it

4 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. 4d ago First seen · 106 lines · 85 tokens per session scan A 7bf5f62d853f

Subscribe to this mod's changes

spec is a skill published in the GitHub repository int2t05/engineering-skills (3 stars, last pushed 3d ago), licensed MIT. It adds 85 tokens to every session and 1,330 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-31.

Related

Other skills, from other repositories