to-spec

to-spec is a skill for Claude Code 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 Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/astordu/qoderharness/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 astordu/qoderharness --skill to-spec
Clone the repo
git clone --depth 1 https://github.com/astordu/qoderharness

Made for: Claude Code.

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/github.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/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/astordu/qoderharness/to-spec"><img src="https://agentmods.dev/badge/skills/astordu/qoderharness/to-spec.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.5 $0.00016 $0.00318
Sonnet 5.5 $0.00008 $0.00159
Haiku 4.5 $0.00004 $0.00080

Measured 1mo ago against content hash 85e7c3ea1395, 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 1mo 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. 1mo 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 (38 stars, last pushed 23d ago), licensed MIT. It adds 41 tokens to every session and 795 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-08-30.