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,86 @@
1
+ # MADR Format Guide
2
+
3
+ **Load this when:** writing an ADR, reviewing an existing one,
4
+ or explaining the MADR format to a user.
5
+
6
+ ## What MADR is
7
+
8
+ MADR (Markdown Any Decision Records) — a lightweight, structured format
9
+ for capturing decisions. The key insight: decisions without context rot
10
+ into mystery. MADR forces you to record the WHY, not just the WHAT.
11
+
12
+ ## Required sections
13
+
14
+ | Section | Purpose | What to write |
15
+ | --------------------------------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
16
+ | **Context and Problem Statement** | Why this decision is needed | The situation + the friction. "We need to pick a queue backend because we're hitting rate limits on synchronous processing." |
17
+ | **Decision Drivers** | What matters most | 3-5 bullets: performance, cost, team expertise, operational simplicity, compliance |
18
+ | **Considered Options** | What was evaluated | At least 2. "Status quo / do nothing" counts as an option. |
19
+ | **Decision Outcome** | What was chosen and why | Tie directly back to the drivers. Name the option. |
20
+
21
+ ## Optional but recommended
22
+
23
+ | Section | When to include |
24
+ | ---------------------------- | ------------------------------------------------------------ |
25
+ | **Positive Consequences** | Non-obvious upsides worth documenting |
26
+ | **Negative Consequences** | Downsides + mitigations (being honest here builds trust) |
27
+ | **Pros and Cons per option** | When options were close and you want the reasoning preserved |
28
+ | **Links** | Related ADRs, external benchmarks, issue trackers |
29
+
30
+ ## Status lifecycle
31
+
32
+ ```
33
+ Proposed → Accepted → (years later) → Deprecated | Superseded
34
+ ```
35
+
36
+ - **Proposed**: under active discussion
37
+ - **Accepted**: decision made, do not change — write a new ADR to override
38
+ - **Deprecated**: no longer relevant (tech removed, requirements changed)
39
+ - **Superseded by ADR-XXXX**: replaced — always link forward
40
+
41
+ ## Common mistakes
42
+
43
+ | Mistake | Problem | Fix |
44
+ | ---------------------------- | ------------------------------------------ | ------------------------------------------------------ |
45
+ | Single option considered | Looks like rationalization | Add "status quo" or "do nothing" as an explicit option |
46
+ | Vague problem statement | Future reader has no context | Name the constraint that forced the decision |
47
+ | No negative consequences | Untrustworthy — every choice has tradeoffs | Document downsides + mitigation plan |
48
+ | Missing decision drivers | Options can't be evaluated | List what matters — performance, cost, DX, compliance |
49
+ | ADR updated after acceptance | History lost | Create a new ADR, set old to Superseded |
50
+
51
+ ## Numbering and naming
52
+
53
+ ```
54
+ docs/03-decisions/ADR-0001-use-postgresql.md
55
+ docs/03-decisions/ADR-0002-rest-over-graphql.md
56
+ docs/03-decisions/ADR-0015-switch-to-edge-functions.md
57
+ ```
58
+
59
+ - Always 4-digit zero-padded
60
+ - Slug: lowercase, hyphens, describes the decision (not "database-decision")
61
+ - Never reuse a number even after a superseded ADR is "deleted"
62
+
63
+ ## Size guidelines
64
+
65
+ - **Micro ADR** (< 20 lines): small, clear decisions — OK to skip Pros/Cons per option
66
+ - **Standard ADR** (20-60 lines): most decisions
67
+ - **Extended ADR** (60-100 lines): architecture pivots, platform migrations
68
+ - **Never > 100 lines**: if it's longer, the problem statement is too broad — split it
69
+
70
+ ## Cross-linking
71
+
72
+ When an ADR supersedes another:
73
+
74
+ ```markdown
75
+ ## Status
76
+
77
+ Accepted — supersedes [ADR-0003](ADR-0003-use-mongodb.md)
78
+ ```
79
+
80
+ When an ADR is superseded:
81
+
82
+ ```markdown
83
+ ## Status
84
+
85
+ Superseded by [ADR-0015](ADR-0015-switch-to-postgresql.md) (2026-03)
86
+ ```
@@ -0,0 +1,57 @@
1
+ # Write ADR Workflow
2
+
3
+ **Triggers:** "record this decision", "write an ADR", "which should we use", "trade-off between X and Y", user compares two technical options
4
+
5
+ **Goal:** Capture a technical or architectural decision as a formal ADR in `docs/03-decisions/`.
6
+
7
+ ## Inputs needed
8
+
9
+ | Input | Required | How to get it |
10
+ | ------------------ | -------- | ------------------------------------------------------------------------- |
11
+ | Decision topic | Yes | Usually clear from context; ask if ambiguous |
12
+ | Options considered | Yes | At least 2 — ask if only 1 given ("what did you consider instead?") |
13
+ | Decision drivers | Yes | Ask: "What matters most — performance, cost, simplicity, team expertise?" |
14
+ | Chosen option | Yes | May already be decided, or may still be open |
15
+ | Status | Yes | `Proposed` if still debating, `Accepted` if decided |
16
+
17
+ ## Steps
18
+
19
+ 1. **Detect scope** — is this a real architecture decision or a casual question?
20
+ - Real: compares libraries, frameworks, infra, patterns with real tradeoffs
21
+ - Casual: "which is better, tabs or spaces?" → skip the ADR, just answer
22
+
23
+ 2. **Gather missing pieces** — ask 1-3 targeted questions if inputs are incomplete.
24
+ Present as: "To write this ADR I need a couple things: [questions]"
25
+ Don't ask for everything at once — prioritize the most critical gaps.
26
+
27
+ 3. **Find the next ADR number** — read `docs/03-decisions/` to find the highest existing number.
28
+ If the directory doesn't exist, create it and start at 0001.
29
+
30
+ 4. **Draft the ADR** — write it inline using the MADR format from `references/madr-format-guide.md`.
31
+ Show the full draft to the user before writing any file.
32
+
33
+ 5. **Present options to the user:**
34
+ - Write this ADR to `docs/03-decisions/ADR-####-<slug>.md`
35
+ - Revise the draft (describe what to change)
36
+ - Change status to Proposed (if they want to discuss first)
37
+
38
+ 6. **Write the file** only after explicit confirmation.
39
+
40
+ 7. **Link** — if this supersedes an existing ADR, update the old file's Status line.
41
+
42
+ ## Output
43
+
44
+ File written to: `docs/03-decisions/ADR-####-<slug>.md`
45
+
46
+ Confirm to user: "ADR-#### written. Future decisions that change this approach should supersede it with a new ADR."
47
+
48
+ ## Fallbacks
49
+
50
+ **If interactive prompts (AskUserQuestion) are unavailable:**
51
+ Present options as a numbered list in your response. Ask the user to reply with a number.
52
+
53
+ ```
54
+ 1. Write ADR-0007 to docs/03-decisions/ADR-0007-use-redis-for-queuing.md
55
+ 2. Revise the draft first
56
+ 3. Save as Proposed (not Accepted) for further discussion
57
+ ```
@@ -5,9 +5,9 @@ category: agileflow/core
5
5
  description: |
