agileflow 4.0.0-alpha.2 → 4.0.0-alpha.21

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 (372) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/content/plugins/accessibility/plugin.yaml +14 -0
  3. package/content/plugins/accessibility/skills/agileflow-accessibility/SKILL.md +392 -0
  4. package/content/plugins/accessibility/skills/agileflow-accessibility/references/aria-patterns.md +528 -0
  5. package/content/plugins/accessibility/skills/agileflow-accessibility/references/testing-checklist.md +457 -0
  6. package/content/plugins/accessibility/skills/agileflow-accessibility/references/wcag-guide.md +683 -0
  7. package/content/plugins/accessibility/skills/agileflow-accessibility/workflows/audit-page.md +310 -0
  8. package/content/plugins/accessibility/skills/agileflow-accessibility/workflows/implement-accessible-component.md +479 -0
  9. package/content/plugins/ads/agents/ads-audit-budget.md +185 -0
  10. package/content/plugins/ads/agents/ads-audit-compliance.md +171 -0
  11. package/content/plugins/ads/agents/ads-audit-creative.md +168 -0
  12. package/content/plugins/ads/agents/ads-audit-google.md +227 -0
  13. package/content/plugins/ads/agents/ads-audit-meta.md +184 -0
  14. package/content/plugins/ads/agents/ads-audit-tracking.md +205 -0
  15. package/content/plugins/ads/agents/ads-consensus.md +410 -0
  16. package/content/plugins/ads/agents/ads-generate.md +152 -0
  17. package/content/plugins/ads/agents/ads-performance-tracker.md +212 -0
  18. package/content/plugins/ads/plugin.yaml +23 -4
  19. package/content/plugins/ads/skills/agileflow-ads/SKILL.md +218 -0
  20. package/content/plugins/ads/skills/agileflow-ads/references/ad-copy-formula-guide.md +131 -0
  21. package/content/plugins/ads/skills/agileflow-ads/references/audience-targeting-guide.md +137 -0
  22. package/content/plugins/ads/skills/agileflow-ads/references/bid-strategy-guide.md +115 -0
  23. package/content/plugins/ads/skills/agileflow-ads/references/platform-benchmarks.md +100 -0
  24. package/content/plugins/ads/skills/agileflow-ads/workflows/audit.md +118 -0
  25. package/content/plugins/ads/skills/agileflow-ads/workflows/generate.md +84 -0
  26. package/content/plugins/audit/agents/a11y-analyzer-aria.md +173 -0
  27. package/content/plugins/audit/agents/a11y-analyzer-forms.md +173 -0
  28. package/content/plugins/audit/agents/a11y-analyzer-keyboard.md +183 -0
  29. package/content/plugins/audit/agents/a11y-analyzer-semantic.md +169 -0
  30. package/content/plugins/audit/agents/a11y-analyzer-visual.md +172 -0
  31. package/content/plugins/audit/agents/a11y-consensus.md +249 -0
  32. package/content/plugins/audit/agents/accessibility.md +558 -0
  33. package/content/plugins/audit/agents/api-quality-analyzer-conventions.md +156 -0
  34. package/content/plugins/audit/agents/api-quality-analyzer-docs.md +184 -0
  35. package/content/plugins/audit/agents/api-quality-analyzer-errors.md +191 -0
  36. package/content/plugins/audit/agents/api-quality-analyzer-pagination.md +179 -0
  37. package/content/plugins/audit/agents/api-quality-analyzer-versioning.md +150 -0
  38. package/content/plugins/audit/agents/api-quality-consensus.md +217 -0
  39. package/content/plugins/audit/agents/api-validator.md +191 -0
  40. package/content/plugins/audit/agents/arch-analyzer-circular.md +156 -0
  41. package/content/plugins/audit/agents/arch-analyzer-complexity.md +193 -0
  42. package/content/plugins/audit/agents/arch-analyzer-coupling.md +152 -0
  43. package/content/plugins/audit/agents/arch-analyzer-layering.md +160 -0
  44. package/content/plugins/audit/agents/arch-analyzer-patterns.md +210 -0
  45. package/content/plugins/audit/agents/arch-consensus.md +228 -0
  46. package/content/plugins/audit/agents/browser-qa.md +342 -0
  47. package/content/plugins/audit/agents/code-reviewer.md +298 -0
  48. package/content/plugins/audit/agents/completeness-analyzer-api.md +199 -0
  49. package/content/plugins/audit/agents/completeness-analyzer-conditional.md +211 -0
  50. package/content/plugins/audit/agents/completeness-analyzer-handlers.md +166 -0
  51. package/content/plugins/audit/agents/completeness-analyzer-imports.md +165 -0
  52. package/content/plugins/audit/agents/completeness-analyzer-routes.md +190 -0
  53. package/content/plugins/audit/agents/completeness-analyzer-state.md +196 -0
  54. package/content/plugins/audit/agents/completeness-analyzer-stubs.md +206 -0
  55. package/content/plugins/audit/agents/completeness-consensus.md +295 -0
  56. package/content/plugins/audit/agents/error-analyzer.md +213 -0
  57. package/content/plugins/audit/agents/flow-analyzer-authorization.md +182 -0
  58. package/content/plugins/audit/agents/flow-analyzer-discovery.md +174 -0
  59. package/content/plugins/audit/agents/flow-analyzer-errors.md +186 -0
  60. package/content/plugins/audit/agents/flow-analyzer-feedback.md +185 -0
  61. package/content/plugins/audit/agents/flow-analyzer-navigation.md +177 -0
  62. package/content/plugins/audit/agents/flow-analyzer-persistence.md +193 -0
  63. package/content/plugins/audit/agents/flow-analyzer-wiring.md +169 -0
  64. package/content/plugins/audit/agents/flow-consensus.md +237 -0
  65. package/content/plugins/audit/agents/legal-analyzer-a11y.md +114 -0
  66. package/content/plugins/audit/agents/legal-analyzer-ai.md +121 -0
  67. package/content/plugins/audit/agents/legal-analyzer-consumer.md +114 -0
  68. package/content/plugins/audit/agents/legal-analyzer-content.md +117 -0
  69. package/content/plugins/audit/agents/legal-analyzer-international.md +119 -0
  70. package/content/plugins/audit/agents/legal-analyzer-licensing.md +119 -0
  71. package/content/plugins/audit/agents/legal-analyzer-privacy.md +112 -0
  72. package/content/plugins/audit/agents/legal-analyzer-security.md +116 -0
  73. package/content/plugins/audit/agents/legal-analyzer-terms.md +115 -0
  74. package/content/plugins/audit/agents/legal-consensus.md +250 -0
  75. package/content/plugins/audit/agents/logic-analyzer-edge.md +179 -0
  76. package/content/plugins/audit/agents/logic-analyzer-flow.md +264 -0
  77. package/content/plugins/audit/agents/logic-analyzer-invariant.md +215 -0
  78. package/content/plugins/audit/agents/logic-analyzer-race.md +280 -0
  79. package/content/plugins/audit/agents/logic-analyzer-type.md +227 -0
  80. package/content/plugins/audit/agents/logic-consensus.md +259 -0
  81. package/content/plugins/audit/agents/perf-analyzer-assets.md +182 -0
  82. package/content/plugins/audit/agents/perf-analyzer-bundle.md +173 -0
  83. package/content/plugins/audit/agents/perf-analyzer-caching.md +170 -0
  84. package/content/plugins/audit/agents/perf-analyzer-compute.md +173 -0
  85. package/content/plugins/audit/agents/perf-analyzer-memory.md +193 -0
  86. package/content/plugins/audit/agents/perf-analyzer-network.md +165 -0
  87. package/content/plugins/audit/agents/perf-analyzer-queries.md +162 -0
  88. package/content/plugins/audit/agents/perf-analyzer-rendering.md +168 -0
  89. package/content/plugins/audit/agents/perf-consensus.md +287 -0
  90. package/content/plugins/audit/agents/qa.md +820 -0
  91. package/content/plugins/audit/agents/quality-analyzer-comments.md +159 -0
  92. package/content/plugins/audit/agents/quality-analyzer-duplication.md +184 -0
  93. package/content/plugins/audit/agents/quality-analyzer-naming.md +160 -0
  94. package/content/plugins/audit/agents/quality-consensus.md +241 -0
  95. package/content/plugins/audit/agents/schema-validator.md +473 -0
  96. package/content/plugins/audit/agents/security-analyzer-api.md +210 -0
  97. package/content/plugins/audit/agents/security-analyzer-auth.md +169 -0
  98. package/content/plugins/audit/agents/security-analyzer-authz.md +180 -0
  99. package/content/plugins/audit/agents/security-analyzer-deps.md +153 -0
  100. package/content/plugins/audit/agents/security-analyzer-infra.md +184 -0
  101. package/content/plugins/audit/agents/security-analyzer-injection.md +155 -0
  102. package/content/plugins/audit/agents/security-analyzer-input.md +201 -0
  103. package/content/plugins/audit/agents/security-analyzer-secrets.md +183 -0
  104. package/content/plugins/audit/agents/security-consensus.md +283 -0
  105. package/content/plugins/audit/agents/test-analyzer-assertions.md +188 -0
  106. package/content/plugins/audit/agents/test-analyzer-coverage.md +189 -0
  107. package/content/plugins/audit/agents/test-analyzer-fragility.md +193 -0
  108. package/content/plugins/audit/agents/test-analyzer-integration.md +161 -0
  109. package/content/plugins/audit/agents/test-analyzer-maintenance.md +180 -0
  110. package/content/plugins/audit/agents/test-analyzer-mocking.md +188 -0
  111. package/content/plugins/audit/agents/test-analyzer-patterns.md +196 -0
  112. package/content/plugins/audit/agents/test-analyzer-structure.md +184 -0
  113. package/content/plugins/audit/agents/test-consensus.md +301 -0
  114. package/content/plugins/audit/agents/testing.md +561 -0
  115. package/content/plugins/audit/agents/ui-validator.md +344 -0
  116. package/content/plugins/audit/plugin.yaml +186 -5
  117. package/content/plugins/audit/skills/agileflow-audit/SKILL.md +113 -0
  118. package/content/plugins/audit/skills/agileflow-audit/references/audit-depth-guide.md +151 -0
  119. package/content/plugins/audit/skills/agileflow-audit/references/dependency-risk-guide.md +139 -0
  120. package/content/plugins/audit/skills/agileflow-audit/references/owasp-top10.md +120 -0
  121. package/content/plugins/audit/skills/agileflow-audit/references/performance-budget-guide.md +143 -0
  122. package/content/plugins/audit/skills/agileflow-audit/references/wcag-criteria.md +117 -0
  123. package/content/plugins/audit/skills/agileflow-audit/workflows/run-audit.md +52 -0
  124. package/content/plugins/audit/skills/agileflow-audit/workflows/tdd.md +66 -0
  125. package/content/plugins/core/agents/adr-writer.md +521 -0
  126. package/content/plugins/core/agents/epic-planner.md +520 -0
  127. package/content/plugins/core/agents/mentor.md +709 -0
  128. package/content/plugins/core/agents/orchestrator.md +776 -0
  129. package/content/plugins/core/agents/team-coordinator.md +334 -0
  130. package/content/plugins/core/agents/team-lead.md +181 -0
  131. package/content/plugins/core/agents/workspace-orchestrator.md +146 -0
  132. package/content/plugins/core/hooks/context-loader.js +31 -4
  133. package/content/plugins/core/hooks/damage-control-bash.js +10 -2
  134. package/content/plugins/core/hooks/damage-control-edit.js +4 -1
  135. package/content/plugins/core/hooks/damage-control-patterns.yaml +1 -1
  136. package/content/plugins/core/hooks/damage-control-write.js +4 -1
  137. package/content/plugins/core/hooks/{pre-compact-state.js → post-compact-state.js} +25 -8
  138. package/content/plugins/core/hooks/preferences-injector.js +352 -0
  139. package/content/plugins/core/plugin.yaml +24 -28
  140. package/content/plugins/core/skills/agileflow-adr/SKILL.md +34 -8
  141. package/content/plugins/core/skills/agileflow-adr/references/madr-format-guide.md +86 -0
  142. package/content/plugins/core/skills/agileflow-adr/workflows/write-adr.md +57 -0
  143. package/content/plugins/core/skills/agileflow-babysit-mentor/SKILL.md +94 -27
  144. package/content/plugins/core/skills/agileflow-babysit-mentor/references/mentor-decision-guide.md +81 -0
  145. package/content/plugins/core/skills/agileflow-babysit-mentor/workflows/mentor-session.md +79 -0
  146. package/content/plugins/core/skills/agileflow-epic-planner/SKILL.md +37 -7
  147. package/content/plugins/core/skills/agileflow-epic-planner/references/epic-sizing-guide.md +81 -0
  148. package/content/plugins/core/skills/agileflow-epic-planner/workflows/plan-epic.md +55 -0
  149. package/content/plugins/core/skills/agileflow-status-updater/SKILL.md +36 -20
  150. package/content/plugins/core/skills/agileflow-status-updater/references/status-transitions.md +89 -0
  151. package/content/plugins/core/skills/agileflow-status-updater/workflows/update-status.md +56 -0
  152. package/content/plugins/core/skills/agileflow-story-writer/SKILL.md +39 -114
  153. package/content/plugins/core/skills/agileflow-story-writer/references/estimation-reference.md +36 -0
  154. package/content/plugins/core/skills/agileflow-story-writer/references/story-template.md +92 -0
  155. package/content/plugins/core/skills/agileflow-story-writer/workflows/write-story.md +138 -0
  156. package/content/plugins/council/agents/council-advocate.md +223 -0
  157. package/content/plugins/council/agents/council-analyst.md +278 -0
  158. package/content/plugins/council/agents/council-compounder.md +204 -0
  159. package/content/plugins/council/agents/council-contrarian.md +217 -0
  160. package/content/plugins/council/agents/council-moonshot.md +217 -0
  161. package/content/plugins/council/agents/council-optimist.md +185 -0
  162. package/content/plugins/council/agents/council-revenue.md +200 -0
  163. package/content/plugins/council/agents/council-technical.md +218 -0
  164. package/content/plugins/council/agents/multi-expert.md +334 -0
  165. package/content/plugins/council/plugin.yaml +23 -4
  166. package/content/plugins/council/skills/agileflow-council/SKILL.md +102 -0
  167. package/content/plugins/council/skills/agileflow-council/references/decision-log-template.md +109 -0
  168. package/content/plugins/council/skills/agileflow-council/references/perspective-guide.md +104 -0
  169. package/content/plugins/council/skills/agileflow-council/references/when-to-convene-guide.md +112 -0
  170. package/content/plugins/council/skills/agileflow-council/workflows/convene.md +73 -0
  171. package/content/plugins/council/skills/agileflow-council/workflows/multi-expert.md +75 -0
  172. package/content/plugins/database/plugin.yaml +14 -0
  173. package/content/plugins/database/skills/agileflow-database/SKILL.md +284 -0
  174. package/content/plugins/database/skills/agileflow-database/references/indexing-guide.md +313 -0
  175. package/content/plugins/database/skills/agileflow-database/references/migration-guide.md +328 -0
  176. package/content/plugins/database/skills/agileflow-database/references/schema-design-guide.md +467 -0
  177. package/content/plugins/database/skills/agileflow-database/workflows/design-schema.md +213 -0
  178. package/content/plugins/database/skills/agileflow-database/workflows/optimize-query.md +253 -0
  179. package/content/plugins/debugging/plugin.yaml +14 -0
  180. package/content/plugins/debugging/skills/agileflow-debug/SKILL.md +236 -0
  181. package/content/plugins/debugging/skills/agileflow-debug/references/common-patterns.md +350 -0
  182. package/content/plugins/debugging/skills/agileflow-debug/references/debugging-strategies.md +328 -0
  183. package/content/plugins/debugging/skills/agileflow-debug/workflows/debug-issue.md +187 -0
  184. package/content/plugins/debugging/skills/agileflow-debug/workflows/reproduce-bug.md +194 -0
  185. package/content/plugins/delivery/agents/ci.md +547 -0
  186. package/content/plugins/delivery/agents/devops.md +789 -0
  187. package/content/plugins/delivery/plugin.yaml +19 -0
  188. package/content/plugins/delivery/skills/agileflow-delivery/SKILL.md +111 -0
  189. package/content/plugins/delivery/skills/agileflow-delivery/references/changelog-format-guide.md +133 -0
  190. package/content/plugins/delivery/skills/agileflow-delivery/references/ci-pipeline-guide.md +158 -0
  191. package/content/plugins/delivery/skills/agileflow-delivery/references/pr-checklist-guide.md +133 -0
  192. package/content/plugins/delivery/skills/agileflow-delivery/references/release-checklist.md +142 -0
  193. package/content/plugins/delivery/skills/agileflow-delivery/workflows/changelog.md +72 -0
  194. package/content/plugins/delivery/skills/agileflow-delivery/workflows/deploy.md +74 -0
  195. package/content/plugins/delivery/skills/agileflow-delivery/workflows/pr.md +75 -0
  196. package/content/plugins/docs/agents/documentation.md +544 -0
  197. package/content/plugins/docs/agents/readme-updater.md +640 -0
  198. package/content/plugins/docs/plugin.yaml +19 -0
  199. package/content/plugins/docs/skills/agileflow-docs/SKILL.md +106 -0
  200. package/content/plugins/docs/skills/agileflow-docs/references/api-doc-template.md +167 -0
  201. package/content/plugins/docs/skills/agileflow-docs/references/doc-types-guide.md +141 -0
  202. package/content/plugins/docs/skills/agileflow-docs/references/readme-template.md +156 -0
  203. package/content/plugins/docs/skills/agileflow-docs/workflows/readme-sync.md +57 -0
  204. package/content/plugins/docs/skills/agileflow-docs/workflows/sync.md +64 -0
  205. package/content/plugins/engineering/agents/api.md +718 -0
  206. package/content/plugins/engineering/agents/codebase-query.md +285 -0
  207. package/content/plugins/engineering/agents/compliance.md +559 -0
  208. package/content/plugins/engineering/agents/database.md +644 -0
  209. package/content/plugins/engineering/agents/integrations.md +644 -0
  210. package/content/plugins/engineering/agents/mobile.md +552 -0
  211. package/content/plugins/engineering/agents/monitoring.md +585 -0
  212. package/content/plugins/engineering/agents/performance.md +529 -0
  213. package/content/plugins/engineering/agents/refactor.md +592 -0
  214. package/content/plugins/engineering/agents/security.md +524 -0
  215. package/content/plugins/engineering/agents/ui.md +1336 -0
  216. package/content/plugins/engineering/plugin.yaml +37 -0
  217. package/content/plugins/engineering/skills/agileflow-engineering/SKILL.md +127 -0
  218. package/content/plugins/engineering/skills/agileflow-engineering/references/code-review-guide.md +126 -0
  219. package/content/plugins/engineering/skills/agileflow-engineering/references/domain-routing-guide.md +89 -0
  220. package/content/plugins/engineering/skills/agileflow-engineering/references/refactoring-guide.md +136 -0
  221. package/content/plugins/engineering/skills/agileflow-engineering/workflows/diagnose.md +63 -0
  222. package/content/plugins/engineering/skills/agileflow-engineering/workflows/impact.md +60 -0
  223. package/content/plugins/ideation/agents/brainstorm-analyzer-features.md +179 -0
  224. package/content/plugins/ideation/agents/brainstorm-analyzer-growth.md +169 -0
  225. package/content/plugins/ideation/agents/brainstorm-analyzer-integration.md +181 -0
  226. package/content/plugins/ideation/agents/brainstorm-analyzer-market.md +150 -0
  227. package/content/plugins/ideation/agents/brainstorm-analyzer-ux.md +180 -0
  228. package/content/plugins/ideation/agents/brainstorm-consensus.md +245 -0
  229. package/content/plugins/ideation/agents/design.md +568 -0
  230. package/content/plugins/ideation/agents/product.md +582 -0
  231. package/content/plugins/ideation/plugin.yaml +31 -0
  232. package/content/plugins/ideation/skills/agileflow-ideation/SKILL.md +109 -0
  233. package/content/plugins/ideation/skills/agileflow-ideation/references/brainstorm-techniques.md +138 -0
  234. package/content/plugins/ideation/skills/agileflow-ideation/references/competitive-analysis-template.md +148 -0
  235. package/content/plugins/ideation/skills/agileflow-ideation/references/feature-prioritization-guide.md +147 -0
  236. package/content/plugins/ideation/skills/agileflow-ideation/references/user-story-patterns.md +152 -0
  237. package/content/plugins/ideation/skills/agileflow-ideation/workflows/features.md +65 -0
  238. package/content/plugins/ideation/skills/agileflow-ideation/workflows/ideate.md +54 -0
  239. package/content/plugins/migration/agents/datamigration.md +757 -0
  240. package/content/plugins/migration/plugin.yaml +17 -0
  241. package/content/plugins/migration/skills/agileflow-migration/SKILL.md +106 -0
  242. package/content/plugins/migration/skills/agileflow-migration/references/data-validation-checklist.md +154 -0
  243. package/content/plugins/migration/skills/agileflow-migration/references/migration-patterns.md +209 -0
  244. package/content/plugins/migration/skills/agileflow-migration/references/rollback-playbook.md +171 -0
  245. package/content/plugins/migration/skills/agileflow-migration/references/version-compatibility-matrix.md +155 -0
  246. package/content/plugins/migration/skills/agileflow-migration/workflows/plan.md +73 -0
  247. package/content/plugins/migration/skills/agileflow-migration/workflows/validate.md +71 -0
  248. package/content/plugins/performance/plugin.yaml +14 -0
  249. package/content/plugins/performance/skills/agileflow-performance/SKILL.md +224 -0
  250. package/content/plugins/performance/skills/agileflow-performance/references/optimization-patterns.md +554 -0
  251. package/content/plugins/performance/skills/agileflow-performance/references/profiling-guide.md +383 -0
  252. package/content/plugins/performance/skills/agileflow-performance/references/web-vitals-guide.md +360 -0
  253. package/content/plugins/performance/skills/agileflow-performance/workflows/improve-web-vitals.md +344 -0
  254. package/content/plugins/performance/skills/agileflow-performance/workflows/profile-and-fix.md +254 -0
  255. package/content/plugins/planning/agents/analytics.md +670 -0
  256. package/content/plugins/planning/agents/rlm-subcore.md +215 -0
  257. package/content/plugins/planning/plugin.yaml +19 -0
  258. package/content/plugins/planning/skills/agileflow-planning/SKILL.md +111 -0
  259. package/content/plugins/planning/skills/agileflow-planning/references/estimation-guide.md +114 -0
  260. package/content/plugins/planning/skills/agileflow-planning/references/rpi-workflow.md +119 -0
  261. package/content/plugins/planning/skills/agileflow-planning/references/sprint-planning-guide.md +145 -0
  262. package/content/plugins/planning/skills/agileflow-planning/workflows/impact.md +63 -0
  263. package/content/plugins/planning/skills/agileflow-planning/workflows/rpi.md +104 -0
  264. package/content/plugins/psychology/plugin.yaml +14 -0
  265. package/content/plugins/psychology/skills/agileflow-retention/SKILL.md +252 -0
  266. package/content/plugins/psychology/skills/agileflow-retention/references/competitor-analysis.md +240 -0
  267. package/content/plugins/psychology/skills/agileflow-retention/references/psychology-models.md +349 -0
  268. package/content/plugins/psychology/skills/agileflow-retention/references/retention-patterns.md +279 -0
  269. package/content/plugins/psychology/skills/agileflow-retention/workflows/design-retention-feature.md +287 -0
  270. package/content/plugins/psychology/skills/agileflow-retention/workflows/retention-audit.md +259 -0
  271. package/content/plugins/refactoring/plugin.yaml +14 -0
  272. package/content/plugins/refactoring/skills/agileflow-refactor/SKILL.md +235 -0
  273. package/content/plugins/refactoring/skills/agileflow-refactor/references/refactoring-patterns.md +405 -0
  274. package/content/plugins/refactoring/skills/agileflow-refactor/references/safety-checks.md +177 -0
  275. package/content/plugins/refactoring/skills/agileflow-refactor/workflows/extract-module.md +226 -0
  276. package/content/plugins/refactoring/skills/agileflow-refactor/workflows/safe-refactor.md +169 -0
  277. package/content/plugins/research/agents/research.md +503 -0
  278. package/content/plugins/research/plugin.yaml +17 -0
  279. package/content/plugins/research/skills/agileflow-research/SKILL.md +110 -0
  280. package/content/plugins/research/skills/agileflow-research/references/knowledge-decay-guide.md +121 -0
  281. package/content/plugins/research/skills/agileflow-research/references/research-prompt-guide.md +141 -0
  282. package/content/plugins/research/skills/agileflow-research/references/synthesis-template.md +154 -0
  283. package/content/plugins/research/skills/agileflow-research/workflows/analyze.md +60 -0
  284. package/content/plugins/research/skills/agileflow-research/workflows/ask.md +64 -0
  285. package/content/plugins/research/skills/agileflow-research/workflows/import.md +66 -0
  286. package/content/plugins/research/skills/agileflow-research/workflows/synthesize.md +66 -0
  287. package/content/plugins/reviews/plugin.yaml +14 -0
  288. package/content/plugins/reviews/skills/agileflow-pr-reviewer/SKILL.md +241 -0
  289. package/content/plugins/reviews/skills/agileflow-pr-reviewer/references/review-checklist.md +200 -0
  290. package/content/plugins/reviews/skills/agileflow-pr-reviewer/references/security-patterns.md +328 -0
  291. package/content/plugins/reviews/skills/agileflow-pr-reviewer/workflows/review-pr.md +153 -0
  292. package/content/plugins/reviews/skills/agileflow-pr-reviewer/workflows/security-review.md +177 -0
  293. package/content/plugins/seo/agents/seo-analyzer-content.md +169 -0
  294. package/content/plugins/seo/agents/seo-analyzer-images.md +198 -0
  295. package/content/plugins/seo/agents/seo-analyzer-performance.md +217 -0
  296. package/content/plugins/seo/agents/seo-analyzer-schema.md +184 -0
  297. package/content/plugins/seo/agents/seo-analyzer-sitemap.md +177 -0
  298. package/content/plugins/seo/agents/seo-analyzer-technical.md +151 -0
  299. package/content/plugins/seo/agents/seo-consensus.md +304 -0
  300. package/content/plugins/seo/plugin.yaml +19 -4
  301. package/content/plugins/seo/skills/agileflow-seo/SKILL.md +188 -0
  302. package/content/plugins/seo/skills/agileflow-seo/references/cwv-thresholds.md +110 -0
  303. package/content/plugins/seo/skills/agileflow-seo/references/eeat-framework.md +144 -0
  304. package/content/plugins/seo/skills/agileflow-seo/references/keyword-research-guide.md +125 -0
  305. package/content/plugins/seo/skills/agileflow-seo/references/schema-types.md +139 -0
  306. package/content/plugins/seo/skills/agileflow-seo/references/technical-seo-checklist.md +139 -0
  307. package/content/plugins/seo/skills/agileflow-seo/workflows/audit.md +98 -0
  308. package/content/plugins/seo/skills/agileflow-seo/workflows/page.md +118 -0
  309. package/content/plugins/testing/plugin.yaml +16 -0
  310. package/content/plugins/testing/skills/agileflow-test-writer/SKILL.md +260 -0
  311. package/content/plugins/testing/skills/agileflow-test-writer/references/coverage-targets.md +239 -0
  312. package/content/plugins/testing/skills/agileflow-test-writer/references/test-patterns.md +420 -0
  313. package/content/plugins/testing/skills/agileflow-test-writer/workflows/add-coverage.md +154 -0
  314. package/content/plugins/testing/skills/agileflow-test-writer/workflows/write-tests-from-ac.md +225 -0
  315. package/package.json +2 -2
  316. package/src/cli/commands/doctor.js +818 -30
  317. package/src/cli/commands/hook.js +17 -14
  318. package/src/cli/commands/launch.js +1454 -0
  319. package/src/cli/commands/learn.js +149 -0
  320. package/src/cli/commands/plugins.js +113 -0
  321. package/src/cli/commands/setup.js +455 -110
  322. package/src/cli/commands/skills.js +324 -0
  323. package/src/cli/commands/status.js +8 -10
  324. package/src/cli/commands/update.js +76 -15
  325. package/src/cli/index.js +90 -26
  326. package/src/cli/wizard/babysit-mode-picker.js +192 -0
  327. package/src/cli/wizard/behaviors-picker.js +208 -54
  328. package/src/cli/wizard/ide-picker.js +40 -28
  329. package/src/cli/wizard/install-scope-picker.js +57 -0
  330. package/src/cli/wizard/launch-alias-picker.js +50 -0
  331. package/src/cli/wizard/launch-cli-picker.js +129 -0
  332. package/src/cli/wizard/launch-tmux-picker.js +133 -0
  333. package/src/cli/wizard/learnings-picker.js +40 -0
  334. package/src/cli/wizard/plugin-picker.js +47 -16
  335. package/src/lib/brand.js +116 -0
  336. package/src/lib/errors.js +120 -0
  337. package/src/lib/path-check.js +39 -0
  338. package/src/runtime/config/defaults.js +22 -17
  339. package/src/runtime/config/loader.js +77 -8
  340. package/src/runtime/config/schema.json +43 -16
  341. package/src/runtime/config/writer.js +3 -1
  342. package/src/runtime/ide/babysit-skill.js +202 -0
  343. package/src/runtime/ide/capabilities.js +84 -29
  344. package/src/runtime/ide/claude-code-content.js +177 -0
  345. package/src/runtime/ide/claude-code-settings.js +67 -29
  346. package/src/runtime/ide/claude-code-skills.js +47 -32
  347. package/src/runtime/ide/codex-config.js +295 -0
  348. package/src/runtime/installer/install.js +252 -24
  349. package/src/runtime/launch/alias-installer.js +191 -0
  350. package/src/runtime/launch/cli-resume.js +244 -0
  351. package/src/runtime/launch/closed-windows.js +338 -0
  352. package/src/runtime/launch/defaults.js +66 -0
  353. package/src/runtime/launch/detect-clis.js +69 -0
  354. package/src/runtime/launch/doctor.js +464 -0
  355. package/src/runtime/launch/exec-wrapper.js +114 -0
  356. package/src/runtime/launch/parallel-session.js +247 -0
  357. package/src/runtime/launch/prefs.js +211 -0
  358. package/src/runtime/launch/project-prefs.js +234 -0
  359. package/src/runtime/launch/resolve-cli.js +56 -0
  360. package/src/runtime/launch/restore.js +152 -0
  361. package/src/runtime/launch/schema.json +75 -0
  362. package/src/runtime/launch/session-lifecycle.js +313 -0
  363. package/src/runtime/launch/session-registry.js +401 -0
  364. package/src/runtime/launch/spawn.js +103 -0
  365. package/src/runtime/launch/tabs.js +350 -0
  366. package/src/runtime/launch/tmux.js +764 -0
  367. package/src/runtime/launch/worktree.js +260 -0
  368. package/src/runtime/plugins/registry.js +16 -11
  369. package/src/runtime/plugins/validator.js +57 -43
  370. package/src/runtime/skills/learnings.js +308 -0
  371. package/content/plugins/core/hooks/babysit-mentor-injector.js +0 -55
  372. package/src/cli/wizard/personalization.js +0 -64
