bokata 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/bokata-acceptance-criteria/SKILL.md +235 -0
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +28 -0
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +65 -0
- package/.agents/skills/bokata-feature-mapper/SKILL.md +276 -0
- package/.agents/skills/bokata-feature-mapper/resources/bundling-heuristics.md +71 -0
- package/.agents/skills/bokata-feature-mapper/resources/examples.md +63 -0
- package/.agents/skills/bokata-feature-mapper/resources/methodology.md +91 -0
- package/.agents/skills/bokata-feature-mapper/resources/output-template.md +57 -0
- package/.agents/skills/bokata-feature-slicer/SKILL.md +207 -0
- package/.agents/skills/bokata-feature-slicer/resources/breakdown-strategies.md +122 -0
- package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +12 -0
- package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +24 -0
- package/.agents/skills/bokata-feature-slicer/resources/phase-1-steps.md +232 -0
- package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +251 -0
- package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +311 -0
- package/README.md +123 -0
- package/agents/bokata-product-designer.md +103 -0
- package/agents/bokata-product-engineer.md +104 -0
- package/agents/bokata-product-manager.md +96 -0
- package/bin/bokata.js +51 -0
- package/commands/codex/feature-map.md +263 -0
- package/commands/codex/slice-feature.md +291 -0
- package/commands/task-parallel/feature-map.md +273 -0
- package/commands/task-parallel/resources/html-template.md +560 -0
- package/commands/task-parallel/resources/story-map-template.md +495 -0
- package/commands/task-parallel/slice-feature.md +301 -0
- package/package.json +30 -0
- package/src/install.js +312 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Phase 1: Step Analysis
|
|
2
|
+
|
|
3
|
+
Decompose each User Task into technical, business, and logical steps using the Hamburger Method (UI → Logic → Data → Integration layers). Steps represent WHAT happens functionally, not HOW to implement it technically.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## DECOMPOSITION PRINCIPLES
|
|
8
|
+
|
|
9
|
+
- **Aim for 4+ steps** - 3 is acceptable if all relevant layers are covered and the task is genuinely simple. Don't force an artificial step — instead note why 3 is sufficient.
|
|
10
|
+
- **Functional, not technical** - Focus on WHAT happens, not implementation details.
|
|
11
|
+
- **Complete layers** - Cover UI → Logic → Data → Integration where applicable.
|
|
12
|
+
- **Quality over counts** - Better clear, meaningful steps than many vague ones.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## WORKFLOW
|
|
17
|
+
|
|
18
|
+
**Important:** Think step-by-step before decomposing User Tasks.
|
|
19
|
+
|
|
20
|
+
### Step 1: Identify User Tasks
|
|
21
|
+
|
|
22
|
+
Extract all User Tasks from the input:
|
|
23
|
+
1. Locate `## Features Backbone` section
|
|
24
|
+
2. Extract all User Tasks from `### Features Map` subsections
|
|
25
|
+
3. For each User Task, capture: name, description, and parent Feature context
|
|
26
|
+
4. Create a list of all User Tasks to process
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
### Step 2: For Each User Task - Decompose into Steps
|
|
31
|
+
|
|
32
|
+
#### 🧠 Think:
|
|
33
|
+
For the current User Task:
|
|
34
|
+
- What is the user trying to accomplish?
|
|
35
|
+
- Where does the user start? What input is needed? (UI layer likely)
|
|
36
|
+
- What processing/decisions happen? (Logic layer likely)
|
|
37
|
+
- What gets stored or retrieved? (Data layer likely)
|
|
38
|
+
- Are there external dependencies? (Integration layer likely)
|
|
39
|
+
- What is the first thing that must happen functionally?
|
|
40
|
+
- What comes next in the logical sequence?
|
|
41
|
+
- What are the distinct responsibilities? (one per step)
|
|
42
|
+
- Which technical layer does each step belong to?
|
|
43
|
+
- Are all steps functional (WHAT) not technical (HOW)?
|
|
44
|
+
- [Map out the natural flow and list potential steps]
|
|
45
|
+
|
|
46
|
+
#### ▶️ Execute:
|
|
47
|
+
|
|
48
|
+
**2.1: Understand User Task Definition**
|
|
49
|
+
|
|
50
|
+
Read from the provided input:
|
|
51
|
+
1. User Task name and description
|
|
52
|
+
2. Parent Feature context
|
|
53
|
+
3. Context analysis (domain, constraints)
|
|
54
|
+
4. User goals and business rules
|
|
55
|
+
|
|
56
|
+
**2.2: Identify Major Phases**
|
|
57
|
+
|
|
58
|
+
Map out the complete User Task execution flow by identifying:
|
|
59
|
+
1. **Phase 1:** User input phase (where users start, what input is needed)
|
|
60
|
+
2. **Phase 2:** Processing phase (what processing happens, what decisions are made)
|
|
61
|
+
3. **Phase 3:** Output phase (what is the output, what changes)
|
|
62
|
+
4. **Phase 4+:** Additional phases if needed
|
|
63
|
+
|
|
64
|
+
**Examples:**
|
|
65
|
+
```
|
|
66
|
+
"Coach Records Audio"
|
|
67
|
+
- Capture audio input (UI layer)
|
|
68
|
+
- Process/compress audio (Logic layer)
|
|
69
|
+
- Store audio file (Data layer)
|
|
70
|
+
- Sync with system (Integration)
|
|
71
|
+
|
|
72
|
+
"User Searches Products"
|
|
73
|
+
- Receive search input (UI)
|
|
74
|
+
- Execute search query (Logic)
|
|
75
|
+
- Rank/filter results (Logic)
|
|
76
|
+
- Display results (UI)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**2.3: Define Steps and Assign Layers**
|
|
80
|
+
|
|
81
|
+
For each phase, create a step by:
|
|
82
|
+
1. Defining one clear purpose per step
|
|
83
|
+
2. Assigning a functional layer: UI | Logic | Data | Integration
|
|
84
|
+
3. Ensuring coverage of relevant technical layers
|
|
85
|
+
4. Avoiding implementation details (no "create class", "write method")
|
|
86
|
+
5. For each step, look for a key technical decision in the research context (existing services, constraints, patterns) and add it as **Technical Note**. If no research context is available, omit the field. Technical Notes describe architectural/design decisions — not code constructs (no class names, method names, or specific config syntax).
|
|
87
|
+
|
|
88
|
+
#### Layer Assignment Guide:
|
|
89
|
+
- **UI:** User-facing interactions (forms, buttons, displays, inputs, feedback)
|
|
90
|
+
- **Logic:** Processing, calculations, decisions, transformations, validation
|
|
91
|
+
- **Data:** Persistence, retrieval, storage operations, queries
|
|
92
|
+
- **Integration:** External systems, APIs, synchronization, webhooks
|
|
93
|
+
|
|
94
|
+
#### Good Steps ✅
|
|
95
|
+
```
|
|
96
|
+
"Capture User Input" - Layer: UI - Functional goal
|
|
97
|
+
"Validate Email Format" - Layer: Logic - Functional goal
|
|
98
|
+
"Persist User Data" - Layer: Data - Functional goal
|
|
99
|
+
"Sync with Server" - Layer: Integration - Functional goal
|
|
100
|
+
"Calculate Order Total" - Layer: Logic - Functional goal
|
|
101
|
+
"Display Results" - Layer: UI - Functional goal
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### Bad Steps ❌
|
|
105
|
+
```
|
|
106
|
+
"Create EmailValidator class" - Implementation detail, not functional
|
|
107
|
+
"Write async function" - Implementation detail
|
|
108
|
+
"Implement caching" - Implementation detail
|
|
109
|
+
"Set up database connection" - Setup/infrastructure, not feature step
|
|
110
|
+
"Add error handling" - Cross-cutting concern, not a step
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
### Step 3: Generate Output
|
|
116
|
+
|
|
117
|
+
#### 🧠 Think:
|
|
118
|
+
- Do I have minimum 3 steps for this User Task? (WARNING if exactly 3)
|
|
119
|
+
- Do steps cover the complete task flow?
|
|
120
|
+
- Are all relevant layers represented? (UI → Logic → Data if applicable)
|
|
121
|
+
- Is each step distinct and clear?
|
|
122
|
+
- Does each step have ONE clear purpose?
|
|
123
|
+
- Are steps named functionally (Verb + Object)?
|
|
124
|
+
- Are there NO implementation details?
|
|
125
|
+
- Is the layer assignment correct for each step?
|
|
126
|
+
- [Verify completeness and self-check against quality criteria]
|
|
127
|
+
|
|
128
|
+
#### ▶️ Execute:
|
|
129
|
+
Generate markdown output via [Output Template](output-template-steps.md).
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## EXAMPLES
|
|
136
|
+
|
|
137
|
+
### Example 1: "Records Audio Input" (User Task)
|
|
138
|
+
|
|
139
|
+
```markdown
|
|
140
|
+
## User Task: Records Audio Input
|
|
141
|
+
|
|
142
|
+
### Steps
|
|
143
|
+
|
|
144
|
+
#### Step 1: Capture Audio Signal
|
|
145
|
+
**Layer:** UI
|
|
146
|
+
**Description:** Coach presses record button and audio begins streaming from microphone to application.
|
|
147
|
+
|
|
148
|
+
#### Step 2: Process Audio Stream
|
|
149
|
+
**Layer:** Logic
|
|
150
|
+
**Description:** Audio signal is cleaned, normalized, and optionally compressed for quality and storage efficiency.
|
|
151
|
+
|
|
152
|
+
#### Step 3: Store Audio Locally
|
|
153
|
+
**Layer:** Data
|
|
154
|
+
**Description:** Processed audio file is saved to device storage for immediate playback and offline access.
|
|
155
|
+
|
|
156
|
+
#### Step 4: Sync with Backend
|
|
157
|
+
**Layer:** Integration
|
|
158
|
+
**Description:** Audio file is uploaded to server when network connection is available for backup and sharing.
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Example 2: "Searches for Products" (User Task)
|
|
162
|
+
|
|
163
|
+
```markdown
|
|
164
|
+
## User Task: Searches for Products
|
|
165
|
+
|
|
166
|
+
### Steps
|
|
167
|
+
|
|
168
|
+
#### Step 1: Capture Search Query
|
|
169
|
+
**Layer:** UI
|
|
170
|
+
**Description:** User enters search keywords in search bar and submits query.
|
|
171
|
+
|
|
172
|
+
#### Step 2: Execute Search Query
|
|
173
|
+
**Layer:** Logic
|
|
174
|
+
**Description:** Search algorithm processes query against product database using relevance scoring.
|
|
175
|
+
|
|
176
|
+
#### Step 3: Retrieve Matching Products
|
|
177
|
+
**Layer:** Data
|
|
178
|
+
**Description:** Database returns products matching search criteria with metadata (price, rating, availability).
|
|
179
|
+
|
|
180
|
+
#### Step 4: Rank and Filter Results
|
|
181
|
+
**Layer:** Logic
|
|
182
|
+
**Description:** Results are sorted by relevance, filtered by availability, and limited to top N matches.
|
|
183
|
+
|
|
184
|
+
#### Step 5: Display Search Results
|
|
185
|
+
**Layer:** UI
|
|
186
|
+
**Description:** Formatted product cards are displayed in grid layout with images, prices, and ratings.
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## COMMON ISSUES
|
|
192
|
+
|
|
193
|
+
**Issue: "Only identified 2 steps"**
|
|
194
|
+
→ Solution: User Task might be simpler than expected, or needs further decomposition. Ask: What technical layers are involved? (UI → Logic → Data). Example:
|
|
195
|
+
- ❌ "Displays Profile" = 2 steps (Retrieve + Display)
|
|
196
|
+
WHY: Too simple
|
|
197
|
+
✅ BETTER: "Retrieve user data" (Data), "Format profile view" (Logic), "Render profile page" (UI) = 3 steps
|
|
198
|
+
|
|
199
|
+
**Issue: "Steps sound like code (Create class, Write method)"**
|
|
200
|
+
→ Solution: Reframe as functional goals.
|
|
201
|
+
- ❌ "Create EmailValidator class"
|
|
202
|
+
WHY: Implementation detail
|
|
203
|
+
✅ INSTEAD: "Validate Email Format" (functional goal)
|
|
204
|
+
|
|
205
|
+
- ❌ "Write async function for API call"
|
|
206
|
+
WHY: Technical implementation
|
|
207
|
+
✅ INSTEAD: "Fetch Data from API" (functional goal)
|
|
208
|
+
|
|
209
|
+
**Issue: "Can't decide which layer a step belongs to"**
|
|
210
|
+
→ Solution: Ask "Who/what is primarily responsible?"
|
|
211
|
+
- User sees/interacts? → UI
|
|
212
|
+
- Calculating/deciding? → Logic
|
|
213
|
+
- Storing/retrieving? → Data
|
|
214
|
+
- External system call? → Integration
|
|
215
|
+
|
|
216
|
+
**Issue: "Steps seem too granular"**
|
|
217
|
+
→ Solution: Combine related micro-steps into one functional step.
|
|
218
|
+
- ❌ "Open form", "Enter data", "Click submit" (3 separate)
|
|
219
|
+
WHY: Too granular
|
|
220
|
+
✅ INSTEAD: "Submit User Input" (1 step, UI layer)
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## BEFORE SUBMITTING — verify your output for ALL User Tasks:
|
|
225
|
+
|
|
226
|
+
- [ ] ALL User Tasks from Features map have a Steps section (no gaps)
|
|
227
|
+
- [ ] Each step follows `[Action] [Object]` format — verb-focused (Capture, Validate, Store, Sync, Display...)
|
|
228
|
+
- [ ] Each step has `**Layer:**` (UI/Logic/Data/Integration) and `**Description:**` (1-2 sentences, functional)
|
|
229
|
+
- [ ] Each step has `**Technical Note:**` if research context was available (omit otherwise)
|
|
230
|
+
- [ ] Aim for 4+ steps per User Task — if staying at 3, note why it's sufficient
|
|
231
|
+
- [ ] Steps flow logically (1 → 2 → 3...), no redundant or overlapping steps
|
|
232
|
+
- [ ] All steps describe WHAT, not HOW — no code constructs (class, method, function, async, component...)
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Phase 2: Incremental Option Generation
|
|
2
|
+
|
|
3
|
+
Apply breakdown strategies to create multiple implementation options for each step. Each option represents a specific, independently deployable implementation variant. This enables you to choose the simplest path first and progressively enhance.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## INCREMENTAL OPTION PRINCIPLES
|
|
8
|
+
|
|
9
|
+
### Option Characteristics
|
|
10
|
+
- **Self-Contained:** Each option can be implemented and deployed independently.
|
|
11
|
+
- **Specific:** Describes EXACTLY what is being done (e.g., "Manual CSV Export" vs "Implement export").
|
|
12
|
+
- **Strategy-Driven:** Each step must declare which breakdown strategies were applied.
|
|
13
|
+
- **Naming Format:** `[Action] [Object]` (e.g., "Export to CSV", "Cache with Redis")
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## BREAKDOWN STRATEGIES
|
|
18
|
+
|
|
19
|
+
Refer to [Strategies Toolkit](breakdown-strategies.md) for detailed descriptions and examples.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## WORKFLOW
|
|
24
|
+
|
|
25
|
+
**Important:** Think step-by-step before generating incremental options.
|
|
26
|
+
|
|
27
|
+
### Step 1: Identify All Steps
|
|
28
|
+
|
|
29
|
+
1. Locate `## Features Backbone` section in the provided input
|
|
30
|
+
2. For each User Task, find all `### Steps` sections
|
|
31
|
+
3. Extract for each step: name, description, layer (UI/Logic/Data/Integration), and any technical notes
|
|
32
|
+
4. Create a complete list of all steps requiring incremental options
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
### Step 2: For Each Step - Analyze & Generate Options
|
|
37
|
+
|
|
38
|
+
#### 🧠 Think:
|
|
39
|
+
For each step:
|
|
40
|
+
- What makes this step "good"? (speed, accuracy, simplicity, security, reliability)
|
|
41
|
+
- What are the key tradeoffs? (complexity vs. power, speed vs. accuracy)
|
|
42
|
+
- What variations could exist? (formats, interfaces, data types, rules)
|
|
43
|
+
- Which breakdown strategies apply to this step?
|
|
44
|
+
- Can I use Zero/One/Many? (build for no items → one item → many items)
|
|
45
|
+
- Can I simplify workflows? (remove optional steps, reduce validations)
|
|
46
|
+
- Can I narrow data types? (single format → multiple formats)
|
|
47
|
+
- Can I start with dummy data? (hard-coded → API-driven)
|
|
48
|
+
- Can I split by capacity? (10 items → 1000 items → unlimited)
|
|
49
|
+
- What linguistic patterns indicate breakdown opportunities?
|
|
50
|
+
- "and/or" → Zero-One-Many split
|
|
51
|
+
- "manage" → CRUD separation
|
|
52
|
+
- "before/after" → Workflow phases
|
|
53
|
+
- What's the SIMPLEST possible implementation?
|
|
54
|
+
- What's the next level up in complexity/capability?
|
|
55
|
+
- What's the most advanced/complete version?
|
|
56
|
+
- [List applicable strategies and potential options]
|
|
57
|
+
|
|
58
|
+
#### ▶️ Execute:
|
|
59
|
+
|
|
60
|
+
**2.1: Identify the critical quality dimension**
|
|
61
|
+
|
|
62
|
+
Don't list quality attributes as a checklist — use them as decision guides:
|
|
63
|
+
- What matters most for this step? (speed, accuracy, simplicity, security, reliability)
|
|
64
|
+
- Ensure at least one generated option optimizes for **simplicity** (the Walking Skeleton candidate)
|
|
65
|
+
- Ensure at least one option optimizes for the **most critical quality dimension** of this step
|
|
66
|
+
Let the quality dimension shape which options you generate, not the other way around.
|
|
67
|
+
|
|
68
|
+
**2.2: Determine Applicable Strategies**
|
|
69
|
+
|
|
70
|
+
1. Review the [breakdown strategies toolkit](breakdown-strategies.md)
|
|
71
|
+
2. Select 2-3 strategies that apply to this step
|
|
72
|
+
3. Consider strategy combinations (e.g., Zero/One/Many + Workflow Simplification)
|
|
73
|
+
|
|
74
|
+
Example: "Capture Search Input" step
|
|
75
|
+
- Zero/One/Many: No search → single query → multiple filters
|
|
76
|
+
- Workflow Simplification: Basic search → with advanced filters
|
|
77
|
+
- UI Fidelity: Input field → with suggestions → autocomplete
|
|
78
|
+
- Data Variation: Text → Text+voice → Natural language
|
|
79
|
+
|
|
80
|
+
**2.3: Generate Incremental Options**
|
|
81
|
+
|
|
82
|
+
For each step, create 3+ incremental options by:
|
|
83
|
+
1. Applying 2-3 different breakdown strategies
|
|
84
|
+
2. Creating incremental options for each strategy progressively
|
|
85
|
+
3. Combining options from different strategies where applicable
|
|
86
|
+
4. Ordering from simplest to most complex
|
|
87
|
+
5. Naming each option using `[Action] [Object]` format
|
|
88
|
+
|
|
89
|
+
Validate each step's options:
|
|
90
|
+
- Minimum 3 options per step (WARNING if exactly 3)
|
|
91
|
+
- All options specific (not generic)
|
|
92
|
+
- Dependencies explicit
|
|
93
|
+
- Progression clear (simple → advanced)
|
|
94
|
+
- Naming and formatting consistent
|
|
95
|
+
|
|
96
|
+
**Example: "Store Audio" step**
|
|
97
|
+
```
|
|
98
|
+
1.1: Save to Browser LocalStorage
|
|
99
|
+
- Simplest, no backend needed
|
|
100
|
+
- Applied Strategy: Dummy to Dynamic (local storage is simplest)
|
|
101
|
+
|
|
102
|
+
1.2: Save to Device FileSystem
|
|
103
|
+
- More storage space available
|
|
104
|
+
- Applied Strategy: Split by Capacity (more storage)
|
|
105
|
+
|
|
106
|
+
1.3: Upload to Cloud Storage
|
|
107
|
+
- Requires backend/API
|
|
108
|
+
- Applied Strategy: Dummy to Dynamic (dynamic cloud storage)
|
|
109
|
+
|
|
110
|
+
1.4: Multi-format Support
|
|
111
|
+
- WAV, MP3, OGG options
|
|
112
|
+
- Applied Strategy: Data Variation (multiple formats)
|
|
113
|
+
|
|
114
|
+
1.5: Compression Pipeline
|
|
115
|
+
- Reduces file size
|
|
116
|
+
- Applied Strategy: Extract Basic Utility (enhance with compression)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
### Step 3: Generate Output
|
|
122
|
+
|
|
123
|
+
#### 🧠 Think:
|
|
124
|
+
- Do I have minimum 3 options per step? (WARNING if exactly 3)
|
|
125
|
+
- Are all options specific (not generic)?
|
|
126
|
+
- Are dependencies explicit?
|
|
127
|
+
- Is progression clear (simple → advanced)?
|
|
128
|
+
- Are naming and formatting consistent?
|
|
129
|
+
- [Self-check against quality criteria]
|
|
130
|
+
|
|
131
|
+
#### ▶️ Execute:
|
|
132
|
+
Generate markdown output via [Output Template](output-template-increments.md).
|
|
133
|
+
|
|
134
|
+
Formatting requirements:
|
|
135
|
+
1. Checkbox format: `[ ] **N.M: Name** - Description`
|
|
136
|
+
2. Applied Strategies section (2-3 strategies listed)
|
|
137
|
+
3. Rationale section (1-2 sentences explaining option set)
|
|
138
|
+
4. Options progress from simple → complex
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## QUALITY CRITERIA
|
|
143
|
+
|
|
144
|
+
For completed Incremental Options sections:
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## EXAMPLES
|
|
149
|
+
|
|
150
|
+
### Example 1: "Capture Audio Input" Step
|
|
151
|
+
|
|
152
|
+
```markdown
|
|
153
|
+
### Incremental Options (0/5)
|
|
154
|
+
|
|
155
|
+
[ ] **1.1: Browser Microphone (Web Audio API)** - Capture using browser's built-in Web Audio API with basic permissions prompt
|
|
156
|
+
|
|
157
|
+
[ ] **1.2: Native Mobile Audio** - Use platform-specific microphone APIs (AVFoundation for iOS, MediaRecorder for Android)
|
|
158
|
+
|
|
159
|
+
[ ] **1.3: Audio Processing Pipeline** - Add noise reduction and level monitoring with real-time visual feedback
|
|
160
|
+
|
|
161
|
+
[ ] **1.4: Multi-device Support** - Allow selection from multiple input devices (built-in mic, USB mic, Bluetooth headset)
|
|
162
|
+
|
|
163
|
+
[ ] **1.5: Background Recording** - Enable recording to continue when app is backgrounded or screen is off
|
|
164
|
+
|
|
165
|
+
**Applied Strategies:** Dummy to Dynamic (Web API → Native), Data Variation (single device → multiple devices), Extract Basic Utility (basic capture → enhanced with processing)
|
|
166
|
+
**Rationale:** Start with simplest browser API, progressively add native capabilities, device options, and background support for power users.
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Example 2: "Execute Search Query" Step
|
|
170
|
+
|
|
171
|
+
```markdown
|
|
172
|
+
### Incremental Options (0/6)
|
|
173
|
+
|
|
174
|
+
[ ] **2.1: Exact Text Match** - Search product names for exact substring match (case-insensitive)
|
|
175
|
+
|
|
176
|
+
[ ] **2.2: Fuzzy Text Search** - Add fuzzy matching to handle typos and similar words (Levenshtein distance)
|
|
177
|
+
|
|
178
|
+
[ ] **2.3: Filter by Single Attribute** - Allow filtering by one attribute (e.g., category OR price range)
|
|
179
|
+
|
|
180
|
+
[ ] **2.4: Multi-attribute Filters** - Support combining multiple filters with AND logic (category AND price range AND rating)
|
|
181
|
+
|
|
182
|
+
[ ] **2.5: Full-text Search with Ranking** - Implement full-text search with relevance scoring (tf-idf or similar)
|
|
183
|
+
|
|
184
|
+
[ ] **2.6: Natural Language Query** - Parse natural language queries ("cheap laptops under $500") into structured filters
|
|
185
|
+
|
|
186
|
+
**Applied Strategies:** Zero/One/Many (no filters → one filter → many filters), Business Rule Progression (exact → fuzzy → ranked), Data Variation (text only → attributes → natural language)
|
|
187
|
+
**Rationale:** Build from simplest exact match toward sophisticated natural language understanding, allowing progressive enhancement of search quality.
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Example 3: "Persist User Data" Step
|
|
191
|
+
|
|
192
|
+
```markdown
|
|
193
|
+
### Incremental Options (0/4)
|
|
194
|
+
|
|
195
|
+
[ ] **3.1: LocalStorage (Client-side)** - Store user data in browser localStorage (5MB limit, no backend required)
|
|
196
|
+
|
|
197
|
+
[ ] **3.2: SQLite (Local Database)** - Use SQLite for local structured storage with query capability
|
|
198
|
+
|
|
199
|
+
[ ] **3.3: REST API (Cloud Sync)** - Sync data to cloud via REST API (requires authentication)
|
|
200
|
+
|
|
201
|
+
[ ] **3.4: Real-time Database (Firebase/Supabase)** - Real-time bi-directional sync across devices
|
|
202
|
+
|
|
203
|
+
**Applied Strategies:** Dummy to Dynamic (local → cloud), Split by Capacity (5MB → unlimited), Walking Skeleton on Crutches (client-only → full cloud)
|
|
204
|
+
**Rationale:** Start with zero backend complexity (localStorage), progressively add server sync, then real-time capabilities as needed.
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## COMMON ISSUES
|
|
210
|
+
|
|
211
|
+
**Issue: "Only came up with 2 options"**
|
|
212
|
+
→ Solution: Apply more strategies. Try:
|
|
213
|
+
- ❌ "Store data" with 2 options: "Database" and "File"
|
|
214
|
+
WHY: Too high-level
|
|
215
|
+
✅ INSTEAD: Apply "Dummy to Dynamic" + "Split by Capacity"
|
|
216
|
+
- "LocalStorage (5MB)" → "SQLite (unlimited local)" → "Cloud DB (unlimited + sync)" → "Real-time DB (sync + live)"
|
|
217
|
+
|
|
218
|
+
**Issue: "Options aren't really independent"**
|
|
219
|
+
→ Solution: Each option should be fully deployable on its own
|
|
220
|
+
- ❌ "Setup database" → "Add tables" → "Add queries"
|
|
221
|
+
WHY: These depend on each other
|
|
222
|
+
✅ INSTEAD: "In-memory storage" → "SQLite storage" → "PostgreSQL with migrations"
|
|
223
|
+
|
|
224
|
+
**Issue: "Options sound too similar"**
|
|
225
|
+
→ Solution: Apply different strategies, not just technical variations
|
|
226
|
+
- ❌ "Save as WAV" → "Save as MP3" → "Save as OGG"
|
|
227
|
+
WHY: Just format variations
|
|
228
|
+
✅ BETTER: Include workflow variations
|
|
229
|
+
- "Save locally (no cloud)" → "Save + manual upload" → "Save with auto-sync" → "Save multi-format (WAV/MP3/OGG)"
|
|
230
|
+
|
|
231
|
+
**Issue: "Can't think of strategies that apply"**
|
|
232
|
+
→ Solution: Look for linguistic indicators in step description
|
|
233
|
+
- Words like "and", "or", "manage" → split actions
|
|
234
|
+
- Mentions of "validation", "confirmation" → workflow simplification
|
|
235
|
+
- Data types mentioned → data variation
|
|
236
|
+
- User types mentioned → user segment narrowing
|
|
237
|
+
- When in doubt, start with Zero/One/Many + Dummy to Dynamic
|
|
238
|
+
|
|
239
|
+
**Interactive Use:**
|
|
240
|
+
If you're stuck, ask me to list strategies for a specific step, and I'll suggest applications.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## BEFORE SUBMITTING — verify for ALL Steps:
|
|
245
|
+
|
|
246
|
+
- [ ] ALL Steps have Incremental Options (no gaps)
|
|
247
|
+
- [ ] At least one option per step is clearly the simplest viable (Walking Skeleton candidate)
|
|
248
|
+
- [ ] Aim for 4+ options per step — 3 is acceptable if the step is genuinely narrow; note why
|
|
249
|
+
- [ ] Each option uses `[ ] **N.M: Name** - Description` format and is independently deployable
|
|
250
|
+
- [ ] Options progress from simple → complex
|
|
251
|
+
- [ ] Applied Strategies (2-3) and Rationale documented per step
|