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.
- package/CHANGELOG.md +51 -0
- package/content/plugins/accessibility/plugin.yaml +14 -0
- package/content/plugins/accessibility/skills/agileflow-accessibility/SKILL.md +392 -0
- package/content/plugins/accessibility/skills/agileflow-accessibility/references/aria-patterns.md +528 -0
- package/content/plugins/accessibility/skills/agileflow-accessibility/references/testing-checklist.md +457 -0
- package/content/plugins/accessibility/skills/agileflow-accessibility/references/wcag-guide.md +683 -0
- package/content/plugins/accessibility/skills/agileflow-accessibility/workflows/audit-page.md +310 -0
- package/content/plugins/accessibility/skills/agileflow-accessibility/workflows/implement-accessible-component.md +479 -0
- package/content/plugins/ads/agents/ads-audit-budget.md +185 -0
- package/content/plugins/ads/agents/ads-audit-compliance.md +171 -0
- package/content/plugins/ads/agents/ads-audit-creative.md +168 -0
- package/content/plugins/ads/agents/ads-audit-google.md +227 -0
- package/content/plugins/ads/agents/ads-audit-meta.md +184 -0
- package/content/plugins/ads/agents/ads-audit-tracking.md +205 -0
- package/content/plugins/ads/agents/ads-consensus.md +410 -0
- package/content/plugins/ads/agents/ads-generate.md +152 -0
- package/content/plugins/ads/agents/ads-performance-tracker.md +212 -0
- package/content/plugins/ads/plugin.yaml +23 -4
- package/content/plugins/ads/skills/agileflow-ads/SKILL.md +218 -0
- package/content/plugins/ads/skills/agileflow-ads/references/ad-copy-formula-guide.md +131 -0
- package/content/plugins/ads/skills/agileflow-ads/references/audience-targeting-guide.md +137 -0
- package/content/plugins/ads/skills/agileflow-ads/references/bid-strategy-guide.md +115 -0
- package/content/plugins/ads/skills/agileflow-ads/references/platform-benchmarks.md +100 -0
- package/content/plugins/ads/skills/agileflow-ads/workflows/audit.md +118 -0
- package/content/plugins/ads/skills/agileflow-ads/workflows/generate.md +84 -0
- package/content/plugins/audit/agents/a11y-analyzer-aria.md +173 -0
- package/content/plugins/audit/agents/a11y-analyzer-forms.md +173 -0
- package/content/plugins/audit/agents/a11y-analyzer-keyboard.md +183 -0
- package/content/plugins/audit/agents/a11y-analyzer-semantic.md +169 -0
- package/content/plugins/audit/agents/a11y-analyzer-visual.md +172 -0
- package/content/plugins/audit/agents/a11y-consensus.md +249 -0
- package/content/plugins/audit/agents/accessibility.md +558 -0
- package/content/plugins/audit/agents/api-quality-analyzer-conventions.md +156 -0
- package/content/plugins/audit/agents/api-quality-analyzer-docs.md +184 -0
- package/content/plugins/audit/agents/api-quality-analyzer-errors.md +191 -0
- package/content/plugins/audit/agents/api-quality-analyzer-pagination.md +179 -0
- package/content/plugins/audit/agents/api-quality-analyzer-versioning.md +150 -0
- package/content/plugins/audit/agents/api-quality-consensus.md +217 -0
- package/content/plugins/audit/agents/api-validator.md +191 -0
- package/content/plugins/audit/agents/arch-analyzer-circular.md +156 -0
- package/content/plugins/audit/agents/arch-analyzer-complexity.md +193 -0
- package/content/plugins/audit/agents/arch-analyzer-coupling.md +152 -0
- package/content/plugins/audit/agents/arch-analyzer-layering.md +160 -0
- package/content/plugins/audit/agents/arch-analyzer-patterns.md +210 -0
- package/content/plugins/audit/agents/arch-consensus.md +228 -0
- package/content/plugins/audit/agents/browser-qa.md +342 -0
- package/content/plugins/audit/agents/code-reviewer.md +298 -0
- package/content/plugins/audit/agents/completeness-analyzer-api.md +199 -0
- package/content/plugins/audit/agents/completeness-analyzer-conditional.md +211 -0
- package/content/plugins/audit/agents/completeness-analyzer-handlers.md +166 -0
- package/content/plugins/audit/agents/completeness-analyzer-imports.md +165 -0
- package/content/plugins/audit/agents/completeness-analyzer-routes.md +190 -0
- package/content/plugins/audit/agents/completeness-analyzer-state.md +196 -0
- package/content/plugins/audit/agents/completeness-analyzer-stubs.md +206 -0
- package/content/plugins/audit/agents/completeness-consensus.md +295 -0
- package/content/plugins/audit/agents/error-analyzer.md +213 -0
- package/content/plugins/audit/agents/flow-analyzer-authorization.md +182 -0
- package/content/plugins/audit/agents/flow-analyzer-discovery.md +174 -0
- package/content/plugins/audit/agents/flow-analyzer-errors.md +186 -0
- package/content/plugins/audit/agents/flow-analyzer-feedback.md +185 -0
- package/content/plugins/audit/agents/flow-analyzer-navigation.md +177 -0
- package/content/plugins/audit/agents/flow-analyzer-persistence.md +193 -0
- package/content/plugins/audit/agents/flow-analyzer-wiring.md +169 -0
- package/content/plugins/audit/agents/flow-consensus.md +237 -0
- package/content/plugins/audit/agents/legal-analyzer-a11y.md +114 -0
- package/content/plugins/audit/agents/legal-analyzer-ai.md +121 -0
- package/content/plugins/audit/agents/legal-analyzer-consumer.md +114 -0
- package/content/plugins/audit/agents/legal-analyzer-content.md +117 -0
- package/content/plugins/audit/agents/legal-analyzer-international.md +119 -0
- package/content/plugins/audit/agents/legal-analyzer-licensing.md +119 -0
- package/content/plugins/audit/agents/legal-analyzer-privacy.md +112 -0
- package/content/plugins/audit/agents/legal-analyzer-security.md +116 -0
- package/content/plugins/audit/agents/legal-analyzer-terms.md +115 -0
- package/content/plugins/audit/agents/legal-consensus.md +250 -0
- package/content/plugins/audit/agents/logic-analyzer-edge.md +179 -0
- package/content/plugins/audit/agents/logic-analyzer-flow.md +264 -0
- package/content/plugins/audit/agents/logic-analyzer-invariant.md +215 -0
- package/content/plugins/audit/agents/logic-analyzer-race.md +280 -0
- package/content/plugins/audit/agents/logic-analyzer-type.md +227 -0
- package/content/plugins/audit/agents/logic-consensus.md +259 -0
- package/content/plugins/audit/agents/perf-analyzer-assets.md +182 -0
- package/content/plugins/audit/agents/perf-analyzer-bundle.md +173 -0
- package/content/plugins/audit/agents/perf-analyzer-caching.md +170 -0
- package/content/plugins/audit/agents/perf-analyzer-compute.md +173 -0
- package/content/plugins/audit/agents/perf-analyzer-memory.md +193 -0
- package/content/plugins/audit/agents/perf-analyzer-network.md +165 -0
- package/content/plugins/audit/agents/perf-analyzer-queries.md +162 -0
- package/content/plugins/audit/agents/perf-analyzer-rendering.md +168 -0
- package/content/plugins/audit/agents/perf-consensus.md +287 -0
- package/content/plugins/audit/agents/qa.md +820 -0
- package/content/plugins/audit/agents/quality-analyzer-comments.md +159 -0
- package/content/plugins/audit/agents/quality-analyzer-duplication.md +184 -0
- package/content/plugins/audit/agents/quality-analyzer-naming.md +160 -0
- package/content/plugins/audit/agents/quality-consensus.md +241 -0
- package/content/plugins/audit/agents/schema-validator.md +473 -0
- package/content/plugins/audit/agents/security-analyzer-api.md +210 -0
- package/content/plugins/audit/agents/security-analyzer-auth.md +169 -0
- package/content/plugins/audit/agents/security-analyzer-authz.md +180 -0
- package/content/plugins/audit/agents/security-analyzer-deps.md +153 -0
- package/content/plugins/audit/agents/security-analyzer-infra.md +184 -0
- package/content/plugins/audit/agents/security-analyzer-injection.md +155 -0
- package/content/plugins/audit/agents/security-analyzer-input.md +201 -0
- package/content/plugins/audit/agents/security-analyzer-secrets.md +183 -0
- package/content/plugins/audit/agents/security-consensus.md +283 -0
- package/content/plugins/audit/agents/test-analyzer-assertions.md +188 -0
- package/content/plugins/audit/agents/test-analyzer-coverage.md +189 -0
- package/content/plugins/audit/agents/test-analyzer-fragility.md +193 -0
- package/content/plugins/audit/agents/test-analyzer-integration.md +161 -0
- package/content/plugins/audit/agents/test-analyzer-maintenance.md +180 -0
- package/content/plugins/audit/agents/test-analyzer-mocking.md +188 -0
- package/content/plugins/audit/agents/test-analyzer-patterns.md +196 -0
- package/content/plugins/audit/agents/test-analyzer-structure.md +184 -0
- package/content/plugins/audit/agents/test-consensus.md +301 -0
- package/content/plugins/audit/agents/testing.md +561 -0
- package/content/plugins/audit/agents/ui-validator.md +344 -0
- package/content/plugins/audit/plugin.yaml +186 -5
- package/content/plugins/audit/skills/agileflow-audit/SKILL.md +113 -0
- package/content/plugins/audit/skills/agileflow-audit/references/audit-depth-guide.md +151 -0
- package/content/plugins/audit/skills/agileflow-audit/references/dependency-risk-guide.md +139 -0
- package/content/plugins/audit/skills/agileflow-audit/references/owasp-top10.md +120 -0
- package/content/plugins/audit/skills/agileflow-audit/references/performance-budget-guide.md +143 -0
- package/content/plugins/audit/skills/agileflow-audit/references/wcag-criteria.md +117 -0
- package/content/plugins/audit/skills/agileflow-audit/workflows/run-audit.md +52 -0
- package/content/plugins/audit/skills/agileflow-audit/workflows/tdd.md +66 -0
- package/content/plugins/core/agents/adr-writer.md +521 -0
- package/content/plugins/core/agents/epic-planner.md +520 -0
- package/content/plugins/core/agents/mentor.md +709 -0
- package/content/plugins/core/agents/orchestrator.md +776 -0
- package/content/plugins/core/agents/team-coordinator.md +334 -0
- package/content/plugins/core/agents/team-lead.md +181 -0
- package/content/plugins/core/agents/workspace-orchestrator.md +146 -0
- package/content/plugins/core/hooks/context-loader.js +31 -4
- package/content/plugins/core/hooks/damage-control-bash.js +10 -2
- package/content/plugins/core/hooks/damage-control-edit.js +4 -1
- package/content/plugins/core/hooks/damage-control-patterns.yaml +1 -1
- package/content/plugins/core/hooks/damage-control-write.js +4 -1
- package/content/plugins/core/hooks/{pre-compact-state.js → post-compact-state.js} +25 -8
- package/content/plugins/core/hooks/preferences-injector.js +352 -0
- package/content/plugins/core/plugin.yaml +24 -28
- package/content/plugins/core/skills/agileflow-adr/SKILL.md +34 -8
- package/content/plugins/core/skills/agileflow-adr/references/madr-format-guide.md +86 -0
- package/content/plugins/core/skills/agileflow-adr/workflows/write-adr.md +57 -0
- package/content/plugins/core/skills/agileflow-babysit-mentor/SKILL.md +94 -27
- package/content/plugins/core/skills/agileflow-babysit-mentor/references/mentor-decision-guide.md +81 -0
- package/content/plugins/core/skills/agileflow-babysit-mentor/workflows/mentor-session.md +79 -0
- package/content/plugins/core/skills/agileflow-epic-planner/SKILL.md +37 -7
- package/content/plugins/core/skills/agileflow-epic-planner/references/epic-sizing-guide.md +81 -0
- package/content/plugins/core/skills/agileflow-epic-planner/workflows/plan-epic.md +55 -0
- package/content/plugins/core/skills/agileflow-status-updater/SKILL.md +36 -20
- package/content/plugins/core/skills/agileflow-status-updater/references/status-transitions.md +89 -0
- package/content/plugins/core/skills/agileflow-status-updater/workflows/update-status.md +56 -0
- package/content/plugins/core/skills/agileflow-story-writer/SKILL.md +39 -114
- package/content/plugins/core/skills/agileflow-story-writer/references/estimation-reference.md +36 -0
- package/content/plugins/core/skills/agileflow-story-writer/references/story-template.md +92 -0
- package/content/plugins/core/skills/agileflow-story-writer/workflows/write-story.md +138 -0
- package/content/plugins/council/agents/council-advocate.md +223 -0
- package/content/plugins/council/agents/council-analyst.md +278 -0
- package/content/plugins/council/agents/council-compounder.md +204 -0
- package/content/plugins/council/agents/council-contrarian.md +217 -0
- package/content/plugins/council/agents/council-moonshot.md +217 -0
- package/content/plugins/council/agents/council-optimist.md +185 -0
- package/content/plugins/council/agents/council-revenue.md +200 -0
- package/content/plugins/council/agents/council-technical.md +218 -0
- package/content/plugins/council/agents/multi-expert.md +334 -0
- package/content/plugins/council/plugin.yaml +23 -4
- package/content/plugins/council/skills/agileflow-council/SKILL.md +102 -0
- package/content/plugins/council/skills/agileflow-council/references/decision-log-template.md +109 -0
- package/content/plugins/council/skills/agileflow-council/references/perspective-guide.md +104 -0
- package/content/plugins/council/skills/agileflow-council/references/when-to-convene-guide.md +112 -0
- package/content/plugins/council/skills/agileflow-council/workflows/convene.md +73 -0
- package/content/plugins/council/skills/agileflow-council/workflows/multi-expert.md +75 -0
- package/content/plugins/database/plugin.yaml +14 -0
- package/content/plugins/database/skills/agileflow-database/SKILL.md +284 -0
- package/content/plugins/database/skills/agileflow-database/references/indexing-guide.md +313 -0
- package/content/plugins/database/skills/agileflow-database/references/migration-guide.md +328 -0
- package/content/plugins/database/skills/agileflow-database/references/schema-design-guide.md +467 -0
- package/content/plugins/database/skills/agileflow-database/workflows/design-schema.md +213 -0
- package/content/plugins/database/skills/agileflow-database/workflows/optimize-query.md +253 -0
- package/content/plugins/debugging/plugin.yaml +14 -0
- package/content/plugins/debugging/skills/agileflow-debug/SKILL.md +236 -0
- package/content/plugins/debugging/skills/agileflow-debug/references/common-patterns.md +350 -0
- package/content/plugins/debugging/skills/agileflow-debug/references/debugging-strategies.md +328 -0
- package/content/plugins/debugging/skills/agileflow-debug/workflows/debug-issue.md +187 -0
- package/content/plugins/debugging/skills/agileflow-debug/workflows/reproduce-bug.md +194 -0
- package/content/plugins/delivery/agents/ci.md +547 -0
- package/content/plugins/delivery/agents/devops.md +789 -0
- package/content/plugins/delivery/plugin.yaml +19 -0
- package/content/plugins/delivery/skills/agileflow-delivery/SKILL.md +111 -0
- package/content/plugins/delivery/skills/agileflow-delivery/references/changelog-format-guide.md +133 -0
- package/content/plugins/delivery/skills/agileflow-delivery/references/ci-pipeline-guide.md +158 -0
- package/content/plugins/delivery/skills/agileflow-delivery/references/pr-checklist-guide.md +133 -0
- package/content/plugins/delivery/skills/agileflow-delivery/references/release-checklist.md +142 -0
- package/content/plugins/delivery/skills/agileflow-delivery/workflows/changelog.md +72 -0
- package/content/plugins/delivery/skills/agileflow-delivery/workflows/deploy.md +74 -0
- package/content/plugins/delivery/skills/agileflow-delivery/workflows/pr.md +75 -0
- package/content/plugins/docs/agents/documentation.md +544 -0
- package/content/plugins/docs/agents/readme-updater.md +640 -0
- package/content/plugins/docs/plugin.yaml +19 -0
- package/content/plugins/docs/skills/agileflow-docs/SKILL.md +106 -0
- package/content/plugins/docs/skills/agileflow-docs/references/api-doc-template.md +167 -0
- package/content/plugins/docs/skills/agileflow-docs/references/doc-types-guide.md +141 -0
- package/content/plugins/docs/skills/agileflow-docs/references/readme-template.md +156 -0
- package/content/plugins/docs/skills/agileflow-docs/workflows/readme-sync.md +57 -0
- package/content/plugins/docs/skills/agileflow-docs/workflows/sync.md +64 -0
- package/content/plugins/engineering/agents/api.md +718 -0
- package/content/plugins/engineering/agents/codebase-query.md +285 -0
- package/content/plugins/engineering/agents/compliance.md +559 -0
- package/content/plugins/engineering/agents/database.md +644 -0
- package/content/plugins/engineering/agents/integrations.md +644 -0
- package/content/plugins/engineering/agents/mobile.md +552 -0
- package/content/plugins/engineering/agents/monitoring.md +585 -0
- package/content/plugins/engineering/agents/performance.md +529 -0
- package/content/plugins/engineering/agents/refactor.md +592 -0
- package/content/plugins/engineering/agents/security.md +524 -0
- package/content/plugins/engineering/agents/ui.md +1336 -0
- package/content/plugins/engineering/plugin.yaml +37 -0
- package/content/plugins/engineering/skills/agileflow-engineering/SKILL.md +127 -0
- package/content/plugins/engineering/skills/agileflow-engineering/references/code-review-guide.md +126 -0
- package/content/plugins/engineering/skills/agileflow-engineering/references/domain-routing-guide.md +89 -0
- package/content/plugins/engineering/skills/agileflow-engineering/references/refactoring-guide.md +136 -0
- package/content/plugins/engineering/skills/agileflow-engineering/workflows/diagnose.md +63 -0
- package/content/plugins/engineering/skills/agileflow-engineering/workflows/impact.md +60 -0
- package/content/plugins/ideation/agents/brainstorm-analyzer-features.md +179 -0
- package/content/plugins/ideation/agents/brainstorm-analyzer-growth.md +169 -0
- package/content/plugins/ideation/agents/brainstorm-analyzer-integration.md +181 -0
- package/content/plugins/ideation/agents/brainstorm-analyzer-market.md +150 -0
- package/content/plugins/ideation/agents/brainstorm-analyzer-ux.md +180 -0
- package/content/plugins/ideation/agents/brainstorm-consensus.md +245 -0
- package/content/plugins/ideation/agents/design.md +568 -0
- package/content/plugins/ideation/agents/product.md +582 -0
- package/content/plugins/ideation/plugin.yaml +31 -0
- package/content/plugins/ideation/skills/agileflow-ideation/SKILL.md +109 -0
- package/content/plugins/ideation/skills/agileflow-ideation/references/brainstorm-techniques.md +138 -0
- package/content/plugins/ideation/skills/agileflow-ideation/references/competitive-analysis-template.md +148 -0
- package/content/plugins/ideation/skills/agileflow-ideation/references/feature-prioritization-guide.md +147 -0
- package/content/plugins/ideation/skills/agileflow-ideation/references/user-story-patterns.md +152 -0
- package/content/plugins/ideation/skills/agileflow-ideation/workflows/features.md +65 -0
- package/content/plugins/ideation/skills/agileflow-ideation/workflows/ideate.md +54 -0
- package/content/plugins/migration/agents/datamigration.md +757 -0
- package/content/plugins/migration/plugin.yaml +17 -0
- package/content/plugins/migration/skills/agileflow-migration/SKILL.md +106 -0
- package/content/plugins/migration/skills/agileflow-migration/references/data-validation-checklist.md +154 -0
- package/content/plugins/migration/skills/agileflow-migration/references/migration-patterns.md +209 -0
- package/content/plugins/migration/skills/agileflow-migration/references/rollback-playbook.md +171 -0
- package/content/plugins/migration/skills/agileflow-migration/references/version-compatibility-matrix.md +155 -0
- package/content/plugins/migration/skills/agileflow-migration/workflows/plan.md +73 -0
- package/content/plugins/migration/skills/agileflow-migration/workflows/validate.md +71 -0
- package/content/plugins/performance/plugin.yaml +14 -0
- package/content/plugins/performance/skills/agileflow-performance/SKILL.md +224 -0
- package/content/plugins/performance/skills/agileflow-performance/references/optimization-patterns.md +554 -0
- package/content/plugins/performance/skills/agileflow-performance/references/profiling-guide.md +383 -0
- package/content/plugins/performance/skills/agileflow-performance/references/web-vitals-guide.md +360 -0
- package/content/plugins/performance/skills/agileflow-performance/workflows/improve-web-vitals.md +344 -0
- package/content/plugins/performance/skills/agileflow-performance/workflows/profile-and-fix.md +254 -0
- package/content/plugins/planning/agents/analytics.md +670 -0
- package/content/plugins/planning/agents/rlm-subcore.md +215 -0
- package/content/plugins/planning/plugin.yaml +19 -0
- package/content/plugins/planning/skills/agileflow-planning/SKILL.md +111 -0
- package/content/plugins/planning/skills/agileflow-planning/references/estimation-guide.md +114 -0
- package/content/plugins/planning/skills/agileflow-planning/references/rpi-workflow.md +119 -0
- package/content/plugins/planning/skills/agileflow-planning/references/sprint-planning-guide.md +145 -0
- package/content/plugins/planning/skills/agileflow-planning/workflows/impact.md +63 -0
- package/content/plugins/planning/skills/agileflow-planning/workflows/rpi.md +104 -0
- package/content/plugins/psychology/plugin.yaml +14 -0
- package/content/plugins/psychology/skills/agileflow-retention/SKILL.md +252 -0
- package/content/plugins/psychology/skills/agileflow-retention/references/competitor-analysis.md +240 -0
- package/content/plugins/psychology/skills/agileflow-retention/references/psychology-models.md +349 -0
- package/content/plugins/psychology/skills/agileflow-retention/references/retention-patterns.md +279 -0
- package/content/plugins/psychology/skills/agileflow-retention/workflows/design-retention-feature.md +287 -0
- package/content/plugins/psychology/skills/agileflow-retention/workflows/retention-audit.md +259 -0
- package/content/plugins/refactoring/plugin.yaml +14 -0
- package/content/plugins/refactoring/skills/agileflow-refactor/SKILL.md +235 -0
- package/content/plugins/refactoring/skills/agileflow-refactor/references/refactoring-patterns.md +405 -0
- package/content/plugins/refactoring/skills/agileflow-refactor/references/safety-checks.md +177 -0
- package/content/plugins/refactoring/skills/agileflow-refactor/workflows/extract-module.md +226 -0
- package/content/plugins/refactoring/skills/agileflow-refactor/workflows/safe-refactor.md +169 -0
- package/content/plugins/research/agents/research.md +503 -0
- package/content/plugins/research/plugin.yaml +17 -0
- package/content/plugins/research/skills/agileflow-research/SKILL.md +110 -0
- package/content/plugins/research/skills/agileflow-research/references/knowledge-decay-guide.md +121 -0
- package/content/plugins/research/skills/agileflow-research/references/research-prompt-guide.md +141 -0
- package/content/plugins/research/skills/agileflow-research/references/synthesis-template.md +154 -0
- package/content/plugins/research/skills/agileflow-research/workflows/analyze.md +60 -0
- package/content/plugins/research/skills/agileflow-research/workflows/ask.md +64 -0
- package/content/plugins/research/skills/agileflow-research/workflows/import.md +66 -0
- package/content/plugins/research/skills/agileflow-research/workflows/synthesize.md +66 -0
- package/content/plugins/reviews/plugin.yaml +14 -0
- package/content/plugins/reviews/skills/agileflow-pr-reviewer/SKILL.md +241 -0
- package/content/plugins/reviews/skills/agileflow-pr-reviewer/references/review-checklist.md +200 -0
- package/content/plugins/reviews/skills/agileflow-pr-reviewer/references/security-patterns.md +328 -0
- package/content/plugins/reviews/skills/agileflow-pr-reviewer/workflows/review-pr.md +153 -0
- package/content/plugins/reviews/skills/agileflow-pr-reviewer/workflows/security-review.md +177 -0
- package/content/plugins/seo/agents/seo-analyzer-content.md +169 -0
- package/content/plugins/seo/agents/seo-analyzer-images.md +198 -0
- package/content/plugins/seo/agents/seo-analyzer-performance.md +217 -0
- package/content/plugins/seo/agents/seo-analyzer-schema.md +184 -0
- package/content/plugins/seo/agents/seo-analyzer-sitemap.md +177 -0
- package/content/plugins/seo/agents/seo-analyzer-technical.md +151 -0
- package/content/plugins/seo/agents/seo-consensus.md +304 -0
- package/content/plugins/seo/plugin.yaml +19 -4
- package/content/plugins/seo/skills/agileflow-seo/SKILL.md +188 -0
- package/content/plugins/seo/skills/agileflow-seo/references/cwv-thresholds.md +110 -0
- package/content/plugins/seo/skills/agileflow-seo/references/eeat-framework.md +144 -0
- package/content/plugins/seo/skills/agileflow-seo/references/keyword-research-guide.md +125 -0
- package/content/plugins/seo/skills/agileflow-seo/references/schema-types.md +139 -0
- package/content/plugins/seo/skills/agileflow-seo/references/technical-seo-checklist.md +139 -0
- package/content/plugins/seo/skills/agileflow-seo/workflows/audit.md +98 -0
- package/content/plugins/seo/skills/agileflow-seo/workflows/page.md +118 -0
- package/content/plugins/testing/plugin.yaml +16 -0
- package/content/plugins/testing/skills/agileflow-test-writer/SKILL.md +260 -0
- package/content/plugins/testing/skills/agileflow-test-writer/references/coverage-targets.md +239 -0
- package/content/plugins/testing/skills/agileflow-test-writer/references/test-patterns.md +420 -0
- package/content/plugins/testing/skills/agileflow-test-writer/workflows/add-coverage.md +154 -0
- package/content/plugins/testing/skills/agileflow-test-writer/workflows/write-tests-from-ac.md +225 -0
- package/package.json +2 -2
- package/src/cli/commands/doctor.js +818 -30
- package/src/cli/commands/hook.js +17 -14
- package/src/cli/commands/launch.js +1454 -0
- package/src/cli/commands/learn.js +149 -0
- package/src/cli/commands/plugins.js +113 -0
- package/src/cli/commands/setup.js +455 -110
- package/src/cli/commands/skills.js +324 -0
- package/src/cli/commands/status.js +8 -10
- package/src/cli/commands/update.js +76 -15
- package/src/cli/index.js +90 -26
- package/src/cli/wizard/babysit-mode-picker.js +192 -0
- package/src/cli/wizard/behaviors-picker.js +208 -54
- package/src/cli/wizard/ide-picker.js +40 -28
- package/src/cli/wizard/install-scope-picker.js +57 -0
- package/src/cli/wizard/launch-alias-picker.js +50 -0
- package/src/cli/wizard/launch-cli-picker.js +129 -0
- package/src/cli/wizard/launch-tmux-picker.js +133 -0
- package/src/cli/wizard/learnings-picker.js +40 -0
- package/src/cli/wizard/plugin-picker.js +47 -16
- package/src/lib/brand.js +116 -0
- package/src/lib/errors.js +120 -0
- package/src/lib/path-check.js +39 -0
- package/src/runtime/config/defaults.js +22 -17
- package/src/runtime/config/loader.js +77 -8
- package/src/runtime/config/schema.json +43 -16
- package/src/runtime/config/writer.js +3 -1
- package/src/runtime/ide/babysit-skill.js +202 -0
- package/src/runtime/ide/capabilities.js +84 -29
- package/src/runtime/ide/claude-code-content.js +177 -0
- package/src/runtime/ide/claude-code-settings.js +67 -29
- package/src/runtime/ide/claude-code-skills.js +47 -32
- package/src/runtime/ide/codex-config.js +295 -0
- package/src/runtime/installer/install.js +252 -24
- package/src/runtime/launch/alias-installer.js +191 -0
- package/src/runtime/launch/cli-resume.js +244 -0
- package/src/runtime/launch/closed-windows.js +338 -0
- package/src/runtime/launch/defaults.js +66 -0
- package/src/runtime/launch/detect-clis.js +69 -0
- package/src/runtime/launch/doctor.js +464 -0
- package/src/runtime/launch/exec-wrapper.js +114 -0
- package/src/runtime/launch/parallel-session.js +247 -0
- package/src/runtime/launch/prefs.js +211 -0
- package/src/runtime/launch/project-prefs.js +234 -0
- package/src/runtime/launch/resolve-cli.js +56 -0
- package/src/runtime/launch/restore.js +152 -0
- package/src/runtime/launch/schema.json +75 -0
- package/src/runtime/launch/session-lifecycle.js +313 -0
- package/src/runtime/launch/session-registry.js +401 -0
- package/src/runtime/launch/spawn.js +103 -0
- package/src/runtime/launch/tabs.js +350 -0
- package/src/runtime/launch/tmux.js +764 -0
- package/src/runtime/launch/worktree.js +260 -0
- package/src/runtime/plugins/registry.js +16 -11
- package/src/runtime/plugins/validator.js +57 -43
- package/src/runtime/skills/learnings.js +308 -0
- package/content/plugins/core/hooks/babysit-mentor-injector.js +0 -55
- package/src/cli/wizard/personalization.js +0 -64
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agileflow-team-coordinator
|
|
3
|
+
description: Orchestrates builder+validator pairs using Task System. Creates tasks with dependencies to ensure validators run after builders complete.
|
|
4
|
+
tools: Task, TaskOutput, Read, Glob, Grep
|
|
5
|
+
model: sonnet
|
|
6
|
+
team_role: lead
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- AGILEFLOW_META
|
|
10
|
+
compact_context:
|
|
11
|
+
priority: critical
|
|
12
|
+
preserve_rules:
|
|
13
|
+
- "COORDINATE builder+validator pairs"
|
|
14
|
+
- "Create validator task with blockedBy builder task"
|
|
15
|
+
- "Use structured pairing: (api, api-validator), (ui, ui-validator), (database, schema-validator)"
|
|
16
|
+
- "Report final validation status"
|
|
17
|
+
AGILEFLOW_META -->
|
|
18
|
+
|
|
19
|
+
# Team Coordinator Agent
|
|
20
|
+
|
|
21
|
+
You orchestrate builder+validator pairs to ensure quality through systematic verification. You use the Task System to coordinate work between builders and validators.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## YOUR ROLE
|
|
26
|
+
|
|
27
|
+
1. **Analyze** - Determine which domain(s) the request involves
|
|
28
|
+
2. **Coordinate** - Spawn builder tasks, then validator tasks with dependencies
|
|
29
|
+
3. **Collect** - Gather validation reports
|
|
30
|
+
4. **Decide** - APPROVE, REJECT, or escalate based on results
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## BUILDER-VALIDATOR PAIRINGS
|
|
35
|
+
|
|
36
|
+
| Domain | Builder Agent | Validator Agent |
|
|
37
|
+
| ----------- | -------------------- | ---------------------------- |
|
|
38
|
+
| API/Backend | `agileflow-api` | `agileflow-api-validator` |
|
|
39
|
+
| UI/Frontend | `agileflow-ui` | `agileflow-ui-validator` |
|
|
40
|
+
| Database | `agileflow-database` | `agileflow-schema-validator` |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## ORCHESTRATION WORKFLOW
|
|
45
|
+
|
|
46
|
+
### Step 1: Analyze Request
|
|
47
|
+
|
|
48
|
+
Identify which domain(s) are involved:
|
|
49
|
+
|
|
50
|
+
| Request Contains | Domain |
|
|
51
|
+
| ----------------------------------------- | ---------------- |
|
|
52
|
+
| API endpoint, route, controller, backend | API |
|
|
53
|
+
| Component, styling, accessibility, UI | UI |
|
|
54
|
+
| Schema, migration, table, query, database | Database |
|
|
55
|
+
| Full-stack feature | Multiple domains |
|
|
56
|
+
|
|
57
|
+
### Step 2: Create Builder Task
|
|
58
|
+
|
|
59
|
+
Use the Task tool to spawn the builder:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Task(
|
|
63
|
+
subagent_type: "agileflow-api", // or ui, database
|
|
64
|
+
prompt: "Implement [feature] for story {story_id}. Requirements: [details]"
|
|
65
|
+
)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Capture the task ID** from the result.
|
|
69
|
+
|
|
70
|
+
### Step 3: Wait for Builder Completion
|
|
71
|
+
|
|
72
|
+
Use TaskOutput to wait for the builder to complete:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
TaskOutput(task_id: "{builder_task_id}", block: true)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Step 4: Create Validator Task
|
|
79
|
+
|
|
80
|
+
Spawn the validator with dependency on builder:
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
Task(
|
|
84
|
+
subagent_type: "agileflow-api-validator", // or ui-validator, schema-validator
|
|
85
|
+
prompt: "Validate implementation for story {story_id}. Builder task: {builder_task_id}"
|
|
86
|
+
)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Step 5: Collect Validation Report
|
|
90
|
+
|
|
91
|
+
Get the validator's report:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
TaskOutput(task_id: "{validator_task_id}", block: true)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Step 6: Make Decision
|
|
98
|
+
|
|
99
|
+
Based on validation report:
|
|
100
|
+
|
|
101
|
+
| Report Status | Action |
|
|
102
|
+
| ------------- | ------------------------------------ |
|
|
103
|
+
| ✅ APPROVE | Mark story complete, report success |
|
|
104
|
+
| ❌ REJECT | Send issues back to builder, iterate |
|
|
105
|
+
| ⚠️ UNCERTAIN | Escalate to human review |
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## MULTI-DOMAIN COORDINATION
|
|
110
|
+
|
|
111
|
+
For full-stack features involving multiple domains:
|
|
112
|
+
|
|
113
|
+
### Example: User Profile Feature
|
|
114
|
+
|
|
115
|
+
1. **Database** (first - schema must exist before API)
|
|
116
|
+
- Builder: `agileflow-database` - Create user_profiles table
|
|
117
|
+
- Validator: `agileflow-schema-validator` - Verify migration
|
|
118
|
+
|
|
119
|
+
2. **API** (second - depends on database)
|
|
120
|
+
- Builder: `agileflow-api` - Create /api/users/:id/profile endpoint
|
|
121
|
+
- Validator: `agileflow-api-validator` - Verify endpoint
|
|
122
|
+
|
|
123
|
+
3. **UI** (third - depends on API)
|
|
124
|
+
- Builder: `agileflow-ui` - Create ProfileCard component
|
|
125
|
+
- Validator: `agileflow-ui-validator` - Verify accessibility
|
|
126
|
+
|
|
127
|
+
### Dependency Chain
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
Database Builder → Database Validator → API Builder → API Validator → UI Builder → UI Validator
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Task Creation Order
|
|
134
|
+
|
|
135
|
+
```python
|
|
136
|
+
# 1. Database work
|
|
137
|
+
db_builder = Task(subagent_type="agileflow-database", ...)
|
|
138
|
+
db_validator = Task(subagent_type="agileflow-schema-validator", blockedBy=[db_builder])
|
|
139
|
+
|
|
140
|
+
# 2. API work (depends on database)
|
|
141
|
+
api_builder = Task(subagent_type="agileflow-api", blockedBy=[db_validator])
|
|
142
|
+
api_validator = Task(subagent_type="agileflow-api-validator", blockedBy=[api_builder])
|
|
143
|
+
|
|
144
|
+
# 3. UI work (depends on API)
|
|
145
|
+
ui_builder = Task(subagent_type="agileflow-ui", blockedBy=[api_validator])
|
|
146
|
+
ui_validator = Task(subagent_type="agileflow-ui-validator", blockedBy=[ui_builder])
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## ITERATION ON REJECTION
|
|
152
|
+
|
|
153
|
+
When a validator rejects:
|
|
154
|
+
|
|
155
|
+
### Step 1: Extract Issues
|
|
156
|
+
|
|
157
|
+
Parse the validation report for specific issues:
|
|
158
|
+
|
|
159
|
+
```markdown
|
|
160
|
+
### Issues Found
|
|
161
|
+
|
|
162
|
+
1. **Hardcoded Color**: Button uses hardcoded hex color
|
|
163
|
+
- File: src/components/Button.tsx:42
|
|
164
|
+
- Found: `color: '#3b82f6'`
|
|
165
|
+
- Required: Use design token `colors.primary`
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Step 2: Send Back to Builder
|
|
169
|
+
|
|
170
|
+
Create a new builder task with fix instructions:
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
Task(
|
|
174
|
+
subagent_type: "agileflow-ui",
|
|
175
|
+
prompt: "Fix validation issues for story {story_id}:
|
|
176
|
+
|
|
177
|
+
Issue 1: Hardcoded Color in Button.tsx:42
|
|
178
|
+
- Current: color: '#3b82f6'
|
|
179
|
+
- Required: Use design token colors.primary
|
|
180
|
+
|
|
181
|
+
Do NOT introduce new features. Only fix the listed issues."
|
|
182
|
+
)
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Step 3: Re-validate
|
|
186
|
+
|
|
187
|
+
After builder fixes, run validator again.
|
|
188
|
+
|
|
189
|
+
### Step 4: Track Iterations
|
|
190
|
+
|
|
191
|
+
| Iteration | Builder | Validator | Status |
|
|
192
|
+
| --------- | ------------ | ---------------------- | ---------- |
|
|
193
|
+
| 1 | agileflow-ui | agileflow-ui-validator | ❌ REJECT |
|
|
194
|
+
| 2 | agileflow-ui | agileflow-ui-validator | ✅ APPROVE |
|
|
195
|
+
|
|
196
|
+
**Max iterations**: 3 (then escalate to human)
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## COORDINATION REPORT FORMAT
|
|
201
|
+
|
|
202
|
+
After orchestrating a builder+validator pair:
|
|
203
|
+
|
|
204
|
+
```markdown
|
|
205
|
+
## Coordination Report: {story_id}
|
|
206
|
+
|
|
207
|
+
**Coordinator**: agileflow-team-coordinator
|
|
208
|
+
**Timestamp**: {ISO timestamp}
|
|
209
|
+
|
|
210
|
+
### Workflow Summary
|
|
211
|
+
|
|
212
|
+
| Step | Agent | Status | Duration |
|
|
213
|
+
| ---- | -------------------------- | --------------------------------- | -------- |
|
|
214
|
+
| 1 | agileflow-database | ✅ Complete | 45s |
|
|
215
|
+
| 2 | agileflow-schema-validator | ✅ Approved | 12s |
|
|
216
|
+
| 3 | agileflow-api | ✅ Complete | 67s |
|
|
217
|
+
| 4 | agileflow-api-validator | ✅ Approved | 15s |
|
|
218
|
+
| 5 | agileflow-ui | ✅ Complete | 89s |
|
|
219
|
+
| 6 | agileflow-ui-validator | ❌ Rejected → Fixed → ✅ Approved | 25s |
|
|
220
|
+
|
|
221
|
+
### Iterations
|
|
222
|
+
|
|
223
|
+
- UI: 2 iterations (hardcoded color fixed)
|
|
224
|
+
|
|
225
|
+
### Final Status: ✅ ALL VALIDATIONS PASSED
|
|
226
|
+
|
|
227
|
+
### Files Modified
|
|
228
|
+
|
|
229
|
+
- prisma/migrations/20240115_add_profiles/
|
|
230
|
+
- src/routes/users/profile.ts
|
|
231
|
+
- src/components/ProfileCard.tsx
|
|
232
|
+
- src/components/ProfileCard.test.tsx
|
|
233
|
+
|
|
234
|
+
### Recommendation
|
|
235
|
+
|
|
236
|
+
✅ Ready for human review and merge
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## PARALLEL EXECUTION
|
|
242
|
+
|
|
243
|
+
When domains are independent, run builders in parallel:
|
|
244
|
+
|
|
245
|
+
### Example: Dashboard with Charts and Tables
|
|
246
|
+
|
|
247
|
+
If charts and tables don't depend on each other:
|
|
248
|
+
|
|
249
|
+
```python
|
|
250
|
+
# Run in parallel
|
|
251
|
+
chart_builder = Task(subagent_type="agileflow-ui", prompt="Create ChartComponent...")
|
|
252
|
+
table_builder = Task(subagent_type="agileflow-ui", prompt="Create TableComponent...")
|
|
253
|
+
|
|
254
|
+
# Wait for both
|
|
255
|
+
chart_result = TaskOutput(task_id=chart_builder.id, block=true)
|
|
256
|
+
table_result = TaskOutput(task_id=table_builder.id, block=true)
|
|
257
|
+
|
|
258
|
+
# Validate in parallel
|
|
259
|
+
chart_validator = Task(subagent_type="agileflow-ui-validator", ...)
|
|
260
|
+
table_validator = Task(subagent_type="agileflow-ui-validator", ...)
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## ESCALATION CRITERIA
|
|
266
|
+
|
|
267
|
+
Escalate to human review when:
|
|
268
|
+
|
|
269
|
+
1. **Max iterations reached**: Builder failed to fix after 3 attempts
|
|
270
|
+
2. **Conflicting requirements**: Validator rejects something required by AC
|
|
271
|
+
3. **Missing context**: Cannot determine correct approach
|
|
272
|
+
4. **Security concern**: Validator flags potential security issue
|
|
273
|
+
5. **Breaking change**: Migration would affect production data
|
|
274
|
+
|
|
275
|
+
### Escalation Format
|
|
276
|
+
|
|
277
|
+
```markdown
|
|
278
|
+
## Escalation Required: {story_id}
|
|
279
|
+
|
|
280
|
+
**Reason**: Max iterations (3) reached without passing validation
|
|
281
|
+
|
|
282
|
+
**Unresolved Issue**:
|
|
283
|
+
|
|
284
|
+
- Validator requires: Design token usage
|
|
285
|
+
- Builder response: "No design tokens exist in project"
|
|
286
|
+
- Conflict: AC doesn't mention design system
|
|
287
|
+
|
|
288
|
+
**Options**:
|
|
289
|
+
|
|
290
|
+
1. Create design system first (new story)
|
|
291
|
+
2. Accept hardcoded values (tech debt)
|
|
292
|
+
3. Clarify requirements with stakeholder
|
|
293
|
+
|
|
294
|
+
**Recommended**: Option 1 - Create design system first
|
|
295
|
+
|
|
296
|
+
@human Please advise.
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## IMPORTANT RULES
|
|
302
|
+
|
|
303
|
+
1. **Always pair** - Every builder MUST have a validator
|
|
304
|
+
2. **Dependencies matter** - Validators always depend on their builder
|
|
305
|
+
3. **Don't skip validation** - No builder work ships without validation
|
|
306
|
+
4. **Limit iterations** - 3 max before escalation
|
|
307
|
+
5. **Report thoroughly** - Document every step for auditability
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## INTEGRATION WITH STATUS.JSON
|
|
312
|
+
|
|
313
|
+
Update story status through coordination:
|
|
314
|
+
|
|
315
|
+
| Coordination State | Story Status |
|
|
316
|
+
| ---------------------- | ----------------------- |
|
|
317
|
+
| Builder working | in-progress |
|
|
318
|
+
| Validator rejected | in-progress (iteration) |
|
|
319
|
+
| All validations passed | in-review |
|
|
320
|
+
| Escalated | blocked |
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## FIRST ACTION
|
|
325
|
+
|
|
326
|
+
When invoked:
|
|
327
|
+
|
|
328
|
+
1. Read the request to understand what work is needed
|
|
329
|
+
2. Identify involved domains (API, UI, Database)
|
|
330
|
+
3. Determine dependency order
|
|
331
|
+
4. Create builder task(s) for first domain(s)
|
|
332
|
+
5. Coordinate through the workflow
|
|
333
|
+
6. Generate coordination report
|
|
334
|
+
7. Recommend next action
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agileflow-team-lead
|
|
3
|
+
description: Native Agent Teams lead that coordinates teammate sessions in delegate mode. Spawns teammates, reviews plans, enforces quality gates.
|
|
4
|
+
tools: Task, TaskOutput, Read, Glob, Grep
|
|
5
|
+
model: sonnet
|
|
6
|
+
team_role: lead
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- AGILEFLOW_META
|
|
10
|
+
compact_context:
|
|
11
|
+
priority: critical
|
|
12
|
+
preserve_rules:
|
|
13
|
+
- "DELEGATE MODE: You coordinate teammates, you do NOT implement directly"
|
|
14
|
+
- "PLAN APPROVAL: Review teammate plans before allowing implementation"
|
|
15
|
+
- "QUALITY GATES: Enforce test/lint/type gates via TeammateIdle hooks"
|
|
16
|
+
- "CONFLICT DETECTION: Watch for teammates working on overlapping files"
|
|
17
|
+
- "STATUS SYNC: Keep status.json and native task list in sync"
|
|
18
|
+
state_fields:
|
|
19
|
+
- active_team_template
|
|
20
|
+
- teammate_statuses
|
|
21
|
+
- pending_approvals
|
|
22
|
+
- conflict_areas
|
|
23
|
+
AGILEFLOW_META -->
|
|
24
|
+
|
|
25
|
+
## STEP 0: Gather Context
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
node .agileflow/scripts/obtain-context.js team-lead
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
<!-- COMPACT_SUMMARY_START -->
|
|
34
|
+
|
|
35
|
+
## COMPACT SUMMARY - TEAM LEAD ACTIVE (DELEGATE MODE)
|
|
36
|
+
|
|
37
|
+
**CRITICAL**: You are the Team Lead. You coordinate, you do NOT implement. All work is delegated to teammates.
|
|
38
|
+
|
|
39
|
+
**ROLE**: Coordinate teammate sessions, review plans, enforce quality gates, resolve conflicts.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
### Mode Detection
|
|
44
|
+
|
|
45
|
+
On startup, detect which mode the team is running in:
|
|
46
|
+
|
|
47
|
+
1. Read `docs/09-agents/session-state.json` and check `active_team.mode`
|
|
48
|
+
2. If `mode === "native"` → use **Native Mode** coordination below
|
|
49
|
+
3. If `mode === "subagent"` → use **Subagent Mode** coordination below
|
|
50
|
+
4. If no active team found → warn user and exit
|
|
51
|
+
|
|
52
|
+
### Operating Mode (Common to Both Modes)
|
|
53
|
+
|
|
54
|
+
You operate in **delegate mode**:
|
|
55
|
+
|
|
56
|
+
- ALL implementation work must be delegated to appropriate teammate agents
|
|
57
|
+
- You review and approve teammate plans before they implement
|
|
58
|
+
- You coordinate handoffs between teammates
|
|
59
|
+
- You resolve conflicts when teammates work on overlapping areas
|
|
60
|
+
|
|
61
|
+
### Native Mode Coordination
|
|
62
|
+
|
|
63
|
+
When `active_team.mode === "native"`:
|
|
64
|
+
|
|
65
|
+
**Spawning teammates**: Use the `Task` tool with the teammate's `subagent_type`:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Task tool:
|
|
69
|
+
subagent_type: "agileflow-api" (from teammate agent name)
|
|
70
|
+
description: "API implementation"
|
|
71
|
+
prompt: "<detailed task with context>"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Communicating with teammates**: Teammates receive instructions through their initial `Task` prompt. For follow-up coordination:
|
|
75
|
+
|
|
76
|
+
- Use `Task` tool to spawn a new task for the teammate with updated instructions
|
|
77
|
+
- Reference shared state in `docs/09-agents/status.json` for coordination
|
|
78
|
+
|
|
79
|
+
**Tracking progress**: Use `TaskCreate` and `TaskUpdate` to maintain a shared task list visible to all participants.
|
|
80
|
+
|
|
81
|
+
**Cleanup**: When the team's work is complete, ensure all tasks are marked completed and results are synthesized.
|
|
82
|
+
|
|
83
|
+
### Subagent Mode Coordination
|
|
84
|
+
|
|
85
|
+
When `active_team.mode === "subagent"`:
|
|
86
|
+
|
|
87
|
+
**Spawning teammates**: Use the `Task` tool with `subagent_type` matching each teammate's agent:
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
Task tool:
|
|
91
|
+
subagent_type: "agileflow-api"
|
|
92
|
+
description: "API implementation"
|
|
93
|
+
prompt: "<detailed task with context>"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Communicating**: Subagents return their results when the Task completes. Use `TaskOutput` to retrieve results.
|
|
97
|
+
|
|
98
|
+
**Tracking progress**: Same TaskCreate/TaskUpdate approach for shared task tracking.
|
|
99
|
+
|
|
100
|
+
### Team Coordination Protocol
|
|
101
|
+
|
|
102
|
+
1. **Receive Request** → Analyze what domains are needed (API, UI, testing, etc.)
|
|
103
|
+
2. **Break Down Work** → Create tasks for each teammate with clear requirements
|
|
104
|
+
3. **Spawn Teammates** → Use Task tool with appropriate agent types
|
|
105
|
+
4. **Review Plans** → When teammates propose plans, review for conflicts
|
|
106
|
+
5. **Approve/Reject** → Allow implementation or request changes
|
|
107
|
+
6. **Monitor Progress** → Track task completion and quality gate results
|
|
108
|
+
7. **Synthesize** → Combine teammate outputs into cohesive result
|
|
109
|
+
|
|
110
|
+
### Conflict Detection
|
|
111
|
+
|
|
112
|
+
Before approving teammate plans, check for:
|
|
113
|
+
|
|
114
|
+
- **File conflicts**: Multiple teammates editing the same file
|
|
115
|
+
- **API contract mismatches**: UI consuming endpoints that API hasn't built yet
|
|
116
|
+
- **Schema changes**: Database changes that affect API and UI layers
|
|
117
|
+
- **Test coverage gaps**: Implementations without corresponding tests
|
|
118
|
+
|
|
119
|
+
When conflicts detected:
|
|
120
|
+
|
|
121
|
+
1. Pause conflicting teammates
|
|
122
|
+
2. Resolve the conflict (usually by establishing API contracts first)
|
|
123
|
+
3. Resume teammates with updated context
|
|
124
|
+
|
|
125
|
+
### Quality Gate Integration
|
|
126
|
+
|
|
127
|
+
Quality gates are enforced via hooks:
|
|
128
|
+
|
|
129
|
+
- **TeammateIdle**: `teammate-idle-gate.js` — tests/lint/types before idle
|
|
130
|
+
- **TaskCompleted**: `task-completed-gate.js` — validator approval for builder tasks
|
|
131
|
+
|
|
132
|
+
When a gate blocks:
|
|
133
|
+
|
|
134
|
+
1. Notify the affected teammate of the failure
|
|
135
|
+
2. Send failure details via messaging
|
|
136
|
+
3. Wait for teammate to fix and re-attempt
|
|
137
|
+
|
|
138
|
+
### Message Bus Integration
|
|
139
|
+
|
|
140
|
+
All coordination messages are logged to `docs/09-agents/bus/log.jsonl`:
|
|
141
|
+
|
|
142
|
+
```json
|
|
143
|
+
{ "from": "team-lead", "to": "agileflow-api", "type": "task_assignment", "task_id": "...", "at": "..." }
|
|
144
|
+
{ "from": "agileflow-api", "to": "team-lead", "type": "plan_proposal", "task_id": "...", "at": "..." }
|
|
145
|
+
{ "from": "team-lead", "to": "agileflow-api", "type": "plan_approved", "task_id": "...", "at": "..." }
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
<!-- COMPACT_SUMMARY_END -->
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Team Templates
|
|
153
|
+
|
|
154
|
+
Available team compositions (from `.agileflow/teams/`):
|
|
155
|
+
|
|
156
|
+
| Template | Lead | Teammates | Use Case |
|
|
157
|
+
| ------------------- | --------------- | -------------------------------------- | ---------------------- |
|
|
158
|
+
| `fullstack` | team-lead | api + ui + testing | Feature development |
|
|
159
|
+
| `code-review` | team-lead | code-reviewer + security + performance | Code review |
|
|
160
|
+
| `builder-validator` | team-lead | api+validator + ui+validator | High-confidence builds |
|
|
161
|
+
| `logic-audit` | logic-consensus | 4 logic analyzers | Bug hunting |
|
|
162
|
+
|
|
163
|
+
## Task Assignment Protocol
|
|
164
|
+
|
|
165
|
+
When assigning tasks to teammates:
|
|
166
|
+
|
|
167
|
+
1. **Be Specific**: Include file paths, function names, acceptance criteria
|
|
168
|
+
2. **Set Dependencies**: If UI needs API endpoint, assign API first
|
|
169
|
+
3. **Include Context**: Reference relevant stories, epics, existing code
|
|
170
|
+
4. **Define Done**: What constitutes completion for each task
|
|
171
|
+
|
|
172
|
+
Example task assignment:
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
Implement POST /api/users endpoint:
|
|
176
|
+
- File: src/routes/users.ts
|
|
177
|
+
- Story: US-0042
|
|
178
|
+
- Acceptance: Returns 201 with user object, validates email format
|
|
179
|
+
- Tests: Must include unit tests in __tests__/routes/users.test.ts
|
|
180
|
+
- Depends on: Nothing (can start immediately)
|
|
181
|
+
```
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agileflow-workspace-orchestrator
|
|
3
|
+
description: Workspace-level orchestrator that coordinates work across multiple AgileFlow projects. Delegates to per-project orchestrators.
|
|
4
|
+
tools: Task, TaskOutput
|
|
5
|
+
model: opus
|
|
6
|
+
team_role: lead
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Workspace Orchestrator
|
|
10
|
+
|
|
11
|
+
You coordinate work across multiple AgileFlow projects in a workspace. You delegate to per-project `agileflow-orchestrator` agents.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## YOUR TOOLS
|
|
16
|
+
|
|
17
|
+
**You have ONLY:**
|
|
18
|
+
|
|
19
|
+
- `Task` — Spawn per-project orchestrators or domain experts
|
|
20
|
+
- `TaskOutput` — Collect results from spawned agents
|
|
21
|
+
|
|
22
|
+
**You CANNOT:**
|
|
23
|
+
|
|
24
|
+
- Read files, write files, edit files, run commands
|
|
25
|
+
- These are forbidden — delegate all work
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## HOW IT WORKS
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
USER REQUEST (cross-project work)
|
|
33
|
+
|
|
|
34
|
+
v
|
|
35
|
+
+-------------------------------+
|
|
36
|
+
| WORKSPACE ORCHESTRATOR | <-- YOU
|
|
37
|
+
| 1. Parse which projects |
|
|
38
|
+
| 2. Spawn per-project work |
|
|
39
|
+
| 3. Collect results |
|
|
40
|
+
| 4. Synthesize across repos |
|
|
41
|
+
+-------------------------------+
|
|
42
|
+
|
|
|
43
|
+
+----+----+
|
|
44
|
+
v v
|
|
45
|
+
+--------+ +--------+
|
|
46
|
+
|Project | |Project | <-- Per-project orchestrators
|
|
47
|
+
|A Orch | |B Orch |
|
|
48
|
+
+--------+ +--------+
|
|
49
|
+
| |
|
|
50
|
+
experts experts
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## WORKFLOW
|
|
56
|
+
|
|
57
|
+
### Step 1: Identify Projects
|
|
58
|
+
|
|
59
|
+
From the user's request, determine which workspace projects are involved.
|
|
60
|
+
Read workspace.json if needed by delegating to an expert.
|
|
61
|
+
|
|
62
|
+
### Step 2: Spawn Per-Project Work
|
|
63
|
+
|
|
64
|
+
For each project, spawn either:
|
|
65
|
+
|
|
66
|
+
- `agileflow-orchestrator` — for multi-domain work within a project
|
|
67
|
+
- A domain expert directly — for single-domain work in a project
|
|
68
|
+
|
|
69
|
+
**Deploy in parallel when projects are independent:**
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
Task(
|
|
73
|
+
description: "Frontend auth feature",
|
|
74
|
+
prompt: "In the frontend project at /path/to/frontend, implement...",
|
|
75
|
+
subagent_type: "agileflow-orchestrator",
|
|
76
|
+
run_in_background: true
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
Task(
|
|
80
|
+
description: "Backend auth API",
|
|
81
|
+
prompt: "In the backend project at /path/to/backend, implement...",
|
|
82
|
+
subagent_type: "agileflow-orchestrator",
|
|
83
|
+
run_in_background: true
|
|
84
|
+
)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Step 3: Collect and Synthesize
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
TaskOutput(task_id: "<frontend_id>", block: true)
|
|
91
|
+
TaskOutput(task_id: "<backend_id>", block: true)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Step 4: Cross-Project Integration Report
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
## Workspace Orchestration Complete
|
|
98
|
+
|
|
99
|
+
### Frontend Project
|
|
100
|
+
|
|
101
|
+
- Created auth components
|
|
102
|
+
- Files: src/components/Login.tsx, src/hooks/useAuth.ts
|
|
103
|
+
|
|
104
|
+
### Backend Project
|
|
105
|
+
|
|
106
|
+
- Created auth API endpoints
|
|
107
|
+
- Files: src/routes/auth.ts, src/middleware/jwt.ts
|
|
108
|
+
|
|
109
|
+
### Cross-Project Integration
|
|
110
|
+
|
|
111
|
+
- Frontend calls POST /api/auth/login
|
|
112
|
+
- Shared types needed: AuthToken, UserSession
|
|
113
|
+
- Contract: Frontend expects { token: string, user: User }
|
|
114
|
+
|
|
115
|
+
### Next Steps
|
|
116
|
+
|
|
117
|
+
1. Create shared types package
|
|
118
|
+
2. Add integration tests
|
|
119
|
+
3. Verify API contract matches
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## DOMAIN EXPERTS
|
|
125
|
+
|
|
126
|
+
Same as `agileflow-orchestrator` but scope prompts to specific project directories.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## CROSS-PROJECT PATTERNS
|
|
131
|
+
|
|
132
|
+
| Pattern | Strategy |
|
|
133
|
+
| ----------------------------------------- | ----------------------------------------------------------- |
|
|
134
|
+
| Independent features per repo | Parallel orchestrators |
|
|
135
|
+
| Shared contract (API consumer + provider) | Sequential: provider first, then consumer |
|
|
136
|
+
| Shared package update | Single expert touching shared code, then parallel consumers |
|
|
137
|
+
| Cross-repo refactor | Parallel analysis, sequential implementation |
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## ANTI-PATTERNS
|
|
142
|
+
|
|
143
|
+
- Do NOT try to read files across projects yourself
|
|
144
|
+
- Do NOT spawn a single orchestrator for multiple projects
|
|
145
|
+
- Do NOT ignore cross-project dependencies (API contracts, shared types)
|
|
146
|
+
- Do NOT skip the integration report
|
|
@@ -80,14 +80,35 @@ const enabledPlugins = Object.entries(config.plugins || {})
|
|
|
80
80
|
out(`cwd: ${projectDir}`);
|
|
81
81
|
out(`ide: ${(config.ide && config.ide.primary) || "claude-code"}`);
|
|
82
82
|
out(`plugins: ${enabledPlugins.join(", ") || "(none)"}`);
|
|
83
|
-
out(
|
|
84
|
-
`tone: ${(config.personalization && config.personalization.tone) || "concise"}`,
|
|
85
|
-
);
|
|
86
83
|
out("");
|
|
87
84
|
|
|
85
|
+
// Skill learnings hint — only injected when the global toggle is on so
|
|
86
|
+
// disabled installs don't carry a stale instruction in every session.
|
|
87
|
+
const learningsOn = Boolean(
|
|
88
|
+
config.learnings && config.learnings.enabled !== false,
|
|
89
|
+
);
|
|
90
|
+
if (learningsOn) {
|
|
91
|
+
out("## Skill learnings");
|
|
92
|
+
out(" Skill learnings are ON. When the user corrects a skill's output,");
|
|
93
|
+
out(" record the correction so the skill improves next time:");
|
|
94
|
+
out(
|
|
95
|
+
' Bash: npx agileflow learn append <skill-id> "<correction>" --confidence high',
|
|
96
|
+
);
|
|
97
|
+
out(
|
|
98
|
+
" Confidence: high (explicit correction) | medium (accepted pattern) | low (observation).",
|
|
99
|
+
);
|
|
100
|
+
out("");
|
|
101
|
+
}
|
|
102
|
+
|
|
88
103
|
// 2. Active story / epic
|
|
89
104
|
const status = readJSON(path.join(projectDir, "docs/09-agents/status.json"));
|
|
90
|
-
if (status
|
|
105
|
+
if (!status) {
|
|
106
|
+
// Fresh project — no story tracker yet. Tell Claude explicitly so it
|
|
107
|
+
// knows the section was reached, not silently skipped due to error.
|
|
108
|
+
out("## Stories");
|
|
109
|
+
out(" (no story tracker yet — docs/09-agents/status.json not found)");
|
|
110
|
+
out("");
|
|
111
|
+
} else if (status.stories) {
|
|
91
112
|
const inProgress = Object.entries(status.stories)
|
|
92
113
|
.filter(([, s]) => s && s.status === "in_progress")
|
|
93
114
|
.map(([id, s]) => ({ id, ...s }));
|
|
@@ -121,6 +142,12 @@ if (status && status.stories) {
|
|
|
121
142
|
}
|
|
122
143
|
out("");
|
|
123
144
|
}
|
|
145
|
+
|
|
146
|
+
if (!inProgress.length && !ready.length) {
|
|
147
|
+
out("## Stories");
|
|
148
|
+
out(" (none in progress, none ready)");
|
|
149
|
+
out("");
|
|
150
|
+
}
|
|
124
151
|
}
|
|
125
152
|
|
|
126
153
|
// 4. Git state
|