To Spec

pandoscope/skills/derived/to-spec

作者 pandoscope925fe390437f无许可证1 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Turn the current conversation into a spec published to the project tracker — no interview, just synthesis of what was already discussed.

仅含说明AI & Agents
AI 生成的概览

把当前对话整理成自包含的规格说明(PRD),并发布到项目跟踪系统。

功能
它综合已有对话和代码库理解来生成规格文档,而不是向用户提问。它会浏览代码库、勾勒测试接缝,并按固定模板撰写规格,涵盖问题陈述、解决方案、用户故事、实现决策、测试决策、范围之外和补充说明。它还会应用自包含性检验,将难以逆转的决策记录为 ADR,并以 ready-for-agent 标签发布到消费方仓库的跟踪系统。
适用场景
适用于讨论已经完成、需要整理成书面规格或 PRD 的场景。它适合要求规格可被任何实现者复现的工程流程,并且需要已有质询环节或明确确认跳过该环节。
运行要求
仅包含指令,没有脚本。依赖仓库访问权限和消费方仓库 AGENTS.md 中的跟踪系统约定,以及可选的配套技能和文档,如 writing-prose、writing-adrs、docs/glossary 和 uvx disambiguate 命令。

To Spec

Produce spec (aka PRD) from current conversation + codebase understanding. Do NOT interview user — synthesize what you already know.

Reproducibility invariant

Spec — and tickets later derived from it — must be self-contained: replayed by any implementer, human or agent, builds roughly same application. Every outcome-shaping decision lives in spec itself, or durable docs it references — ADRs (writing-adrs), glossary terms (docs/glossary/). Never conversation context, tribal knowledge, implementer discretion.

Litmus test: two independent implementers could build meaningfully different things → spec underspecified. Add decision to spec, or record as ADR/glossary term + reference.

Grilling gate

Spec is load-bearing. No grilling session (docs/glossary/grilling-session.md) in context → stop, ask user: "No grilling session found — really skip?" Proceed only on explicit confirmation; note skip in Further Notes.

Process

  1. Explore repo if not already done. Use glossary vocabulary (uvx disambiguate <term>) throughout; respect ADRs in touched area.

  2. Sketch seams for testing the feature. Prefer existing seams; new seams at highest point possible. Fewer seams better — ideal is one.

    Check seams with user.

  3. Write spec per template — written and checked with the writing-prose skill if available, surface ticket; precision and understandability must not suffer. Apply litmus test to every section, publish per consumer repo's tracker conventions (AGENTS.md). Apply ready-for-agent label — no further triage.

Spec template:

markdown
## Problem Statement
Problem, from user's perspective.
## Solution
Solution, from user's perspective.
## User Stories
LONG numbered list: "As an <actor>, I want <feature>, so that <benefit>".Example: "As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending."Extremely extensive — cover all aspects.
## Implementation Decisions
Decisions made: modules built/modified, interfaces, technical clarifications, architecture, schema changes, API contracts, specific interactions.
Hard-to-reverse or surprising decisions → also record as ADR (`writing-adrs`) + reference. Decision only in conversation, not listed here → fails litmus test — write it down.
No file paths/code snippets — stale fast. Exception: prototype snippet encoding a decision more precisely than prose (state machine, reducer, schema, type shape) → inline within relevant decision, note prototype origin, trim to decision-rich parts.
## Testing Decisions
What makes a good test (external behavior only, not implementation details), which modules tested, prior art in codebase.
## Out of Scope
What this spec excludes.
## Further Notes
Anything else.

来源与署名

来源:pandoscope/skills位于derived/to-spec提交925fe39

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架