write-spec

write-spec is a skill for Claude Code, Codex from tranfu-labs/tranfu-skills. It costs 54 tokens per session (3,111 once invoked), scanned A, a copy of write-spec, MIT.

A guide for turning a vague software idea or request into a structured product requirements document, or PRD.

In plain words
What is it for?
Use it to write feature specifications, define scope, create user stories, and document acceptance criteria.
Why use it?
It helps clarify goals, non-goals, user needs, acceptance checks, and priorities before development begins.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../CONNECTORS.md)..

Good fit Use it to write feature specifications, define scope, create user stories, and document acceptance criteria.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tranfu-labs/tranfu-skills
agentmods
npx agentmods add skills/tranfu-labs/tranfu-skills/write-spec

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tranfu-labs/tranfu-skills/write-spec"><img src="https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/write-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,111 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 95% copy Near-identical to another mod 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.00054 $0.03111
Opus 5 $0.00027 $0.01555
Sonnet 5 $0.00011 $0.00622
Haiku 4.5 $0.00005 $0.00311

Measured 6d ago against content hash b1ca06ef0c4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

write-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 6d 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.

Origin

This is a copy

95% identical to write-spec — 24 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

own-skills/write-spec/SKILL.md · 273 lines

How it starts

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

Write Spec

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Write a feature specification or product requirements document (PRD).

同类 Skill 对比

由 publish-skill 起草, 推荐者签字. 帮助阅读者横向决定要装哪个 / 跳到更合适的同类.

公司库内

  • openspec — 多轮迭代项目用 propose→apply→archive 管理变更规范; 本 skill 区别: write-spec 从零生成单次 PRD,openspec 管理已有项目的持续规范演化

外部世界

  • prd (snarktank) — 通过问答生成 PRD; 本 skill 区别: write-spec 含完整 MoSCoW 分级框架和 acceptance criteria 模板,输出更结构化
  • prd-generator (jamesrochabrun) — PM 导向的 PRD 生成; 本 skill 区别: write-spec 内置 scope creep 防护和 non-goals 强制段,面向工程+产品双角色

本 skill 独特价值

  • 输出含 P0/P1/P2 分级 + Given/When/Then 验收标准
  • 内置 non-goals 段防止 scope creep
  • 支持从模糊一句话到完整 PRD 的渐进引导

Usage

/write-spec $ARGUMENTS

Workflow

1. Understand the Feature

Ask the user what they want to spec. Accept any of:

  • A feature name ("SSO support")
  • A problem statement ("Enterprise customers keep asking for centralized auth")
  • A user request ("Users want to export their data as CSV")
  • A vague idea ("We should do something about onboarding drop-off")

2. Gather Context

Ask the user for the following. Be conversational — do not dump all questions at once. Ask the most important ones first and fill in gaps as you go:

  • User problem: What problem does this solve? Who experiences it?
  • Target users: Which user segment(s) does this serve?
  • Success metrics: How will we know this worked?
  • Constraints: Technical constraints, timeline, regulatory requirements, dependencies
  • Prior art: Has this been attempted before? Are there existing solutions?

3. Pull Context from Connected Tools

If ~~project tracker is connected:

  • Search for related tickets, epics, or features
  • Pull in any existing requirements or acceptance criteria
  • Identify dependencies on other work items

Read the full file on GitHub · 273 lines

Files

What ships with it

5 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. 6d ago First seen · 273 lines · 54 tokens per session scan A b1ca06ef0c4d

Subscribe to this mod's changes

write-spec is a skill published in the GitHub repository tranfu-labs/tranfu-skills (2 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 3,111 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to write-spec, differing in 24 lines, and is treated as a copy.

Related

Other skills, from other repositories

recipe-create-meet-space

Create a Google Meet meeting space and share the join link.

googleworkspace/cli · 18 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

atmos-config

Atmos root configuration: atmos.yaml discovery, precedence, deep merging, basepath, imports, minimal bootstrap, and routing to narrower Atmos skills.

cloudposse/atmos · 31 tokens

story-readiness

Validate that a story file is implementation-ready. Checks for embedded GDD requirements, ADR references, engine notes, clear acceptance criteria, and no open design questions. Produces READY / NEEDS WORK / BLOCKED verdict with specific gaps. Use when user says 'is this story ready', 'can I start on this story', 'is…

Donchitos/Claude-Code-Game-Studios · 77 tokens

autotask-creator

Rules for automation CRUD from the group-chat commander. The commander does not call mutation tools and does not edit cloud/autotasks files directly. It emits one or more top-level ... containers in its final text; the bus parses and applies them after the turn.

Orkas-AI/Orkas · 5 tokens

projects

List all managed projects with status, branch, open PRs, and open issue counts — portfolio-level view.

me2resh/apexyard · 24 tokens