to-spec

to-spec is a skill for Claude Code, Codex from frankxai/claude-skills-library. It costs 62 tokens per session (699 once invoked), scanned A, original, MIT.

A specification-writing workflow that turns decisions already made in a conversation into a GitHub issue, a task record for a software project.

In plain words
What is it for?
It helps create or update a product-repository issue with the problem, desired outcome, user stories, decisions, and testing approach.
Why use it?
It avoids repeating the discussion and prevents the next person from having to reconstruct decisions from a chat transcript. Missing decisions are listed instead of guessed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create or update a product-repository issue with the problem, desired outcome, user stories, decisions, and testing approach.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frankxai/claude-skills-library/to-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.

Any agent
npx skills add frankxai/claude-skills-library --skill to-spec
Clone the repo
git clone --depth 1 https://github.com/frankxai/claude-skills-library

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 to-spec

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/to-spec"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/to-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 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.00062 $0.00699
Opus 5.5 $0.00025 $0.00280
Sonnet 5.5 $0.00012 $0.00140
Haiku 4.5 $0.00006 $0.00070

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

Security

Grade A, and why

to-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 17d 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.

absorbed/engineering/to-spec/SKILL.md · 58 lines

How it starts

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

To spec

The conversation already holds the decisions. This skill writes them down once, in the product repo's issue tracker, so the next agent picks up a spec instead of a transcript. It does not ask new questions; if a decision is missing, it is listed as open.

Before writing

  1. Pick the repo. The product repo that will change, verified by path, git rev-parse --show-toplevel and origin. Never the estate root. Linear is archive unless the user asks for it.
  2. Check for an existing issue. gh issue list -R <owner/repo> --search "<keywords>". If one tracks this slice, comment the spec there instead of opening a duplicate.
  3. Read the area. Use the repo's own vocabulary and respect any ADR that covers it.
  4. Name the test seam. Prefer an existing seam, as high as possible, ideally one. Say it back to the user in one line and continue unless they object.

The issue body

## Problem
What the user faces, in their words.

## Outcome
What is true when this ships, from the user's side.

## User stories
1. As a <actor>, I want <capability>, so that <benefit>.
(Enough to cover the feature, including the failure and empty states.)

## Decisions
Modules touched, interface changes, schema or API contracts, and anything the user decided.
No file paths or code: they rot. Exception: a short prototype snippet that pins a state machine, schema or type more precisely than prose, marked as coming from a prototype.

## Testing
What a good test checks here (behaviour, not internals), which modules get tests, and the prior art in this repo.

## Open
Each decision still missing, tagged [OPEN]. Never fill one with a guess.

## Out of scope
What this does not do.

Rules

  • Prose follows the humanizer rules: plain words, no inflated claims, no decorative bold.
  • Claims about numbers or live state carry [MEASURED <method> <date>] or [OPEN].
  • Anything that touches money, auth, data or schema, DNS, legal or external sends is labelled as needing Frank's approval in the Decisions section.
  • Label the issue with the repo's ready label if it has one (for example ready-for-agent); do not invent labels.
  • Reply with the issue URL and one line on what it covers.

Read the full file on GitHub · 58 lines

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. 17d ago First seen · 58 lines · 62 tokens per session scan A 18de6b9342b0

Subscribe to this mod's changes

to-spec is a skill published in the GitHub repository frankxai/claude-skills-library (51 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 699 once invoked, about $0.0002 per session on Opus 5.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-11-13.

Related

to-spec compared with skills from other repositories

to-spec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
to-specfrankxai/claude-skills-librarySkill51todayMITA62Claude Code, Codex
token-saverchidekina/aria-superpowersSkill21mo agononeC85Claude Code, Codex
wayfindervinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA40Claude Code, Codex
scaffold-exercisesvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA46Claude Code, Codex
domain-modelingvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA38Claude Code, Codex
migrate-to-shoehornvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA53Claude Code, Codex
ask-mattvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA28Claude Code, Codex