6
6
  Use when the user wants end-to-end guidance through a story or
7
7
  feature — from picking the right task to commit. Acts as a mentor
8
- that plans, delegates to domain experts, tracks tasks, runs audits,
9
- and ends every response with a smart AskUserQuestion so the user is
10
- always in control.
8
+ that plans, delegates to domain experts, tracks progress, runs
9
+ audits, and keeps the user in control with explicit next-step
10
+ choices.
11
11
  triggers:
12
12
  keywords:
13
13
  - help me ship this
@@ -33,8 +33,6 @@ depends:
33
33
  plugins: [core]
34
34
  ---
35
35
 
36
- <!-- {{PERSONALIZATION_BLOCK}} -->
37
-
38
36
  # AgileFlow Babysit Mentor
39
37
 
40
38
  The mentor pattern: pick the most impactful ready story, plan the
@@ -53,16 +51,16 @@ every decision point. This skill is the v4 successor to v3's
53
51
 
54
52
  ## Core operating rules (always apply)
55
53
 
56
- 1. **Always end every response with a smart `AskUserQuestion`**
54
+ 1. **Always end every response with a concrete next step or choice**
57
55
  specific, contextual options with one marked `(Recommended)`. Never
58
56
  `Continue?` / `What next?`.
59
- 2. **Use plan mode for non-trivial implementation** — call
60
- `EnterPlanMode`, explore 3–5 files, write a plan, `ExitPlanMode`.
61
- Skip for typos and one-liners.
62
- 3. **Delegate complex work to domain experts** via the `Task` tool
63
- (e.g., `agileflow-database`, `agileflow-api`, `agileflow-ui`).
64
- 4. **Track progress with `TaskCreate` / `TaskUpdate`** for any task
65
- with 3+ steps. Mark complete as soon as each step lands.
57
+ 2. **Use the IDE's planning workflow for non-trivial implementation**
58
+ when one exists. Otherwise write a short plan in the response,
59
+ explore the relevant files, and keep the plan visible.
60
+ 3. **Delegate complex work to domain experts or subagents** when the
61
+ current IDE supports that shape of delegation.
62
+ 4. **Track progress visibly for any task with 3+ steps.** Keep a task
63
+ list or checklist and mark each step complete as soon as it lands.
66
64
  5. **Suggest a logic audit after every implementation** — present
