to-spec

to-spec is a skill for Claude Code, Codex from astordu/qoderharness. It costs 41 tokens per session (795 once invoked), scanned A, original, MIT.

A specification-writing skill that turns the current conversation and repository context into a technical product specification and publishes it to the project’s issue tracker. An issue tracker is a system for recording work items, such as GitHub Issues.

In plain words
What is it for?
Use it to document user stories, architecture and interface decisions, test decisions, out-of-scope items, and the code boundaries where the feature should be built and tested.
Why use it?
It gives developers a shared description of the problem, intended behavior, implementation decisions, testing approach, and boundaries before coding begins.

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

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/astordu/qoderharness/to-spec.svg)](https://agentmods.dev/skills/astordu/qoderharness/to-spec)
Your own site
<a href="https://agentmods.dev/skills/astordu/qoderharness/to-spec"><img src="https://agentmods.dev/badge/skills/astordu/qoderharness/to-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 795 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.1 $0.00041 $0.00795
Opus 5 $0.00020 $0.00398
Sonnet 5 $0.00008 $0.00159
Haiku 4.5 $0.00004 $0.00080

Measured 5d ago against content hash 85e7c3ea1395, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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.

.qoder/skills/to-spec/SKILL.md · 76 lines

What it actually says

这个技能获取当前对话上下文以及对代码库的理解,产出一份规格(你可能把这类文档称为 PRD)。不要访谈用户——只综合你已经知道的东西。

issue tracker 与分诊(triage)标签词汇应当已经提供给你——如果没有,运行 /init_goder_harness

流程

  1. 探索仓库以理解代码库当前的状态(如果你还没这么做)。在整份规格中使用项目的领域词汇表词汇,并尊重你所触及区域内的任何 ADR。

  2. 勾画出你打算在其上测试该功能的接缝(seam)。应优先选用现有接缝而非新接缝。使用尽可能高的接缝。如果需要新接缝,就在你能达到的最高点提出。代码库中接缝越少越好——理想数量是一个。

与用户核对这些接缝是否符合他们的预期。

  1. 用下面的模板编写规格,然后把它发布到项目的 issue tracker。打上 ready-for-agent 分诊标签——无需额外分诊。同时打上一个 spec 标签,以便与普通工单区分开来。

问题陈述(Problem Statement)

用户正面临的问题,从用户的视角出发。

解决方案(Solution)

针对该问题的解决方案,从用户的视角出发。

用户故事(User Stories)

一份很长的、带编号的用户故事列表。每条用户故事应采用如下格式:

  1. 作为一名 <角色>,我想要一个 <功能>,以便 <收益>

这份用户故事列表应当极其详尽,覆盖该功能的所有方面。

实现决策(Implementation Decisions)

一份已做出的实现决策列表。可以包括:

  • 将要构建/修改的模块
  • 这些模块中将被修改的接口
  • 来自开发者的技术澄清
  • 架构决策
  • schema 变更
  • API 合约
  • 具体的交互

不要包含具体的文件路径或代码片段。它们可能很快就会过时。

例外:如果某个原型产出了一段比散文能更精确地编码某项决策的代码片段(状态机、reducer、schema、类型形状),就把它内联进相关决策,并简要注明它来自一个原型。裁剪到富含决策的部分——不是一个能运行的演示,只保留重要的片段。

测试决策(Testing Decisions)

一份已做出的测试决策列表。包括:

  • 对什么才是好测试的描述(只测试外部行为,而非实现细节)
  • 哪些模块将被测试
  • 这些测试的先例(即代码库中类似类型的测试)

范围之外(Out of Scope)

对本规格范围之外的事项的描述。

补充说明(Further Notes)

关于该功能的任何补充说明。

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. 5d ago First seen · 76 lines · 41 tokens per session scan A 85e7c3ea1395

Subscribe to this mod's changes

to-spec is a skill published in the GitHub repository astordu/qoderharness (23 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 795 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-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens