[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Z03NXAMV0MF4V7F5NB1XH":3,"skill-same:01M72Z03NXAMV0MF4V7F5NB1XH":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M72Z03NXAMV0MF4V7F5NB1XH","specification-techniques",null,"Master techniques for writing clear, complete product specifications and requirements documents (PRDs). Use when defining feature requirements, writing user stories, creating acceptance criteria, documenting API specifications, aligning cross-functional teams, reducing ambiguity, covering edge cases, or translating product vision into actionable development tasks. Covers PRD structure, user story formats (INVEST, 3Cs, Given-When-Then), Jobs-to-be-Done, use cases, non-functional requirements, and specification best practices.","enigmaicon-eng\u002FAI-Enterprise-OS","enigmaicon-eng","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F269773191?v=4","01M72YXXYN7Q7BYRHV8RAVYNWD","01M72YXXZPW35H56D6F1XSK84D",2,"MIT","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: specification-techniques\ndescription: Master techniques for writing clear, complete product specifications and requirements documents (PRDs). Use when defining feature requirements, writing user stories, creating acceptance criteria, documenting API specifications, aligning cross-functional teams, reducing ambiguity, covering edge cases, or translating product vision into actionable development tasks. Covers PRD structure, user story formats (INVEST, 3Cs, Given-When-Then), Jobs-to-be-Done, use cases, non-functional requirements, and specification best practices.\n---\n\n# Specification Techniques\n\nStructured methods for translating product vision into clear, actionable requirements that align teams, reduce ambiguity, and enable successful execution.\n\n## Overview\n\nSpecification techniques help you answer \"what\" and \"why\" clearly while leaving \"how\" flexible for the team to determine. They create shared understanding without being prescriptive about implementation.\n\n**Core Principle:** The value of specifications isn't in comprehensive documentation—it's in the conversations and shared understanding they create. A 3-sentence user story that everyone understands is better than a 30-page spec no one reads.\n\n**Origin:** Modern specification techniques evolved from software engineering (Karl Wiegers), agile methodologies (Mike Cohn), and design thinking (Alan Cooper).\n\n**Key Insight:** Good specifications enable teams to build the right thing, while bad specifications constrain teams and lead to rework.\n\n---\n\n## When to Use This Skill\n\n**Auto-loaded by agents**:\n\n- `requirements-engineer` - For PRDs, user stories, acceptance criteria, and NFRs\n\n**Use when you need to**:\n\n- Write product requirements documents (PRDs)\n- Create user stories with acceptance criteria\n- Define feature requirements clearly\n- Document edge cases and error handling\n- Specify non-functional requirements (performance, security)\n- Align cross-functional teams on scope\n- Translate product vision into development tasks\n\n---\n\n## Product Requirements Documents (PRDs)\n\n### Core Structure\n\nA well-structured PRD contains:\n\n1. **Overview** - Problem, goals, non-goals, success metrics\n2. **Background** - Context, user research, competitive analysis\n3. **User Personas** - Primary\u002Fsecondary users, use cases\n4. **Requirements** - Functional and non-functional requirements\n5. **User Experience** - Flows, wireframes, interaction details\n6. **Technical Considerations** - Architecture, APIs, performance\n7. **Success Criteria** - Launch criteria, key metrics\n8. **Timeline & Resources** - Milestones, team, risks\n\n**Complete Template:** See `assets\u002Fprd-structure-template.md` for full PRD structure with examples and best practices.\n\n---\n\n### Essential PRD Components\n\n**Problem Statement:**\n\n```\nWhat: Clear description of the problem\nWho: Who experiences this problem\nImpact: Business\u002Fuser impact with data\nCurrent: What users do today\n```\n\n**Goals and Non-Goals:**\n\n- **Goals:** What you want to achieve (measurable)\n- **Non-Goals:** What you're explicitly not doing (sets boundaries)\n\n**Success Metrics:**\n\n- Specific, measurable outcomes\n- Baseline → Target values\n- Timeline for achievement\n\n**Example:**\n\n```\nProblem: Users miss critical alerts when not in app, leading to 40% missed events.\n\nGoal: Reduce missed alerts from 40% to \u003C15% via email notifications.\n\nNon-Goals:\n- SMS notifications (future scope)\n- Customizable notification frequency (v1: fixed)\n\nSuccess Metrics:\n- 60% opt-in to email notifications\n- 25% reduction in missed alerts\n- \u003C2% unsubscribe rate\n```\n\n---\n\n## User Stories\n\n### The Standard Format\n\n```\nAs a [user type]\nI want [capability]\nSo that [benefit]\n```\n\n**Purpose:** Placeholder for conversation, not complete specification.\n\n**Example:**\n\n```\nAs a project manager\nI want to assign tasks to team members\nSo that everyone knows their responsibilities\n```\n\n---\n\n### INVEST Criteria\n\nFramework for evaluating user story quality (Mike Cohn):\n\n- **I - Independent:** Can be developed in any order\n- **N - Negotiable:** Details flexible, not a contract\n- **V - Valuable:** Delivers user or business value\n- **E - Estimable:** Team can estimate effort\n- **S - Small:** Fits within one sprint (1-5 days)\n- **T - Testable:** Clear acceptance criteria\n\n**Complete Guide:** See `references\u002Fuser-story-writing-guide.md` for detailed explanations, examples, and story splitting patterns.\n\n**Template:** See `assets\u002Fuser-story-template.md` for comprehensive user story template with INVEST checklist.\n\n---\n\n### The 3 Cs Framework (Ron Jeffries)\n\n**Card:** Brief story description (placeholder)\n**Conversation:** Discuss details during planning\u002Frefinement (most important)\n**Confirmation:** Acceptance criteria (how to verify done)\n\n**Key Insight:** The conversation is more valuable than the written artifact.\n\n---\n\n## Acceptance Criteria\n\n### Three Formats\n\n**Format 1: Given-When-Then (Gherkin\u002FBDD)**\n\n```\nGiven [precondition\u002Fcontext]\nWhen [action\u002Fevent]\nThen [expected outcome]\nAnd [additional outcome]\n```\n\n**Best for:** Behavior-driven development, sequential workflows, automated testing\n\n**Example:**\n\n```\nGiven I am on the login page\nWhen I enter valid credentials and click \"Login\"\nThen I am redirected to my dashboard\nAnd I see a welcome message with my name\n```\n\n---\n\n**Format 2: Checklist Style**\n\n```\nAcceptance Criteria:\n- [ ] Criterion 1\n- [ ] Criterion 2\n- [ ] Criterion 3\n```\n\n**Best for:** Simple features, independent criteria, non-sequential requirements\n\n**Example:**\n\n```\n- [ ] User can upload JPG, PNG, GIF files\n- [ ] Maximum file size is 10MB\n- [ ] Upload progress bar shows percentage\n- [ ] Error shown if file too large\n```\n\n---\n\n**Format 3: Example-Based**\n\n```\nScenario: [Description]\nInput: [What user provides]\nOutput: [What system produces]\n```\n\n**Best for:** Complex calculations, validation rules, data transformations\n\n**Example:**\n\n```\nScenario 1: Valid email\nInput: user@example.com\nOutput: Email accepted\n\nScenario 2: Missing @ symbol\nInput: userexample.com\nOutput: Error \"Email must include @ symbol\"\n```\n\n**Complete Guide:** See `references\u002Facceptance-criteria-guide.md` for comprehensive guide to writing testable acceptance criteria with all three formats, examples, and best practices.\n\n---\n\n## Job Stories (Jobs-to-be-Done)\n\n### Format\n\n```\nWhen [situation\u002Fcontext]\nI want to [motivation]\nSo I can [expected outcome]\n```\n\n**Difference from User Stories:**\n\n- Focuses on context\u002Fsituation (not persona)\n- Emphasizes motivation (not implementation)\n- Better for discovering underlying needs\n\n**Example:**\n\n```\nWhen I'm in a meeting and need to reference previous discussions\nI want to quickly search message history by keyword\nSo I can find relevant context without disrupting the meeting flow\n```\n\n**Complete Template:** See `assets\u002Fjob-story-template.md` for detailed job story structure, examples, and when to use vs. user stories.\n\n---\n\n## Use Cases\n\n### Structure\n\nDetailed interaction scenarios documenting step-by-step system behavior.\n\n**Components:**\n\n- Primary actor and goal\n- Preconditions and postconditions\n- Main success scenario (happy path)\n- Alternative flows (variations)\n- Exception flows (error handling)\n\n**Example Structure:**\n\n```\nUse Case: User Registers for Account\n\nPrimary Actor: New user\nGoal: Create account to access platform\n\nMain Success Scenario:\n1. User enters email, password, name\n2. System validates inputs\n3. System creates account\n4. System sends verification email\n5. User clicks verification link\n6. System activates account\n```\n\n**Complete Template:** See `assets\u002Fuse-case-template.md` for comprehensive use case template with examples of alternative flows, exception handling, and special requirements.\n\n---\n\n## Edge Cases and Error Handling\n\n### Systematic Coverage\n\nDocument behavior for:\n\n**1. Input Validation** - Empty inputs, special characters, invalid formats\n**2. Permissions** - Unauthenticated, insufficient privileges, expired sessions\n**3. State Handling** - Empty state, loading state, error state, full state\n**4. Boundary Conditions** - Zero, one, maximum, just over maximum\n**5. Time-Based** - Expired tokens, time zones, scheduling\n**6. Network Issues** - Timeouts, server errors, rate limiting\n\n**Example:**\n\n```\nError Scenario: Payment fails due to insufficient funds\n\nUser Experience:\n- Error message: \"Payment declined - insufficient funds. Please use a different payment method.\"\n\nSystem Behavior:\n- Transaction rolled back\n- User not charged\n- Order not created\n- Error logged\n\nRecovery Action:\n- User can update payment method and retry\n```\n\n**Complete Checklist:** See `assets\u002Fedge-case-checklist.md` for systematic 100+ point checklist covering all edge case categories with examples and error handling templates.\n\n---\n\n## Non-Functional Requirements\n\n### Key Categories\n\n**Performance Requirements:**\n\n- Response time (page loads, API calls)\n- Throughput (requests per second)\n- Scalability (concurrent users, data volume)\n\n**Security Requirements:**\n\n- Authentication (MFA, password policies)\n- Authorization (RBAC, least privilege)\n- Data protection (encryption, GDPR compliance)\n\n**Reliability Requirements:**\n\n- Availability (uptime %)\n- Data integrity (backups, recovery)\n- Fault tolerance (failover, retries)\n\n**Accessibility Requirements:**\n\n- WCAG 2.1 compliance\n- Keyboard navigation\n- Screen reader compatibility\n\n**Example:**\n\n```\nPerformance: Page loads in \u003C2 seconds (p95)\nSecurity: All PII encrypted at rest (AES-256)\nReliability: 99.9% uptime (max 8.7 hours downtime\u002Fyear)\nAccessibility: WCAG 2.1 Level AA compliant\n```\n\n**Complete Template:** See `assets\u002Fnon-functional-requirements-template.md` for comprehensive NFR documentation covering all categories with specific metrics and verification methods.\n\n---\n\n## Specification Best Practices\n\n### Start with Why\n\nAlways begin with problem statement before jumping to solutions:\n\n**Problem Statement Template:**\n\n```\nProblem: [What problem exists?]\nImpact: [Who is affected and how?]\nEvidence: [Data, research, user quotes]\nGoal: [What would success look like?]\n```\n\n---\n\n### Be Specific and Measurable\n\n**Vague (Bad):** \"System should be fast\"\n\n**Specific (Good):** \"Page loads in \u003C2 seconds (p95), measured via Lighthouse\"\n\n**Avoid Ambiguous Terms:**\n\n- \"Fast\" → Specific time (\u003C 2 seconds)\n- \"Good\" → Specific criteria\n- \"User-friendly\" → Task completion metrics\n- \"Secure\" → OWASP Top 10 compliant\n\n---\n\n### Cover Happy and Unhappy Paths\n\n**Happy Path:** Successful scenario\n\n**Unhappy Paths:**\n\n- Error cases (invalid input, permission denied)\n- Edge cases (boundary conditions, rare scenarios)\n- Network failures (timeouts, service down)\n\n**Example:**\n\n```\nHappy: User logs in with valid credentials → Dashboard\nError: User enters wrong password → Error message, stay on login\nEdge: Session expires during form entry → Preserve data, re-authenticate\n```\n\n---\n\n### Specify Behavior, Not Implementation\n\n**Too Prescriptive (Bad):**\n\n```\n\"Use Material-UI Autocomplete component with Redux state management\"\n```\n\n**Behavioral (Good):**\n\n```\n\"User can search for other users by name, see suggestions as they type, select one or multiple users. Selection persists across page refreshes.\"\n\nLet engineering decide: component library, state management\n```\n\n---\n\n### Include Visual Aids\n\n**Use diagrams for:**\n\n- User flows\n- State machines\n- Data flows\n- Wireframes\u002Fmockups\n\n**Use examples for:**\n\n- Input validation rules\n- Calculations\n- Data transformations\n\n---\n\n## Anti-Patterns to Avoid\n\n### 1. Solution Masquerading as Problem\n\n**Bad:** \"We need a chatbot on the homepage\"\n\n**Good:**\n\n```\nProblem: 60% of support tickets are basic questions. Users can't find answers quickly.\nExplored solutions: Chatbot, improved search, interactive FAQ\n```\n\n---\n\n### 2. Missing Acceptance Criteria\n\n**Bad:**\n\n```\nAs a user, I want notifications\n```\n\n**Good:**\n\n```\nAs a user, I want email notifications\nSo that I'm aware of critical events\n\nAcceptance Criteria:\n- Given payment fails, when processor returns error, then email sent within 5 minutes\n- Given I'm in settings, when I toggle notifications, then preference saves immediately\n```\n\n**Complete Guide:** See `references\u002Fspecification-anti-patterns.md` for detailed anti-patterns with examples and fixes.\n\n---\n\n## Related Skills\n\n- `prd-templates` - PRD templates and examples\n- `user-story-templates` - User story templates and patterns\n- `user-research-techniques` - Understanding user needs and requirements\n","# Specification Techniques\n\nStructured methods for translating product vision into clear, actionable requirements that align teams, reduce ambiguity, and enable successful execution.\n\n## Overview\n\nSpecification techniques help you answer \"what\" and \"why\" clearly while leaving \"how\" flexible for the team to determine. They create shared understanding without being prescriptive about implementation.\n\n**Core Principle:** The value of specifications isn't in comprehensive documentation—it's in the conversations and shared understanding they create. A 3-sentence user story that everyone understands is better than a 30-page spec no one reads.\n\n**Origin:** Modern specification techniques evolved from software engineering (Karl Wiegers), agile methodologies (Mike Cohn), and design thinking (Alan Cooper).\n\n**Key Insight:** Good specifications enable teams to build the right thing, while bad specifications constrain teams and lead to rework.\n\n---\n\n## When to Use This Skill\n\n**Auto-loaded by agents**:\n\n- `requirements-engineer` - For PRDs, user stories, acceptance criteria, and NFRs\n\n**Use when you need to**:\n\n- Write product requirements documents (PRDs)\n- Create user stories with acceptance criteria\n- Define feature requirements clearly\n- Document edge cases and error handling\n- Specify non-functional requirements (performance, security)\n- Align cross-functional teams on scope\n- Translate product vision into development tasks\n\n---\n\n## Product Requirements Documents (PRDs)\n\n### Core Structure\n\nA well-structured PRD contains:\n\n1. **Overview** - Problem, goals, non-goals, success metrics\n2. **Background** - Context, user research, competitive analysis\n3. **User Personas** - Primary\u002Fsecondary users, use cases\n4. **Requirements** - Functional and non-functional requirements\n5. **User Experience** - Flows, wireframes, interaction details\n6. **Technical Considerations** - Architecture, APIs, performance\n7. **Success Criteria** - Launch criteria, key metrics\n8. **Timeline & Resources** - Milestones, team, risks\n\n**Complete Template:** See `assets\u002Fprd-structure-template.md` for full PRD structure with examples and best practices.\n\n---\n\n### Essential PRD Components\n\n**Problem Statement:**\n\n```\nWhat: Clear description of the problem\nWho: Who experiences this problem\nImpact: Business\u002Fuser impact with data\nCurrent: What users do today\n```\n\n**Goals and Non-Goals:**\n\n- **Goals:** What you want to achieve (measurable)\n- **Non-Goals:** What you're explicitly not doing (sets boundaries)\n\n**Success Metrics:**\n\n- Specific, measurable outcomes\n- Baseline → Target values\n- Timeline for achievement\n\n**Example:**\n\n```\nProblem: Users miss critical alerts when not in app, leading to 40% missed events.\n\nGoal: Reduce missed alerts from 40% to \u003C15% via email notifications.\n\nNon-Goals:\n- SMS notifications (future scope)\n- Customizable notification frequency (v1: fixed)\n\nSuccess Metrics:\n- 60% opt-in to email notifications\n- 25% reduction in missed alerts\n- \u003C2% unsubscribe rate\n```\n\n---\n\n## User Stories\n\n### The Standard Format\n\n```\nAs a [user type]\nI want [capability]\nSo that [benefit]\n```\n\n**Purpose:** Placeholder for conversation, not complete specification.\n\n**Example:**\n\n```\nAs a project manager\nI want to assign tasks to team members\nSo that everyone knows their responsibilities\n```\n\n---\n\n### INVEST Criteria\n\nFramework for evaluating user story quality (Mike Cohn):\n\n- **I - Independent:** Can be developed in any order\n- **N - Negotiable:** Details flexible, not a contract\n- **V - Valuable:** Delivers user or business value\n- **E - Estimable:** Team can estimate effort\n- **S - Small:** Fits within one sprint (1-5 days)\n- **T - Testable:** Clear acceptance criteria\n\n**Complete Guide:** See `references\u002Fuser-story-writing-guide.md` for detailed explanations, examples, and story splitting patterns.\n\n**Template:** See `assets\u002Fuser-story-template.md` for comprehensive user story template with INVEST checklist.\n\n---\n\n### The 3 Cs Framework (Ron Jeffries)\n\n**Card:** Brief story description (placeholder)\n**Conversation:** Discuss details during planning\u002Frefinement (most important)\n**Confirmation:** Acceptance criteria (how to verify done)\n\n**Key Insight:** The conversation is more valuable than the written artifact.\n\n---\n\n## Acceptance Criteria\n\n### Three Formats\n\n**Format 1: Given-When-Then (Gherkin\u002FBDD)**\n\n```\nGiven [precondition\u002Fcontext]\nWhen [action\u002Fevent]\nThen [expected outcome]\nAnd [additional outcome]\n```\n\n**Best for:** Behavior-driven development, sequential workflows, automated testing\n\n**Example:**\n\n```\nGiven I am on the login page\nWhen I enter valid credentials and click \"Login\"\nThen I am redirected to my dashboard\nAnd I see a welcome message with my name\n```\n\n---\n\n**Format 2: Checklist Style**\n\n```\nAcceptance Criteria:\n- [ ] Criterion 1\n- [ ] Criterion 2\n- [ ] Criterion 3\n```\n\n**Best for:** Simple features, independent criteria, non-sequential requirements\n\n**Example:**\n\n```\n- [ ] User can upload JPG, PNG, GIF files\n- [ ] Maximum file size is 10MB\n- [ ] Upload progress bar shows percentage\n- [ ] Error shown if file too large\n```\n\n---\n\n**Format 3: Example-Based**\n\n```\nScenario: [Description]\nInput: [What user provides]\nOutput: [What system produces]\n```\n\n**Best for:** Complex calculations, validation rules, data transformations\n\n**Example:**\n\n```\nScenario 1: Valid email\nInput: user@example.com\nOutput: Email accepted\n\nScenario 2: Missing @ symbol\nInput: userexample.com\nOutput: Error \"Email must include @ symbol\"\n```\n\n**Complete Guide:** See `references\u002Facceptance-criteria-guide.md` for comprehensive guide to writing testable acceptance criteria with all three formats, examples, and best practices.\n\n---\n\n## Job Stories (Jobs-to-be-Done)\n\n### Format\n\n```\nWhen [situation\u002Fcontext]\nI want to [motivation]\nSo I can [expected outcome]\n```\n\n**Difference from User Stories:**\n\n- Focuses on context\u002Fsituation (not persona)\n- Emphasizes motivation (not implementation)\n- Better for discovering underlying needs\n\n**Example:**\n\n```\nWhen I'm in a meeting and need to reference previous discussions\nI want to quickly search message history by keyword\nSo I can find relevant context without disrupting the meeting flow\n```\n\n**Complete Template:** See `assets\u002Fjob-story-template.md` for detailed job story structure, examples, and when to use vs. user stories.\n\n---\n\n## Use Cases\n\n### Structure\n\nDetailed interaction scenarios documenting step-by-step system behavior.\n\n**Components:**\n\n- Primary actor and goal\n- Preconditions and postconditions\n- Main success scenario (happy path)\n- Alternative flows (variations)\n- Exception flows (error handling)\n\n**Example Structure:**\n\n```\nUse Case: User Registers for Account\n\nPrimary Actor: New user\nGoal: Create account to access platform\n\nMain Success Scenario:\n1. User enters email, password, name\n2. System validates inputs\n3. System creates account\n4. System sends verification email\n5. User clicks verification link\n6. System activates account\n```\n\n**Complete Template:** See `assets\u002Fuse-case-template.md` for comprehensive use case template with examples of alternative flows, exception handling, and special requirements.\n\n---\n\n## Edge Cases and Error Handling\n\n### Systematic Coverage\n\nDocument behavior for:\n\n**1. Input Validation** - Empty inputs, special characters, invalid formats\n**2. Permissions** - Unauthenticated, insufficient privileges, expired sessions\n**3. State Handling** - Empty state, loading state, error state, full state\n**4. Boundary Conditions** - Zero, one, maximum, just over maximum\n**5. Time-Based** - Expired tokens, time zones, scheduling\n**6. Network Issues** - Timeouts, server errors, rate limiting\n\n**Example:**\n\n```\nError Scenario: Payment fails due to insufficient funds\n\nUser Experience:\n- Error message: \"Payment declined - insufficient funds. Please use a different payment method.\"\n\nSystem Behavior:\n- Transaction rolled back\n- User not charged\n- Order not created\n- Error logged\n\nRecovery Action:\n- User can update payment method and retry\n```\n\n**Complete Checklist:** See `assets\u002Fedge-case-checklist.md` for systematic 100+ point checklist covering all edge case categories with examples and error handling templates.\n\n---\n\n## Non-Functional Requirements\n\n### Key Categories\n\n**Performance Requirements:**\n\n- Response time (page loads, API calls)\n- Throughput (requests per second)\n- Scalability (concurrent users, data volume)\n\n**Security Requirements:**\n\n- Authentication (MFA, password policies)\n- Authorization (RBAC, least privilege)\n- Data protection (encryption, GDPR compliance)\n\n**Reliability Requirements:**\n\n- Availability (uptime %)\n- Data integrity (backups, recovery)\n- Fault tolerance (failover, retries)\n\n**Accessibility Requirements:**\n\n- WCAG 2.1 compliance\n- Keyboard navigation\n- Screen reader compatibility\n\n**Example:**\n\n```\nPerformance: Page loads in \u003C2 seconds (p95)\nSecurity: All PII encrypted at rest (AES-256)\nReliability: 99.9% uptime (max 8.7 hours downtime\u002Fyear)\nAccessibility: WCAG 2.1 Level AA compliant\n```\n\n**Complete Template:** See `assets\u002Fnon-functional-requirements-template.md` for comprehensive NFR documentation covering all categories with specific metrics and verification methods.\n\n---\n\n## Specification Best Practices\n\n### Start with Why\n\nAlways begin with problem statement before jumping to solutions:\n\n**Problem Statement Template:**\n\n```\nProblem: [What problem exists?]\nImpact: [Who is affected and how?]\nEvidence: [Data, research, user quotes]\nGoal: [What would success look like?]\n```\n\n---\n\n### Be Specific and Measurable\n\n**Vague (Bad):** \"System should be fast\"\n\n**Specific (Good):** \"Page loads in \u003C2 seconds (p95), measured via Lighthouse\"\n\n**Avoid Ambiguous Terms:**\n\n- \"Fast\" → Specific time (\u003C 2 seconds)\n- \"Good\" → Specific criteria\n- \"User-friendly\" → Task completion metrics\n- \"Secure\" → OWASP Top 10 compliant\n\n---\n\n### Cover Happy and Unhappy Paths\n\n**Happy Path:** Successful scenario\n\n**Unhappy Paths:**\n\n- Error cases (invalid input, permission denied)\n- Edge cases (boundary conditions, rare scenarios)\n- Network failures (timeouts, service down)\n\n**Example:**\n\n```\nHappy: User logs in with valid credentials → Dashboard\nError: User enters wrong password → Error message, stay on login\nEdge: Session expires during form entry → Preserve data, re-authenticate\n```\n\n---\n\n### Specify Behavior, Not Implementation\n\n**Too Prescriptive (Bad):**\n\n```\n\"Use Material-UI Autocomplete component with Redux state management\"\n```\n\n**Behavioral (Good):**\n\n```\n\"User can search for other users by name, see suggestions as they type, select one or multiple users. Selection persists across page refreshes.\"\n\nLet engineering decide: component library, state management\n```\n\n---\n\n### Include Visual Aids\n\n**Use diagrams for:**\n\n- User flows\n- State machines\n- Data flows\n- Wireframes\u002Fmockups\n\n**Use examples for:**\n\n- Input validation rules\n- Calculations\n- Data transformations\n\n---\n\n## Anti-Patterns to Avoid\n\n### 1. Solution Masquerading as Problem\n\n**Bad:** \"We need a chatbot on the homepage\"\n\n**Good:**\n\n```\nProblem: 60% of support tickets are basic questions. Users can't find answers quickly.\nExplored solutions: Chatbot, improved search, interactive FAQ\n```\n\n---\n\n### 2. Missing Acceptance Criteria\n\n**Bad:**\n\n```\nAs a user, I want notifications\n```\n\n**Good:**\n\n```\nAs a user, I want email notifications\nSo that I'm aware of critical events\n\nAcceptance Criteria:\n- Given payment fails, when processor returns error, then email sent within 5 minutes\n- Given I'm in settings, when I toggle notifications, then preference saves immediately\n```\n\n**Complete Guide:** See `references\u002Fspecification-anti-patterns.md` for detailed anti-patterns with examples and fixes.\n\n---\n\n## Related Skills\n\n- `prd-templates` - PRD templates and examples\n- `user-story-templates` - User story templates and patterns\n- `user-research-techniques` - Understanding user needs and requirements\n",{"name":5,"description":7},"main","a4b48842f3e48549adf3dc335a8837c66da99497","agents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques",0,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng","2026-05-17 16:00:01",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add enigmaicon-eng\u002FAI-Enterprise-OS --skill specification-techniques",{"tool":36,"command":37},"bunx","bunx skills add enigmaicon-eng\u002FAI-Enterprise-OS --skill specification-techniques",{"tool":39,"command":40},"pnpm","pnpm dlx skills add enigmaicon-eng\u002FAI-Enterprise-OS --skill specification-techniques","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002FSKILL.md",true,[44,50,54,58,62,66,70,76,80,84],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"assets\u002Fedge-case-checklist.md","ASSET","资产文件",12808,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Fassets\u002Fedge-case-checklist.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fjob-story-template.md",11999,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Fassets\u002Fjob-story-template.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Fnon-functional-requirements-template.md",20127,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Fassets\u002Fnon-functional-requirements-template.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"assets\u002Fprd-structure-template.md",12038,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Fassets\u002Fprd-structure-template.md",{"path":63,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":64,"sourceHtmlUrl":65},"assets\u002Fuse-case-template.md",16591,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Fassets\u002Fuse-case-template.md",{"path":67,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":68,"sourceHtmlUrl":69},"assets\u002Fuser-story-template.md",12971,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Fassets\u002Fuser-story-template.md",{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Facceptance-criteria-guide.md","REFERENCE","参考文档",19472,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Freferences\u002Facceptance-criteria-guide.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fspecification-anti-patterns.md",24582,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Freferences\u002Fspecification-anti-patterns.md",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fspecification-best-practices.md",27656,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Freferences\u002Fspecification-best-practices.md",{"path":85,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fuser-story-writing-guide.md",18339,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fagents\u002Fplugins\u002Fai-pm-copilot\u002Fskills\u002Fspecification-techniques\u002Freferences\u002Fuser-story-writing-guide.md",[89,96,103,110,117,124],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M72ZGWW03JSE1T3TKK5NZ11Y","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M72ZGT3FJT7QRM1VNQRKR0XD","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M72ZGQ69DCF0SBP9JXFPWKJS","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":18},"01M72ZGNF126QT0MQ2D3DNGZRN","using-superpowers","Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fusing-superpowers\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":18},"01M72ZGHVJ9S0YXMNBHQGQ95BY","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":18},"01M72ZGFNZCHFY2FS3ZD9MCYV9","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[]]