67
65
  `Run logic audit` as `(Recommended)` after tests pass.
68
66
  6. **Suggest a flow audit when implementation touches user flows** —
@@ -76,7 +74,7 @@ every decision point. This skill is the v4 successor to v3's
76
74
  1. Read `docs/09-agents/status.json` and the active session state.
77
75
  2. Surface the most impactful **ready** stories (priority + epic
78
76
  completion proximity + dependency unblockers).
79
- 3. Present them via `AskUserQuestion` with the recommended pick.
77
+ 3. Present them as a short decision prompt with the recommended pick.
80
78
 
81
79
  ### Phase 2 — Plan
82
80
 
@@ -93,14 +91,15 @@ Step N: Verify flow integrity
93
91
  ### Phase 3 — Execute
94
92
 
95
93
  - Implement directly OR spawn domain experts for parallelizable work.
96
- - Update `TaskUpdate` as each step completes.
94
+ - Update the visible checklist as each step completes.
97
95
 
98
96
  ### Phase 4 — Verify & commit
99
97
 
100
98
  After tests pass, present (in this order):
101
- - `Run logic audit (Recommended)` — `/agileflow:code:logic` on the
102
- modified files
103
- - `Run flow audit` — `/agileflow:code:flows` if user flows changed
99
+
100
+ - `Run logic audit (Recommended)` — run the logic audit on the modified
101
+ files
102
+ - `Run flow audit` — run the flow audit if user flows changed
104
103
  - `Commit: 'feat: ...'`
105
104
 
106
105
  After audits land, the commit option becomes `(Recommended)`.
@@ -119,26 +118,94 @@ After audits land, the commit option becomes `(Recommended)`.
119
118
 
120
119
  - [ ] Picked from `ready` stories, not arbitrary
121
120
  - [ ] Used plan mode if scope warranted
122
- - [ ] Tracked tasks with `TaskCreate`/`TaskUpdate` for ≥3 steps
121
+ - [ ] Tracked tasks visibly for ≥3 steps
123
122
  - [ ] Tests run after implementation
124
123
  - [ ] Logic audit suggested
