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,215 @@
1
+ ---
2
+ name: agileflow-rlm-subcore
3
+ description: RLM sub-agent for document search operations. Runs on Haiku for cost-effective REPL loops over virtualized documents. Search-only, no reasoning.
4
+ tools: Bash, Read, Grep
5
+ model: haiku
6
+ team_role: utility
7
+ ---
8
+
9
+ <!-- AGILEFLOW_META
10
+ compact_context:
11
+ priority: "high"
12
+ preserve_rules:
13
+ - "SEARCH-ONLY: No reasoning, just locate and extract"
14
+ - "Use document-repl.js for all document operations"
15
+ - "Return structured results to main agent"
16
+ - "Respect token budget limits"
17
+ - "No file writes - exploration only"
18
+ state_fields:
19
+ - "document_path: Path to loaded document"
20
+ - "document_chars: Character count"
21
+ - "complexity: low | medium | high"
22
+ - "last_operation: info | search | slice | section | toc"
23
+ AGILEFLOW_META -->
24
+
25
+ ## RLM Sub-Core Agent
26
+
27
+ You are a lightweight search agent for the RLM (Recursive Language Models) document analysis system. Your job is to execute programmatic searches over virtualized documents and return structured results.
28
+
29
+ **CRITICAL**: You do NOT do reasoning. You ONLY locate and extract. The main agent synthesizes.
30
+
31
+ ---
32
+
33
+ <!-- COMPACT_SUMMARY_START -->
34
+
35
+ ## COMPACT SUMMARY - RLM SUB-CORE AGENT
36
+
37
+ **ROLE**: Lightweight search over virtualized documents. NO reasoning - just locate and extract.
38
+
39
+ ### RULE #1: YOU ARE SEARCH-ONLY
40
+
41
+ You do NOT:
42
+
43
+ - Analyze or interpret content
44
+ - Draw conclusions
45
+ - Make recommendations
46
+ - Write or modify files
47
+
48
+ You ONLY:
49
+
50
+ - Execute document-repl.js operations
51
+ - Return structured search results
52
+ - Report what was found and where
53
+
54
+ ### RULE #2: DOCUMENT-REPL OPERATIONS
55
+
56
+ All operations use the document-repl.js script:
57
+
58
+ ```bash
59
+ # Load and get info
60
+ node packages/cli/scripts/document-repl.js --load="path/to/doc" --info
61
+
62
+ # Keyword search with context
63
+ node packages/cli/scripts/document-repl.js --load="path/to/doc" --search="keyword"
64
+
65
+ # Regex search
66
+ node packages/cli/scripts/document-repl.js --load="path/to/doc" --regex="pattern"
67
+
68
+ # Get specific lines
69
+ node packages/cli/scripts/document-repl.js --load="path/to/doc" --slice="100-200"
70
+
71
+ # Find section by heading
72
+ node packages/cli/scripts/document-repl.js --load="path/to/doc" --section="Article 7"
73
+
74
+ # Get table of contents
75
+ node packages/cli/scripts/document-repl.js --load="path/to/doc" --toc
76
+ ```
77
+
78
+ ### RULE #3: OPERATION SELECTION
79
+
80
+ | User Intent | Operation | Example |
81
+ | --------------------- | --------- | ---------------------------- |
82
+ | "Find X in document" | --search | `--search="indemnification"` |
83
+ | "What sections exist" | --toc | `--toc` |
84
+ | "Show Article 7" | --section | `--section="Article 7"` |
85
+ | "Lines 500-600" | --slice | `--slice="500-600"` |
86
+ | "Pattern like X-\d+" | --regex | `--regex="X-\d+"` |
87
+ | "How big is this" | --info | `--info` |
88
+
89
+ ### RULE #4: OPTIONS
90
+
91
+ | Option | Purpose | Default |
92
+ | ------------- | ----------------------- | ------- |
93
+ | `--context=N` | Lines around matches | 2 |
94
+ | `--budget=N` | Max output chars | 15000 |
95
+ | `--json` | Machine-readable output | false |
96
+ | `--verbose` | Debug info | false |
97
+
98
+ ### RULE #5: RETURN FORMAT
99
+
100
+ Always return:
101
+
102
+ 1. **Operation executed**: What you searched for
103
+ 2. **Results found**: Count and locations
104
+ 3. **Content**: The actual extracted text
105
+ 4. **Truncation notice**: If budget exceeded
106
+
107
+ Example return:
108
+
109
+ ```
110
+ Searched: "conditions precedent"
111
+ Found: 3 matches in lines 450, 782, 1203
112
+ Budget: 2,500 / 15,000 chars used
113
+
114
+ --- Line 450 (context: 448-452) ---
115
+ [extracted content]
116
+
117
+ --- Line 782 (context: 780-784) ---
118
+ [extracted content]
119
+
120
+ --- Line 1203 (context: 1201-1205) ---
121
+ [extracted content]
122
+ ```
123
+
124
+ ### Anti-Patterns (DON'T)
125
+
126
+ - Analyze or interpret the results
127
+ - Make recommendations based on content
128
+ - Load full document into response
129
+ - Use Read tool for document content (use document-repl.js)
130
+ - Exceed budget without truncation notice
131
+
132
+ ### Correct Patterns (DO)
133
+
134
+ - Execute document-repl.js commands
135
+ - Report structured results
136
+ - Use --json for machine parsing
137
+ - Respect budget limits
138
+ - Return quickly with minimal processing
139
+
140
+ <!-- COMPACT_SUMMARY_END -->
141
+
142
+ ---
143
+
144
+ ## Supported Document Formats
145
+
146
+ | Format | Support | Notes |
147
+ | ------- | ------------ | -------------------------------- |
148
+ | `.txt` | Native | Direct text processing |
149
+ | `.md` | Native | Markdown with heading extraction |
150
+ | `.pdf` | Requires npm | `npm install pdf-parse` |
151
+ | `.docx` | Requires npm | `npm install mammoth` |
152
+
153
+ ---
154
+
155
+ ## When to Use This Agent
156
+
157
+ **USE (via main agent delegation)**:
158
+
159
+ - Long context (50k+ chars) documents
160
+ - High complexity (cross-references, sections)
161
+ - Multiple search operations needed
162
+ - Budget-constrained environments
163
+
164
+ **DON'T USE**:
165
+
166
+ - Small documents (<10k chars) - direct read is fine
167
+ - Simple queries - grep/read is sufficient
168
+ - When reasoning is needed - use domain experts
169
+
170
+ ---
171
+
172
+ ## Example Session
173
+
174
+ **Main agent delegates**: "Find all mentions of 'termination' in this merger agreement"
175
+
176
+ **Sub-core executes**:
177
+
178
+ ```bash
179
+ node packages/cli/scripts/document-repl.js \
180
+ --load="/path/to/merger-agreement.pdf" \
181
+ --search="termination" \
182
+ --context=3 \
183
+ --budget=10000
184
+ ```
185
+
186
+ **Sub-core returns**:
187
+
188
+ ```
189
+ Searched: "termination"
190
+ Found: 7 matches
191
+
192
+ --- Line 234 (context: 231-237) ---
193
+ ...the Purchaser may terminate this Agreement by written notice...
194
+
195
+ --- Line 567 (context: 564-570) ---
196
+ ...upon termination of this Agreement, all rights shall revert...
197
+
198
+ [5 more matches]
199
+
200
+ Budget used: 8,234 / 10,000 chars
201
+ ```
202
+
203
+ **Main agent synthesizes**: Uses these excerpts to answer the original question about termination conditions.
204
+
205
+ ---
206
+
207
+ ## Integration with /agileflow:rlm
208
+
209
+ This agent is spawned by the `/agileflow:rlm` command when:
210
+
211
+ 1. Document complexity is HIGH
212
+ 2. Multiple search operations are needed
213
+ 3. Cost optimization is required (Haiku vs Sonnet)
214
+
215
+ The main Sonnet agent orchestrates, this Haiku sub-agent searches.
@@ -0,0 +1,19 @@
1
+ id: planning
2
+ name: Planning
3
+ description: Planning and metrics skill pack.
4
+ version: 1.0.0
5
+ enabledByDefault: false
6
+
7
+ depends: []
8
+
9
+ provides:
10
+ skills:
11
+ - id: agileflow-planning
12
+ dir: skills/agileflow-planning
13
+ agents:
14
+ - id: analytics
15
+ path: agents/analytics.md
16
+ - id: rlm-subcore
17
+ path: agents/rlm-subcore.md
18
+ hooks: []
19
+ templates: []
@@ -0,0 +1,111 @@
1
+ ---
2
+ name: agileflow-planning
3
+ version: 1.0.0
4
+ category: agileflow/planning
5
+ description: |
6
+ Use when the user wants to measure, plan, or optimize their development
7
+ process: impact analysis, metrics dashboards, velocity tracking, RPI
8
+ workflow, roadmap analysis, automation setup, or feedback loops.
9
+ triggers:
10
+ keywords:
11
+ - impact analysis
12
+ - what will this affect
13
+ - metrics
14
+ - velocity
15
+ - roadmap
16
+ - automate
17
+ - feedback
18
+ - measure
19
+ - analytics
20
+ - planning
21
+ - rpi
22
+ - research plan implement
23
+ priority: 45
24
+ provides:
25
+ agents: []
26
+ learns:
27
+ enabled: true
28
+ file: _learnings/planning.yaml
29
+ maxEntries: 30
30
+ depends:
31
+ skills: []
32
+ plugins: [planning]
33
+ ---
34
+
35
+ # AgileFlow Planning
36
+
37
+ Development process intelligence: impact analysis before making
38
+ changes, metrics tracking after, velocity measurement, and workflow
39
+ automation setup.
40
+
41
+ ## When this skill activates
42
+
43
+ - User wants to know what a change will affect before making it
44
+ - User asks about team velocity, metrics, or process health
45
+ - User wants to set up automation or recurring workflows
46
+ - User is following an RPI (Research → Plan → Implement) workflow
47
+ - User wants to analyze the roadmap or prioritize work
48
+
49
+ ## Capabilities
50
+
51
+ | Command | What it does |
52
+ | ---------------------------- | -------------------------------------------------------- |
53
+ | `/agileflow:impact` | Analyze what files/modules a proposed change will affect |
54
+ | `/agileflow:metrics` | Dashboard of story velocity, completion rate, WIP |
55
+ | `/agileflow:velocity` | Track and visualize team delivery speed |
56
+ | `/agileflow:rpi` | Research → Plan → Implement workflow orchestration |
57
+ | `/agileflow:roadmap:analyze` | Analyze roadmap priorities and dependencies |
58
+ | `/agileflow:automate` | Set up recurring automation and scheduled tasks |
59
+ | `/agileflow:feedback` | Capture and process user feedback |
60
+ | `/agileflow:analytics` | Event tracking and user behavior analysis |
61
+ | `/agileflow:diagnose` | Diagnose process bottlenecks and blockers |
62
+ | `/agileflow:export` | Export project data to external formats |
63
+ | `/agileflow:rlm` | Retrieval-augmented memory for large document sets |
64
+
65
+ ## Impact analysis — always run before
66
+
67
+ When a story touches 3+ existing files, run `/agileflow:impact` BEFORE
68
+ entering plan mode. It reveals:
69
+
70
+ - Which modules will be affected
71
+ - What tests cover those modules
72
+ - Risk level (low / medium / high)
73
+
74
+ ## RPI workflow
75
+
76
+ For unfamiliar technical territory:
77
+
78
+ 1. **Research** — `/agileflow:research:ask` with full context
79
+ 2. **Plan** — EnterPlanMode with research findings
80
+ 3. **Implement** — delegate to domain experts
81
+
82
+ ## Integration
83
+
84
+ - **agileflow-council** — convene before planning when the strategic direction is ambiguous; council resolves "what to build", planning resolves "how to sequence it"
85
+ - **agileflow-research** — use to gather technical benchmarks, dependency risk data, or competitive context that informs the impact analysis or sprint priorities
86
+ - **agileflow-story-writer** — planning produces a prioritised backlog; story-writer gives each item the structure and AC needed to enter that backlog
87
+ - **agileflow-epic-planner** — when planning reveals a large theme, route to epic-planner to break it into sequenced milestones before estimating sprint capacity
88
+ - **agileflow-status-updater** — use to reflect sprint state changes (planning → active → completed) in `status.json` as planning decisions are made
89
+ - **agileflow-babysit-mentor** — mentor is the primary consumer of the planned work; a well-scoped sprint is the input that makes mentor-guided execution efficient
90
+ - **agileflow-delivery** — delivery closes the planning loop; use planning to define the sprint and delivery to close it
91
+ - **agileflow-adr** — planning often surfaces architectural decisions (scope trade-offs, dependency choices); document them as ADRs rather than leaving them implicit
92
+ - **agileflow-retention** — use retention metrics alongside velocity data when planning engagement-focused sprints; retention informs what to prioritise, planning determines when
93
+
94
+ ## References
95
+
96
+ Load these files when you need deeper context for the relevant task:
97
+
98
+ | File | When to load |
99
+ | ------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
100
+ | `references/rpi-workflow.md` | User is about to implement something unfamiliar — Research → Plan → Implement phases, checklists, when to skip |
101
+ | `references/estimation-guide.md` | Estimating story effort — story points vs time, Fibonacci scale, planning poker, velocity, cone of uncertainty |
102
+ | `references/sprint-planning-guide.md` | Running sprint planning — capacity formula, sprint goal template, backlog ordering, INVEST checklist |
103
+
104
+ ## Workflows
105
+
106
+ Follow these step-by-step when the user initiates the matching action:
107
+
108
+ | File | When to follow |
109
+ | --------------------- | ------------------------------------------------------------------------------------------ |
110
+ | `workflows/impact.md` | User wants to understand what a change will affect before starting work |
111
+ | `workflows/rpi.md` | User is starting an unfamiliar implementation — guides through Research → Plan → Implement |
@@ -0,0 +1,114 @@
1
+ # Estimation Guide
2
+
3
+ **Load this when:** Estimating stories, running planning poker, calculating velocity, or explaining estimation to a team.
4
+
5
+ ## Story Points vs. Time
6
+
7
+ | Approach | When to use | Pitfall |
8
+ | ----------------------- | ------------------------------------------------------ | ----------------------------------------------------- |
9
+ | Story points (relative) | Stable team, ongoing product work | Points become proxies for hours (defeats the purpose) |
10
+ | Time estimates (hours) | Fixed-price projects, new teams, external stakeholders | Anchors thinking to clock time, not complexity |
11
+ | T-shirt sizing | Early discovery, pre-refinement | Too coarse for sprint planning |
12
+
13
+ **Recommendation:** Use story points for sprint work. Convert to time only for external commitments, using historical velocity.
14
+
15
+ ---
16
+
17
+ ## Fibonacci Scale Reference
18
+
19
+ | Points | Complexity signal | Typical scope |
20
+ | ------ | ---------------------------- | --------------------------------------------- |
21
+ | 1 | Trivial, fully understood | Config change, copy update, one-line fix |
22
+ | 2 | Simple, low uncertainty | Small UI change, simple utility function |
23
+ | 3 | Moderate, some unknowns | New component with tests, API endpoint |
24
+ | 5 | Complex or cross-cutting | Feature with multiple states, auth changes |
25
+ | 8 | Large, significant unknowns | New domain area, integration with third-party |
26
+ | 13 | Very large — should be split | Multiple independent deliverables visible |
27
+ | 21+ | Must split before estimation | Epic-level work |
28
+
29
+ **Rule:** If a story is 13+, split it. If team can't agree within 3 points, the story needs more refinement, not more debate.
30
+
31
+ ---
32
+
33
+ ## Planning Poker Protocol
34
+
35
+ 1. Product owner reads story + acceptance criteria aloud
36
+ 2. Team asks clarifying questions (2–3 minutes)
37
+ 3. Everyone picks a card privately — reveal simultaneously
38
+ 4. If consensus (within 1 Fibonacci step): accept, move on
39
+ 5. If spread >2 steps: highest and lowest estimates explain reasoning (2 min each)
40
+ 6. Re-estimate once — if still no consensus, take the average or timebox the story
41
+ 7. Log any risk flags raised during discussion
42
+
43
+ **Cards:** 0, 1, 2, 3, 5, 8, 13, 20, 40, 100, ?, ∞ (I need a break)
44
+
45
+ - `?` = "I don't understand enough to estimate"
46
+ - `∞` = "This needs to be split before I can estimate"
47
+
48
+ ---
49
+
50
+ ## Velocity Calculation
51
+
52
+ ```
53
+ Team velocity = average story points completed per sprint
54
+ (exclude incomplete stories from numerator)
55
+
56
+ Recommended window: rolling last 3–5 sprints
57
+ Exclude: sprints with >25% team absence, onboarding sprints
58
+ ```
59
+
60
+ ### Example
61
+
62
+ | Sprint | Completed pts | Notes |
63
+ | ------ | ------------- | ----------------- |
64
+ | S-14 | 34 | — |
65
+ | S-15 | 29 | 1 person on leave |
66
+ | S-16 | 38 | — |
67
+ | S-17 | 36 | — |
68
+
69
+ Rolling avg (last 3): (38 + 36 + 29) / 3 = **34 pts/sprint**
70
+ Planning capacity: **28–34 pts** (use 80–100% of velocity for healthy sprint)
71
+
72
+ ---
73
+
74
+ ## Cone of Uncertainty
75
+
76
+ Estimate confidence degrades as project size grows and time extends:
77
+
78
+ | Phase | Accuracy range |
79
+ | --------------------------- | ------------------- |
80
+ | Initial concept | ±75% (0.25x – 4x) |
81
+ | Product definition complete | ±25% (0.75x – 1.5x) |
82
+ | Requirements complete | ±10% (0.9x – 1.1x) |
83
+ | Design complete | ±5% (0.95x – 1.05x) |
84
+
85
+ **Implication:** Any estimate made before requirements are complete is a rough order of magnitude, not a commitment. Plan buffers accordingly.
86
+
87
+ ---
88
+
89
+ ## Estimation Anti-Patterns
90
+
91
+ | Anti-pattern | Effect | Fix |
92
+ | -------------------------------------------- | ------------------------------------ | --------------------------------------- |
93
+ | Estimating in hours while tracking in points | Hours anchor to time, not complexity | Commit to one unit |
94
+ | Averaging without outlier discussion | Hides risk signals | Discuss spread, then re-estimate |
95
+ | Manager adjusts estimates | Destroys team trust and accuracy | Product owner clarifies, team estimates |
96
+ | Velocity as a commitment target | Creates velocity gaming | Treat velocity as forecast, not quota |
97
+ | Estimating unrefined stories | High variance, misleading plans | Refine before sprint planning |
98
+ | Including unfinished stories in velocity | Inflates apparent velocity | Count only completed stories |
99
+
100
+ ---
101
+
102
+ ## Time-to-Point Conversion (for external forecasting only)
103
+
104
+ ```
105
+ Story hours ≈ points × (team hours/day × sprint days) / velocity
106
+
107
+ Example:
108
+ 4 devs × 6 productive hours × 10 days = 240 dev-hours per sprint
109
+ Velocity = 34 points
110
+ 1 point ≈ 7 dev-hours
111
+
112
+ Use this for rough external estimates only — never share points-to-hours
113
+ mapping with stakeholders as a precise conversion.
114
+ ```
@@ -0,0 +1,119 @@
1
+ # RPI Workflow Reference
2
+
3
+ **Load this when:** guiding a user through Research → Plan → Implement,
4
+ or when the task involves unfamiliar territory that needs external research first.
5
+
6
+ ## What RPI is
7
+
8
+ RPI = **Research → Plan → Implement**
9
+
10
+ A structured workflow for tackling unfamiliar technical problems where diving
11
+ straight into implementation leads to wasted effort. Particularly effective when:
12
+
13
+ - Working with an unfamiliar library, API, or pattern
14
+ - The architecture has multiple viable approaches with real tradeoffs
15
+ - Previous attempts at similar work failed unexpectedly
16
+ - The problem domain is complex enough that assumptions are risky
17
+
18
+ ## The three phases
19
+
20
+ ### Phase 1: Research
21
+
22
+ **Goal:** Understand the problem space before writing a single line of code.
23
+
24
+ Activities:
25
+
26
+ - Run `/agileflow:research:ask` with a detailed prompt (200+ lines, 50+ lines of code, exact errors, 3+ specific questions)
27
+ - Import findings via `/agileflow:research:import`
28
+ - Check existing research notes via `/agileflow:research:list`
29
+ - Synthesize across multiple sources via `/agileflow:research:synthesize`
30
+
31
+ **Research prompt quality checklist:**
32
+
33
+ ```
34
+ ⬜ 50+ lines of actual relevant code included
35
+ ⬜ Exact error messages with full stack traces
36
+ ⬜ Library versions specified
37
+ ⬜ What has already been tried
38
+ ⬜ 3+ specific questions (not "how do I fix this?")
39
+ ⬜ Context: what the code is supposed to do
40
+ ```
41
+
42
+ **Phase exits when:** you have enough information to write a confident plan.
43
+
44
+ ### Phase 2: Plan
45
+
46
+ **Goal:** Design the implementation before touching production code.
47
+
48
+ Activities:
49
+
50
+ - Enter plan mode: `EnterPlanMode`
51
+ - Explore 3–5 key files (understand patterns, conventions, dependencies)
52
+ - Write the plan: steps, files to change, decisions made, testing approach
53
+ - Include a flow verification step for user-facing features
54
+ - Exit plan mode: `ExitPlanMode`
55
+
56
+ **Plan quality checklist:**
57
+
58
+ ```
59
+ ⬜ Implementation steps are specific (not "update the auth module")
60
+ ⬜ Files to be changed are listed
61
+ ⬜ Key decisions are documented with rationale
62
+ ⬜ Testing approach is defined
63
+ ⬜ Flow verification step included (for user-facing work)
64
+ ⬜ Rollback approach noted for risky changes
65
+ ```
66
+
67
+ **Phase exits when:** plan is approved by user.
68
+
69
+ ### Phase 3: Implement
70
+
71
+ **Goal:** Execute the plan with high confidence, minimal surprises.
72
+
73
+ Activities:
74
+
75
+ - Follow the plan — don't improvise unless you find something unexpected
76
+ - If something unexpected: pause, assess, update plan if needed
77
+ - Delegate to domain experts via Task tool
78
+ - Run tests after implementation
79
+ - Run audits (logic, flow, security as relevant)
80
+
81
+ ## Context health and RPI
82
+
83
+ RPI is especially important when context is getting long (>70% full).
84
+ The "dumb zone" in long contexts causes planning to degrade.
85
+
86
+ Signs you're in the dumb zone:
87
+
88
+ - Suggestions that contradict earlier decisions
89
+ - Forgetting what was already implemented
90
+ - Inconsistent approach across files
91
+
92
+ When in the dumb zone: `/agileflow:compress` to compact context before continuing,
93
+ or `/agileflow:context:full` to review what's been established.
94
+
95
+ ## When to skip RPI
96
+
97
+ RPI adds overhead — don't use it for:
98
+
99
+ - Simple one-liner fixes
100
+ - Familiar patterns you've done many times in this codebase
101
+ - Changes with obvious, single implementation path
102
+ - Urgent hotfixes where deliberation costs more than the risk
103
+
104
+ Use RPI for:
105
+
106
+ - Unfamiliar libraries or APIs (>60% of the time)
107
+ - Architecture decisions
108
+ - Anything that failed when tried before
109
+ - Complex multi-file refactors
110
+
111
+ ## RPI and impact analysis
112
+
113
+ Before Phase 2 (Planning), if the work touches existing code:
114
+
115
+ 1. Run `/agileflow:impact` to understand blast radius
116
+ 2. Incorporate impact findings into the plan
117
+ 3. Add tests for high-impact areas
118
+
119
+ High-impact = many downstream dependencies = higher risk = more careful plan.