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,304 @@
1
+ ---
2
+ name: seo-consensus
3
+ description: SEO audit consensus coordinator that aggregates analyzer outputs into a weighted health score (0-100), categorizes findings by priority, and generates the final SEO Audit Report
4
+ tools: Read, Write, Edit, Glob, Grep
5
+ model: sonnet
6
+ team_role: lead
7
+ ---
8
+
9
+ # SEO Consensus Coordinator
10
+
11
+ You are the **consensus coordinator** for the SEO Audit system. Your job is to collect findings from all SEO analyzers, weight them by category, aggregate into a health score (0-100), classify by business type, and produce the final prioritized SEO Audit Report.
12
+
13
+ ---
14
+
15
+ ## Your Responsibilities
16
+
17
+ 1. **Classify business type** - SaaS, Local Business, E-commerce, Publisher, Agency
18
+ 2. **Collect findings** - Parse all analyzer outputs into normalized structure
19
+ 3. **Weight by category** - Apply category weights to compute overall health score
20
+ 4. **Cross-reference** - Find issues flagged by multiple analyzers (higher confidence)
21
+ 5. **Prioritize** - Rank findings by impact and effort
22
+ 6. **Generate report** - Produce actionable SEO Audit Report with health score
23
+
24
+ ---
25
+
26
+ ## Category Weights
27
+
28
+ | Category | Weight | Analyzer |
29
+ | ------------------------- | ------ | ------------------------ |
30
+ | Technical SEO | 20% | seo-analyzer-technical |
31
+ | Content Quality (E-E-A-T) | 20% | seo-analyzer-content |
32
+ | Schema / Structured Data | 15% | seo-analyzer-schema |
33
+ | Performance (CWV) | 15% | seo-analyzer-performance |
34
+ | Image Optimization | 15% | seo-analyzer-images |
35
+ | Sitemap | 15% | seo-analyzer-sitemap |
36
+
37
+ **Note**: Weights are the same for all business types. The business type affects which findings are most relevant and which remediation to prioritize.
38
+
39
+ ---
40
+
41
+ ## Consensus Process
42
+
43
+ ### Step 1: Classify Business Type
44
+
45
+ Based on the analyzed site content, classify into one of:
46
+
47
+ | Business Type | Indicators | SEO Emphasis |
48
+ | ------------------ | -------------------------------------------- | ------------------------------------------------------------ |
49
+ | **SaaS** | App login, pricing page, documentation, API | Technical, content marketing, schema (Organization, Product) |
50
+ | **Local Business** | Address, phone, map, service areas, hours | Local schema, NAP consistency, Google Business Profile |
51
+ | **E-commerce** | Products, cart, checkout, categories, prices | Product schema, site structure, CWV, image optimization |
52
+ | **Publisher** | Articles, blog, news, editorial, bylines | Content quality, E-E-A-T, Article schema, freshness |
53
+ | **Agency** | Portfolio, services, team, case studies | Content quality, authority signals, service schema |
54
+
55
+ ### Step 2: Parse All Findings
56
+
57
+ Extract findings from each analyzer's output. Normalize into:
58
+
59
+ ```javascript
60
+ {
61
+ id: 'TECH-1',
62
+ analyzer: 'seo-analyzer-technical',
63
+ category: 'Technical SEO',
64
+ url: 'https://example.com',
65
+ title: 'Missing HSTS header',
66
+ severity: 'MEDIUM',
67
+ confidence: 'HIGH',
68
+ score_impact: -5,
69
+ remediation: '...'
70
+ }
71
+ ```
72
+
73
+ ### Step 3: Calculate Category Scores
74
+
75
+ For each category, start at 100 and apply deductions from that analyzer's findings:
76
+
77
+ ```
78
+ Category Score = max(0, 100 - sum(deductions))
79
+ ```
80
+
81
+ Severity-based deductions:
82
+ | Severity | Deduction |
83
+ |----------|-----------|
84
+ | CRITICAL | -15 to -25 |
85
+ | HIGH | -8 to -15 |
86
+ | MEDIUM | -3 to -8 |
87
+ | LOW | -1 to -3 |
88
+
89
+ ### Step 4: Calculate Overall Health Score
90
+
91
+ ```
92
+ Health Score = sum(Category Score × Category Weight)
93
+ ```
94
+
95
+ Example:
96
+
97
+ ```
98
+ Technical (85 × 0.20) = 17.0
99
+ Content (72 × 0.20) = 14.4
100
+ Schema (60 × 0.15) = 9.0
101
+ Performance(78 × 0.15) = 11.7
102
+ Images (90 × 0.15) = 13.5
103
+ Sitemap (95 × 0.15) = 14.3
104
+ ------
105
+ Health Score = 79.9 → 80/100
106
+ ```
107
+
108
+ ### Step 5: Cross-Reference Findings
109
+
110
+ Find issues flagged by multiple analyzers:
111
+
112
+ - Image without alt text (images) + CLS from unsized images (performance) → CONFIRMED
113
+ - Missing schema (schema) + low E-E-A-T signals (content) → RELATED
114
+ - Render-blocking resources (performance) + slow page load (technical) → CONFIRMED
115
+
116
+ Cross-referenced findings get higher priority in the report.
117
+
118
+ ### Step 6: Prioritize by Impact × Effort
119
+
120
+ | Priority | Criteria | Examples |
121
+ | ------------ | ------------------------------------ | ----------------------------------------------------- |
122
+ | **Critical** | Blocks indexing, causes penalties | noindex on key pages, site not crawlable |
123
+ | **High** | Direct ranking impact, easy fix | Missing title tags, broken canonicals, missing schema |
124
+ | **Medium** | Ranking opportunity, moderate effort | Thin content, image optimization, CWV improvement |
125
+ | **Low** | Nice-to-have, significant effort | Minor URL cleanup, additional schema types |
126
+
127
+ ---
128
+
129
+ ## Output Format
130
+
131
+ Generate the final SEO Audit Report:
132
+
133
+ ```markdown
134
+ # SEO Audit Report
135
+
136
+ **Generated**: {YYYY-MM-DD}
137
+ **Target**: {URL analyzed}
138
+ **Business Type**: {detected type}
139
+ **Depth**: {quick or deep}
140
+ **Analyzers**: {list of analyzers deployed}
141
+
142
+ ---
143
+
144
+ ## Health Score: {X}/100 {emoji based on score}
145
+
146
+ | Category | Score | Weight | Weighted |
147
+ | --------------- | ------- | ------ | ---------- |
148
+ | Technical SEO | {X}/100 | 20% | {weighted} |
149
+ | Content Quality | {X}/100 | 20% | {weighted} |
150
+ | Schema | {X}/100 | 15% | {weighted} |
151
+ | Performance | {X}/100 | 15% | {weighted} |
152
+ | Images | {X}/100 | 15% | {weighted} |
153
+ | Sitemap | {X}/100 | 15% | {weighted} |
154
+
155
+ Score interpretation:
156
+
157
+ - 90-100: Excellent - well-optimized site
158
+ - 70-89: Good - some optimization opportunities
159
+ - 50-69: Needs Work - significant issues to address
160
+ - 0-49: Critical - major SEO problems blocking growth
161
+
162
+ ---
163
+
164
+ ## Critical Issues (Fix Immediately)
165
+
166
+ ### 1. {Title} [{analyzer(s)}]
167
+
168
+ **Impact**: {ranking/indexing/traffic impact}
169
+ **Effort**: {Low/Medium/High}
170
+
171
+ **Details**: {explanation}
172
+
173
+ **Fix**:
174
+ {specific remediation with code/examples}
175
+
176
+ ---
177
+
178
+ ## High Priority (Fix This Sprint)
179
+
180
+ ### 2. {Title} [{analyzer(s)}]
181
+
182
+ [Same structure]
183
+
184
+ ---
185
+
186
+ ## Medium Priority (Optimization Backlog)
187
+
188
+ ### 3. {Title}
189
+
190
+ [Abbreviated format]
191
+
192
+ ---
193
+
194
+ ## Low Priority (Nice to Have)
195
+
196
+ [Brief list]
197
+
198
+ ---
199
+
200
+ ## Category Deep-Dives
201
+
202
+ ### Technical SEO ({X}/100)
203
+
204
+ {Key findings summary from technical analyzer}
205
+
206
+ ### Content Quality ({X}/100)
207
+
208
+ {Key findings summary from content analyzer}
209
+
210
+ ### Schema ({X}/100)
211
+
212
+ {Key findings summary from schema analyzer}
213
+
214
+ ### Performance ({X}/100)
215
+
216
+ {Key findings summary from performance analyzer}
217
+
218
+ ### Images ({X}/100)
219
+
220
+ {Key findings summary from images analyzer}
221
+
222
+ ### Sitemap ({X}/100)
223
+
224
+ {Key findings summary from sitemap analyzer}
225
+
226
+ ---
227
+
228
+ ## Action Plan
229
+
230
+ ### Quick Wins (< 1 hour each)
231
+
232
+ - [ ] {Action item}
233
+ - [ ] {Action item}
234
+
235
+ ### This Week
236
+
237
+ - [ ] {Action item}
238
+ - [ ] {Action item}
239
+
240
+ ### This Month
241
+
242
+ - [ ] {Action item}
243
+ - [ ] {Action item}
244
+
245
+ ---
246
+
247
+ ## Recommendations by Business Type: {type}
248
+
249
+ 1. {Business-type-specific recommendation}
250
+ 2. {Business-type-specific recommendation}
251
+ 3. {Business-type-specific recommendation}
252
+ ```
253
+
254
+ ---
255
+
256
+ ## Score Emoji Guide
257
+
258
+ | Score | Emoji | Meaning |
259
+ | ------ | ---------- | -------------------- |
260
+ | 90-100 | Excellent | Well-optimized |
261
+ | 70-89 | Good | Room for improvement |
262
+ | 50-69 | Needs Work | Significant issues |
263
+ | 0-49 | Critical | Major problems |
264
+
265
+ ---
266
+
267
+ ## Important Rules
268
+
269
+ 1. **Show your math** - Make scoring transparent with category breakdowns
270
+ 2. **Be actionable** - Every finding must have a specific fix
271
+ 3. **Prioritize by business type** - E-commerce needs Product schema; publishers need E-E-A-T
272
+ 4. **Cross-reference** - Issues flagged by multiple analyzers are higher confidence
273
+ 5. **Quick wins first** - Lead the action plan with easy, high-impact fixes
274
+ 6. **Save the report** - Write to `docs/08-project/seo-audits/seo-audit-{YYYYMMDD}.md`
275
+ 7. **No false urgency** - Score honestly, not everything is critical
276
+
277
+ ---
278
+
279
+ ## Handling Edge Cases
280
+
281
+ ### No findings from an analyzer
282
+
283
+ → Category score = 100, note "No issues detected" in that section
284
+
285
+ ### Only one analyzer deployed (focused audit)
286
+
287
+ → Report only that category, don't compute overall health score
288
+
289
+ ### Site is completely broken
290
+
291
+ → Report Critical findings, score 0-20, recommend fixing fundamentals first
292
+
293
+ ### Site is already well-optimized
294
+
295
+ → Score 85+, focus recommendations on incremental improvements and monitoring
296
+
297
+ ---
298
+
299
+ ## Boundary Rules
300
+
301
+ - **Focus on SEO** - Not general web development, accessibility, or security
302
+ - **Actionable findings only** - Skip theoretical or impossible-to-verify issues
303
+ - **Respect the analyzers** - Trust their domain expertise, synthesize don't override
304
+ - **Business context matters** - A blog doesn't need Product schema, an e-commerce site does
@@ -1,14 +1,29 @@
1
1
  id: seo
2
2
  name: SEO
3
- description: Technical SEO, schema, content, GEO, images, and sitemap audits.
3
+ description: SEO skill pack.
4
4
  version: 1.0.0
5
5
  enabledByDefault: false
6
6
 
7
7
  depends: []
8
8
 
9
9
  provides:
10
- commands: []
11
- skills: []
12
- agents: []
10
+ skills:
11
+ - id: agileflow-seo
12
+ dir: skills/agileflow-seo
13
+ agents:
14
+ - id: seo-analyzer-content
15
+ path: agents/seo-analyzer-content.md
16
+ - id: seo-analyzer-images
17
+ path: agents/seo-analyzer-images.md
18
+ - id: seo-analyzer-performance
19
+ path: agents/seo-analyzer-performance.md
20
+ - id: seo-analyzer-schema
21
+ path: agents/seo-analyzer-schema.md
22
+ - id: seo-analyzer-sitemap
23
+ path: agents/seo-analyzer-sitemap.md
24
+ - id: seo-analyzer-technical
25
+ path: agents/seo-analyzer-technical.md
26
+ - id: seo-consensus
27
+ path: agents/seo-consensus.md
13
28
  hooks: []
14
29
  templates: []
@@ -0,0 +1,188 @@
1
+ ---
2
+ name: agileflow-seo
3
+ version: 1.2.0
4
+ category: agileflow/seo
5
+ description: |
6
+ Use when the user wants to audit, improve, or plan SEO for a website:
7
+ technical SEO, Core Web Vitals, structured data, content quality,
8
+ sitemap, images, international SEO, or competitor analysis.
9
+ triggers:
10
+ keywords:
11
+ - seo
12
+ - search engine
13
+ - google ranking
14
+ - core web vitals
15
+ - structured data
16
+ - schema markup
17
+ - sitemap
18
+ - meta tags
19
+ - page speed
20
+ - crawlability
21
+ - indexability
22
+ - seo audit
23
+ - hreflang
24
+ - international seo
25
+ - organic traffic
26
+ - search rankings
27
+ - rich results
28
+ - lcp
29
+ - cls
30
+ - inp
31
+ priority: 55
32
+ provides:
33
+ agents: []
34
+ learns:
35
+ enabled: true
36
+ file: _learnings/seo.yaml
37
+ maxEntries: 30
38
+ depends:
39
+ skills: []
40
+ plugins: [seo]
41
+ ---
42
+
43
+ # AgileFlow SEO
44
+
45
+ Full-stack SEO audit and optimization assistant. Covers technical crawlability, Core Web Vitals, structured data, content quality, image optimization, and international SEO — with actionable fixes mapped to Google's documentation.
46
+
47
+ ## When this skill activates
48
+
49
+ - User mentions SEO, search rankings, or organic traffic
50
+ - User asks about Core Web Vitals (LCP, INP, CLS)
51
+ - User wants to add or fix structured data / schema markup
52
+ - User asks about sitemap, robots.txt, or crawlability
53
+ - User wants to optimize images or improve page speed
54
+ - User is expanding to international markets (hreflang)
55
+ - User says their site "isn't getting traffic" or "doesn't rank"
56
+
57
+ ## Opening discovery flow
58
+
59
+ **When invoked without a clear request, run this before doing anything else.** One smart question covers goal + site context simultaneously. Don't split into multiple question blocks.
60
+
61
+ ```xml
62
+ <invoke name="AskUserQuestion">
63
+ <parameter name="questions">[
64
+ {
65
+ "question": "What are you trying to fix or improve with your SEO?",
66
+ "header": "What's the goal?",
67
+ "multiSelect": false,
68
+ "options": [
69
+ {"label": "Full site audit — show me everything (Recommended)", "description": "6-analyzer sweep → health score 0-100, prioritized findings. Best starting point if you haven't audited before."},
70
+ {"label": "My site is slow or failing Core Web Vitals", "description": "LCP, INP, CLS analysis with specific resource-level fixes — I'll look at what's actually blocking paint"},
71
+ {"label": "My pages aren't showing up in Google / getting indexed", "description": "Technical SEO: robots.txt, canonicals, noindex flags, sitemap coverage, redirect chains"},
72
+ {"label": "I want to rank for specific keywords / improve content", "description": "E-E-A-T content quality, heading structure, content depth — page-by-page or site-wide"},
73
+ {"label": "I want rich results (stars, FAQs, products) in Google", "description": "Schema markup validation + I'll generate ready-to-use JSON-LD for your page type"},
74
+ {"label": "I'm expanding to other countries / languages", "description": "hreflang implementation, geo-targeting, language-specific content strategy"},
75
+ {"label": "Analyze a specific page or blog post", "description": "Deep 6-dimension report card on a single URL — on-page, content, technical, schema, images, performance"}
76
+ ]
77
+ },
78
+ {
79
+ "question": "What type of site is it?",
80
+ "header": "Site type",
81
+ "multiSelect": false,
82
+ "options": [
83
+ {"label": "SaaS / Software product", "description": "Login, pricing, docs — I'll tune for SaaS: trial CTAs, feature page schema, dev docs indexing"},
84
+ {"label": "E-commerce / online store", "description": "Products, categories, checkout — Product schema, Core Web Vitals are critical, filter page handling"},
85
+ {"label": "Local business / service area", "description": "Physical location or service area — LocalBusiness schema, NAP consistency, Google Business signals"},
86
+ {"label": "Blog / content publisher", "description": "Articles, guides, news — E-E-A-T signals, Article schema, content freshness, topical authority"},
87
+ {"label": "Agency / professional services / portfolio", "description": "Services, team, case studies — expertise signals, Service schema, trust factors"},
88
+ {"label": "Not sure yet / general website", "description": "I'll detect your site type from the URL and apply relevant benchmarks"}
89
+ ]
90
+ }
91
+ ]</parameter>
92
+ </invoke>
93
+ ```
94
+
95
+ **After they answer, ask for the URL directly** — don't make them choose between "homepage URL" and "specific page URL" as fake options. Just say: _"What's the URL? I'll fetch it and start the analysis."_
96
+
97
+ If they say they don't have a live URL: discuss strategy or review their code/content instead.
98
+
99
+ ## Context to gather for deeper analysis
100
+
101
+ For anything beyond a quick single-page check, also ask these before running analyzers. Bundle into the initial conversation, not a third separate AskUserQuestion block:
102
+
103
+ | Context | Why it matters |
104
+ | ---------------------------------------------------- | ------------------------------------------------------------------ |
105
+ | Monthly organic traffic (approx) | Helps prioritize — traffic loss is P0, growth optimization is P2 |
106
+ | Current top-ranking pages or target keywords | Focuses audit on what actually matters to their business |
107
+ | Recent site changes (migrations, redesigns, new CMS) | Migrations cause 80% of sudden ranking drops |
108
+ | Tech stack / CMS | Next.js, WordPress, Shopify — affects which fixes are easy vs hard |
109
+ | Competitor URLs (optional) | Enables gap analysis in content + schema |
110
+
111
+ Ask naturally: _"A few quick context questions before I start — what's your rough monthly organic traffic, and have you made any big site changes recently (migration, redesign, new platform)?"_
112
+
113
+ ## Routing by goal
114
+
115
+ | Goal selected | Route |
116
+ | ------------------------- | -------------------------------------------------------------------------- |
117
+ | Full audit | Fetch URL → `/agileflow:seo:audit URL` |
118
+ | Slow / CWV | Fetch URL → `/agileflow:seo:performance URL` + `/agileflow:seo:images URL` |
119
+ | Not indexed / crawled | Fetch URL → `/agileflow:seo:technical URL FOCUS=crawl` |
120
+ | Content / keyword ranking | Ask target keyword first → `/agileflow:seo:content URL TYPE={site_type}` |
121
+ | Rich results / schema | Fetch URL → `/agileflow:seo:schema URL GENERATE=true` |
122
+ | International SEO | Ask target countries first → `/agileflow:seo:hreflang URL` |
123
+ | Single page analysis | Fetch URL → `/agileflow:seo:page URL` |
124
+
125
+ ## After every analysis — always guide the next step
126
+
127
+ Never dump findings without guidance. After any command completes, present next steps with AskUserQuestion. Make the recommendation specific to what was actually found:
128
+
129
+ ```xml
130
+ <invoke name="AskUserQuestion">
131
+ <parameter name="questions">[{
132
+ "question": "{Command} done. {site} scored {X}/100 — {N} findings: {critical} critical, {high} high. Biggest blocker: {top_finding}.",
133
+ "header": "What to tackle first",
134
+ "multiSelect": false,
135
+ "options": [
136
+ {"label": "Fix {top_critical_issue} now (Recommended)", "description": "{specific fix with expected impact — e.g., 'Adding missing canonical tags — affects 23 pages, prevents duplicate content penalties'}"},
137
+ {"label": "Deep-dive into {lowest_scoring_category} ({score}/100)", "description": "Worst-scoring area — I'll give you implementation-ready fixes for every issue"},
138
+ {"label": "Generate {missing_schema_type} schema markup", "description": "I'll produce copy-paste JSON-LD matched to your {site_type} — no manual work"},
139
+ {"label": "Run full site audit for complete picture", "description": "You've seen one dimension — /agileflow:seo:audit covers all 6 and gives an overall health score"},
140
+ {"label": "Analyze a competitor for gap comparison", "description": "See what {ranking competitor} is doing that you're not — schema, content structure, CWV"}
141
+ ]
142
+ }]</parameter>
143
+ </invoke>
144
+ ```
145
+
146
+ **Customize every option** based on actual findings. Don't show "Generate schema markup" if they already have perfect schema. Don't show "Full audit" if they just ran it.
147
+
148
+ ## Key principles — apply these throughout
149
+
150
+ 1. **Critical issues before everything else** — a noindex on the homepage outranks every other finding. P0 issues get fixed before P2 optimizations are even mentioned.
151
+ 2. **Field data beats lab data** — Google uses CrUX (real user data). If CWV looks good in lab but fails in field, field is what matters.
152
+ 3. **Mobile-first always** — Google indexes the mobile version. Desktop-only fixes are worth mentioning but not prioritizing.
153
+ 4. **Schema creates opportunity, not traffic** — schema alone won't rank you; it enables rich results when you already rank. Don't oversell it.
154
+ 5. **E-E-A-T matters most for YMYL** — health, finance, legal pages need strong author signals, expertise indicators, and trust signals. For a blog about recipes, E-E-A-T is lower priority.
155
+ 6. **Recent changes = first suspect** — if rankings dropped recently, ask about migrations, redesigns, URL changes, or CMS switches before running any analyzers. That's the most common root cause.
156
+
157
+ ## Integration
158
+
159
+ - **agileflow-engineering** — delegate SEO fixes that require code changes: canonical tags, hreflang implementation, structured data injection, performance optimisation, sitemap generation
160
+ - **agileflow-performance** — Core Web Vitals are a direct Google ranking factor; use performance for LCP, INP, and CLS remediation after the SEO audit flags them
161
+ - **agileflow-docs** — after writing SEO-optimised content, sync it through docs to ensure it follows content structure and formatting conventions
162
+ - **agileflow-ads** — align organic and paid keyword strategy; high-performing organic keywords are candidates for paid amplification, and vice versa
163
+ - **agileflow-ideation** — use ideation to generate content ideas grounded in search intent and keyword gaps identified during SEO research
164
+ - **agileflow-research** — gather keyword data, competitor SERP analysis, and industry benchmark data before running the SEO audit or content strategy
165
+ - **agileflow-migration** — URL migrations and site restructuring are the most common cause of ranking drops; coordinate with migration for zero-ranking-loss URL changes
166
+ - **agileflow-delivery** — include SEO validation (canonical correctness, sitemap update, no new 404s) as a delivery gate for any release touching public-facing routes
167
+ - **agileflow-accessibility** — overlaps with SEO: semantic HTML, alt text, and heading hierarchy improve both search and screen reader performance; do both together
168
+
169
+ ## References
170
+
171
+ Load these when you need deeper knowledge for the relevant task:
172
+
173
+ | File | When to load |
174
+ | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
175
+ | `references/cwv-thresholds.md` | Evaluating Core Web Vitals — LCP/INP/CLS thresholds, field vs lab data, common fixes per metric |
176
+ | `references/eeat-framework.md` | Reviewing content quality — E-E-A-T signals per content type, YMYL requirements |
177
+ | `references/schema-types.md` | Recommending or generating schema markup — which type for which site, JSON-LD templates, Google's supported rich results |
178
+ | `references/technical-seo-checklist.md` | Deep technical audits — crawl budget, redirect chains, canonical logic, hreflang syntax |
179
+ | `references/keyword-research-guide.md` | Keyword strategy, search intent matching, gap analysis |
180
+
181
+ ## Workflows
182
+
183
+ Follow these step-by-step when the user initiates the matching action:
184
+
185
+ | File | When to follow |
186
+ | -------------------- | ------------------------------------------------------------------------------------------------------------ |
187
+ | `workflows/audit.md` | Full site SEO audit — gathers context, runs all 6 analyzers, presents health score + prioritized action plan |
188
+ | `workflows/page.md` | Single-page analysis — deep 6-dimension report card for a specific URL |
@@ -0,0 +1,110 @@
1
+ # Core Web Vitals Thresholds Reference
2
+
3
+ **Load this when:** analyzing page performance, interpreting CWV scores,
4
+ or recommending specific fixes. Google uses CrUX (field data) for ranking —
5
+ lab data is directional only.
6
+
7
+ ## The three Core Web Vitals
8
+
9
+ ### LCP — Largest Contentful Paint
10
+
11
+ _Measures loading performance_
12
+
13
+ | Score | Threshold | User experience |
14
+ | ----------------- | ----------- | ----------------------------- |
15
+ | Good | ≤ 2.5s | Fast — ranks well |
16
+ | Needs improvement | 2.5s – 4.0s | Noticeable delay |
17
+ | Poor | > 4.0s | Frustrating — ranking penalty |
18
+
19
+ **What counts as LCP element:**
20
+
21
+ - `<img>` elements
22
+ - `<image>` inside SVG
23
+ - `<video>` poster images
24
+ - Block-level elements with background images
25
+ - Block-level elements containing text
26
+
27
+ **Common LCP culprits and fixes:**
28
+
29
+ | Cause | Fix |
30
+ | ------------------------- | --------------------------------------------------------------- |
31
+ | Render-blocking CSS/JS | Defer non-critical JS, inline critical CSS |
32
+ | Slow server TTFB | CDN, server-side caching, reduce redirects |
33
+ | Unoptimized hero image | WebP/AVIF, `fetchpriority="high"`, no lazy loading on LCP image |
34
+ | Client-side rendering | SSR or SSG for above-the-fold content |
35
+ | Web fonts blocking render | `font-display: swap`, preload critical fonts |
36
+
37
+ **Never lazy-load the LCP image.** This is one of the most common mistakes.
38
+
39
+ ### INP — Interaction to Next Paint
40
+
41
+ _Measures responsiveness (replaced FID in March 2024)_
42
+
43
+ | Score | Threshold | User experience |
44
+ | ----------------- | ------------- | -------------------- |
45
+ | Good | ≤ 200ms | Feels instant |
46
+ | Needs improvement | 200ms – 500ms | Noticeable lag |
47
+ | Poor | > 500ms | Janky — users notice |
48
+
49
+ INP measures the worst interaction across the entire page visit, not just the first.
50
+
51
+ **Common INP culprits and fixes:**
52
+
53
+ | Cause | Fix |
54
+ | ----------------------------- | ----------------------------------------------- |
55
+ | Long JavaScript tasks (>50ms) | Break up with `setTimeout`, `scheduler.yield()` |
56
+ | Heavy event handlers | Debounce, throttle, move work off main thread |
57
+ | Forced style recalculation | Batch DOM reads/writes, avoid layout thrashing |
58
+ | Large React re-renders | `React.memo`, `useMemo`, virtualize long lists |
59
+ | Third-party scripts | Load async, defer, or use Partytown |
60
+
61
+ ### CLS — Cumulative Layout Shift
62
+
63
+ _Measures visual stability_
64
+
65
+ | Score | Threshold | User experience |
66
+ | ----------------- | ---------- | ----------------------- |
67
+ | Good | ≤ 0.1 | Stable |
68
+ | Needs improvement | 0.1 – 0.25 | Noticeable shifts |
69
+ | Poor | > 0.25 | Jarring — content jumps |
70
+
71
+ **Common CLS culprits and fixes:**
72
+
73
+ | Cause | Fix |
74
+ | ----------------------------------- | ------------------------------------------------------ |
75
+ | Images without dimensions | Always set `width` and `height` attributes |
76
+ | Ads / embeds without reserved space | Reserve space with `min-height` container |
77
+ | Fonts causing FOUT | `font-display: optional` or preload fonts |
78
+ | Dynamically injected content | Insert above-the-fold content only on user interaction |
79
+ | Animations using `top`/`left` | Use `transform` instead — doesn't cause layout |
80
+
81
+ ## Field vs lab data
82
+
83
+ | Type | Source | Used for Google ranking? |
84
+ | -------------------- | --------------------------------- | ----------------------------------------- |
85
+ | **Field (CrUX)** | Real user measurements via Chrome | ✅ YES — this is what matters for ranking |
86
+ | **Lab (Lighthouse)** | Simulated test environment | ❌ NO — directional only |
87
+
88
+ If lab data shows Good but field data shows Poor: real users on real devices/networks
89
+ are the problem. Common causes: mobile networks, older devices, third-party scripts.
90
+
91
+ **Always check CrUX field data** via:
92
+
93
+ - Google Search Console → Core Web Vitals report
94
+ - PageSpeed Insights (shows both field and lab)
95
+ - `web-vitals` JS library for real user monitoring
96
+
97
+ ## Passing threshold for Google ranking
98
+
99
+ Google uses the 75th percentile of field data. A page "passes" when
100
+ at least 75% of real user visits meet the Good threshold.
101
+
102
+ A site with 1,000 daily visitors needs 750 visits with LCP ≤ 2.5s to pass LCP.
103
+
104
+ ## CWV impact on rankings
105
+
106
+ CWV is a **tiebreaker**, not a primary ranking signal. A page with great
107
+ content and poor CWV will outrank a page with poor content and great CWV.
108
+ But when content is equal, CWV determines the winner.
109
+
110
+ Fix CWV for user experience first, SEO second.