@vesviet/agent-skills 5.6.0 → 5.7.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 (184) hide show
  1. package/INDEX.md +5 -5
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +12 -12
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/README.md +1 -1
  10. package/core/contracts/schemas/api-contract-spec.json +191 -191
  11. package/core/contracts/schemas/data-pipeline-spec.json +1 -1
  12. package/core/contracts/schemas/design-tokens-spec.json +19 -0
  13. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  14. package/core/contracts/schemas/pull-request-spec.json +338 -338
  15. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  16. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  17. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  18. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  19. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  20. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  21. package/core/contracts/schemas/security-audit.json +143 -12
  22. package/core/contracts/schemas/system-design-spec.json +9 -1
  23. package/core/contracts/schemas/test-report.json +530 -530
  24. package/core/contracts/schemas/ux-flow-spec.json +66 -0
  25. package/core/roles/ai-systems-engineer.md +31 -18
  26. package/core/roles/aws-engineer.md +33 -29
  27. package/core/roles/backend-developer.md +6 -4
  28. package/core/roles/content-manager.md +7 -7
  29. package/core/roles/data-engineer.md +39 -36
  30. package/core/roles/qa-engineer.md +18 -18
  31. package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
  32. package/core/roles/references/aws-engineer-review-checklist.md +29 -16
  33. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  34. package/core/roles/references/content-manager-governance-standards.md +2 -2
  35. package/core/roles/references/content-manager-review-checklist.md +7 -1
  36. package/core/roles/references/data-engineer-review-checklist.md +11 -3
  37. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  38. package/core/roles/references/qa-engineer-review-checklist.md +10 -5
  39. package/core/roles/references/security-engineer-review-checklist.md +8 -0
  40. package/core/roles/references/solution-architect-review-checklist.md +6 -1
  41. package/core/roles/references/system-engineer-review-checklist.md +11 -0
  42. package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
  43. package/core/roles/security-engineer.md +35 -5
  44. package/core/roles/solution-architect.md +7 -7
  45. package/core/roles/system-engineer.md +470 -465
  46. package/core/roles/ui-ux-designer.md +17 -3
  47. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  48. package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
  49. package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
  50. package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
  51. package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
  52. package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
  53. package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
  54. package/core/skills/backend/add-event-handler/SKILL.md +1 -0
  55. package/core/skills/backend/add-service-client/SKILL.md +1 -0
  56. package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
  57. package/core/skills/backend/implement-auth/SKILL.md +1 -0
  58. package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
  59. package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
  60. package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
  61. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  62. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  63. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  64. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  65. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  66. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  67. package/core/skills/content/audit-content/SKILL.md +3 -2
  68. package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
  69. package/core/skills/content/design-content-strategy/SKILL.md +6 -5
  70. package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
  71. package/core/skills/content/optimize-seo/SKILL.md +6 -5
  72. package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
  73. package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
  74. package/core/skills/content/repurpose-content/SKILL.md +4 -3
  75. package/core/skills/content/write-article/SKILL.md +6 -5
  76. package/core/skills/content/write-copy/SKILL.md +3 -2
  77. package/core/skills/document/pptx/SKILL.md +1 -0
  78. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  79. package/core/skills/document/pptx/scripts/clean.py +0 -0
  80. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  81. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  82. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  83. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  84. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  85. package/core/skills/foundation/design-review/SKILL.md +11 -1
  86. package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
  87. package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
  88. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  89. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  90. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  91. package/core/skills/foundation/write-tests/SKILL.md +11 -10
  92. package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
  93. package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
  94. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  95. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
  96. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
  97. package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
  98. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  99. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  100. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
  101. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  102. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  103. package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
  104. package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
  105. package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
  106. package/core/skills/platform/system-design/SKILL.md +7 -0
  107. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  108. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  109. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  110. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  111. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  112. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  113. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  114. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  115. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  116. package/core/skills/platform/web-perf/SKILL.md +151 -151
  117. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  118. package/core/skills/product/build-story-map/SKILL.md +104 -104
  119. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  120. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  121. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  122. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  123. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  124. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  125. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  126. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  127. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  128. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  129. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  130. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  131. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  132. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  133. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  134. package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
  135. package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
  136. package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
  137. package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
  138. package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
  139. package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
  140. package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
  141. package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
  142. package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
  143. package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
  144. package/core/skills/security-data/security-audit/SKILL.md +126 -119
  145. package/core/workflows/add-new-feature.md +212 -212
  146. package/core/workflows/agent-a2a-delegation.md +142 -142
  147. package/core/workflows/bug-fix.md +147 -147
  148. package/core/workflows/build-deploy.md +208 -208
  149. package/core/workflows/code-review.md +137 -137
  150. package/core/workflows/curriculum-delivery.md +1 -1
  151. package/core/workflows/dependency-upgrade.md +193 -193
  152. package/core/workflows/feature-delivery.md +149 -149
  153. package/core/workflows/hotfix-production.md +172 -172
  154. package/core/workflows/qa-validation.md +231 -231
  155. package/core/workflows/refactoring.md +154 -154
  156. package/core/workflows/revert-deployment.md +147 -147
  157. package/core/workflows/security-incident-response.md +191 -191
  158. package/core/workflows/seo-content-lifecycle.md +91 -91
  159. package/core/workflows/service-review-release.md +223 -223
  160. package/core/workflows/setup-new-service.md +214 -214
  161. package/core/workflows/tech-repo-review.md +245 -245
  162. package/core/workflows/troubleshooting.md +241 -241
  163. package/overlays/astro-cloudflare/README.md +93 -93
  164. package/overlays/data-analyst-stack/README.md +109 -109
  165. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  166. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  167. package/overlays/ecommerce-microservices/README.md +65 -65
  168. package/overlays/go-microservices/README.md +78 -78
  169. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  170. package/overlays/laravel-filament/README.md +90 -90
  171. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  172. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  173. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  174. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  175. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  176. package/overlays/r3f-stack/README.md +89 -89
  177. package/overlays/r3f-stack/rules/stub.md +43 -43
  178. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  179. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  180. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  181. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  182. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  183. package/package.json +2 -2
  184. package/core/README.md +0 -53