125
124
  - [ ] Flow audit suggested for user-facing changes
126
- - [ ] Every response ended with smart `AskUserQuestion`
125
+ - [ ] Every response ended with a concrete next step or choice
127
126
 
128
127
  ## Integration
129
128
 
130
- - **agileflow-story-writer** when a discovered task isn't already a
131
- story, propose creating one before starting work
132
- - **agileflow-status-updater** flip story status as work progresses
133
- - **agileflow-epic-planner** — when scope creeps past one story, propose
134
- splitting into an epic
129
+ Use the skill that best matches the phase of work. When in doubt, the trigger keywords in each skill's `SKILL.md` are the canonical guide.
130
+
131
+ ### Task & story management
132
+
133
+ - **agileflow-story-writer** when a task isn't yet a proper story, propose creating one before starting work; handles AC, estimation, and story formatting
134
+ - **agileflow-status-updater** — flip story status as work progresses (ready → in-progress → done → blocked); call whenever state changes
135
+ - **agileflow-epic-planner** — when scope creeps past one story or a theme emerges, propose splitting into an epic with sequenced stories
136
+ - **agileflow-adr** — surface when implementation involves a meaningful technology or architecture trade-off that deserves a recorded decision
137
+ - **agileflow-planning** — use for impact analysis, velocity tracking, RPI scoring, metrics dashboards, or sprint planning; ideal when the user asks about prioritisation
138
+
139
+ ### Strategy & ideation
140
+
141
+ - **agileflow-council** — convene for architectural or strategic decisions with significant trade-offs; brings multiple perspectives (optimist, advocate, contrarian, technical) instead of a single opinion
142
+ - **agileflow-ideation** — use when the user wants to explore what to build next, validate a product direction, discover feature opportunities, or generate a product brief before writing stories
143
+ - **agileflow-retention** — suggest when stories involve engagement, habit-forming features, onboarding flows, or growth mechanics; applies behavioural psychology patterns
144
+
145
+ ### Research
146
+
147
+ - **agileflow-research** — activate before coding begins when the story requires external knowledge: unfamiliar libraries, API integrations, architectural patterns, or comparative analysis; pairs with `research:ask` for stuck moments
148
+
149
+ ### Implementation
150
+
151
+ - **agileflow-engineering** — delegate hands-on coding: API endpoints, DB schema, UI components, mobile, security hardening, and general feature implementation
152
+ - **agileflow-database** — delegate schema design, index selection, migration planning, or query-optimisation work; covers relational and NoSQL
153
+ - **agileflow-migration** — use when the story involves upgrading a framework, library, or data schema; plans zero-downtime migrations and generates rollback scripts
154
+ - **agileflow-refactor** — suggest when existing code needs cleanup before or after a feature lands; applies safe refactoring patterns without changing observable behaviour
155
+ - **agileflow-debug** — hand off immediately when the user reports a bug or unexpected behaviour; applies structured debugging methodology
156
+ - **agileflow-performance** — suggest when a feature is slow, memory-heavy, bundle-size-constrained, or Core Web Vitals need improvement
157
+ - **agileflow-accessibility** — suggest for any user-facing change; invoke before commit when the story touches UI; covers WCAG, ARIA, keyboard navigation, and screen reader compatibility
158
+
159
+ ### Testing
160
+
161
+ - **agileflow-test-writer** — spawn after implementation to generate test suites from acceptance criteria; covers unit, integration, and E2E patterns
162
+
163
+ ### Verification & audits
164
+
165
+ - **agileflow-audit** — broad multi-dimensional sweep (logic, security, accessibility, legal, test coverage, architecture, performance, completeness, API quality, SEO); offer after implementation when no specific audit is targeted
166
+ - **agileflow-pr-reviewer** — invoke before opening a PR to catch logic correctness, security vulnerabilities, and style issues; required for stories touching 5+ source files
167
+ - **agileflow-delivery** — use when the user is ready to ship: CI checks, changelog generation, dependency audit, release notes, and sprint finalisation
168
+
169
+ ### Documentation & discoverability
170
+
171
+ - **agileflow-docs** — generate or sync API docs, README files, learning content, or skill recommendations after implementation; required when public APIs or exports change
172
+ - **agileflow-seo** — suggest for any story touching public-facing pages or content discoverability; covers technical SEO, Core Web Vitals, structured data, and content quality
173
+
174
+ ### Advertising & growth
175
+
176
+ - **agileflow-ads** — use when stories involve advertising campaigns (Google, Meta, LinkedIn, TikTok); covers tracking, creative, budget allocation, and audit
135
177
 
