spec-creator
Create, update, or review engineering-grade technical specifications for a codebase, following spec-driven development (SDD) conventions. Use whenever the user asks for a spec, requirements or design doc, feature specification, API contract, data model, or wants a feature planned on paper before implementation — including phrases like "write a spec for X", "draft the spec first", "update the specs", or any spec-first workflow (e.g. with Ralph). Produces implementation-ready, testable specs using the bundled SPEC_TEMPLATE.md.
- License 许可
- MIT
- 所属仓库
- iyaki/specralph
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- spec-creator
- description
- Create, update, or review engineering-grade technical specifications for a codebase, following spec-driven development (SDD) conventions. Use whenever the user asks for a spec, requirements or design doc, feature specification, API contract, data model, or wants a feature planned on paper before implementation — including phrases like "write a spec for X", "draft the spec first", "update the specs", or any spec-first workflow (e.g. with Ralph). Produces implementation-ready, testable specs using the bundled SPEC_TEMPLATE.md.
02 资源文件 1
- 参考文档SPEC_TEMPLATE.md2.7 KB
03 SKILL.md 正文
Spec Authoring
Purpose
Produce detailed, engineering-grade specifications similar in depth and structure to a full platform spec. The output must be explicit, testable, and implementation-ready without needing back-and-forth clarification. Specs state intended behavior — what the system must do and why — and leave how to implementation.
Core Principles
- State intent clearly and early.
- Define scope and non-scope to avoid ambiguity.
- Make every requirement verifiable.
- Prefer concrete examples over vague descriptions.
- Use consistent naming and types across the document.
- Include failure modes and edge cases.
- Avoid assumptions; write them down.
- Define canonical data models in a single spec and reference them elsewhere to prevent duplication.
- Describe intended, observable behavior: what the system must do, not how it does it.
- Keep implementation details out of the spec: no algorithms, file/package layouts, or internal design choices.
- Never reference source code: no file paths, no function, class, or module names, no code snippets from the codebase.
- Give the why: justify decisions and constraints so implementers understand the intent behind them.
Required Structure
See the SPEC_TEMPLATE.md for a template with detailed section descriptions and writing guidelines.
Follow this structure exactly, but customize content to the project.
Writing Rules
- Use precise, plain english language.
- Prefer tables for enums, options, or matrices.
- Describe requirements as intended behavior: given X, the system must Y — including error and edge cases.
- Write what and why, never how: justify decisions and constraints; leave algorithms, file/package organization, and library choices to implementation.
- Never reference source code artifacts: no file paths, no function, class, or module names, no code snippets.
- Include code blocks only to illustrate examples (inputs, outputs, commands, data formats); never source code.
- Keep naming consistent across entities, APIs, and SDKs.
- If a behavior depends on policy, state it explicitly.
- If a data model is shared across domains, treat one spec as the source of truth and reference it rather than re-defining it.
Output Quality Checklist
Before finalizing, confirm:
- Scope is explicit and non-goals are listed.
- All core entities and relationships are defined.
- Every endpoint has auth and payloads.
- All critical workflows are described step-by-step.
- Security and permissions are not implicit.
- At least one example is given for each major section.
- Every requirement reads as intended, observable behavior (what and why).
- No implementation details and no source-code references remain.
Related docs
When the new spec is complete, update specs/README.md to include it in the list of available specs.
04 同仓库更多 Skills
commands
暂无简介
specralph-prompts
Author, install, and validate custom prompt files for specralph (the ralph CLI agentic loop runner). Use this skill whenever creating or editing ralph prompt files, preparing tasks to run with ralph run, writing prompts that must stop the loop via the completion signal, or debugging a ralph loop that never stops or stops too early.
specralph-prompts
暂无简介
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
agent-spec-creation
Create or update agent integration specs before implementation. Use this whenever a request is about defining how a new or existing agent should behave in Ralph.
agent-implementation
Implement or update support for an underlying agent CLI in Ralph after specs are defined, including factory wiring and tests.