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,106 @@
1
+ ---
2
+ name: agileflow-docs
3
+ version: 1.0.0
4
+ category: agileflow/docs
5
+ description: |
6
+ Use when the user wants to generate, update, or sync documentation:
7
+ API docs, README files, learning content, skill recommendations, or
8
+ architecture explanations. Also handles onboarding tours and glossary
9
+ definitions.
10
+ triggers:
11
+ keywords:
12
+ - update docs
13
+ - write documentation
14
+ - readme
15
+ - api docs
16
+ - explain this
17
+ - how does this work
18
+ - glossary
19
+ - onboarding
20
+ - sync docs
21
+ - document this
22
+ - skill recommendation
23
+ priority: 45
24
+ provides:
25
+ agents: []
26
+ learns:
27
+ enabled: true
28
+ file: _learnings/docs.yaml
29
+ maxEntries: 30
30
+ depends:
31
+ skills: []
32
+ plugins: [docs]
33
+ ---
34
+
35
+ # AgileFlow Docs
36
+
37
+ Documentation generator and learning assistant. Syncs READMEs,
38
+ generates API docs, explains codebase concepts, and recommends skills
39
+ for the current task.
40
+
41
+ ## When this skill activates
42
+
43
+ - User asks to update or write documentation
44
+ - User wants to understand how something works
45
+ - User asks for a glossary definition or concept explanation
46
+ - User wants to sync README after code changes
47
+ - User asks which skill or command to use
48
+
49
+ ## Capabilities
50
+
51
+ | Command | What it does |
52
+ | ---------------------------- | ----------------------------------------------- |
53
+ | `/agileflow:docs` | Sync docs after API or interface changes |
54
+ | `/agileflow:readme-sync` | Update README to reflect current codebase state |
55
+ | `/agileflow:learn` | Explain AgileFlow concepts and patterns |
56
+ | `/agileflow:learn:explain` | Deep-dive explanation of a specific concept |
57
+ | `/agileflow:learn:glossary` | Define terms and acronyms |
58
+ | `/agileflow:learn:tour` | Onboarding tour of AgileFlow features |
59
+ | `/agileflow:learn:patterns` | Common patterns and best practices |
60
+ | `/agileflow:skill:list` | List available skills |
61
+ | `/agileflow:skill:recommend` | Recommend the right skill for the current task |
62
+
63
+ ## Auto-trigger rules
64
+
65
+ Suggest `/agileflow:docs` after implementation when:
66
+
67
+ - API endpoints or interfaces were added or changed
68
+ - Public function signatures changed
69
+ - New configuration options were added
70
+ - README references stale commands or paths
71
+
72
+ ## Documentation quality checks
73
+
74
+ - Does the README reflect the current install process?
75
+ - Are all public APIs documented with examples?
76
+ - Are new configuration options listed with their defaults?
77
+
78
+ ## Integration
79
+
80
+ - **agileflow-engineering** — trigger docs after any implementation that changes public APIs, exports, or user-facing configuration; docs-sync is the last step of a well-run feature story
81
+ - **agileflow-story-writer** — when writing a story, include "update docs" as an explicit acceptance criterion for API-changing work
82
+ - **agileflow-seo** — after writing or updating public content, pass through seo for title, meta, heading, and structured data optimisation
83
+ - **agileflow-delivery** — docs update is a delivery gate for API changes; delivery should block if docs are stale
84
+ - **agileflow-pr-reviewer** — pr-reviewer checks that docs were updated alongside code; docs generates what the reviewer verifies
85
+ - **agileflow-audit** — the completeness dimension of the audit flags missing docs; docs fills those gaps
86
+ - **agileflow-research** — if writing technical docs for an unfamiliar pattern or library, use research first to gather authoritative source material
87
+ - **agileflow-migration** — migration plans should be documented as runbooks; docs generates the runbook format after the migration plan is finalised
88
+
89
+ ## References
90
+
91
+ Load these files when you need deeper context for the relevant task:
92
+
93
+ | File | When to load |
94
+ | -------------------------------- | ----------------------------------------------------------------------------------------- |
95
+ | `references/doc-types-guide.md` | Deciding what kind of doc to write — tutorial vs how-to vs reference vs explanation |
96
+ | `references/api-doc-template.md` | Documenting an API endpoint or function — parameter tables, example requests, error cases |
97
+ | `references/readme-template.md` | Writing or auditing a README — required sections, what to include, what to skip |
98
+
99
+ ## Workflows
100
+
101
+ Follow these step-by-step when the user initiates the matching action:
102
+
103
+ | File | When to follow |
104
+ | -------------------------- | ----------------------------------------------------------------------------------------- |
105
+ | `workflows/sync.md` | User wants to sync docs after implementation — checks what changed, updates relevant docs |
106
+ | `workflows/readme-sync.md` | User wants to update the README — audits current state, fills gaps |
@@ -0,0 +1,167 @@
1
+ # API Documentation Template
2
+
3
+ **Load this when:** Writing or reviewing API reference documentation for REST endpoints, SDK methods, or CLI commands.
4
+
5
+ ## REST Endpoint Template
6
+
7
+ ````markdown
8
+ ## [METHOD] /path/to/endpoint
9
+
10
+ [One sentence describing what this endpoint does.]
11
+
12
+ **Authentication:** Bearer token | API key | None
13
+ **Rate limit:** N requests/minute per [user/org/IP]
14
+
15
+ ### Path Parameters
16
+
17
+ | Parameter | Type | Required | Description |
18
+ | --------- | ------ | -------- | --------------------------------- |
19
+ | `id` | string | Yes | Unique identifier of the resource |
20
+
21
+ ### Query Parameters
22
+
23
+ | Parameter | Type | Required | Default | Description |
24
+ | --------- | ------- | -------- | ------- | ---------------------------------------- |
25
+ | `limit` | integer | No | 20 | Max results to return (1–100) |
26
+ | `cursor` | string | No | — | Pagination cursor from previous response |
27
+ | `filter` | string | No | — | Filter expression (see Filter Syntax) |
28
+
29
+ ### Request Body
30
+
31
+ Content-Type: `application/json`
32
+
33
+ | Field | Type | Required | Description |
34
+ | ---------------- | ------- | -------- | ------------------------------------- |
35
+ | `name` | string | Yes | Display name (max 255 chars) |
36
+ | `config` | object | No | Optional configuration overrides |
37
+ | `config.timeout` | integer | No | Request timeout in ms (default: 5000) |
38
+
39
+ ### Request Example
40
+
41
+ \```bash
42
+ curl -X POST https://api.example.com/v1/resources \
43
+ -H "Authorization: Bearer $TOKEN" \
44
+ -H "Content-Type: application/json" \
45
+ -d '{
46
+ "name": "my-resource",
47
+ "config": { "timeout": 3000 }
48
+ }'
49
+ \```
50
+
51
+ ### Response
52
+
53
+ **200 OK**
54
+ \```json
55
+ {
56
+ "id": "res_abc123",
57
+ "name": "my-resource",
58
+ "status": "active",
59
+ "createdAt": "2025-01-15T10:30:00Z",
60
+ "config": {
61
+ "timeout": 3000
62
+ }
63
+ }
64
+ \```
65
+
66
+ ### Response Fields
67
+
68
+ | Field | Type | Description |
69
+ | ----------- | -------- | ------------------------------- |
70
+ | `id` | string | Unique resource identifier |
71
+ | `name` | string | Display name |
72
+ | `status` | enum | `active`, `inactive`, `pending` |
73
+ | `createdAt` | ISO 8601 | Creation timestamp |
74
+
75
+ ### Error Responses
76
+
77
+ | Status | Code | Description |
78
+ | ------ | ----------------- | --------------------------------------- |
79
+ | 400 | `INVALID_REQUEST` | Missing required field or invalid value |
80
+ | 401 | `UNAUTHORIZED` | Invalid or expired token |
81
+ | 403 | `FORBIDDEN` | Insufficient permissions |
82
+ | 404 | `NOT_FOUND` | Resource does not exist |
83
+ | 409 | `CONFLICT` | Resource with this name already exists |
84
+ | 429 | `RATE_LIMITED` | Too many requests |
85
+ | 500 | `SERVER_ERROR` | Unexpected server error |
86
+
87
+ **Error response format:**
88
+ \```json
89
+ {
90
+ "error": {
91
+ "code": "INVALID_REQUEST",
92
+ "message": "Field 'name' is required",
93
+ "field": "name"
94
+ }
95
+ }
96
+ \```
97
+ ````
98
+
99
+ ---
100
+
101
+ ## SDK Method Template
102
+
103
+ ````markdown
104
+ ### `client.resources.create(options)`
105
+
106
+ Creates a new resource.
107
+
108
+ **Parameters:**
109
+
110
+ | Parameter | Type | Required | Description |
111
+ | ---------------- | ---------------- | -------- | ----------------------- |
112
+ | `options.name` | `string` | Yes | Display name |
113
+ | `options.config` | `ResourceConfig` | No | Configuration overrides |
114
+
115
+ **Returns:** `Promise<Resource>`
116
+
117
+ **Throws:**
118
+
119
+ - `ValidationError` — if required fields are missing
120
+ - `ConflictError` — if name already in use
121
+ - `ApiError` — on server-side errors
122
+
123
+ **Example:**
124
+ \```typescript
125
+ const resource = await client.resources.create({
126
+ name: "my-resource",
127
+ config: { timeout: 3000 }
128
+ });
129
+ console.log(resource.id); // "res_abc123"
130
+ \```
131
+ ````
132
+
133
+ ---
134
+
135
+ ## Documentation Quality Checklist
136
+
137
+ - [ ] Every parameter documented with type, required flag, and description
138
+ - [ ] At least one working request example per endpoint
139
+ - [ ] All possible error responses listed
140
+ - [ ] Enums list all valid values
141
+ - [ ] Authentication requirements stated
142
+ - [ ] Rate limits specified
143
+ - [ ] Pagination explained (if applicable)
144
+ - [ ] Deprecated fields/methods marked with deprecation notice
145
+ - [ ] Version added / version removed noted on fields
146
+
147
+ ---
148
+
149
+ ## Deprecation Notice Format
150
+
151
+ ```markdown
152
+ > **Deprecated:** The `oldField` parameter is deprecated as of v2.3 and will be
153
+ > removed in v3.0. Use `newField` instead. [Migration guide](#migration)
154
+ ```
155
+
156
+ ---
157
+
158
+ ## Versioning in URLs vs Headers
159
+
160
+ | Strategy | URL example | Header example |
161
+ | ------------- | ---------------------- | -------------------------------------------- |
162
+ | URL path | `/v1/resources` | — |
163
+ | Query param | `/resources?version=1` | — |
164
+ | Accept header | — | `Accept: application/vnd.api+json;version=1` |
165
+ | Custom header | — | `API-Version: 2025-01-01` |
166
+
167
+ Recommendation: URL path versioning for REST — most explicit, most cache-friendly.
@@ -0,0 +1,141 @@
1
+ # Documentation Types Guide
2
+
3
+ **Load this when:** deciding what kind of documentation to write, choosing
4
+ a format for a given audience, or auditing whether docs are complete.
5
+
6
+ ## The four types of documentation
7
+
8
+ (Divio documentation system — each type has a distinct purpose and format)
9
+
10
+ | Type | Answers | Analogy | User's goal |
11
+ | ---------------- | --------------------------- | ------------------------ | -------------------------- |
12
+ | **Tutorial** | "Help me learn" | Teaching a child to cook | Learning by doing |
13
+ | **How-to guide** | "How do I do X?" | Recipe | Solving a specific problem |
14
+ | **Reference** | "What is X?" | Encyclopedia | Looking something up |
15
+ | **Explanation** | "Why does X work this way?" | Essay | Understanding concepts |
16
+
17
+ ### Tutorial
18
+
19
+ - **Goal**: Learning by doing
20
+ - **Format**: Step-by-step walkthrough with expected output at each step
21
+ - **Tone**: Teacher-led. "We'll now add a user to the database."
22
+ - **Don't**: Explain why things work. Just do the thing.
23
+
24
+ ```markdown
25
+ ## Getting Started
26
+
27
+ In this tutorial, you'll build a simple task list API from scratch.
28
+ By the end, you'll have a working endpoint that stores and retrieves tasks.
29
+
30
+ ### Step 1: Create the project
31
+
32
+ Run the following command to scaffold your project:
33
+ \`\`\`bash
34
+ npx create-api my-tasks
35
+ cd my-tasks
36
+ \`\`\`
37
+
38
+ You should see output like:
39
+ \`\`\`
40
+ ✓ Project created
41
+ ✓ Dependencies installed
42
+ \`\`\`
43
+ ```
44
+
45
+ ### How-to guide
46
+
47
+ - **Goal**: Accomplish a specific task the reader already understands
48
+ - **Format**: Numbered steps. Assumes context.
49
+ - **Tone**: Direct. "Do X. Then do Y."
50
+ - **Don't**: Teach concepts. Reference the explanation doc instead.
51
+
52
+ ```markdown
53
+ ## How to add a custom webhook
54
+
55
+ 1. Open **Settings → Integrations**
56
+ 2. Click **Add webhook**
57
+ 3. Enter the destination URL
58
+ 4. Select which events to send
59
+ 5. Click **Save**
60
+
61
+ To verify delivery, check **Settings → Delivery log**.
62
+ ```
63
+
64
+ ### Reference
65
+
66
+ - **Goal**: Accurate, complete information to look up
67
+ - **Format**: Tables, parameter lists, type definitions
68
+ - **Tone**: Neutral, dense, no narrative
69
+ - **Don't**: Add tutorials or explanations. Just the facts.
70
+
71
+ ```markdown
72
+ ## `deliver(payload, options)`
73
+
74
+ Delivers a payload to all configured channels.
75
+
76
+ **Parameters:**
77
+ | Name | Type | Required | Default | Description |
78
+ |------|------|----------|---------|-------------|
79
+ | `payload` | `object` | Yes | — | The data to deliver |
80
+ | `options.retries` | `number` | No | `3` | Max retry attempts |
81
+ | `options.timeout` | `number` | No | `5000` | Timeout in ms |
82
+
83
+ **Returns:** `Promise<DeliveryResult>`
84
+ ```
85
+
86
+ ### Explanation
87
+
88
+ - **Goal**: Understanding — the "why" behind decisions
89
+ - **Format**: Prose. Can include diagrams, comparisons, history.
90
+ - **Tone**: Thoughtful. "We chose X because..."
91
+ - **Don't**: Include step-by-step instructions.
92
+
93
+ ```markdown
94
+ ## Why we use event sourcing for delivery state
95
+
96
+ Delivery systems face a fundamental problem: at-least-once vs at-most-once
97
+ delivery. We chose at-least-once with idempotency keys because...
98
+ ```
99
+
100
+ ## Choosing the right type
101
+
102
+ | User says... | Write this |
103
+ | --------------------------------------- | ------------------------ |
104
+ | "I'm new to X, where do I start?" | Tutorial |
105
+ | "How do I configure Y?" | How-to guide |
106
+ | "What parameters does Z accept?" | Reference |
107
+ | "Why does the system do X this way?" | Explanation |
108
+ | "I want to understand the architecture" | Explanation |
109
+ | "Show me an example of X" | How-to guide or Tutorial |
110
+
111
+ ## Common documentation mistakes
112
+
113
+ | Mistake | Problem | Fix |
114
+ | ----------------------------- | --------------------------- | ----------------------------------- |
115
+ | Tutorial that explains theory | Breaks learning flow | Move explanations to a separate doc |
116
+ | How-to with "why it works" | Reader just wants the steps | Strip the explanation |
117
+ | Reference with narrative | Hard to scan | Tables and lists only |
118
+ | No examples in reference | Too abstract | Add one example per concept |
119
+ | Explanation with step-by-step | Wrong register | Move steps to how-to |
120
+
121
+ ## API documentation checklist
122
+
123
+ For every public function/endpoint:
124
+
125
+ ```
126
+ ⬜ Description (one sentence, active voice)
127
+ ⬜ All parameters documented (name, type, required, default, description)
128
+ ⬜ Return value documented (type + shape)
129
+ ⬜ At least one example
130
+ ⬜ Error cases documented (what throws, what returns null)
131
+ ⬜ Side effects noted (if any)
132
+ ⬜ Version added / deprecated (if applicable)
133
+ ```
134
+
135
+ ## Docs-as-code practices
136
+
137
+ - Write docs in the same PR as the code change
138
+ - Docs live in the repo alongside the code they document
139
+ - Use the same review process as code
140
+ - Broken docs = broken code: treat them with equal priority
141
+ - Auto-generate reference docs from code comments where possible (JSDoc → TypeDoc)
@@ -0,0 +1,156 @@
1
+ # README Template
2
+
3
+ **Load this when:** Writing or auditing a project README — what sections to include, what to skip, and what to prioritize.
4
+
5
+ ## README Section Order (recommended)
6
+
7
+ ```
8
+ 1. Name + one-line description
9
+ 2. Badges (CI, npm, license) — optional
10
+ 3. Screenshot or demo GIF — if visual tool
11
+ 4. Quick start / install
12
+ 5. Usage (most common case)
13
+ 6. Configuration (if non-trivial)
14
+ 7. API reference (or link to docs)
15
+ 8. Contributing
16
+ 9. License
17
+ ```
18
+
19
+ ---
20
+
21
+ ## Section Templates
22
+
23
+ ### Name + Description
24
+
25
+ ```markdown
26
+ # package-name
27
+
28
+ [One sentence: what it does and who it's for. No filler words.]
29
+
30
+ > Minimal task queue for Node.js with Redis. Zero dependencies beyond ioredis.
31
+ ```
32
+
33
+ ### Badges
34
+
35
+ ```markdown
36
+ [![CI](https://github.com/org/repo/actions/workflows/ci.yml/badge.svg)](...)
37
+ [![npm](https://img.shields.io/npm/v/package-name)](https://npmjs.com/package/package-name)
38
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
39
+ ```
40
+
41
+ Keep badges to 3–5 max. Remove badges that are always red.
42
+
43
+ ### Quick Start
44
+
45
+ ````markdown
46
+ ## Quick Start
47
+
48
+ \```bash
49
+ npm install package-name
50
+ \```
51
+
52
+ \```js
53
+ import { thing } from 'package-name';
54
+ const result = await thing({ option: 'value' });
55
+ \```
56
+
57
+ That's it. [See full usage →](#usage)
58
+ ````
59
+
60
+ ### Usage
61
+
62
+ ```markdown
63
+ ## Usage
64
+
65
+ ### Most common case
66
+
67
+ [Show the code people will actually write. Real example, not `foo/bar`.]
68
+
69
+ ### With options
70
+
71
+ [Show the next most common usage pattern.]
72
+
73
+ ### Edge cases / advanced
74
+
75
+ [Keep this short or link to docs.]
76
+ ```
77
+
78
+ ### Configuration
79
+
80
+ ```markdown
81
+ ## Configuration
82
+
83
+ | Option | Type | Default | Description |
84
+ | --------- | ------- | ------- | --------------------- |
85
+ | `timeout` | number | `5000` | Request timeout in ms |
86
+ | `retries` | number | `3` | Max retry attempts |
87
+ | `verbose` | boolean | `false` | Log debug output |
88
+ ```
89
+
90
+ ### Contributing
91
+
92
+ ````markdown
93
+ ## Contributing
94
+
95
+ \```bash
96
+ git clone https://github.com/org/repo
97
+ npm install
98
+ npm test
99
+ \```
100
+
101
+ PRs welcome. Please open an issue first for significant changes.
102
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
103
+ ````
104
+
105
+ ---
106
+
107
+ ## What to Include
108
+
109
+ | Include | Reason |
110
+ | -------------------------------- | --------------------------------- |
111
+ | Install command | First thing people need |
112
+ | Working code example | Proves it's real |
113
+ | Node/runtime version requirement | Prevents frustration |
114
+ | License | Legal requirement for open source |
115
+ | Link to changelog | Release history |
116
+ | Link to issues | Support channel |
117
+
118
+ ---
119
+
120
+ ## What to Skip
121
+
122
+ | Skip | Why |
123
+ | ------------------------------------- | ----------------------------------------- |
124
+ | Long introductory prose | Nobody reads it |
125
+ | "This project was created because..." | Unnecessary backstory |
126
+ | Detailed philosophy section | Put in docs, not README |
127
+ | Exhaustive API reference | Belongs in `/docs` or generated reference |
128
+ | TODO list | Put in issues |
129
+ | "Built with ❤️" filler | Adds nothing |
130
+ | >5 badges | Visual clutter |
131
+
132
+ ---
133
+
134
+ ## README Antipatterns
135
+
136
+ | Antipattern | Fix |
137
+ | ------------------------------------------ | ----------------------------------------- |
138
+ | Install section buried below 3 paragraphs | Move install to top |
139
+ | Example uses `example.com` / `foo` / `bar` | Use realistic domain example |
140
+ | "See the docs" with no link | Add the actual link |
141
+ | Out-of-date version in examples | Pin examples to major version only (`^1`) |
142
+ | Missing minimum Node/runtime version | Add to install section |
143
+ | Screenshot from 2 major versions ago | Update or remove |
144
+
145
+ ---
146
+
147
+ ## README Length Guidelines
148
+
149
+ | Project type | Target length |
150
+ | ---------------- | --------------------------------- |
151
+ | CLI tool | 100–200 lines |
152
+ | npm library | 150–300 lines |
153
+ | Full application | 100–200 lines + link to docs site |
154
+ | Internal tool | 50–100 lines |
155
+
156
+ **Rule:** If the README is longer than 400 lines, extract to a docs site.
@@ -0,0 +1,57 @@
1
+ # README Sync Workflow — Folder README Update
2
+
3
+ **Triggers:** "sync README", "update the README for docs/", "README doesn't match the folder contents", "generate contents section", "README for all docs folders"
4
+
5
+ **Goal:** Update the `## Contents` section of a folder's `README.md` to match its actual files and subdirectories — without touching any other sections.
6
+
7
+ ## Inputs needed
8
+
9
+ | Input | Required | How to get it |
10
+ | ----------- | -------- | --------------------------------------------------------------------- |
11
+ | folder path | Yes | Ask: "Which folder should I sync? (e.g., docs/02-practices or 'all')" |
12
+
13
+ ## Steps
14
+
15
+ 1. If the folder is not specified, ask: "Which folder should I sync?" Options: [A] `docs/02-practices` (recommended), [B] `docs/04-architecture`, [C] `all` — sync every subfolder under `docs/`, [D] Enter a different path.
16
+
17
+ 2. For each target folder:
18
+ a. List all files and subdirectories in the folder.
19
+ b. For each file, extract a brief description by reading the first `# ` header or the first non-empty sentence in the file.
20
+ c. For each subdirectory, read its `README.md` first line or directory name.
21
+
22
+ 3. Build the new `## Contents` section:
23
+
24
+ ```markdown
25
+ ## Contents
26
+
27
+ | File | Description |
28
+ | ---------------------------- | ---------------------------- |
29
+ | [filename.md](./filename.md) | Brief description |
30
+ | [subfolder/](./subfolder/) | What this subfolder contains |
31
+ ```
32
+
33
+ 4. Read the existing `README.md`. Find the `## Contents` section boundaries. Show the user the proposed change (what is currently in the section vs. what the new section will be).
34
+
35
+ 5. Ask: [A] Update the Contents section (recommended), [B] Make changes first, [C] Skip this folder.
36
+
37
+ 6. If confirmed, update only the `## Contents` section using Edit — do not modify any other section of the README.
38
+
39
+ 7. If `all` was specified, repeat for every subfolder under `docs/`. Process them in parallel.
40
+
41
+ 8. Report: N folders updated, M folders already up to date, K folders skipped.
42
+
43
+ ## Output
44
+
45
+ Updated `## Contents` section in the target README(s). All other sections preserved unchanged.
46
+
47
+ ## Fallbacks
48
+
49
+ **If interactive prompts (AskUserQuestion) are unavailable:**
50
+ Present options as a numbered list in your response. Ask the user to reply with a number. Example:
51
+
52
+ ```
53
+ How would you like to proceed?
54
+ 1. Save and continue
55
+ 2. Review before saving
56
+ 3. Discard
57
+ ```
@@ -0,0 +1,64 @@
1
+ # Sync Workflow — Documentation Synchronization
2
+
3
+ **Triggers:** "sync docs", "update documentation", "my docs are out of date", "documentation drift", "docs don't match the code", "generate docs from code changes"
4
+
5
+ **Goal:** Compare code changes against expected documentation, identify gaps, and update or create documentation to reflect the current state of the codebase.
6
+
7
+ ## Inputs needed
8
+
9
+ | Input | Required | How to get it |
10
+ | ----------- | -------- | ---------------------------------------------- |
11
+ | branch | No | Default: current branch |
12
+ | base | No | Default: `main` |
13
+ | auto-create | No | Default: false — ask before creating new files |
14
+
15
+ ## Steps
16
+
17
+ 1. Run `git diff <base>...<branch> --name-status` to get changed files. If no base/branch provided, diff against `main`.
18
+
19
+ 2. Categorize each changed file:
20
+ - **API endpoints**: `src/api/`, `src/routes/`, `src/controllers/`
21
+ - **UI components**: `src/components/`, `src/pages/`
22
+ - **Services/utils**: `src/services/`, `src/utils/`
23
+ - **Config**: `*.config.js`, `*.yml`, `.env.example`
24
+ - **Database**: `migrations/`, `schema/`
25
+
26
+ 3. For each changed file, map to the expected documentation location:
27
+ - New API endpoint → check section in `docs/04-architecture/api.md`
28
+ - New UI component → check `docs/04-architecture/components.md`
29
+ - New service → check `docs/04-architecture/services.md`
30
+ - Config change → check `docs/02-practices/configuration.md`
31
+ - DB migration → check `docs/04-architecture/database.md`
32
+
33
+ 4. Check each expected doc location. Infer content from TypeScript types, JSDoc comments, OpenAPI annotations, and test descriptions when docs are missing.
34
+
35
+ 5. Generate a gap report:
36
+
37
+ ```
38
+ | File Changed | Expected Doc | Status |
39
+ |--------------|-------------|--------|
40
+ | src/api/users.ts | docs/04-architecture/api.md | Missing section |
41
+ | src/components/Button.tsx | docs/04-architecture/components.md | Up to date |
42
+ ```
43
+
44
+ 6. Present the gap report. Ask the user: [A] Auto-create/update all missing docs (recommended), [B] Show me each gap and I'll decide, [C] Just report — I'll update docs manually.
45
+
46
+ 7. For each doc that needs updating, show the proposed content change before writing. Use managed section markers to preserve any custom content the user has added.
47
+
48
+ 8. After all updates, show a summary: N docs updated, M docs created, K docs already up to date. Never delete documentation without explicit user approval.
49
+
50
+ ## Output
51
+
52
+ Gap report with status for each changed file. Updated documentation files. Never removes existing content — only adds or updates managed sections.
53
+
54
+ ## Fallbacks
55
+
56
+ **If interactive prompts (AskUserQuestion) are unavailable:**
57
+ Present options as a numbered list in your response. Ask the user to reply with a number. Example:
58
+
59
+ ```
60
+ How would you like to proceed?
61
+ 1. Save and continue
62
+ 2. Review before saving
63
+ 3. Discard
64
+ ```