136
178
  ## Notes
137
179
 
138
180
  - Mentor mode is opt-in. Don't impose it on simple requests
139
181
  ("rename this variable") where direct execution is faster.
140
- - The user is always in control. Smart `AskUserQuestion` with a
141
- recommended path is the principle, not the exception.
182
+ - The user is always in control. A specific recommended choice is the
183
+ principle, not the exception.
142
184
  - When in doubt, ASK rather than guess. The cost of a clarifying
143
185
  question is one round-trip; the cost of redoing the wrong work is
144
186
  much more.
187
+
188
+ ## Customization
189
+
190
+ Set `plugins.core.settings.babysit.mode` in `agileflow.config.json` to
191
+ control how much interaction the mentor uses:
192
+
193
+ - `full` - use the richest interaction pattern the IDE supports
194
+ - `light` - keep the guidance concise and avoid repeated interruptions
195
+ - `minimal` - stick to direct execution and short plain-text checklists
196
+
197
+ ## References
198
+
199
+ Load these files when you need deeper context for the relevant task:
200
+
201
+ | File | When to load |
202
+ | ------------------------------------- | ---------------------------------------------------------------------------------------------------- |
203
+ | `references/mentor-decision-guide.md` | Calibrating interaction depth, choosing which expert to delegate to, deciding when to suggest audits |
204
+
205
+ ## Workflows
206
+
207
+ Follow these step-by-step when the user initiates the matching action:
208
+
209
+ | File | When to follow |
210
+ | ----------------------------- | --------------------------------------------------------------------------------- |
211
+ | `workflows/mentor-session.md` | User wants end-to-end guidance — story selection through commit, full mentor loop |
@@ -0,0 +1,81 @@
1
+ # Mentor Decision Guide
2
+
3
+ **Load this when:** deciding how deeply to guide the user, choosing between
4
+ doing work directly vs delegating, or calibrating the level of interaction.
5
+
6
+ ## When to use mentor mode vs just answering
7
+
8
+ | Request type | Approach |
9
+ | ------------------------------ | ------------------------------------------------------ |
10
+ | "Help me ship US-0042" | Full mentor mode — plan, delegate, track, verify |
11
+ | "Walk me through this feature" | Full mentor mode |
12
+ | "What should I work on?" | Story selection + mentor mode for chosen story |
13
+ | "Fix this bug in auth.js" | Do it directly, no mentor overhead |
14
+ | "Rename this function" | Do it directly |
15
+ | "Is this approach correct?" | Answer the question, offer to proceed with mentor mode |
16
+
17
+ ## Calibrating interaction depth by scale
18
+
19
+ | Project scale | Planning depth | Delegation | Audits |
20
+ | ------------------------- | --------------------------------- | ------------- | ----------------------- |
21
+ | Micro (solo, < 5 stories) | Skip plan mode for most tasks | 2 experts max | Logic only |
22
+ | Small (1 sprint) | Light planning, skip for familiar | 3 experts max | Logic + flow |
23
+ | Medium (2–4 sprints) | Plan mode for non-trivial | 4 experts | Logic + flow + security |
24
+ | Large (4+ sprints) | Always plan mode | 5 experts | All relevant audits |
25
+ | Enterprise (team) | Plan + council for arch decisions | Full panel | Strict gates |
26
+
27
+ User preferences override this — if configured as `light` or `minimal`, respect that.
28
+
29
+ ## Choosing the right expert to delegate to
30
+
31
+ | Work involves... | Delegate to |
32
+ | ------------------------------------ | -------------------------------- |
33
+ | Database schema, migrations, queries | `agileflow-database` |
34
+ | API endpoints, business logic | `agileflow-api` |
35
+ | UI components, styling | `agileflow-ui` |
36
+ | Test strategy, coverage | `agileflow-testing` |
37
+ | Security, auth | `agileflow-security` |
38
+ | 2+ domains | `agileflow-orchestrator` |
39
+ | Architecture decision | Council first, then implementors |
40
+
41
+ ## When to suggest audits
42
+
43
+ After any implementation, present audits in this order:
44
+
45
+ 1. **Logic audit** — always, after tests pass (`Recommended`)
46
+ 2. **Flow audit** — when user-facing flows changed (forms, navigation, auth, CRUD)
47
+ 3. **Security audit** — when auth, APIs, user input, or sensitive data touched
48
+ 4. **Performance audit** — when DB queries, rendering, or large data touched
49
+ 5. **Accessibility audit** — when UI components changed
50
+ 6. **Legal audit** — when data collection, consent, or compliance code changed
51
+
52
+ `auditAll` mode: suggest all of the above after every implementation regardless of context.
53
+
54
+ ## Decision points that require user input (always ask)
55
+
56
+ - Which story to work on (never pick silently)
57
+ - Plan approval before implementation
58
+ - Commit message and timing
59
+ - Whether to fix P0/P1 audit findings now or defer
60
+
61
+ ## Decision points to handle autonomously (don't ask)
62
+
63
+ - Reading files to understand context
64
+ - Spawning experts after plan approval
65
+ - Checking git status
66
+ - Running tests after implementation
67
+
68
+ ## Next-step option quality bar
69
+
70
+ **Bad options:**
71
+
72
+ - "Continue" / "Keep going"
73
+ - "What would you like to do?"
74
+ - "Proceed with implementation?"
75
+
76
+ **Good options:**
77
+
78
+ - "Run npm test on the 3 changed files (Recommended)"
79
+ - "Commit: 'feat: add OAuth login flow'"
80
+ - "Run logic audit on auth.js, session.js (Recommended)"
81
+ - "Continue to US-0044 (EP-0018 is 85% complete)"
@@ -0,0 +1,79 @@
1
+ # Mentor Session Workflow
2
+
3
+ **Triggers:** "help me ship", "walk me through", "what should I work on", "mentor mode", "babysit", "guide me through this story"
4
+
5
+ **Goal:** Guide the user from story selection through commit, keeping them in control at every decision point.
6
+
7
+ ## Inputs needed
8
+
9
+ | Input | Required | How to get it |
10
+ | ---------------- | -------- | -------------------------------------------------- |
11
+ | Project context | Yes | Read `docs/09-agents/status.json` |
12
+ | Story to work on | Yes | Present options from ready stories; user picks |
13
+ | User preferences | Auto | Read from `agileflow.config.json` babysit settings |
14
+
15
+ ## Steps
16
+
17
+ ### Phase 1: Context
18
+
19
+ 1. Read `docs/09-agents/status.json` — find all `ready` stories.
20
+ 2. Check for stories claimed by other sessions if multi-session support is available.
21
+ 3. **Present story options to the user** — ranked by: epic proximity (80%+ complete epics first), dependency-unblocking value, priority. Mark the recommended pick.
22
+ Show: story ID, title, epic it belongs to, estimated points.
23
+ 4. After user picks: claim the story if claiming is supported.
24
+
25
+ ### Phase 2: Plan
26
+
27
+ For non-trivial stories (>1 file, any new pattern):
28
+
29
+ 1. Enter plan mode.
30
+ 2. Read 3–5 relevant files — existing patterns, affected modules, tests.
31
+ 3. Write the plan: implementation steps, files to change, testing approach.
32
+ 4. **Every plan for user-facing features must include:**
33
+ ```
34
+ Step N+1: Run tests
35
+ Step N+2: Verify flow integrity — confirm user journeys work end-to-end
36
+ Step N+3: Commit
37
+ ```
38
+ 5. Exit plan mode and present to user for approval.
39
+
40
+ For trivial stories (typo, config change, one-liner): skip plan mode, implement directly.
41
+
42
+ ### Phase 3: Execute
43
+
44
+ 1. After plan approval, start immediately — do not ask "ready to proceed?"
45
+ 2. Implement directly OR spawn domain experts (see `references/mentor-decision-guide.md` for routing).
46
+ 3. Track progress visibly for 3+ step tasks — check off each step as it completes.
47
+ 4. Run tests after implementation.
48
+
49
+ ### Phase 4: Verify and commit
50
+
51
+ After tests pass, present options in this order:
52
+
53
+ - `🔍 Run logic audit on [N] modified files (Recommended)` — catches edge cases tests miss
54
+ - `🔄 Run flow audit` — if user-facing flows were touched
55
+ - `Commit: '[type]: [summary]'` — skip audits
56
+
57
+ After audits: `Commit: '[type]: [summary]' (Recommended)`
58
+
59
+ After commit:
60
+
61
+ - Update story status to `complete`
62
+ - Release story claim
63
+ - Present options: next story in the same epic, different story, or stop
64
+
65
+ ## Fallbacks
66
+
67
+ **If interactive prompts (AskUserQuestion) are unavailable:**
68
+ Present each decision point as a numbered list. Ask the user to reply with a number.
69
+
70
+ ```
71
+ Which story would you like to work on?
72
+ 1. US-0042: Add OAuth login (EP-0018 — 85% complete) — 8 pts (Recommended)
73
+ 2. US-0051: Add rate limiting to API — 5 pts
74
+ 3. US-0038: Fix password reset email — 3 pts
75
+ ```
76
+
77
+ **If agent spawning (Task tool) is unavailable:**
78
+ Implement each domain inline and sequentially rather than in parallel.
79
+ State which domain you're working on as you go: "Working on the database layer now..."
@@ -34,8 +34,6 @@ depends:
34
34
  plugins: [core]
