Mvp Scope Control
Skill Profile
(Select at least one profile to enable specific modules)
Overview
MVP (Minimum Viable Product) scope control is the practice of defining and maintaining the minimal set of features needed to validate your core hypothesis. Effective scope control prevents feature creep, accelerates learning, and conserves resources.
Key Principle: Build the smallest thing that validates your hypothesis, not the smallest thing you can ship.
Why This Matters
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- <e.g., env vars, request payload, file paths, schema>
- Entry Conditions:
- <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
- Outputs:
- <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
- Artifacts Required (Deliverables):
- <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
- Acceptance Evidence:
- <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
- Success Criteria:
- <e.g., p95 < 300ms, coverage ≥ 80%>
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
# Example implementation following best practices
def example_function():
# Your implementation here
pass
Assumptions / Constraints / Non-goals
- Assumptions:
- Development environment is properly configured
- Required dependencies are available
- Team has basic understanding of domain
- Constraints:
- Must follow existing codebase conventions
- Time and resource limitations
- Compatibility requirements
- Non-goals:
- This skill does not cover edge cases outside scope
- Not a replacement for formal training
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.example keys: API_KEY, DATABASE_URL (no values)
Test Scenario Matrix (QA Strategy)
| Type |
Focus Area |
Required Scenarios / Mocks |
| Unit |
Core Logic |
Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration |
DB / API |
All external API calls or database connections must be mocked during unit tests |
| E2E |
User Journey |
Critical user flows to test |
| Performance |
Latency / Load |
Benchmark requirements |
| Security |
Vuln / Auth |
SAST/DAST or dependency audit |
| Frontend |
UX / A11y |
Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives & Error Recovery
(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
- Thinking Process: Analyze root cause before fixing. Do not brute-force.
- Fallback Strategy: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- Self-Review: Check against Guardrails & Anti-patterns before finalizing.
- Output Constraints: Output ONLY the modified code block. Do not explain unless asked.
Definition of Done (DoD) Checklist
Anti-patterns / Pitfalls
- ⛔ Don't: Log PII, catch-all exception, N+1 queries
- ⚠️ Watch out for: Common symptoms and quick fixes
- 💡 Instead: Use proper error handling, pagination, and logging
Reference Links & Examples
- Internal documentation and examples
- Official documentation and best practices
- Community resources and discussions
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
1---2name: mvp-scope-control3description: MVP (Minimum Viable Product) scope control is the practice of defining and maintaining the minimal set of features needed to validate your core hypothesis. Effective scope control prevents feature cre4---5
6# Mvp Scope Control
7
8## Skill Profile
9*(Select at least one profile to enable specific modules)*
10- [ ] **DevOps**
11- [x] **Backend**
12- [ ] **Frontend**
13- [ ] **AI-RAG**
14- [ ] **Security Critical**
15
16## Overview
17MVP (Minimum Viable Product) scope control is the practice of defining and maintaining the minimal set of features needed to validate your core hypothesis. Effective scope control prevents feature creep, accelerates learning, and conserves resources.
18
19**Key Principle**: Build the smallest thing that validates your hypothesis, not the smallest thing you can ship.
20
21## Why This Matters
22- **<Benefit>**: <short explanation>
23- **<Benefit>**: <short explanation>
24- **<Benefit>**: <short explanation>
25
26## Core Concepts & Rules
27
28### 1. Core Principles
29- Follow established patterns and conventions
30- Maintain consistency across codebase
31- Document decisions and trade-offs
32
33### 2. Implementation Guidelines
34- Start with the simplest viable solution
35- Iterate based on feedback and requirements
36- Test thoroughly before deployment
37
38
39## Inputs / Outputs / Contracts
40* **Inputs**:
41 - <e.g., env vars, request payload, file paths, schema>
42* **Entry Conditions**:
43 - <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
44* **Outputs**:
45 - <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
46* **Artifacts Required (Deliverables)**:
47 - <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
48* **Acceptance Evidence**:
49 - <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
50* **Success Criteria**:
51 - <e.g., p95 < 300ms, coverage ≥ 80%>
52
53## Skill Composition
54* **Depends on**: None
55* **Compatible with**: None
56* **Conflicts with**: None
57* **Related Skills**: None
58
59## Quick Start / Implementation Example
60
611. Review requirements and constraints
622. Set up development environment
633. Implement core functionality following patterns
644. Write tests for critical paths
655. Run tests and fix issues
666. Document any deviations or decisions
67
68```python
69# Example implementation following best practices
70def example_function():
71 # Your implementation here
72 pass
73```
74
75
76## Assumptions / Constraints / Non-goals
77
78* **Assumptions**:
79 - Development environment is properly configured
80 - Required dependencies are available
81 - Team has basic understanding of domain
82* **Constraints**:
83 - Must follow existing codebase conventions
84 - Time and resource limitations
85 - Compatibility requirements
86* **Non-goals**:
87 - This skill does not cover edge cases outside scope
88 - Not a replacement for formal training
89
90
91## Compatibility & Prerequisites
92
93* **Supported Versions**:
94 - Python 3.8+
95 - Node.js 16+
96 - Modern browsers (Chrome, Firefox, Safari, Edge)
97* **Required AI Tools**:
98 - Code editor (VS Code recommended)
99 - Testing framework appropriate for language
100 - Version control (Git)
101* **Dependencies**:
102 - Language-specific package manager
103 - Build tools
104 - Testing libraries
105* **Environment Setup**:
106 - `.env.example` keys: `API_KEY`, `DATABASE_URL` (no values)
107
108
109## Test Scenario Matrix (QA Strategy)
110
111| Type | Focus Area | Required Scenarios / Mocks |
112| :--- | :--- | :--- |
113| **Unit** | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
114| **Integration** | DB / API | All external API calls or database connections must be mocked during unit tests |
115| **E2E** | User Journey | Critical user flows to test |
116| **Performance** | Latency / Load | Benchmark requirements |
117| **Security** | Vuln / Auth | SAST/DAST or dependency audit |
118| **Frontend** | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
119
120
121## Technical Guardrails & Security Threat Model
122
123### 1. Security & Privacy (Threat Model)
124* **Top Threats**: Injection attacks, authentication bypass, data exposure
125- [ ] **Data Handling**: Sanitize all user inputs to prevent Injection attacks. Never log raw PII
126- [ ] **Secrets Management**: No hardcoded API keys. Use Env Vars/Secrets Manager
127- [ ] **Authorization**: Validate user permissions before state changes
128
129### 2. Performance & Resources
130- [ ] **Execution Efficiency**: Consider time complexity for algorithms
131- [ ] **Memory Management**: Use streams/pagination for large data
132- [ ] **Resource Cleanup**: Close DB connections/file handlers in finally blocks
133
134### 3. Architecture & Scalability
135- [ ] **Design Pattern**: Follow SOLID principles, use Dependency Injection
136- [ ] **Modularity**: Decouple logic from UI/Frameworks
137
138### 4. Observability & Reliability
139- [ ] **Logging Standards**: Structured JSON, include trace IDs `request_id`
140- [ ] **Metrics**: Track `error_rate`, `latency`, `queue_depth`
141- [ ] **Error Handling**: Standardized error codes, no bare except
142- [ ] **Observability Artifacts**:
143 - **Log Fields**: timestamp, level, message, request_id
144 - **Metrics**: request_count, error_count, response_time
145 - **Dashboards/Alerts**: High Error Rate > 5%
146
147
148## Agent Directives & Error Recovery
149*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*
150
151- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.
152- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
153- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.
154- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.
155
156
157## Definition of Done (DoD) Checklist
158
159- [ ] Tests passed + coverage met
160- [ ] Lint/Typecheck passed
161- [ ] Logging/Metrics/Trace implemented
162- [ ] Security checks passed
163- [ ] Documentation/Changelog updated
164- [ ] Accessibility/Performance requirements met (if frontend)
165
166
167## Anti-patterns / Pitfalls
168
169* ⛔ **Don't**: Log PII, catch-all exception, N+1 queries
170* ⚠️ **Watch out for**: Common symptoms and quick fixes
171* 💡 **Instead**: Use proper error handling, pagination, and logging
172
173
174## Reference Links & Examples
175
176* Internal documentation and examples
177* Official documentation and best practices
178* Community resources and discussions
179
180
181## Versioning & Changelog
182
183* **Version**: 1.0.0
184* **Changelog**:
185 - 2026-02-22: Initial version with complete template structure
186