
spec-writing
Creates clear, testable specifications from feature descriptions with user stories. Use when starting a new feature and needing a spec before planning.
- Installs
- 114
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/athola/claude-night-market --skill spec-writing- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads spec-writing automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Spec Writing
Overview
Create clear, complete, and testable specifications from natural language feature descriptions. Specifications focus on user value and business needs, avoiding implementation details.
When To Use
- Creating new feature specifications
- Refining existing specifications
- Writing user stories and acceptance criteria
- Defining success criteria
When NOT To Use
- Generating implementation tasks - use task-planning
Core Principles
Focus on user value and business needs rather than implementation details. Avoid specifying technology choices in requirement definitions unless strictly necessary. Ensure every requirement is testable and verifiable with measurable criteria. Limit clarification markers; make informed assumptions based on industry standards and document them explicitly.
Specification Structure
Mandatory Sections
- Overview/Context: What problem does this solve?
- User Scenarios: Who uses it and how?
- Functional Requirements: What must it do?
- Success Criteria: How do we know it works?
Optional Sections
- Success Criteria (when performance/security critical)
- Edge Cases (when special handling needed)
- Dependencies (when external systems involved)
- Assumptions (when decisions made with incomplete info)
See: modules/specification-structure.md for detailed templates and guidelines
Quality Checklist
- No implementation details present
- Requirements are testable and unambiguous
- Success criteria are measurable
- User scenarios cover primary flows
- Edge cases identified
- Scope clearly bounded
Success Criteria Quick Reference
Good (User-focused, Measurable, Technology-agnostic)
- "Users complete checkout in under 3 minutes"
- "System supports 10,000 concurrent users"
- "95% of searches return results in under 1 second"
Bad (Implementation-focused, Internal metrics)
- "API response time under 200ms" -> Use: "Pages load in under 2 seconds"
- "Redis cache hit rate above 80%" -> Use: "Frequently accessed data loads with no noticeable delay"
- "React components render efficiently" -> Use: "UI updates appear with no visible frame drops"
See: modules/success-criteria-patterns.md for detailed examples and conversion process
Related Skills
speckit-orchestrator: Workflow coordinationtask-planning: Converting specs to tasks
Troubleshooting
Common Issues
If specifications are too vague, use the success-criteria-patterns
module to enforce measurable outcomes. If implementation details leak
into specs, review against the "Core Principles" and refactor to focus
on user behavior.
Exit Criteria
- Spec document contains all 4 mandatory sections: Overview/Context, User Scenarios, Functional Requirements, and Success Criteria
- All success criteria are user-focused and measurable (e.g. "Users complete checkout in under 3 minutes") not implementation metrics (e.g. "API response under 200ms")
- Quality checklist passes: no implementation details present, requirements unambiguous, edge cases identified, scope bounded
- No technology choices appear in requirements unless the spec explicitly marks them as strictly necessary constraints
- Each functional requirement has at least one testable acceptance criterion that can be verified from outside the system
FAQ
What does the spec-writing skill do?
Creates clear, testable specifications from feature descriptions with user stories. Use when starting a new feature and needing a spec before planning.
How do I install spec-writing?
Run npx skills add https://github.com/athola/claude-night-market --skill spec-writing in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/spec-writing/ (personal) or .claude/skills/spec-writing/ (project).
Which AI agents can use spec-writing?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is spec-writing safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains spec-writing?
It is published by athola in athola/claude-night-market. It has 114 recorded installs.
More from athola/claude-night-market
project-planning
athola/claude-night-market
Converts a specification into a phased, dependency-ordered implementation plan. Use after specification is complete and before execution begins.
slop-detector
athola/claude-night-market
Detects AI-generated writing patterns in prose. Use when reviewing docs for slop, vague language, or identity leaks before publishing.
code-quality-principles
athola/claude-night-market
Applies KISS, YAGNI, and SOLID principles for clean code with reduced complexity. Use when refactoring or reviewing code for over-engineering.
bloat-detector
athola/claude-night-market
Detects codebase bloat via dead code, duplication, complexity, and doc bloat scans. Use when codebase feels large or before a release.
doc-generator
athola/claude-night-market
Generates or remediates documentation with human-quality writing. Use when creating new docs, rewriting AI-generated content, or applying style profiles.
project-brainstorming
athola/claude-night-market
Guides project ideation via Socratic questioning to produce a validated brief. Use before specification when requirements are unclear.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.