skills/requirements-builder/SKILL.md
Progressively gather requirements through automated codebase discovery and yes/no questions, then generate a comprehensive requirements spec. Use when starting a new feature, planning a build, or when you need structured requirements before implementation.
npx skillsauth add skinnyandbald/fish-skills requirements-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Intelligent requirements gathering system that discovers codebase context, asks structured yes/no questions, and generates comprehensive requirements documentation.
Based on claude-code-requirements-builder.
$ARGUMENTS — description of the feature or requirement to gather (e.g., "add user profile photo upload")
Ensure the requirements/ directory exists in the project root:
mkdir -p requirements
touch requirements/.current-requirement
Phase 1: Initial Setup & Codebase Analysis
→ Create timestamped folder, analyze codebase structure
Phase 2: Context Discovery Questions (5 yes/no questions)
→ Ask about problem space, workflows, integrations
Phase 3: Targeted Context Gathering (autonomous)
→ Deep-dive into relevant code, patterns, similar features
Phase 4: Expert Requirements Questions (5 yes/no questions)
→ Ask like a senior dev who knows the codebase
Phase 5: Requirements Documentation
→ Generate comprehensive spec with acceptance criteria
requirements/YYYY-MM-DD-HHMM-[slug]$ARGUMENTS (e.g., "add user profile" → "user-profile")00-initial-request.md with the user's requestmetadata.json with status trackingrequirements/.current-requirement with folder name01-discovery-questions.md with smart defaults02-discovery-answers.md as received and update metadata.json. Not before.## Q1: Will users interact with this feature through a visual interface?
**Default if unknown:** Yes (most features have some UI component)
## Q2: Does this feature need to work on mobile devices?
**Default if unknown:** Yes (mobile-first is standard practice)
03-context-findings.md including:
04-detail-questions.md05-detail-answers.md as received## Q7: Should we extend the existing UserService at services/UserService.ts?
**Default if unknown:** Yes (maintains architectural consistency)
## Q8: Will this require new database migrations in db/migrations/?
**Default if unknown:** No (based on similar features not requiring schema changes)
06-requirements-spec.md:
Show current requirement gathering progress and continue from last unanswered question.
requirements/.current-requirementDisplay detailed information about the active requirement (view-only, doesn't continue gathering).
Shows: initial request, codebase overview, all questions/answers, context findings, current phase, next steps.
Display all requirements with their status and summaries, sorted by active first, then complete, then incomplete.
Finalize the current requirement gathering session. Options:
Quick correction when deviating from requirements gathering rules. Auto-detects:
Each requirement creates this folder structure:
requirements/
.current-requirement # Active requirement folder name
YYYY-MM-DD-HHMM-[slug]/
00-initial-request.md # Original user request
01-discovery-questions.md # Context discovery questions
02-discovery-answers.md # User's answers
03-context-findings.md # AI's codebase analysis
04-detail-questions.md # Expert requirements questions
05-detail-answers.md # User's detailed answers
06-requirements-spec.md # Final requirements document
metadata.json # Status tracking
{
"id": "feature-slug",
"started": "ISO-8601-timestamp",
"lastUpdated": "ISO-8601-timestamp",
"status": "active",
"phase": "discovery|context|detail|complete",
"progress": {
"discovery": { "answered": 0, "total": 5 },
"detail": { "answered": 0, "total": 0 }
},
"contextFiles": ["paths/of/files/analyzed"],
"relatedFeatures": ["similar features found"]
}
# Requirements Specification: [Name]
Generated: [timestamp]
Status: [Complete with X assumptions / Partial]
## Overview
[Problem statement and solution summary]
## Detailed Requirements
### Functional Requirements
[Based on answered questions]
### Technical Requirements
- Affected files: [list with paths]
- New components: [if any]
- Database changes: [if any]
### Assumptions
[List any defaults used for unanswered questions]
### Implementation Notes
[Specific guidance for implementation]
### Acceptance Criteria
[Testable criteria for completion]
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
tools
Verify worktree plugin patches are intact after plugin updates. Checks compound-engineering and superpowers skills for Claude Code launch instructions.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Reviews the feature you just built and adds missing test coverage. Focuses on behavior that matters — not coverage metrics. Use after completing a feature to identify untested code paths, edge cases, and risk areas.