/skills-developer:spec-writingfrom Developer Skills
Turn a vague request into a written spec: scope, non-goals, acceptance criteria and the edge cases that will bite. Use when writing technical specifications, scope, and acceptance criteria.
Ships in Developer Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A technical specification is not an essay or a loose collection of wishes. A spec is a rigorous engineering contract that bridges product requirements with software reality. Great specs clarify exact boundaries, eliminate ambiguity, define non-goals, classify failure modes, and specify verifiable acceptance criteria before a single line of code is written. If an edge case is discovered during implementation, the spec failed to do its job.
{
"error": {
"code": "INVALID_ORGANIZATION_ID",
"message": "Organization does not exist or is suspended",
"details": {}
}
}
Scenario: User reaches free tier project limit
Given an active user on the Free Plan with 3 existing projects
When the user submits a request to create a 4th project
Then the API responds with HTTP 403 Forbidden
And the error payload contains code "QUOTA_EXCEEDED"
And the upgrade paywall modal is returned
SPEC.md)# Technical Specification: [Feature Name]
## 1. Overview & Business Value
- **Author**: [Lead Engineer] | **Status**: [Draft / In Review / Approved]
- **Target Release**: [vX.Y.Z]
- **Problem Statement**: [Why this feature must exist]
- **Target Persona**: [Who will use this]
## 2. Explicit Non-Goals
- Will NOT support [Feature X] in v1.
- Will NOT migrate legacy records prior to 2025.
## 3. Data Models & API Contracts
### Database Schema
```sql
CREATE TABLE audit_logs (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
org_id UUID NOT NULL REFERENCES organizations(id) ON DELETE CASCADE,
actor_id UUID NOT NULL REFERENCES users(id),
action VARCHAR(64) NOT NULL,
metadata JSONB NOT NULL DEFAULT '{}',
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX idx_audit_logs_org_created ON audit_logs(org_id, created_at DESC);
POST /api/v1/audit-logs{"action": "string", "metadata": "object"}org_id.Idempotency-Key header; cached in Redis for 24h.Idempotency-Key on duplicate request returns 400.
---
## Worked Example: Specifying an Idempotent Payment API
- **Challenge**: Network jitter caused mobile users to double-click payment buttons, resulting in duplicate charges.
- **Spec Solution**: Mandated an `Idempotency-Key` header stored in Redis with atomic `SET NX EX 86400`.
- **Verification**: Gherkin test simulated 50 concurrent requests with identical idempotency keys; confirmed exactly 1 charge was processed and 49 received cached 200 responses.
---
## Verification Checklist
- [ ] Problem statement clearly articulates user pain without prescribing solutions.
- [ ] Explicit non-goals list defines the project perimeter.
- [ ] Data models and API contracts provide exact schemas and status codes.
- [ ] Concurrency, failure modes, and race conditions have documented mitigations.
- [ ] Acceptance criteria follow Given-When-Then format for automated test translation.
---
## Anti-Patterns
- **The Hand-Waving Spec**: Writing "The backend will handle syncing securely and reliably" without defining protocols or error codes.
- **Missing Non-Goals**: Allowing stakeholders to continuously add requirements during sprints because boundaries were never set.
- **Untestable Criteria**: Writing vague acceptance criteria like "The system should be fast and intuitive."
What SKILL.md sets; muted values are Claude Code's defaults
skills-developer@skillary is listed by poorvith-mp/skillary — review the source before installing
npx claudepluginhub poorvith-mp/skillary --plugin skills-developer135 skills in this plugin
/accessibility-engineerMoved to accessibility-fix in skills-developer. Removed in v4.1./accessibility-fixAudit and refactor code for WCAG 2.1/2.2 AA and AAA: ARIA, keyboard operability, screen readers. Use when auditing or remediating WCAG 2.1/2.2 AA/AAA accessibility issues./ai-data-remediation-engineerMoved to data-pipelines in skills-developer. Removed in v4.1./ai-engineerMoved to ml-deployment in skills-developer. Removed in v4.1.