Agent skill
Requirements Definition
This skill should be used when the user asks to "define requirements", "create specification", "clarify requirements", "write requirements document", or mentions requirement analysis. Provides comprehensive requirements definition methodology.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/requirements-definition-motoki317-dotfiles-2
SKILL.md
Requirements Definition
Methodology for requirements definition ensuring comprehensive specification before implementation.
Investigation Workflow
- Directory structure - Glob
- Symbol analysis - get_symbols_overview
- Keyword search - Grep or find_symbol
- Dependency mapping - find_referencing_symbols
- Specific content - Read
- Latest API docs - Context7
Question Scoring
Score each unclear requirement (1-5 each):
| Criterion | Description |
|---|---|
| Design Branching | How much does answer affect design? |
| Irreversibility | How difficult to change after implementation? |
| Investigation Impossibility | Cannot determine through code alone? |
| Effort Impact | How much affects implementation effort? |
Critical questions (score >= 15): Must answer before proceeding.
Example:
Question: "Should we use TypeScript's strict mode?"
- Design Branching: 5
- Irreversibility: 4
- Investigation Impossibility: 3
- Effort Impact: 4
Total: 16 (critical)
Question Types
- Spec confirmation: "Does API return null or empty array?"
- Design choice: "REST or GraphQL?"
- Constraint: "Must support IE11?"
- Scope: "Include admin features in v1?"
- Priority: "Which feature first?"
Functional Requirements Format
FR-001: User Authentication
Priority: mandatory
- Users can log in with email/password
- Session expires after 24h inactivity
- Failed logins rate-limited (max 5/hour)
Non-Functional Requirements
Performance:
- API response < 200ms (95th percentile)
- Support 1000 concurrent users
Security:
- AES-256 encryption at rest
- JWT authentication
Maintainability:
- Test coverage >= 80%
- Documentation for public APIs
Technical Specifications
Design Decision: Use React Query for data fetching
Rationale:
- Built-in caching
- Auto background refetching
- TypeScript support
- Widely adopted in codebase
Impact: All API-calling components, test utilities
Quality Metrics
| Metric | 90-100 | 70-89 | 50-69 | <50 |
|---|---|---|---|---|
| Feasibility | Straightforward | Some research | Challenges | Architecture changes |
| Objectivity | All verified | Most verified | Mixed | Mostly assumptions |
Output Structure
- Summary: Request, background, expected outcomes
- Current State: System, stack, patterns
- Functional Requirements: FR-XXX with priority and acceptance criteria
- Non-Functional: Performance, security, maintainability
- Technical Specs: Design decisions with rationale
- Metrics: Feasibility and objectivity scores
- Constraints: Technical and operational
- Test Requirements: Coverage, scenarios, acceptance
- Task Breakdown: Dependencies, phases, handoff
Best Practices
Critical:
- Investigate current state before defining requirements
- Score questions and prioritize high-score (>= 15)
- Distinguish mandatory from optional with rationale
High:
- Document all assumptions when unclear
- Map requirements to test scenarios
- Include rationale for design decisions
Anti-Patterns
| Avoid | Instead |
|---|---|
| Vague requirements | Specific, testable with acceptance criteria |
| Implementation details | Describe what, not how |
| Skipping investigation | Always investigate first |
| Missing constraints | Document all constraints |
| Undefined priorities | Mark mandatory/optional |
Constraints
Must:
- Investigate before concluding
- Ask questions before assuming
- Include (Recommended) option in AskUserQuestion
Avoid:
- Proceeding without answering critical questions
- Justifying user preferences over technical validity
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?