@@ -1,104 +1,104 @@
1
- ---
2
- name: build-story-map
3
- description: Structure and visualize product backlogs using Jeff Patton User Story Mapping, MoSCoW release swimlanes, and Critical Path Method (CPM) dependency scheduling. Use when organizing features into Epic-to-Story hierarchies, defining MVP walking skeletons, slicing releases, calculating float time on critical path tasks, or handing off scoped initiatives to engineering.
4
- allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
- ---
6
-
7
- # Build Story Map
8
-
9
- Use this skill to structure product requirements into multidimensional User Story Maps, define MVP walking skeletons, slice releases into prioritized swimlanes, and schedule dependencies using the Critical Path Method (CPM).
10
-
11
- ## When to Use
12
-
13
- - converting linear, overwhelming backlogs into structured 2D User Story Maps
14
- - defining the minimum end-to-end viable product (**Walking Skeleton**) for early testing
15
- - slicing feature releases into thematic swimlanes (MVP, Release 1.1, Release 2.0)
16
- - conducting MoSCoW prioritization across release slices
17
- - analyzing project schedule dependencies and calculating critical path float time (CPM)
18
- - preparing structured, unambiguous delivery handoffs for engineering and business analysis
19
-
20
- ## Core Rules
21
-
22
- - **Enforce Jeff Patton 2-Dimensional Story Map Structure**:
23
- - *Horizontal Axis (Narrative Flow / User Journey)*:
24
- - Top Level: **User Activities** (The Backbone; e.g. Discover, Onboard, Create, Checkout)
25
- - Mid Level: **User Tasks / Steps** (The Walking Skeleton; e.g. Select Plan, Enter Payment)
26
- - *Vertical Axis (Release Priority & Depth)*:
27
- - Slice down by sophistication: MVP (simplest functional end-to-end path) → Iteration 1 → Future Enhancements
28
- - **Mandate the Walking Skeleton Concept**:
29
- - The MVP slice must be a complete end-to-end journey that works, even if crude or manual behind the scenes
30
- - Ban building disconnected silos (e.g. 100% of User Management built while Checkout remains non-functional)
31
- - **Tag MoSCoW Priorities per Swimlane**:
32
- - *Must-Have (M)*: Non-negotiable for that specific release slice
33
- - *Should-Have (S)*: Important but not critical to initial go-live
34
- - *Could-Have (C)*: Desirable delighter if velocity permits
35
- - *Won't-Have this time (W)*: Explicitly excluded from the active swimlane
36
- - **Apply Critical Path Method (CPM) Analysis**:
37
- - Map explicit dependency arrows between cross-functional delivery tasks
38
- - Calculate Early Start (ES), Early Finish (EF), Late Start (LS), and Late Finish (LF)
39
- - Identify the **Critical Path**: sequence of dependent tasks where $\text{Float} = \text{LS} - \text{ES} = 0$; any delay on this path directly delays project launch
40
- - **Structured A2A Delivery Handoff**:
41
- - Every mapped story must be ready for export into `core/contracts/schemas/feature-ticket.json`
42
- - Detailed worked examples, CPM calculations, and mermaid templates: [`references/story-mapping-and-cpm-scheduling.md`](references/story-mapping-and-cpm-scheduling.md)
43
-
44
- ## Suggested Process
45
-
46
- ### 1. Frame the User Persona & Problem Scenario
47
- Identify the target actor and their primary end-to-end goal.
48
-
49
- ### 2. Map the Backbone (Activities & Tasks)
50
- Write out the sequential user steps from left to right along the horizontal timeline. Group steps into major Activity clusters.
51
-
52
- ### 3. Brainstorm Stories & Details Vertically
53
- Under each user step, brainstorm user stories representing variations, deeper functionality, and edge cases.
54
-
55
- ### 4. Slice into Release Swimlanes
56
- Draw horizontal release slices. Carve out the Walking Skeleton (MVP) that provides the thinnest viable slice across all activities. Assign subsequent stories to Release 1.1 and Release 2.0.
57
-
58
- ### 5. Calculate Dependencies & Critical Path (CPM)
59
- Convert the release swimlane into a task dependency network. Perform forward and backward passes to compute total float and highlight the Critical Path.
60
-
61
- ## Checklist
62
-
63
- - [ ] horizontal backbone captures full chronological customer journey
64
- - [ ] Walking Skeleton (MVP) connects all backbone activities end-to-end
65
- - [ ] every story contains a clear user value statement (`As a... I want... So that...`)
66
- - [ ] MoSCoW tags applied to all stories within the active release slice
67
- - [ ] cross-team dependencies explicitly identified
68
- - [ ] CPM analysis identifies critical path tasks with zero float
69
- - [ ] stories prepared for handoff to BA and engineering via structured contracts
70
-
71
- ## Output Contracts
72
-
73
- When this skill feeds a coordinated BA/engineering handoff, emit:
74
-
75
- - **contracts/schemas/feature-ticket.json** — one ticket per story in the active release slice. Required fields: title, business_value (the story's `As a... I want... So that...` statement), acceptance criteria, MoSCoW priority. Set produced_by_role to the emitting product role.
76
- - **story-map.md** (inline deliverable; no dedicated schema exists) — the 2D map itself: backbone activities → tasks left-to-right, release swimlanes (MVP / Release 1.1 / Release 2.0) with MoSCoW tags, plus the CPM network showing ES/EF/LS/LF, float per task, and the zero-float critical path chain.
77
-
78
- Skip emission for solo backlog grooming with no downstream consumer.
79
-
80
- ## Failure Modes
81
-
82
- - **Disconnected MVP silos**: the Walking Skeleton builds 100% of one activity (e.g. User Management) while Checkout stays non-functional. Mitigation: require the MVP slice to cross every backbone activity end-to-end before any story is assigned to a later release.
83
- - **Backbone mirrors org chart**: activities ordered by team structure instead of the chronological customer journey. Mitigation: validate the horizontal axis against sequential real user steps before slicing swimlanes.
84
- - **Valueless stories**: stories written as task labels ("build settings page") without the `As a... I want... So that...` statement. Mitigation: reject any story missing the three-part value statement at feature-ticket.json export time.
85
- - **Untagged MoSCoW**: stories inside an active release slice carry no M/S/C/W classification. Mitigation: block slice handoff until every story in the active swimlane is tagged; keep Won't-Have exclusions explicit.
86
- - **Asserted critical path**: the Critical Path is declared without forward/backward passes, so float values are guesses. Mitigation: compute ES/EF/LS/LF per task and verify Float = LS − ES = 0 on every task in the claimed chain.
87
- - **Hidden cross-team dependencies**: swimlanes sliced as if teams work in isolation. Mitigation: draw explicit dependency arrows between cross-functional tasks before running CPM.
88
- - **Later-slice scope creep**: Release 2.0 stories quietly absorb MVP scope. Mitigation: re-audit slice boundaries at each release cut; move items only via an explicit MoSCoW re-tag.
89
-
90
- ## Security Guardrails (OWASP ASI)
91
-
92
- - **ASI01 Goal Hijack**: stakeholder comments on the map try to smuggle unbudgeted features into the MVP slice by reframing them as Must-Have. Mitigation: every added story re-runs MoSCoW tagging and the walking-skeleton check; reject untagged insertions.
93
- - **ASI03 Identity & Privilege Abuse**: unreleased release slices and capacity data are competitively sensitive. Mitigation: share the map and CPM schedule only with the roles named in the handoff; keep them out of shared channels.
94
- - **ASI06 Context & Memory Poisoning**: a story map or backlog imported from a prior session's memory carries stale priorities. Mitigation: re-validate imported backbone ordering and MoSCoW tags against the current backlog source before reuse.
95
- - **ASI07 Inter-Agent Communication**: story exports are consumed by BA and engineering roles. Mitigation: emit schema-validated feature-ticket.json contracts instead of prose so downstream roles can verify scope.
96
- - **ASI09 Human-Agent Trust Exploitation**: a fabricated critical path or invented task durations presented as verified analysis to lock a launch date. Mitigation: label all durations as estimates and show the float math behind any launch-date claim.
97
-
98
- ## Related Skills
99
-
100
- - **define-product-strategy**: provide PR/FAQ and Opportunity Solution Tree context
101
- - **prioritize-roadmap**: supply RICE scores and capacity timeboxes
102
- - **write-product-brief**: generate formal product brief documents
103
- - **write-use-cases**: expand complex story map steps into 13-field Use Case specifications
104
- - **trace-requirements-impact**: track dependency blast radius when requirements change
1
+ ---
2
+ name: build-story-map
3
+ description: Structure and visualize product backlogs using Jeff Patton User Story Mapping, MoSCoW release swimlanes, and Critical Path Method (CPM) dependency scheduling. Use when organizing features into Epic-to-Story hierarchies, defining MVP walking skeletons, slicing releases, calculating float time on critical path tasks, or handing off scoped initiatives to engineering.
4
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
+ ---
6
+
7
+ # Build Story Map
8
+
9
+ Use this skill to structure product requirements into multidimensional User Story Maps, define MVP walking skeletons, slice releases into prioritized swimlanes, and schedule dependencies using the Critical Path Method (CPM).
10
+
11
+ ## When to Use
12
+
13
+ - converting linear, overwhelming backlogs into structured 2D User Story Maps
14
+ - defining the minimum end-to-end viable product (**Walking Skeleton**) for early testing
15
+ - slicing feature releases into thematic swimlanes (MVP, Release 1.1, Release 2.0)
16
+ - conducting MoSCoW prioritization across release slices
17
+ - analyzing project schedule dependencies and calculating critical path float time (CPM)
18
+ - preparing structured, unambiguous delivery handoffs for engineering and business analysis
19
+
20
+ ## Core Rules
21
+
22
+ - **Enforce Jeff Patton 2-Dimensional Story Map Structure**:
23
+ - *Horizontal Axis (Narrative Flow / User Journey)*:
24
+ - Top Level: **User Activities** (The Backbone; e.g. Discover, Onboard, Create, Checkout)
25
+ - Mid Level: **User Tasks / Steps** (The Walking Skeleton; e.g. Select Plan, Enter Payment)
26
+ - *Vertical Axis (Release Priority & Depth)*:
27
+ - Slice down by sophistication: MVP (simplest functional end-to-end path) → Iteration 1 → Future Enhancements
28
+ - **Mandate the Walking Skeleton Concept**:
29
+ - The MVP slice must be a complete end-to-end journey that works, even if crude or manual behind the scenes
30
+ - Ban building disconnected silos (e.g. 100% of User Management built while Checkout remains non-functional)
31
+ - **Tag MoSCoW Priorities per Swimlane**:
32
+ - *Must-Have (M)*: Non-negotiable for that specific release slice
33
+ - *Should-Have (S)*: Important but not critical to initial go-live
34
+ - *Could-Have (C)*: Desirable delighter if velocity permits
35
+ - *Won't-Have this time (W)*: Explicitly excluded from the active swimlane
36
+ - **Apply Critical Path Method (CPM) Analysis**:
37
+ - Map explicit dependency arrows between cross-functional delivery tasks
38
+ - Calculate Early Start (ES), Early Finish (EF), Late Start (LS), and Late Finish (LF)
39
+ - Identify the **Critical Path**: sequence of dependent tasks where $\text{Float} = \text{LS} - \text{ES} = 0$; any delay on this path directly delays project launch
40
+ - **Structured A2A Delivery Handoff**:
41
+ - Every mapped story must be ready for export into `core/contracts/schemas/feature-ticket.json`
42
+ - Detailed worked examples, CPM calculations, and mermaid templates: [`references/story-mapping-and-cpm-scheduling.md`](references/story-mapping-and-cpm-scheduling.md)
43
+
44
+ ## Suggested Process
45
+
46
+ ### 1. Frame the User Persona & Problem Scenario
47
+ Identify the target actor and their primary end-to-end goal.
48
+
49
+ ### 2. Map the Backbone (Activities & Tasks)
50
+ Write out the sequential user steps from left to right along the horizontal timeline. Group steps into major Activity clusters.
51
+
52
+ ### 3. Brainstorm Stories & Details Vertically
53
+ Under each user step, brainstorm user stories representing variations, deeper functionality, and edge cases.
54
+
55
+ ### 4. Slice into Release Swimlanes
56
+ Draw horizontal release slices. Carve out the Walking Skeleton (MVP) that provides the thinnest viable slice across all activities. Assign subsequent stories to Release 1.1 and Release 2.0.
57
+
58
+ ### 5. Calculate Dependencies & Critical Path (CPM)
59
+ Convert the release swimlane into a task dependency network. Perform forward and backward passes to compute total float and highlight the Critical Path.
60
+
61
+ ## Checklist
62
+
63
+ - [ ] horizontal backbone captures full chronological customer journey
64
+ - [ ] Walking Skeleton (MVP) connects all backbone activities end-to-end
65
+ - [ ] every story contains a clear user value statement (`As a... I want... So that...`)
66
+ - [ ] MoSCoW tags applied to all stories within the active release slice
67
+ - [ ] cross-team dependencies explicitly identified
68
+ - [ ] CPM analysis identifies critical path tasks with zero float
69
+ - [ ] stories prepared for handoff to BA and engineering via structured contracts
70
+
71
+ ## Output Contracts
72
+
73
+ When this skill feeds a coordinated BA/engineering handoff, emit:
74
+
75
+ - **contracts/schemas/feature-ticket.json** — one ticket per story in the active release slice. Required fields: title, business_value (the story's `As a... I want... So that...` statement), acceptance criteria, MoSCoW priority. Set produced_by_role to the emitting product role.
76
+ - **story-map.md** (inline deliverable; no dedicated schema exists) — the 2D map itself: backbone activities → tasks left-to-right, release swimlanes (MVP / Release 1.1 / Release 2.0) with MoSCoW tags, plus the CPM network showing ES/EF/LS/LF, float per task, and the zero-float critical path chain.
77
+
78
+ Skip emission for solo backlog grooming with no downstream consumer.
79
+
80
+ ## Failure Modes
81
+
82
+ - **Disconnected MVP silos**: the Walking Skeleton builds 100% of one activity (e.g. User Management) while Checkout stays non-functional. Mitigation: require the MVP slice to cross every backbone activity end-to-end before any story is assigned to a later release.
83
+ - **Backbone mirrors org chart**: activities ordered by team structure instead of the chronological customer journey. Mitigation: validate the horizontal axis against sequential real user steps before slicing swimlanes.
84
+ - **Valueless stories**: stories written as task labels ("build settings page") without the `As a... I want... So that...` statement. Mitigation: reject any story missing the three-part value statement at feature-ticket.json export time.
85
+ - **Untagged MoSCoW**: stories inside an active release slice carry no M/S/C/W classification. Mitigation: block slice handoff until every story in the active swimlane is tagged; keep Won't-Have exclusions explicit.
86
+ - **Asserted critical path**: the Critical Path is declared without forward/backward passes, so float values are guesses. Mitigation: compute ES/EF/LS/LF per task and verify Float = LS − ES = 0 on every task in the claimed chain.
87
+ - **Hidden cross-team dependencies**: swimlanes sliced as if teams work in isolation. Mitigation: draw explicit dependency arrows between cross-functional tasks before running CPM.
88
+ - **Later-slice scope creep**: Release 2.0 stories quietly absorb MVP scope. Mitigation: re-audit slice boundaries at each release cut; move items only via an explicit MoSCoW re-tag.
89
+
90
+ ## Security Guardrails (OWASP ASI)
91
+
92
+ - **ASI01 Goal Hijack**: stakeholder comments on the map try to smuggle unbudgeted features into the MVP slice by reframing them as Must-Have. Mitigation: every added story re-runs MoSCoW tagging and the walking-skeleton check; reject untagged insertions.
93
+ - **ASI03 Identity & Privilege Abuse**: unreleased release slices and capacity data are competitively sensitive. Mitigation: share the map and CPM schedule only with the roles named in the handoff; keep them out of shared channels.
94
+ - **ASI06 Context & Memory Poisoning**: a story map or backlog imported from a prior session's memory carries stale priorities. Mitigation: re-validate imported backbone ordering and MoSCoW tags against the current backlog source before reuse.
95
+ - **ASI07 Inter-Agent Communication**: story exports are consumed by BA and engineering roles. Mitigation: emit schema-validated feature-ticket.json contracts instead of prose so downstream roles can verify scope.
96
+ - **ASI09 Human-Agent Trust Exploitation**: a fabricated critical path or invented task durations presented as verified analysis to lock a launch date. Mitigation: label all durations as estimates and show the float math behind any launch-date claim.
97
+
98
+ ## Related Skills
99
+
100
+ - **define-product-strategy**: provide PR/FAQ and Opportunity Solution Tree context
101
+ - **prioritize-roadmap**: supply RICE scores and capacity timeboxes
102
+ - **write-product-brief**: generate formal product brief documents
103
+ - **write-use-cases**: expand complex story map steps into 13-field Use Case specifications
104
+ - **trace-requirements-impact**: track dependency blast radius when requirements change
@@ -1,101 +1,101 @@
1
- # User Story Mapping & Critical Path Method (CPM) Scheduling
2
-
3
- > Authoritative reference guide for Jeff Patton User Story Mapping, Walking Skeleton definition, MoSCoW release slicing, and Critical Path Method (CPM) analysis.
4
-
5
- ---
6
-
7
- ## 1. Jeff Patton User Story Mapping Architecture
8
-
9
- A User Story Map organizes a two-dimensional visual grid representing user experience over time.
10
-
11
- ```
12
- HORIZONTAL AXIS: Chronological Narrative Flow (Left to Right)
13
- ┌───────────────────┬───────────────────┬───────────────────┐
14
- │ Activity 1: Find │ Activity 2: Select│ Activity 3: Pay │ ◄── THE BACKBONE
15
- └─────────┬─────────┴─────────┬─────────┴─────────┬─────────┘
16
- │ │ │
17
- ┌─────────▼─────────┬─────────▼─────────┬─────────▼─────────┐
18
- │ Step 1.1: Search │ Step 2.1: Compare │ Step 3.1: Card Pay│ ◄── WALKING SKELETON
19
- └───────────────────┴───────────────────┴───────────────────┘
20
- ═══════════════════════════════════════════════════════════════ ◄── SLICE 1: MVP
21
- ┌───────────────────┬───────────────────┬───────────────────┐
22
- │ Story: Filter tag │ Story: Side-by-side│ Story: Apple Pay │ ◄── SLICE 2: Release 1.1
23
- └───────────────────┴───────────────────┴───────────────────┘
24
- ═══════════════════════════════════════════════════════════════ ◄── SLICE 3: Release 2.0
25
- ┌───────────────────┬───────────────────┬───────────────────┐
26
- │ Story: AI Suggest │ Story: 3D Preview │ Story: Crypto Pay │ ◄── Future Slices
27
- └───────────────────┴───────────────────┴───────────────────┘
28
- VERTICAL AXIS: Sophistication & Release Priority (Top to Bottom)
29
- ```
30
-
31
- ### Key Principles
32
- 1. **The Backbone**: High-level activities that never change (e.g. Discover, Configure, Purchase, Track).
33
- 2. **The Walking Skeleton**: The simplest implementation that connects all backbone activities from start to finish without breaking. It provides immediate integration testing and user feedback.
34
- 3. **Slice Vertically, Not Horizontally**: Avoid building 100% of the search engine while checkout has not started. Slice thin across all steps.
35
-
36
- ---
37
-
38
- ## 2. Critical Path Method (CPM) Dependency Scheduling
39
-
40
- Critical Path Method calculates the shortest possible project duration and identifies which tasks have zero schedule flexibility.
41
-
42
- ### Key Terms & Formulas
43
- - **Duration ($t$)**: Estimated working days to complete the task.
44
- - **Early Start ($ES$)**: The earliest possible time a task can begin. $ES = \max(EF_{\text{predecessors}})$.
45
- - **Early Finish ($EF$)**: The earliest possible completion. $EF = ES + t$.
46
- - **Late Finish ($LF$)**: The latest time a task can complete without delaying project launch. $LF = \min(LS_{\text{successors}})$.
47
- - **Late Start ($LS$)**: The latest time a task can begin. $LS = LF - t$.
48
- - **Total Float (Slack)**: $\text{Float} = LS - ES = LF - EF$.
49
- - **Critical Path**: The longest sequence of tasks from project start to end where **$\text{Float} = 0$**.
50
-
51
- ### Worked CPM Network Example
52
-
53
- ```mermaid
54
- flowchart LR
55
- A["A: DB Schema
56
- [t=3, Float=0]"] --> B["B: API Core
57
- [t=5, Float=0]"]
58
- A --> C["C: Auth UI
59
- [t=2, Float=4]"]
60
- B --> D["D: Payment Gateway
61
- [t=4, Float=0]"]
62
- C --> E["E: Profile Settings
63
- [t=2, Float=4]"]
64
- D --> F["F: E2E Integration
65
- [t=3, Float=0]"]
66
- E --> F
67
-
68
- style A fill:#ffcccc,stroke:#ff0000,stroke-width:2px
69
- style B fill:#ffcccc,stroke:#ff0000,stroke-width:2px
70
- style D fill:#ffcccc,stroke:#ff0000,stroke-width:2px
71
- style F fill:#ffcccc,stroke:#ff0000,stroke-width:2px
72
- ```
73
-
74
- - **Critical Path**: `A` (3d) → `B` (5d) → `D` (4d) → `F` (3d) = **15 Days**.
75
- - **Non-Critical Path**: `A` (3d) → `C` (2d) → `E` (2d) → `F` (3d) = **10 Days**.
76
- - Tasks `C` and `E` have **4 days of Float**. Delaying task `C` by 2 days will NOT delay the project. Delaying task `B` by even 1 day directly delays the launch by 1 day.
77
-
78
- ---
79
-
80
- ## 3. Story Map to A2A Delivery Handoff Contract
81
-
82
- When exporting story map cards to Engineering and Business Analysis squads, use the following structured Markdown or JSON representation:
83
-
84
- ```markdown
85
- ### Story Card: [STORY-ID] [Story Title]
86
- - **Backbone Activity**: [Activity Name]
87
- - **Release Slice**: MVP / Release 1.1 / Release 2.0
88
- - **MoSCoW Priority**: Must / Should / Could / Won't
89
- - **User Story**:
90
- - As a [target actor]
91
- - I want to [execute action]
92
- - So that [realize business or personal value]
93
- - **Dependencies (Predecessors)**: [STORY-XYZ, API-ABC]
94
- - **Critical Path Task?**: Yes (Float = 0) / No (Float = N days)
95
- - **Acceptance Criteria (Given-When-Then)**:
96
- - Scenario 1: Successful execution
97
- - Given [precondition]
98
- - When [trigger event]
99
- - Then [verifiable outcome]
100
- - **Downstream Ticket Mapping**: `contracts/schemas/feature-ticket.json`
101
- ```
1
+ # User Story Mapping & Critical Path Method (CPM) Scheduling
2
+
3
+ > Authoritative reference guide for Jeff Patton User Story Mapping, Walking Skeleton definition, MoSCoW release slicing, and Critical Path Method (CPM) analysis.
4
+
5
+ ---
6
+
7
+ ## 1. Jeff Patton User Story Mapping Architecture
8
+
9
+ A User Story Map organizes a two-dimensional visual grid representing user experience over time.
10
+
11
+ ```
12
+ HORIZONTAL AXIS: Chronological Narrative Flow (Left to Right)
13
+ ┌───────────────────┬───────────────────┬───────────────────┐
14
+ │ Activity 1: Find │ Activity 2: Select│ Activity 3: Pay │ ◄── THE BACKBONE
15
+ └─────────┬─────────┴─────────┬─────────┴─────────┬─────────┘
16
+ │ │ │
17
+ ┌─────────▼─────────┬─────────▼─────────┬─────────▼─────────┐
18
+ │ Step 1.1: Search │ Step 2.1: Compare │ Step 3.1: Card Pay│ ◄── WALKING SKELETON
19
+ └───────────────────┴───────────────────┴───────────────────┘
20
+ ═══════════════════════════════════════════════════════════════ ◄── SLICE 1: MVP
21
+ ┌───────────────────┬───────────────────┬───────────────────┐
22
+ │ Story: Filter tag │ Story: Side-by-side│ Story: Apple Pay │ ◄── SLICE 2: Release 1.1
23
+ └───────────────────┴───────────────────┴───────────────────┘
24
+ ═══════════════════════════════════════════════════════════════ ◄── SLICE 3: Release 2.0
25
+ ┌───────────────────┬───────────────────┬───────────────────┐
26
+ │ Story: AI Suggest │ Story: 3D Preview │ Story: Crypto Pay │ ◄── Future Slices
27
+ └───────────────────┴───────────────────┴───────────────────┘
28
+ VERTICAL AXIS: Sophistication & Release Priority (Top to Bottom)
29
+ ```
30
+
31
+ ### Key Principles
32
+ 1. **The Backbone**: High-level activities that never change (e.g. Discover, Configure, Purchase, Track).
33
+ 2. **The Walking Skeleton**: The simplest implementation that connects all backbone activities from start to finish without breaking. It provides immediate integration testing and user feedback.
34
+ 3. **Slice Vertically, Not Horizontally**: Avoid building 100% of the search engine while checkout has not started. Slice thin across all steps.
35
+
36
+ ---
37
+
38
+ ## 2. Critical Path Method (CPM) Dependency Scheduling
39
+
40
+ Critical Path Method calculates the shortest possible project duration and identifies which tasks have zero schedule flexibility.
41
+
42
+ ### Key Terms & Formulas
43
+ - **Duration ($t$)**: Estimated working days to complete the task.
44
+ - **Early Start ($ES$)**: The earliest possible time a task can begin. $ES = \max(EF_{\text{predecessors}})$.
45
+ - **Early Finish ($EF$)**: The earliest possible completion. $EF = ES + t$.
46
+ - **Late Finish ($LF$)**: The latest time a task can complete without delaying project launch. $LF = \min(LS_{\text{successors}})$.
47
+ - **Late Start ($LS$)**: The latest time a task can begin. $LS = LF - t$.
48
+ - **Total Float (Slack)**: $\text{Float} = LS - ES = LF - EF$.
49
+ - **Critical Path**: The longest sequence of tasks from project start to end where **$\text{Float} = 0$**.
50
+
51
+ ### Worked CPM Network Example
52
+
53
+ ```mermaid
54
+ flowchart LR
55
+ A["A: DB Schema
56
+ [t=3, Float=0]"] --> B["B: API Core
57
+ [t=5, Float=0]"]
58
+ A --> C["C: Auth UI
59
+ [t=2, Float=4]"]
60
+ B --> D["D: Payment Gateway
61
+ [t=4, Float=0]"]
62
+ C --> E["E: Profile Settings
63
+ [t=2, Float=4]"]
64
+ D --> F["F: E2E Integration
65
+ [t=3, Float=0]"]
66
+ E --> F
67
+
68
+ style A fill:#ffcccc,stroke:#ff0000,stroke-width:2px
69
+ style B fill:#ffcccc,stroke:#ff0000,stroke-width:2px
70
+ style D fill:#ffcccc,stroke:#ff0000,stroke-width:2px
71
+ style F fill:#ffcccc,stroke:#ff0000,stroke-width:2px
72
+ ```
73
+
74
+ - **Critical Path**: `A` (3d) → `B` (5d) → `D` (4d) → `F` (3d) = **15 Days**.
75
+ - **Non-Critical Path**: `A` (3d) → `C` (2d) → `E` (2d) → `F` (3d) = **10 Days**.
76
+ - Tasks `C` and `E` have **4 days of Float**. Delaying task `C` by 2 days will NOT delay the project. Delaying task `B` by even 1 day directly delays the launch by 1 day.
77
+
78
+ ---
79
+
80
+ ## 3. Story Map to A2A Delivery Handoff Contract
81
+
82
+ When exporting story map cards to Engineering and Business Analysis squads, use the following structured Markdown or JSON representation:
83
+
84
+ ```markdown
85
+ ### Story Card: [STORY-ID] [Story Title]
86
+ - **Backbone Activity**: [Activity Name]
87
+ - **Release Slice**: MVP / Release 1.1 / Release 2.0
88
+ - **MoSCoW Priority**: Must / Should / Could / Won't
89
+ - **User Story**:
90
+ - As a [target actor]
91
+ - I want to [execute action]
92
+ - So that [realize business or personal value]
93
+ - **Dependencies (Predecessors)**: [STORY-XYZ, API-ABC]
94
+ - **Critical Path Task?**: Yes (Float = 0) / No (Float = N days)
95
+ - **Acceptance Criteria (Given-When-Then)**:
96
+ - Scenario 1: Successful execution
97
+ - Given [precondition]
98
+ - When [trigger event]
99
+ - Then [verifiable outcome]
100
+ - **Downstream Ticket Mapping**: `contracts/schemas/feature-ticket.json`
101
+ ```