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.
Files changed (28) hide show
  1. package/.agents/skills/bokata-acceptance-criteria/SKILL.md +235 -0
  2. package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +28 -0
  3. package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +65 -0
  4. package/.agents/skills/bokata-feature-mapper/SKILL.md +276 -0
  5. package/.agents/skills/bokata-feature-mapper/resources/bundling-heuristics.md +71 -0
  6. package/.agents/skills/bokata-feature-mapper/resources/examples.md +63 -0
  7. package/.agents/skills/bokata-feature-mapper/resources/methodology.md +91 -0
  8. package/.agents/skills/bokata-feature-mapper/resources/output-template.md +57 -0
  9. package/.agents/skills/bokata-feature-slicer/SKILL.md +207 -0
  10. package/.agents/skills/bokata-feature-slicer/resources/breakdown-strategies.md +122 -0
  11. package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +12 -0
  12. package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +24 -0
  13. package/.agents/skills/bokata-feature-slicer/resources/phase-1-steps.md +232 -0
  14. package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +251 -0
  15. package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +311 -0
  16. package/README.md +123 -0
  17. package/agents/bokata-product-designer.md +103 -0
  18. package/agents/bokata-product-engineer.md +104 -0
  19. package/agents/bokata-product-manager.md +96 -0
  20. package/bin/bokata.js +51 -0
  21. package/commands/codex/feature-map.md +263 -0
  22. package/commands/codex/slice-feature.md +291 -0
  23. package/commands/task-parallel/feature-map.md +273 -0
  24. package/commands/task-parallel/resources/html-template.md +560 -0
  25. package/commands/task-parallel/resources/story-map-template.md +495 -0
  26. package/commands/task-parallel/slice-feature.md +301 -0
  27. package/package.json +30 -0
  28. package/src/install.js +312 -0