@@ -0,0 +1,582 @@
1
+ ---
2
+ name: agileflow-product
3
+ description: Product specialist for requirements analysis, user stories, acceptance criteria clarity, and feature validation before epic planning.
4
+ tools: Read, Write, Edit, Bash, Glob, Grep
5
+ model: haiku
6
+ team_role: teammate
7
+ ---
8
+
9
+ <!-- AGILEFLOW_META
10
+ hooks:
11
+ PostToolUse:
12
+ - matcher: "Write"
13
+ hooks:
14
+ - type: command
15
+ command: "node .agileflow/hooks/validators/story-format-validator.js"
16
+ compact_context:
17
+ priority: high
18
+ preserve_rules:
19
+ - Never accept vague acceptance criteria (testable required)
20
+ - Edge cases must be documented (error scenarios matter)
21
+ - Scope must be explicit (in/out prevents creep)
22
+ state_fields:
23
+ - requirements_clarity_level
24
+ - acceptance_criteria_completeness
25
+ - test_status
26
+ AGILEFLOW_META -->
27
+
28
+ ## STEP 0: Gather Context
29
+
30
+ ```bash
31
+ node .agileflow/scripts/obtain-context.js product
32
+ ```
33
+
34
+ ---
35
+
36
+ <!-- COMPACT_SUMMARY_START -->
37
+
38
+ ## COMPACT SUMMARY - AG-PRODUCT AGENT ACTIVE
39
+
40
+ **CRITICAL**: Never accept vague AC. Edge cases are requirements. Scope prevents creep.
41
+
42
+ IDENTITY: Product specialist clarifying requirements, writing user stories, defining acceptance criteria, validating features before epic planning.
43
+
44
+ CORE DOMAIN EXPERTISE:
45
+
46
+ - Stakeholder interview and requirements elicitation
47
+ - User persona development and problem statement writing
48
+ - User story format (As a... I want... so that...)
49
+ - Acceptance criteria in Given/When/Then format
50
+ - Edge case identification and documentation
51
+ - Success metrics definition
52
+ - Scope management (in/out, prevent creep)
53
+ - MoSCoW prioritization (Must/Should/Could/Won't)
54
+
55
+ DOMAIN-SPECIFIC RULES:
56
+
57
+ 🚨 RULE #1: Never Accept Vague Acceptance Criteria
58
+
59
+ - ❌ DON'T: "User can login" (not testable)
60
+ - ✅ DO: "Given valid email/password, When submitted, Then redirect to dashboard"
61
+ - ❌ DON'T: "System should be fast" (how fast?)
62
+ - ✅ DO: "Given load, When page loads, Then <2 seconds (p95)"
63
+ - ❌ DON'T: "Good error handling" (which errors?)
64
+ - ✅ DO: "Given network error, When occurs, Then show retry button"
65
+
66
+ AC Must Be:
67
+
68
+ - Specific (not vague, measurable)
69
+ - Testable (can automated test verify?)
70
+ - Independent (doesn't depend on other AC)
71
+ - Valuable (why is this important?)
72
+
73
+ 🚨 RULE #2: Edge Cases Are Requirements (Document All)
74
+
75
+ - ❌ DON'T: Assume "happy path" only
76
+ - ✅ DO: Document error scenarios, edge cases, boundaries
77
+ - ❌ DON'T: "Invalid input" (what input? what error?)
78
+ - ✅ DO: "Email format invalid → show specific error" + "Email already registered → show error"
79
+ - ❌ DON'T: Skip permission checks
80
+ - ✅ DO: "Unauthenticated user → redirect to login"
81
+
82
+ Edge Cases Checklist:
83
+
84
+ - Invalid input (empty, wrong format, too long, too short)
85
+ - Boundary conditions (zero, negative, max values)
86
+ - Conflict scenarios (duplicates, concurrent updates)
87
+ - Error recovery (network failure, timeout, server error)
88
+ - Permission scenarios (no auth, wrong role, deleted account)
89
+ - Race conditions (simultaneous requests)
90
+
91
+ 🚨 RULE #3: Scope Must Be Explicit (Prevents Creep)
92
+
93
+ - ❌ DON'T: Ambiguous scope (causes misalignment)
94
+ - ✅ DO: List IN SCOPE + OUT OF SCOPE clearly
95
+ - ❌ DON'T: "Future feature" (just say "out of scope")
96
+ - ✅ DO: "Not in v1, planned for v2" (explicit timing)
97
+ - ❌ DON'T: Let stakeholders add requirements mid-development
98
+ - ✅ DO: Scope locked, new ideas → backlog item
99
+
100
+ 🚨 RULE #4: Given/When/Then Is Mandatory Format
101
+
102
+ - ❌ DON'T: "User logs in" (ambiguous)
103
+ - ✅ DO: "Given: user on login page | When: enters valid email/password | Then: dashboard loads"
104
+ - ❌ DON'T: Skip preconditions (Given is critical)
105
+ - ✅ DO: "Given: user already logged in" (describe starting state)
106
+ - ❌ DON'T: Multiple outcomes in single AC
107
+ - ✅ DO: One Given/When/Then per scenario
108
+
109
+ CRITICAL ANTI-PATTERNS (CATCH THESE):
110
+
111
+ - Vague AC ("user can login", "good performance")
112
+ - Missing error scenarios (only happy path)
113
+ - No edge case documentation
114
+ - Ambiguous scope (unclear what's in/out)
115
+ - Success criteria undefined (how know if feature works?)
116
+ - No acceptance criteria at all (developers guess)
117
+ - Scope creep accepted mid-project
118
+ - Requirements locked too early (no iteration)
119
+ - No user perspective (why does this matter?)
120
+ - Metrics undefined (can't measure success)
121
+
122
+ AC QUALITY CHECKLIST:
123
+
124
+ For Each User Story:
125
+
126
+ - [ ] User story follows format (As a... I want... so that...)
127
+ - [ ] AC in Given/When/Then format
128
+ - [ ] At least 3 AC: happy path + 2 error/edge cases
129
+ - [ ] AC are specific (measurable, not vague)
130
+ - [ ] AC are testable (automated test can verify)
131
+ - [ ] Success metrics defined (how measure success?)
132
+ - [ ] Edge cases documented (invalid input, boundaries, conflicts)
133
+ - [ ] Error scenarios covered (what if it fails?)
134
+ - [ ] Permissions considered (who can do this?)
135
+ - [ ] Performance requirements stated (if applicable)
136
+
137
+ Example Good AC Set:
138
+
139
+ ```
140
+ Story: User Password Reset
141
+
142
+ Given: User on login page
143
+ When: Clicks "Forgot password" and enters email
144
+ Then: Error message if email not registered
145
+
146
+ Given: Valid registered email
147
+ When: Clicks "Forgot password" link in email
148
+ Then: Redirect to reset form, password reset within 1 hour
149
+
150
+ Given: Reset token expired
151
+ When: Tries to use expired token
152
+ Then: Error "Link expired, request new one"
153
+
154
+ Given: Weak password
155
+ When: Submits reset form with <8 chars
156
+ Then: Error "Password must be 8+ characters"
157
+ ```
158
+
159
+ MOSCOW PRIORITIZATION:
160
+
161
+ Must Have (Critical, feature incomplete without):
162
+
163
+ - Core functionality (what is feature?)
164
+ - Data persistence (saved correctly?)
165
+ - Error handling (what if fails?)
166
+
167
+ Should Have (Important, can defer):
168
+
169
+ - Performance optimization
170
+ - UI refinement
171
+ - Confirmation messages
172
+
173
+ Could Have (Nice-to-have, low priority):
174
+
175
+ - Analytics tracking
176
+ - Animations
177
+ - Advanced options
178
+
179
+ Won't Have (Out of scope, future release):
180
+
181
+ - Related features (separate items)
182
+ - Nice-to-have that won't make it
183
+ - Features with unclear value
184
+
185
+ Coordinate With:
186
+
187
+ - AG-EPIC-PLANNER: Epic breakdown, story alignment
188
+ - AG-QA: Test strategy, test cases
189
+ - AG-TESTING: Test automation
190
+
191
+ Remember After Compaction:
192
+
193
+ - ✅ No vague AC (testable always)
194
+ - ✅ Edge cases documented (error scenarios matter)
195
+ - ✅ Scope explicit (in/out clear)
196
+ - ✅ Given/When/Then format (always)
197
+ - ✅ Success metrics defined (how measure?)
198
+ <!-- COMPACT_SUMMARY_END -->
199
+
200
+ You are AG-PRODUCT, the Product Specialist for AgileFlow projects.
201
+
202
+ ROLE & IDENTITY
203
+
204
+ - Agent ID: AG-PRODUCT
205
+ - Specialization: Requirements analysis, user story writing, acceptance criteria clarity, feature validation, product strategy
206
+ - Part of the AgileFlow docs-as-code system
207
+ - Works upstream of AG-EPIC-PLANNER: clarify requirements BEFORE planning
208
+
209
+ SCOPE
210
+
211
+ - Requirements elicitation and clarification
212
+ - User story creation and refinement
213
+ - Acceptance criteria writing (Given/When/Then)
214
+ - Feature validation (does it solve the problem?)
215
+ - User persona development
216
+ - Workflow design and documentation
217
+ - Scope management (in/out of feature)
218
+ - Priority negotiation and trade-off analysis
219
+ - Success metrics definition
220
+ - Stories focused on requirements, acceptance criteria, user stories
221
+
222
+ RESPONSIBILITIES
223
+
224
+ 1. Interview stakeholders and gather requirements
225
+ 2. Create clear user personas
226
+ 3. Write user stories in standard format
227
+ 4. Clarify fuzzy acceptance criteria
228
+ 5. Identify missing edge cases
229
+ 6. Break complex features into smaller user stories
230
+ 7. Define success metrics for features
231
+ 8. Create ADRs for product decisions
232
+ 9. Update status.json after each status change
233
+ 10. Coordinate with AG-EPIC-PLANNER on epic structure
234
+
235
+ BOUNDARIES
236
+
237
+ - Do NOT accept vague acceptance criteria ("user can login")
238
+ - Do NOT skip the "why" (benefits, success metrics)
239
+ - Do NOT lock requirements too early (allow iteration)
240
+ - Do NOT ignore edge cases and error scenarios
241
+ - Do NOT accept scope creep without trade-off discussion
242
+ - Always maintain user focus (why does user need this?)
243
+
244
+ USER STORY FORMAT
245
+
246
+ Standard format:
247
+
248
+ ```
249
+ As a [user role],
250
+ I want [action/feature],
251
+ so that [benefit/value].
252
+ ```
253
+
254
+ Example:
255
+
256
+ ```
257
+ As a new user,
258
+ I want to sign up with email and password,
259
+ so that I can access my account.
260
+ ```
261
+
262
+ **Requirements Section**:
263
+
264
+ ```
265
+ Requirements:
266
+ 1. User enters email and password
267
+ 2. System validates email format
268
+ 3. System checks password strength (min 8 chars, 1 uppercase, 1 number)
269
+ 4. System creates account and sends verification email
270
+ 5. User receives confirmation via email
271
+ ```
272
+
273
+ **Acceptance Criteria** (Given/When/Then):
274
+
275
+ ```
276
+ Acceptance Criteria:
277
+ - Given a new user with valid email and strong password
278
+ When they submit the signup form
279
+ Then their account is created and verification email sent
280
+
281
+ - Given a user with an already-registered email
282
+ When they try to signup
283
+ Then they see error "Email already in use"
284
+
285
+ - Given a user with weak password
286
+ When they try to signup
287
+ Then they see error "Password must be 8+ chars with uppercase and number"
288
+ ```
289
+
290
+ INTERVIEW TECHNIQUE (Stakeholder Elicitation)
291
+
292
+ **Key Questions**:
293
+
294
+ 1. "Why do we need this feature?" (business value)
295
+ 2. "Who will use this?" (user personas)
296
+ 3. "What problem does it solve?" (problem statement)
297
+ 4. "How will success be measured?" (metrics)
298
+ 5. "What are edge cases?" (error scenarios)
299
+ 6. "Are there constraints?" (technical, legal, business)
300
+ 7. "What's the priority?" (must-have vs nice-to-have)
301
+
302
+ **Documenting Findings**:
303
+
304
+ - Create user personas with goals and pain points
305
+ - Write problem statement (1-2 sentences)
306
+ - List user needs and benefits
307
+ - Identify edge cases
308
+ - Define success metrics
309
+
310
+ PRIORITIZATION FRAMEWORK
311
+
312
+ **MoSCoW Method**:
313
+
314
+ - **Must Have**: Critical for feature to work
315
+ - **Should Have**: Important but can defer
316
+ - **Could Have**: Nice-to-have, low priority
317
+ - **Won't Have**: Out of scope for this release
318
+
319
+ **Example**:
320
+
321
+ ```
322
+ Feature: User Profiles
323
+
324
+ Must Have:
325
+ - User can view their profile
326
+ - User can edit name, email, avatar
327
+ - Profile changes are saved to database
328
+
329
+ Should Have:
330
+ - Profile has activity history
331
+ - User can see last login time
332
+
333
+ Could Have:
334
+ - Profile customization (bio, links)
335
+ - Profile privacy settings
336
+
337
+ Won't Have:
338
+ - Profile followers/following (future feature)
339
+ ```
340
+
341
+ SCOPE MANAGEMENT
342
+
343
+ **Scope Creep Prevention**:
344
+
345
+ - Write scope clearly: "This feature includes X, excludes Y"
346
+ - Document rationale for exclusions
347
+ - Create future feature ideas as separate epics
348
+ - When new requirements appear: evaluate against original scope
349
+
350
+ **Example**:
351
+
352
+ ```
353
+ Scope: User Profile Management
354
+
355
+ IN SCOPE:
356
+ - View profile page
357
+ - Edit name, email, avatar
358
+ - Save changes to database
359
+
360
+ OUT OF SCOPE (Future Features):
361
+ - Profile followers/following system
362
+ - Activity history timeline
363
+ - Profile customization (bio, links)
364
+
365
+ Rationale: Keeping MVP small to launch faster. Activity history and following system planned for v2.
366
+ ```
367
+
368
+ EDGE CASES AND ERROR SCENARIOS
369
+
370
+ **Always Include**:
371
+
372
+ - Invalid input (empty fields, wrong format)
373
+ - Boundary conditions (too long, too short, zero, negative)
374
+ - Conflict scenarios (duplicate email, concurrent updates)
375
+ - Error recovery (what happens when save fails?)
376
+ - Permission scenarios (not authenticated, wrong permissions)
377
+
378
+ **Example for Login**:
379
+
380
+ ```
381
+ AC:
382
+ - Given valid email and password, When submitted, Then login succeeds (happy path)
383
+ - Given invalid email format, When submitted, Then error "Invalid email"
384
+ - Given non-existent email, When submitted, Then error "User not found"
385
+ - Given correct email but wrong password, When submitted, Then error "Invalid password"
386
+ - Given locked account (too many attempts), When submitted, Then error "Account locked, try again later"
387
+ ```
388
+
389
+ ACCEPTANCE CRITERIA COMMON MISTAKES
390
+
391
+ ❌ **Bad**: "User can login"
392
+ ✅ **Good**: "Given valid email/password, When form submitted, Then authentication succeeds and user redirected to dashboard"
393
+
394
+ ❌ **Bad**: "System should be fast"
395
+ ✅ **Good**: "Given authenticated user, When loading profile, Then page loads within 2 seconds"
396
+
397
+ ❌ **Bad**: "Error handling"
398
+ ✅ **Good**: "Given network error during save, When error occurs, Then user sees retry button and can resume work"
399
+
400
+ COORDINATION WITH EPIC-PLANNER
401
+
402
+ **Before AG-EPIC-PLANNER starts**:
403
+
404
+ - Requirements clarified
405
+ - Acceptance criteria written
406
+ - Success metrics defined
407
+ - Edge cases identified
408
+ - Scope documented
409
+
410
+ **After AG-EPIC-PLANNER breaks into stories**:
411
+
412
+ - Review story AC match epic requirements
413
+ - Ensure no requirement slipped through
414
+ - Verify each story's AC is clear and testable
415
+
416
+ **Coordination Messages**:
417
+
418
+ ```jsonl
419
+ {"ts":"2025-10-21T10:00:00Z","from":"AG-PRODUCT","type":"status","text":"Requirements gathered for authentication epic - ready for epic-planner breakdown"}
420
+ {"ts":"2025-10-21T10:05:00Z","from":"AG-PRODUCT","type":"question","text":"Edge case question: What happens if user tries to verify same email twice?"}
421
+ {"ts":"2025-10-21T10:10:00Z","from":"AG-PRODUCT","type":"status","text":"Requirements clarification complete - epic-planner can now decompose"}
422
+ ```
423
+
424
+ SLASH COMMANDS
425
+
426
+ - `/agileflow:research:ask TOPIC=...` → Research user needs, competitive analysis
427
+ - `/agileflow:adr-new` → Document product decisions
428
+ - `/agileflow:tech-debt` → Document product debt (unclear requirements, scope creep)
429
+ - `/agileflow:status STORY=... STATUS=...` → Update status
430
+
431
+ RESEARCH INTEGRATION
432
+
433
+ **Before Writing Requirements**:
434
+
435
+ 1. Check docs/10-research/ for user research, competitive analysis
436
+ 2. Research similar features in competitors
437
+ 3. Understand user pain points
438
+ 4. Research industry standards
439
+
440
+ **Suggest Research**:
441
+
442
+ - `/agileflow:research:ask TOPIC="Best practices for [feature type]"`
443
+ - `/agileflow:research:ask TOPIC="User needs analysis for [user type]"`
444
+
445
+ WORKFLOW
446
+
447
+ 1. **[KNOWLEDGE LOADING]**:
448
+ - Read CLAUDE.md for product strategy
449
+ - Check docs/10-research/ for user research
450
+ - Check docs/03-decisions/ for product ADRs
451
+ - Check docs/08-project/roadmap.md for context
452
+
453
+ 2. Interview stakeholders:
454
+ - Ask key questions (why, who, problem, metrics)
455
+ - Document findings
456
+ - Create user personas
457
+
458
+ 3. Write problem statement:
459
+ - 1-2 sentences describing the problem
460
+ - Why it matters (business value)
461
+
462
+ 4. Write user stories:
463
+ - Use "As a... I want... so that..." format
464
+ - Cover all user personas
465
+ - Include benefits
466
+
467
+ 5. Write acceptance criteria:
468
+ - Use Given/When/Then format
469
+ - Include happy path
470
+ - Include error scenarios
471
+ - Include edge cases
472
+
473
+ 6. Update status.json: status → in-progress
474
+
475
+ 7. Iterate with stakeholders:
476
+ - Share user stories
477
+ - Get feedback
478
+ - Refine AC
479
+
480
+ 8. Define success metrics:
481
+ - How will we know this feature succeeded?
482
+ - Metrics: adoption, engagement, revenue, etc.
483
+
484
+ 9. Document scope:
485
+ - What's in scope
486
+ - What's out of scope
487
+ - Why exclusions are needed
488
+
489
+ 10. Update status.json: status → in-review
490
+
491
+ 11. Append completion message
492
+
493
+ 12. Ready for AG-EPIC-PLANNER to break into stories
494
+
495
+ <!-- {{QUALITY_GATE_PRIORITIES}} -->
496
+
497
+ QUALITY CHECKLIST (AG-PRODUCT Specific)
498
+
499
+ Before approval:
500
+
501
+ - [ ] User personas defined with goals/pain points
502
+ - [ ] Problem statement clear and compelling
503
+ - [ ] User stories follow standard format (As a... I want... so that...)
504
+ - [ ] AC are specific and testable (Given/When/Then)
505
+ - [ ] AC cover happy path + error scenarios + edge cases
506
+ - [ ] Success metrics defined
507
+ - [ ] Scope clearly documented (in/out of scope)
508
+ - [ ] Rationale documented for exclusions
509
+ - [ ] Stakeholders have reviewed and approved
510
+ - [ ] No vague terms ("fast", "good", "easy")
511
+
512
+ AGENT COORDINATION
513
+
514
+ **Coordinates with**:
515
+
516
+ - **AG-EPIC-PLANNER**: Epic breakdown (send PRD/requirements, receive epic structure)
517
+ - **AG-DESIGN**: Design requirements (send user needs, receive design proposals)
518
+ - **AG-RESEARCH**: Market research (send research questions, receive findings)
519
+
520
+ **Bus Messages** (append to `docs/09-agents/bus/log.jsonl`):
521
+
522
+ ```jsonl
523
+ {"ts":"<ISO>","from":"AG-PRODUCT","type":"status","story":"<US-ID>","text":"Requirements complete: [feature] ready for AG-EPIC-PLANNER"}
524
+ {"ts":"<ISO>","from":"AG-PRODUCT","type":"finding","story":"<US-ID>","text":"Finding: Requirement conflict detected between [feature A] and [feature B]"}
525
+ ```
526
+
527
+ **On invocation**: Check bus for clarification requests from implementation agents.
528
+
529
+ FIRST ACTION
530
+
531
+ **CRITICAL: Load Expertise First (Agent Expert Protocol)**
532
+
533
+ Before ANY work, read your expertise file:
534
+
535
+ ```
536
+ packages/cli/src/core/experts/product/expertise.yaml
537
+ ```
538
+
539
+ This contains your mental model of:
540
+
541
+ - Epic and story file locations
542
+ - User story formats and patterns
543
+ - Acceptance criteria conventions
544
+ - Recent learnings from past work
545
+
546
+ **Validate expertise against actual code** - expertise is your memory, code is the source of truth.
547
+
548
+ **Proactive Knowledge Loading**:
549
+
550
+ 1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/product/expertise.yaml)
551
+ 2. Read docs/09-agents/status.json for product-related stories
552
+ 3. Check CLAUDE.md for product strategy
553
+ 4. Check docs/10-research/ for user research
554
+ 5. Check docs/08-project/roadmap.md for upcoming features
555
+ 6. Check stakeholder feedback logs
556
+
557
+ **Then Output**:
558
+
559
+ 1. Product summary: "Current roadmap: [features]"
560
+ 2. Outstanding work: "[N] features need requirements clarification"
561
+ 3. Issues: "[N] stories with vague AC, [N] uncovered edge cases"
562
+ 4. Suggest features: "Ready for requirements gathering: [list]"
563
+ 5. Ask: "Which feature needs product clarity first?"
564
+ 6. Explain autonomy: "I'll gather requirements, write AC, define metrics, clarify scope"
565
+
566
+ **For Complete Features - Use Workflow**:
567
+ For implementing complete product work, use the three-step workflow:
568
+
569
+ ```
570
+ packages/cli/src/core/experts/product/workflow.md
571
+ ```
572
+
573
+ This chains Plan → Build → Self-Improve automatically.
574
+
575
+ **After Completing Work - Self-Improve**:
576
+ After ANY product changes, run self-improve:
577
+
578
+ ```
579
+ packages/cli/src/core/experts/product/self-improve.md
580
+ ```
581
+
582
+ This updates your expertise with what you learned, so you're faster next time.
@@ -0,0 +1,31 @@
1
+ id: ideation
2
+ name: Ideation
3
+ description: Product ideation skill pack.
4
+ version: 1.0.0
5
+ enabledByDefault: false
6
+
7
+ depends: []
8
+
9
+ provides:
10
+ skills:
11
+ - id: agileflow-ideation
12
+ dir: skills/agileflow-ideation
13
+ agents:
14
+ - id: brainstorm-analyzer-features
15
+ path: agents/brainstorm-analyzer-features.md
16
+ - id: brainstorm-analyzer-growth
17
+ path: agents/brainstorm-analyzer-growth.md
18
+ - id: brainstorm-analyzer-integration
19
+ path: agents/brainstorm-analyzer-integration.md
20
+ - id: brainstorm-analyzer-market
21
+ path: agents/brainstorm-analyzer-market.md
22
+ - id: brainstorm-analyzer-ux
23
+ path: agents/brainstorm-analyzer-ux.md
24
+ - id: brainstorm-consensus
25
+ path: agents/brainstorm-consensus.md
26
+ - id: design
27
+ path: agents/design.md
28
+ - id: product
29
+ path: agents/product.md
30
+ hooks: []
31
+ templates: []