35
35
  ---
36
36
 
37
- <!-- {{PERSONALIZATION_BLOCK}} -->
38
-
39
37
  # AgileFlow Epic Planner
40
38
 
41
39
  Turns a large feature or initiative into a properly-scoped epic — with
@@ -86,39 +84,48 @@ confidence (`high` / `medium` / `low`) per the standard pattern.
86
84
  **Business Value**: High | Medium | Low
87
85
 
88
86
  ## Problem Statement
87
+
89
88
  [What problem does this epic solve? Why now?]
90
89
 
91
90
  ## Goals
91
+
92
92
  - [Specific, measurable outcome]
93
93
  - [Business or user metric to improve]
94
94
 
95
95
  ## Success Metrics
96
+
96
97
  - [e.g., 20% increase in retention]
97
98
  - [e.g., Reduce support tickets by 30%]
98
99
 
99
100
  ## User Stories
100
101
 
101
102
  ### Milestone 1: MVP (Target: YYYY-MM-DD)
103
+
102
104
  - [ ] [US-####: Title](../06-stories/US-####.md) — 5 pts
103
105
  - [ ] [US-####: Title](../06-stories/US-####.md) — 8 pts
104
- **Total: 13 story points**
106
+ **Total: 13 story points**
105
107
 
106
108
  ### Milestone 2: Feature Complete (Target: YYYY-MM-DD)
109
+
107
110
  - [ ] [US-####: Title](../06-stories/US-####.md) — 5 pts
108
- **Total: 5 story points**
111
+ **Total: 5 story points**
109
112
 
110
113
  ## Dependencies
114
+
111
115
  - [What blocks the start of this epic]
112
116
  - [External team dependencies]
113
117
 
114
118
  ## Risks
119
+
115
120
  - **Risk**: [What could go wrong] · **Impact**: [High/Med/Low] · **Mitigation**: [Plan]
116
121
 
117
122
  ## Out of Scope
123
+
118
124
  - [Explicitly NOT in this epic]
119
125
  - [Deferred to a future epic]
120
126
 
121
127
  ## Progress
128
+
122
129
  **Overall**: X / Y stories completed (Z%)
123
130
  **Last Updated**: YYYY-MM-DD
124
131
  ```
@@ -126,12 +133,14 @@ confidence (`high` / `medium` / `low`) per the standard pattern.
126
133
  ## Epic vs. story heuristic
127
134
 
128
135
  **Epic** when ALL of:
136
+
129
137
  - > 13 story points total
130
138
  - Spans 2+ sprints
131
139
  - Touches multiple owners (UI + API + DevOps)
132
140
  - Has distinct phases that each deliver value
133
141
 
134
142
  **Story** when any of:
143
+
135
144
  - ≤ 13 story points
136
145
  - One owner can complete it
137
146
  - Single sprint
@@ -165,9 +174,14 @@ confidence (`high` / `medium` / `low`) per the standard pattern.
165
174
 
166
175
  ## Integration
167
176
 
168
- - **agileflow-story-writer** — creates the individual stories under each milestone
169
- - **agileflow-status-updater** — flips the epic between PLANNING / ACTIVE / COMPLETED
170
- - **agileflow-adr** — links major technical decisions made during the epic
177
+ - **agileflow-story-writer** — creates the individual stories under each milestone; epic-planner defines the skeleton, story-writer fills in AC and estimates
178
+ - **agileflow-status-updater** — flips the epic between PLANNING / ACTIVE / COMPLETED as milestones land
179
+ - **agileflow-adr** — links major technical decisions made during the epic; create ADRs for database choice, API design, or architecture decisions before writing stories
180
+ - **agileflow-council** — convene before planning a large or ambiguous epic to resolve strategic direction; council output shapes the epic's goal and milestone structure
181
+ - **agileflow-research** — use before planning to gather technical context for unfamiliar problem domains; avoids planning stories around incorrect assumptions
182
+ - **agileflow-planning** — use for capacity planning and sprint allocation after the epic is defined; epic-planner sets the scope, planning fits it into delivery windows
183
+ - **agileflow-ideation** — large ideas produced by ideation become epics; route the top-ranked ideation output here to give it structure and milestones
184
+ - **agileflow-babysit-mentor** — mentor is the primary executor of planned epics; a well-structured epic with ready stories makes mentor-guided execution reliable
171
185
 
172
186
  ## Notes
173
187
 
@@ -177,3 +191,19 @@ confidence (`high` / `medium` / `low`) per the standard pattern.
177
191
  and let `agileflow-story-writer` fill them in as work begins.
178
192
  - Celebrate milestone completions — the epic file is the canonical
179
193
  place to record what shipped.
194
+
195
+ ## References
196
+
197
+ Load these files when you need deeper context for the relevant task:
198
+
199
+ | File | When to load |
200
+ | --------------------------------- | ---------------------------------------------------------------------------------------------------- |
201
+ | `references/epic-sizing-guide.md` | Deciding if work is epic-scale, sizing milestones, estimating total effort, structuring dependencies |
202
+
203
+ ## Workflows
204
+
205
+ Follow these step-by-step when the user initiates the matching action:
206
+
207
+ | File | When to follow |
208
+ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
209
+ | `workflows/plan-epic.md` | User describes a large feature or asks to break down an initiative — clarifies, designs milestones, drafts epic, writes file |