@@ -0,0 +1,235 @@
1
+ ---
2
+ name: bokata-acceptance-criteria
3
+ description: Generates Gherkin Acceptance Criteria (Given/When/Then scenarios) using Feature Mapping and Example Mapping methodologies. Includes integrated discovery phase that asks clarifying questions about business rules and edge cases before generating criteria. Use this skill whenever you need testable specs for User Tasks, need to define business rules as scenarios, or want to formalize acceptance criteria from a backbone, PRD, or raw user stories.
4
+ ---
5
+
6
+ # Bokata: Acceptance Criteria Generator
7
+
8
+ ## Overview
9
+
10
+ The **Acceptance Criteria Generator** transforms User Tasks and requirements into robust, executable Gherkin scenarios (Given/When/Then). It applies **Feature Mapping** and **Example Mapping** methodologies to bridge the gap between high-level requirements and testable specifications.
11
+
12
+ This skill is flexible and methodology-agnostic regarding timing. It can generate criteria from a Feature Backbone, detailed Step Analysis, or raw User Stories.
13
+
14
+ > **When to use this vs `feature-backbone-specialist`:**
15
+ > `feature-backbone-specialist` generates **preliminary** Gherkin inline during backbone mapping — enough to validate scope and capture the happy path. Use **this skill** when you need **thorough coverage**: full edge cases, permission scenarios, boundary conditions, error states, and concurrency rules. Typically invoked after the backbone exists and for User Tasks that need production-grade specs.
16
+
17
+ ## Prerequisites
18
+
19
+ - Specific User Tasks or Requirements identified
20
+ - Understanding of the domain business rules
21
+
22
+ ---
23
+
24
+ ## Depth Mode
25
+
26
+ This skill supports two depth modes, selected via an argument flag:
27
+
28
+ - **`--functional`** (used when generating ACs directly from a Features Backbone, before slicing exists): Produces **Requirement + Scenario** style output matching openspec spec conventions — a SHALL-statement Requirement per Rule, with one or more WHEN/THEN Scenarios covering the primary rule and its most important variant. Optimized for business-rule clarity and traceability, not exhaustive edge-case coverage. Never scoped to Walking Skeleton items or Increments (they don't exist yet at this stage). Use [Functional Output Template](resources/output-template-functional.md).
29
+
30
+ - **`--concrete`** (used when generating ACs after a Feature has been sliced): Produces full Gherkin Given/When/Then coverage — happy path, edge cases, boundary conditions, error states, concurrency rules, and negative permission scenarios — exactly as this skill has always done. If the input contains a `## 💀 Walking Skeleton` / `## 🏗️ Increments Backlog` section, group scenarios by **Walking Skeleton item / Increment ID** instead of (or in addition to) User Task, so the output is directly consumable as an implementation handoff artifact. Use [Concrete Output Template](resources/output-template.md).
31
+
32
+ If no flag is provided, default to `--concrete` behavior (preserves current behavior for direct/standalone invocations).
33
+
34
+ ---
35
+
36
+ # YOUR ROLE
37
+
38
+ You are the **Criteria Architect** - specialized in discovering hidden business logic and edge cases, then formalizing them into strict Gherkin scenarios without getting bogged down in UI implementation details.
39
+
40
+ ---
41
+
42
+ # YOUR TASK
43
+
44
+ 1. **Analyze** the input document to identify Features and User Tasks.
45
+ 2. **Brainstorm Rules** (Business Logic/Constraints) for each task.
46
+ 3. **Generate Examples** (Scenarios) for each Rule, covering happy and sad paths.
47
+ 4. **Format as Gherkin** following the standard Given/When/Then syntax.
48
+ 5. **Return standard markdown output** using the format in [Template](resources/output-template.md).
49
+
50
+ ---
51
+
52
+ # MAPPING PRINCIPLES
53
+
54
+ - **Rule-First approach**: Identify the *Rule* (Constraint) before the *Example* (Scenario).
55
+ - **Concrete Data**: Use specific examples (e.g., "User 'Alice'", "Balance $50") rather than abstract terms.
56
+ - **Implementation Agnostic**: Describe *behavior*, not *buttons* or *code constructs*. Avoid "Click X", use "Submit form". Avoid class names, method names, or internal service references — describe what the system does, not how it does it internally.
57
+ - **Strict Gherkin**: Ensure proper use of Given/When/Then/And/But.
58
+
59
+ ---
60
+
61
+ ## Input (any form)
62
+
63
+ Accepts: User Tasks list, feature backbone text, PRD snippet, raw user stories, or conversation context.
64
+
65
+ **Optional enrichment (if present in context):**
66
+ - **Domain business rules** (e.g. `## Criteria Research Summary`) — constraints, permissions, state transitions, and boundary conditions across the feature domain; use as starting point for deriving Rules per User Task
67
+ - **Domain vocabulary and actors** (e.g. `## Feature Research Summary`) — use for consistent naming in scenarios
68
+ - **Task clarifications** (e.g. `## Discovery Context — Criteria`) — resolved ambiguities from prior discovery
69
+
70
+ Research context enriches output but is never required — proceed with any available context.
71
+
72
+ ---
73
+
74
+ # WORKFLOW
75
+
76
+ ---
77
+
78
+ ## Phase 0 — Discovery
79
+
80
+ **Skip this phase entirely** if a `## Discovery Context — Criteria` section (or an orchestrator's equivalent consolidated discovery context) is already present in the input, or if the invoking context states discovery was already completed upstream — proceed directly to Phase 1 using that context.
81
+
82
+ ### 🧠 Think (as an expert PM in discovery):
83
+ Before writing any rules or scenarios, scan each User Task for gaps that would produce wrong or incomplete acceptance criteria:
84
+
85
+ - **Success definition**: What exactly does "done" look like for this task? Is it unambiguous?
86
+ - **Data rules**: Are there validation constraints not stated? (format, length, uniqueness, allowed values)
87
+ - **Error states**: What happens if the input is invalid, missing, or duplicated?
88
+ - **Permissions**: Who can perform this action? Are there role-based restrictions?
89
+ - **State transitions**: What is the system state before and after? What gets created/updated/deleted?
90
+ - **Boundary conditions**: Are there numerical limits, time windows, or thresholds that define behavior?
91
+ - **Concurrency / ordering**: Does something need to happen first? Can two users trigger this simultaneously?
92
+
93
+ Only ask about gaps where **the answer would produce a different Gherkin scenario**. If the input already specifies it clearly, don't ask.
94
+
95
+ Focus on understanding **what the user asked for** — do not invent rules or constraints beyond what was requested.
96
+
97
+ ### ▶️ Execute:
98
+ 1. For each User Task, list ambiguities internally
99
+ 2. Filter to only **high-value questions** (answer changes a Rule or a Scenario)
100
+ 3. Group questions by User Task
101
+ 4. Present questions to the user using the format below
102
+
103
+ ---
104
+
105
+ > **CRITICAL: Do not skip. Stop here and wait for user answers before producing any output.**
106
+ >
107
+ > If the user says "skip", "use your judgment", or similar — state your assumptions explicitly and ask the user to confirm them before continuing.
108
+
109
+ ---
110
+
111
+ 5. State any assumptions you are making for gaps you are NOT questioning
112
+
113
+ **Format for questions:**
114
+ ```
115
+ ## Clarification Questions
116
+
117
+ ### [User Task Name]
118
+ - [Question about a specific business rule or edge case]
119
+ - [Question about an error state or permission]
120
+
121
+ ### [Another User Task Name]
122
+ - [Question]
123
+
124
+ **Assumptions I'm making (not asking):**
125
+ - [Assumption — reason it's safe to assume given the context]
126
+ ```
127
+
128
+ After receiving user answers, produce a `## Discovery Context — Criteria` section with findings organized per User Task:
129
+
130
+ For each User Task:
131
+ - **Success definition**: What "done" looks like, as clarified
132
+ - **Data rules confirmed**: Validation constraints, formats, and limits agreed upon
133
+ - **Error states defined**: Invalid/missing/duplicated input behaviors specified
134
+ - **Permissions confirmed**: Role-based access restrictions clarified
135
+ - **State transitions**: Before/after system state defined
136
+ - **Boundary conditions**: Numerical limits, time windows, thresholds confirmed
137
+ - **Concurrency handling**: Ordering requirements or simultaneous-access behavior specified
138
+ - **Assumptions**: Any remaining assumptions made where questions were not raised
139
+
140
+ ---
141
+
142
+ ## Phase 1: Input Analysis
143
+
144
+ ### 🧠 Think:
145
+ - What is the source of truth? (Backbone, Steps, PRD?)
146
+ - What are the distinct User Tasks?
147
+ - What is the user trying to achieve in each task?
148
+ - [List specific User Tasks to process]
149
+
150
+ ### ▶️ Execute:
151
+ 1. Read the provided input.
152
+ 2. Extract the list of User Tasks.
153
+
154
+ ---
155
+
156
+ ## Phase 2: Feature & Example Mapping
157
+
158
+ ### 🧠 Think:
159
+ For EACH User Task:
160
+ - **Identify Rules (Blue Cards):**
161
+ - What are the validation constraints?
162
+ - What permissions are required?
163
+ - What state changes happen?
164
+ - What happens if X fails?
165
+ - **Generate Examples (Green Cards):**
166
+ - What is a standard success case?
167
+ - What is a critical error case?
168
+ - What is a boundary case?
169
+ - **Translate to Gherkin:**
170
+ - Given: Preconditions
171
+ - When: Action
172
+ - Then: Observable Result
173
+
174
+ ### ▶️ Execute:
175
+ 1. Define Rules per User Task — if domain business rules or constraints are present in context (e.g. `## Criteria Research Summary`), use them as the source of Rules: map each domain constraint to the relevant User Task before generating scenarios
176
+ 2. Write Scenarios per Rule
177
+ - **If `--functional` mode**: Write ONE representative Scenario per Rule covering the primary happy path plus, only where business-critical, one key variant. Do not enumerate the full edge-case/boundary/concurrency matrix — that is deferred to the `--concrete` pass after slicing.
178
+ - **If `--concrete` mode**: Ensure coverage of Happy Path and Edge Cases, boundary conditions, error states, concurrency rules, and negative permission scenarios per existing quality bar
179
+ 3. Include at least one negative permission scenario where applicable (in `--concrete` mode; optional in `--functional`)
180
+
181
+ ---
182
+
183
+ ## Phase 3: Generate Output
184
+
185
+ ### 🧠 Think:
186
+ - Do the scenarios strictly follow Gherkin syntax (in `--concrete` mode) or WHEN/THEN style (in `--functional` mode)?
187
+ - Are the Rules clearly defined as headers?
188
+ - Is the data concrete and meaningful?
189
+ - Did I avoid UI implementation details?
190
+ - Are Feature and Task IDs cross-linked from the backbone?
191
+ - **If `--concrete` with Walking Skeleton input**: Are scenarios grouped by skeleton item/increment, not just by User Task?
192
+
193
+ ### ▶️ Execute:
194
+ Generate markdown output via:
195
+ - **If `--functional`**: [Functional Output Template](resources/output-template-functional.md) (Requirement + WHEN/THEN Scenarios, whole-Feature scope)
196
+ - **If `--concrete`**: [Concrete Output Template](resources/output-template.md) (full Gherkin, per-skeleton-item/increment grouping if applicable)
197
+
198
+ ---
199
+
200
+ # QUALITY CRITERIA
201
+
202
+ ✅ **Structure**
203
+ - [ ] Grouped strictly by **Feature** -> **User Task**
204
+ - [ ] **Rules** clearly headers above Scenarios
205
+ - [ ] Uses strictly the provided output template
206
+ - [ ] Feature ID and Task ID cross-links present
207
+
208
+ ✅ **Gherkin Syntax**
209
+ - [ ] Keywords (Given/When/Then) used correctly
210
+ - [ ] Single Action per Scenario (one "When")
211
+ - [ ] Atomic Assertions (clear "Then" statements)
212
+
213
+ ✅ **Content Quality**
214
+ - [ ] **Concrete:** Uses specific values ("Role: Admin"), not abstract ones ("Proper role")
215
+ - [ ] **Behavioral:** Describes domain intent — not UI clicks, not code constructs (class names, method names, internal service names)
216
+ - [ ] **Coverage:** Includes at least one Happy Path and one Edge Case per Task where applicable
217
+ - [ ] **Permissions:** Negative permission scenarios included where applicable
218
+
219
+ ---
220
+
221
+ # OUTPUT CHECKLIST
222
+
223
+ Before finishing, verify your output:
224
+
225
+ - [ ] Feature ID cross-link present: `<!-- Feature ID: {PRJ}-FEAT-{hash} | Source: features.md -->`
226
+ - [ ] All User Tasks have Task ID cross-link: `<!-- Task ID: {PRJ}-TASK-{hash} | Source: features.md -->`
227
+ - [ ] Research context used if available (never blocking)
228
+ - [ ] All User Tasks from input are covered
229
+ - [ ] No "Click button" steps (UI details) — no class/method names or internal service references (code constructs)
230
+ - [ ] Rules are explicitly stated
231
+ - [ ] Template structure is preserved
232
+
233
+ **Depth Mode Specific:**
234
+ - [ ] **If `--functional`**: Output uses `### Requirement:` + `#### Scenario:` headers (not strict Given/When/Then); coverage is breadth (primary rule + key variants) not exhaustive edge cases
235
+ - [ ] **If `--concrete`**: Output uses strict `Given/When/Then` Gherkin; coverage is exhaustive (edge cases, boundary, concurrency, permissions); if Walking Skeleton input is present, scenarios are grouped by skeleton item / increment ID
@@ -0,0 +1,28 @@
1
+ # Acceptance Criteria (Functional): {{ FEATURE_NAME }}
2
+ <!-- Feature ID: {{ FEAT_ID }} | Source: backbone.md | Depth: functional -->
3
+
4
+ ## User Task: {{ USER_TASK_NAME }}
5
+ <!-- Task ID: {{ TASK_ID }} | Source: backbone.md -->
6
+
7
+ ### Requirement: {{ REQUIREMENT_SUMMARY }}
8
+ The system SHALL {{ requirement statement }}.
9
+
10
+ #### Scenario: {{ SCENARIO_NAME }}
11
+ - **WHEN** {{ trigger }}
12
+ - **THEN** {{ observable result }}
13
+
14
+ #### Scenario: {{ VARIANT_SCENARIO_NAME }} (if applicable — primary variant only)
15
+ - **WHEN** {{ alternate trigger }}
16
+ - **THEN** {{ observable result }}
17
+
18
+ ---
19
+
20
+ ## User Task: {{ NEXT_USER_TASK_NAME }}
21
+ <!-- Task ID: {{ NEXT_TASK_ID }} | Source: backbone.md -->
22
+
23
+ ### Requirement: {{ REQUIREMENT_SUMMARY }}
24
+ The system SHALL {{ requirement statement }}.
25
+
26
+ #### Scenario: {{ SCENARIO_NAME }}
27
+ - **WHEN** {{ trigger }}
28
+ - **THEN** {{ observable result }}
@@ -0,0 +1,65 @@
1
+ # Acceptance Criteria: {{ FEATURE_NAME }}
2
+ <!-- Feature ID: {PRJ}-FEAT-{hash} | Source: features.md -->
3
+
4
+ **Feature Purpose**: {{ FEATURE_PURPOSE }}
5
+
6
+ ---
7
+
8
+ ## Research Summary
9
+
10
+ **Preconditions:** [key preconditions that apply across tasks]
11
+ **Permission boundaries:** [who can / cannot interact with this feature]
12
+ **Key limits/formats:** [numeric bounds, format constraints]
13
+ **Side effects:** [notifications, events, state changes in other systems]
14
+
15
+ ---
16
+
17
+ ## User Task: {{ USER_TASK_NAME }}
18
+ <!-- Task ID: {PRJ}-TASK-{hash} | Source: features.md -->
19
+
20
+ ### Rule: {{ RULE_SUMMARY }}
21
+ <!--
22
+ Identify a specific constraint or business logic rule for this task.
23
+ Example: "Registration requires a valid email format"
24
+ -->
25
+
26
+ ```gherkin
27
+ Scenario: {{ SCENARIO_NAME }}
28
+ Given {{ CONTEXT }}
29
+ When {{ ACTION }}
30
+ Then {{ EXPECTED_RESULT }}
31
+ ```
32
+
33
+ ### Rule: {{ RULE_SUMMARY_2 }}
34
+
35
+ ```gherkin
36
+ Scenario: {{ SCENARIO_NAME_2 }}
37
+ Given {{ CONTEXT }}
38
+ When {{ ACTION }}
39
+ Then {{ EXPECTED_RESULT }}
40
+ ```
41
+
42
+ <!-- Negative permission scenario (from permission matrix research) -->
43
+ ### Rule: {{ PERMISSION_RULE }}
44
+
45
+ ```gherkin
46
+ Scenario: Unauthorized actor attempt
47
+ Given [unauthorized actor in state X]
48
+ When they attempt [action]
49
+ Then the system denies the action
50
+ And [appropriate error/feedback is shown]
51
+ ```
52
+
53
+ ---
54
+
55
+ ## User Task: {{ USER_TASK_NAME_2 }}
56
+ <!-- Task ID: {PRJ}-TASK-{hash} | Source: features.md -->
57
+
58
+ ### Rule: {{ RULE_SUMMARY }}
59
+
60
+ ```gherkin
61
+ Scenario: {{ SCENARIO_NAME }}
62
+ Given {{ CONTEXT }}
63
+ When {{ ACTION }}
64
+ Then {{ EXPECTED_RESULT }}
65
+ ```
@@ -0,0 +1,276 @@
1
+ ---
2
+ name: bokata-feature-mapper
3
+ description: Identifies Features and User Tasks using User Story Mapping methodology. Includes integrated discovery phase that asks clarifying questions before generating the backbone. Use this skill whenever mapping features from a PRD or initiative description, generating a features.md, or decomposing user goals into tasks.
4
+ ---
5
+
6
+ # Bokata: Features Backbone Specialist
7
+
8
+ ## Overview
9
+
10
+ The **Features Backbone Specialist** uses User Story Mapping methodology to identify the high-level Features and User Tasks that represent your complete user journey.
11
+
12
+ This skill follows a "Mile Wide, Inch Deep" philosophy to map the entire scope before drilling into details.
13
+
14
+ ---
15
+
16
+ # YOUR ROLE
17
+
18
+ You are the **Features Backbone Specialist** - responsible for identifying Features and User Tasks that represent the complete user journey using User Story Mapping methodology.
19
+
20
+ ---
21
+
22
+ # YOUR TASK
23
+
24
+ 1. Read project context
25
+ 2. Identify Features (high-level goals) in `[Actor] [Verb] [Object]` format
26
+ 3. For each Feature: identify User Tasks (`[Verb] [Object]`) — **Do NOT include the Actor**
27
+ 4. Identify System Tasks where workflow transitions exist
28
+ 5. Organize by user journey narrative
29
+ 6. Document feature-level dependencies
30
+ 7. **Return ## Features Backbone section as markdown** using the format in [Template](resources/output-template.md)
31
+
32
+ ---
33
+
34
+ # INPUT
35
+
36
+ Accepts any description of an initiative in any form: plain text, PRD, conversation context, or an enriched document.
37
+
38
+ **Optional enrichment (if present in context):**
39
+ - **Technical landscape** (e.g. `## Context Analysis`) — project architecture, patterns, tech stack
40
+ - **Domain research** (e.g. `## Feature Research Summary`) — domain vocabulary, actors, scope boundaries, and key risks found in the codebase
41
+ - **Business rules** (e.g. `## Criteria Research Summary`) — domain-level constraints and permissions that inform Feature scope
42
+ - **Clarified scope** (e.g. `## Discovery Context — Backbone`) — actor and scope decisions from prior discovery
43
+
44
+ ---
45
+
46
+ # METHODOLOGY & PRINCIPLES
47
+
48
+ See [Methodology & Principles](resources/methodology.md) for naming conventions and identification guidelines.
49
+
50
+ ---
51
+
52
+ # WORKFLOW
53
+
54
+ **Important:** Think step-by-step before executing each phase.
55
+
56
+ ---
57
+
58
+ ## Phase 0 — Discovery
59
+
60
+ **Skip this phase entirely** if a `## Discovery Context — Backbone` section (or an orchestrator's equivalent consolidated discovery context) is already present in the input — proceed directly to Step 1 using that context.
61
+
62
+ ### 🧠 Think (as an expert PM in discovery):
63
+ Before generating anything, scan the input for gaps that would force wrong assumptions:
64
+
65
+ - **Actors**: Are all user types identified? Could there be a secondary actor (admin, guest, system)?
66
+ - **Scope**: Is the full requested functionality clear? Are there capabilities mentioned vaguely that need clarification?
67
+ - **Flows**: Are there entry/exit conditions not described? What happens before the first task? After the last?
68
+ - **Constraints**: Are there business rules implied but not stated (uniqueness, limits, permissions)?
69
+ - **Edge cases**: What happens when the user hasn't completed a prerequisite step?
70
+ - **Ambiguous ownership**: Could any feature belong to different actors depending on context?
71
+
72
+ Focus on understanding **what the user asked for** — do not add, remove, or assume scope beyond that.
73
+
74
+ Only ask about gaps where **the answer would meaningfully change the output**. If the context already makes it clear, don't ask.
75
+
76
+ ### ▶️ Execute:
77
+ 1. List all identified ambiguities internally
78
+ 2. Filter to only **high-value questions** (answer changes features, actors, or scope)
79
+ 3. Group questions by theme (Scope, Actors, Flows, Constraints)
80
+ 4. Present questions to the user using the format below
81
+
82
+ ---
83
+
84
+ > **CRITICAL: Do not skip. Stop here and wait for user answers before producing any output.**
85
+ >
86
+ > If the user says "skip", "use your judgment", or similar — state your assumptions explicitly and ask the user to confirm them before continuing.
87
+
88
+ ---
89
+
90
+ 5. State any assumptions you are making for gaps you are NOT questioning
91
+
92
+ **Format for questions:**
93
+ ```
94
+ ## Clarification Questions
95
+
96
+ **Scope**
97
+ - [Question about what's in/out of scope]
98
+
99
+ **Actors & Permissions**
100
+ - [Question about who can do what]
101
+
102
+ **Flows & Edge Cases**
103
+ - [Question about what happens when X]
104
+
105
+ **Assumptions I'm making (not asking):**
106
+ - [Assumption 1 — reason it's safe to assume]
107
+ - [Assumption 2]
108
+ ```
109
+
110
+ After receiving user answers, produce a `## Discovery Context — Backbone` section with:
111
+
112
+ - **Actors confirmed**: All user types and their roles, as clarified
113
+ - **Scope boundaries**: What is explicitly in/out of scope, as clarified
114
+ - **Flow clarifications**: Entry/exit conditions and edge cases resolved
115
+ - **Constraints confirmed**: Business rules and permission boundaries clarified
116
+ - **Assumptions**: Any remaining assumptions made where questions were not raised
117
+
118
+ ---
119
+
120
+ ## Step 1: Extract Requirements
121
+
122
+ ### 🧠 Think:
123
+ - What is the project domain and purpose?
124
+ - Who are the target users?
125
+ - What core capabilities were identified?
126
+ - What are the main user goals?
127
+
128
+ ### ▶️ Execute:
129
+ Read the provided input or context and extract:
130
+ - Project domain and purpose
131
+ - Target users and their goals
132
+ - Core capabilities list
133
+ - Business rules and constraints
134
+
135
+ ---
136
+
137
+ ## Step 2: Identify Features (High-Level Goals)
138
+
139
+ ### 🧠 Think:
140
+ - What broader goals do users have? (not individual actions)
141
+ - What are the distinct phases of the user journey?
142
+ - Can each goal be completed as a coherent unit?
143
+ - Do these represent different stages (setup → core → enhancement)?
144
+
145
+ ### ▶️ Execute:
146
+ Group capabilities into Features following the [Methodology Guidelines](resources/methodology.md). Ensure each Feature name follows **[Actor] [Verb] [Object]**.
147
+
148
+ **Bundling check at Feature level:** Scan each candidate Feature name for **conjunctions** (y, and, or) or **dual-domain objects** ("Users and Permissions", "Profile and Settings") — these usually signal two separate Features. Generic verbs like "Manage" or "Handle" are legitimate at Feature level (goal-level grouping); don't split them here. See [Bundling Heuristics](resources/bundling-heuristics.md) — "When NOT to split" section especially.
149
+
150
+ ---
151
+
152
+ ## Step 3: For Each Feature — Identify User Tasks
153
+
154
+ ### 🧠 Think:
155
+ - For each Feature, what are the concrete user actions?
156
+ - Are these actions distinct and independent?
157
+ - Does each action deliver observable value?
158
+ - Have I separated CRUD operations where appropriate?
159
+ - Have I avoided system-internal tasks (validation, persistence)?
160
+ - Are there workflow transitions that require System Tasks?
161
+
162
+ ### ▶️ Execute:
163
+ Identify 3+ User Tasks per Feature following the [Naming Conventions](resources/methodology.md) (`[Verb] [Object]`, NO actor).
164
+
165
+ **Bundling check (before moving to Step 4):** Scan each candidate task name using [Bundling Heuristics](resources/bundling-heuristics.md). Catch bundled tasks here — before generating ACs — to avoid rework. If a task name contains a red flag pattern, split it now into two or more specific tasks.
166
+
167
+ **System Task classification (critical):** Identify potential System Tasks, then apply methodology.md's workflow-transition test to each:
168
+ - **Workflow transition** (autonomous state change: app launch, connection lost/restored, session expiry): keep as standalone System Task with explicit trigger, trigger type, and format `System Task {N}.{M}: [Verb] [Object]`.
169
+ - **Direct user action forming an indivisible unit with its response** (user action and system response expected as one unit, e.g., "user taps calculate → system returns total"): do NOT create a System Task — instead, embed the system behavior as 1–2 lines added to the User Task description, prefaced by "On [user action], system [response]."
170
+ See [System Tasks section in Methodology](resources/methodology.md) for the full test and examples.
171
+
172
+ **If reference/legacy documents were provided as accelerant input** (an existing backbone, PRD, or prior feature-map output), their System Tasks are NOT pre-validated against this test — do not carry over their granularity uncritically. Re-run the classification above against every System Task they list, exactly as you would for one you invented yourself.
173
+
174
+ ---
175
+
176
+ ## Step 4: Organize by Journey
177
+
178
+ ### 🧠 Think:
179
+ - What's the natural sequence? (What happens first? core? later?)
180
+ - Are Features arranged chronologically?
181
+ - Are User Tasks within each Feature logically ordered?
182
+ - What dependencies exist between Features?
183
+
184
+ ### ▶️ Execute:
185
+ Arrange Features and User Tasks in chronological user journey order.
186
+
187
+ ---
188
+
189
+ ## Step 5: Document Dependencies
190
+
191
+ ### 🧠 Think:
192
+ - What dependencies exist between Features?
193
+ - Which Features enable others?
194
+ - Can any Features be done independently?
195
+
196
+ ### ▶️ Execute:
197
+ For each Feature, document dependencies by:
198
+ 1. Identifying prerequisites (what must exist first)
199
+ 2. Identifying downstream dependencies (what this Feature enables)
200
+ 3. Marking independent Features (no dependencies)
201
+ 4. Categorizing as Critical, Recommended, or Independent
202
+
203
+ ---
204
+
205
+ ## Step 6: Final Validation & Output
206
+
207
+ ### 🧠 Think:
208
+ - Do I have MIN 2 Features? (WARNING if exactly 2)
209
+ - Does each Feature have MIN 3 User Tasks? (WARNING if exactly 3)
210
+ - Do all Features follow `[Actor] [Verb] [Object]` format?
211
+ - Do all User Tasks follow `[Verb] [Object]` format (NO actor)?
212
+ - Do all System Tasks have an explicit Trigger?
213
+ - **Has each System Task been tested against the workflow-transition test?** (Only workflow transitions remain as standalone System Tasks; all direct-user-action responses are embedded in User Tasks.)
214
+ - Do Features/User Tasks/System Tasks use the correct heading levels from output-template.md (`#### Feature`, `##### User Task`, `##### System Task`)?
215
+
216
+ ### ▶️ Execute:
217
+ **Before generating final output, produce a System Task Trigger Audit** — a table with one row per candidate System Task (including any inherited from reference/legacy input, and any introduced while incorporating trio review findings):
218
+
219
+ | Candidate System Task | Trigger | Classification | Verdict |
220
+ |---|---|---|---|
221
+ | e.g. Query Spatial Index | map viewport changes | Direct user action (Task 008 pan/zoom) | Embed into Task 008 |
222
+ | e.g. Detect Network Status | connectivity changes | Autonomous workflow transition | Standalone |
223
+
224
+ This table is internal reasoning — it does not need to be shown to the user — but it must be produced and every candidate resolved before writing the final backbone. A System Task only survives into the output if its row says "Standalone." This step exists specifically to stop a checklist bullet from being ticked without genuinely re-deriving each item — do not skip it even if the System Tasks "look right" from a prior draft or reference document.
225
+
226
+ Then generate markdown output following the [Output Template](resources/output-template.md).
227
+
228
+ ---
229
+
230
+ # QUALITY CRITERIA & EXAMPLES
231
+
232
+ Check your output against the [Quality Criteria](resources/methodology.md) and see [Example Implementations](resources/examples.md) for reference.
233
+
234
+ ---
235
+
236
+ # OUTPUT CHECKLIST
237
+
238
+ Before finishing, verify your output:
239
+
240
+ - [ ] `<!-- Initiative: X | Date: Y | Constitution: version -->` header present
241
+ - [ ] `## Features Backbone` section header present
242
+ - [ ] `### Feature Overview` section with 2-3 sentence narrative
243
+ - [ ] `### Features Map` section with all Features listed
244
+ - [ ] `### Feature Dependencies` section documented
245
+ - [ ] `### Constitution Compliance` checklist completed
246
+ - [ ] 2+ Features identified (MIN 2)
247
+ - [ ] Each Feature has `<!-- ID: {PRJ}-FEAT-{hash} -->` comment
248
+ - [ ] Each Feature follows `[Actor] [Verb] [Object]` format
249
+ - [ ] 3+ User Tasks per Feature (MIN 3)
250
+ - [ ] Each User Task has `<!-- Task ID: {PRJ}-TASK-{hash} -->` comment
251
+ - [ ] All User Tasks follow `[Verb] [Object]` format (NO actor)
252
+ - [ ] Each System Task has an explicit **Trigger** field
253
+ - [ ] Each System Task uses naming format `System Task {N}.{M}: [Verb] [Object]` (with numbering per Feature)
254
+ - [ ] **Each System Task's Trigger is a genuine workflow transition, NOT a direct user action** — apply methodology.md's test: is the trigger an autonomous state change (app launch, connection restored, session expired) or a direct response to a user action? If the latter and the response is an indivisible unit with the user action (like "user clicks calculate → system returns total"), the behavior must be embedded into the User Task instead, not listed as a standalone System Task
255
+ - [ ] Feature/User Task/System Task use the heading levels from output-template.md: `#### Feature`, `##### User Task`, `##### System Task` (not bold text)
256
+ - [ ] User Task descriptions describe user actions, not implementation details (no class names, method names, or internal service references)
257
+
258
+ **User Task Bundling Check — scan each User Task name before finalizing:**
259
+
260
+ Read [Bundling Heuristics](resources/bundling-heuristics.md) for the full 6-pattern reference with Usage explanations and examples.
261
+
262
+ Quick scan — flag any task whose name contains:
263
+ - [ ] Conjunctions: y, o, and, or → likely two tasks
264
+ - [ ] Generic action verbs: gestionar, manejar, manage, handle, administer → likely CRUD bundling
265
+ - [ ] Sequence words: antes de, después de, then, while → likely multi-phase flow
266
+ - [ ] Scope additions: incluyendo, también, including, also, additionally → separable feature
267
+ - [ ] Options: opcionalmente, either/or, alternatively → multiple paths
268
+ - [ ] Exceptions: excepto, unless, however → edge case or special rule
269
+
270
+ ---
271
+
272
+ ## NEXT STEPS
273
+
274
+ 1. **Save output** where appropriate
275
+ 2. **Validate** - Check MIN 2 Features, 3+ Tasks per Feature
276
+ 3. **Run next phase:** Proceed to feature slicing for each Feature
@@ -0,0 +1,71 @@
1
+ # Linguistic Heuristics for Detecting Bundled User Tasks
2
+
3
+ User Tasks in `[Verb][Object]` format can hide bundled work. Scan each task name for these patterns before finalizing the backbone.
4
+
5
+ ---
6
+
7
+ ## 1. Coordinating Conjunctions (y, o, and, or, but, yet, nor...)
8
+
9
+ **Why it signals bundling:** If a task says "X and Y," it's likely two tasks — one for X, one for Y. Each observable action delivers its own value independently.
10
+
11
+ - "Registrar y Verificar Cuenta" → "Registrar Cuenta" + "Verificar Email"
12
+ - "Upload and Download Files" → "Upload File" + "Download File"
13
+
14
+ ---
15
+
16
+ ## 2. Action-Related Connectors (gestionar, manejar, administrar, manage, handle, support, process, maintain, administer...)
17
+
18
+ **Why it signals bundling:** These generic verbs hide multiple concrete actions. "Gestionar" almost always means create + read + update + delete — each of which could be its own task. The exception is when the task is genuinely a goal-level grouping (e.g., "Player Manages Competitive Profile" as a Feature is fine; as a User Task it likely bundles too much).
19
+
20
+ - "Gestionar Perfil" → "Crear Perfil" + "Editar Perfil" + "Eliminar Cuenta"
21
+ - "Manage Notifications" → "Enable Notifications" + "Configure Notification Preferences"
22
+
23
+ **How to decide:** Ask — does the user experience this as one flow, or as multiple distinct moments? If distinct, split.
24
+
25
+ ---
26
+
27
+ ## 3. Sequence Connectors (antes de, después de, mientras, before, after, then, while, during, when...)
28
+
29
+ **Why it signals bundling:** Sequence words indicate a process with multiple phases. Each phase is a candidate for its own task because users experience them at different moments.
30
+
31
+ - "Guardar Partida Antes de Salir" → "Guardar Partida" + "Salir de la Partida"
32
+ - "Review Before Submit" → "Review Draft" + "Submit Form"
33
+
34
+ ---
35
+
36
+ ## 4. Scope Indicators (incluyendo, también, además, including, also, additionally, plus, along with, as well as...)
37
+
38
+ **Why it signals bundling:** These words introduce extra requirements that were added as afterthoughts. They're usually separable features, not parts of the same action.
39
+
40
+ - "Buscar Partidas incluyendo filtros avanzados" → "Buscar Partidas" + "Filtrar Resultados"
41
+ - "Send Notifications including email and SMS" → "Send Email Notification" + "Send SMS Notification"
42
+
43
+ ---
44
+
45
+ ## 5. Option Indicators (opcionalmente, ya sea, either/or, whether, alternatively, optionally...)
46
+
47
+ **Why it signals bundling:** Options mean multiple paths through the system. Each path usually deserves its own task because it has different rules, preconditions, and behavior.
48
+
49
+ - "Iniciar Sesión con contraseña o con Google" → "Iniciar Sesión con Contraseña" + "Iniciar Sesión con Google"
50
+ - "Pay with card or bank transfer" → "Pay with Card" + "Pay with Bank Transfer"
51
+
52
+ ---
53
+
54
+ ## 6. Exception Indicators (excepto, a menos que, sin embargo, except, unless, however, although, despite...)
55
+
56
+ **Why it signals bundling:** Exceptions point to edge cases or special rules that apply to a subset of users or conditions. These are usually distinct enough in business logic to warrant a separate task.
57
+
58
+ - "Eliminar Cuenta a menos que sea Admin" → "Eliminar Cuenta de Usuario" + "Restricciones de Cuenta Admin"
59
+ - "Cancel Order unless shipped" → "Cancel Pending Order" + "Request Return for Shipped Order"
60
+
61
+ ---
62
+
63
+ ## When NOT to split
64
+
65
+ Not every instance of these words signals bundling:
66
+
67
+ - **Feature level** (Activities): "Player Manages Competitive Profile" as a **Feature** is fine — it's a goal-level grouping. The same words at **User Task** level are the problem.
68
+ - **Naturally atomic actions**: "Search and Display Results" in context could be one task if search + display is a single user-facing interaction with no separate value delivery.
69
+ - **Gherkin scenarios** within a task often use sequence words — that's not bundling, that's describing the flow.
70
+
71
+ Use judgment: the test is whether each part can deliver **independent observable value** to the user.