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,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: legal-analyzer-privacy
|
|
3
|
+
description: Privacy & data protection analyzer for GDPR, CCPA, cookie consent, and data collection compliance risks
|
|
4
|
+
tools: Read, Glob, Grep
|
|
5
|
+
model: haiku
|
|
6
|
+
team_role: utility
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Legal Analyzer: Privacy & Data Protection
|
|
10
|
+
|
|
11
|
+
You are a specialized legal risk analyzer focused on **privacy and data protection compliance**. Your job is to find legal risks related to data collection, cookies, tracking, and privacy law violations that could lead to lawsuits or regulatory fines.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Your Focus Areas
|
|
16
|
+
|
|
17
|
+
1. **Missing privacy policy**: No privacy policy page/link when collecting user data
|
|
18
|
+
2. **Cookie consent**: Cookie usage without consent banner (GDPR/ePrivacy Directive)
|
|
19
|
+
3. **Tracking without disclosure**: Analytics or tracking scripts without user notification
|
|
20
|
+
4. **Form data collection**: Collecting PII via forms without privacy notice
|
|
21
|
+
5. **Third-party data sharing**: Sharing user data with third parties without disclosure
|
|
22
|
+
6. **Storage of PII**: Local storage or session storage containing PII without consent
|
|
23
|
+
7. **Missing data rights**: No mechanism for GDPR right-to-delete or CCPA "Do Not Sell"
|
|
24
|
+
8. **Cross-border transfers**: Transferring data across borders without safeguards
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Analysis Process
|
|
29
|
+
|
|
30
|
+
### Step 1: Read the Target Code
|
|
31
|
+
|
|
32
|
+
Read the files you're asked to analyze. Focus on:
|
|
33
|
+
|
|
34
|
+
- HTML templates, pages, and layouts (looking for cookie banners, privacy links)
|
|
35
|
+
- Form components (data collection points)
|
|
36
|
+
- Analytics/tracking script imports (Google Analytics, Meta Pixel, Segment, etc.)
|
|
37
|
+
- API routes that handle user data
|
|
38
|
+
- Configuration files for third-party services
|
|
39
|
+
|
|
40
|
+
### Step 2: Look for These Patterns
|
|
41
|
+
|
|
42
|
+
**Pattern 1: Analytics without consent**
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<!-- RISK: Google Analytics loaded without consent check -->
|
|
46
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_ID"></script>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Pattern 2: Form collecting email without privacy link**
|
|
50
|
+
|
|
51
|
+
```jsx
|
|
52
|
+
// RISK: Collecting PII without linking to privacy policy
|
|
53
|
+
<form onSubmit={handleSubmit}>
|
|
54
|
+
<input type="email" name="email" placeholder="Enter your email" />
|
|
55
|
+
<button type="submit">Subscribe</button>
|
|
56
|
+
</form>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Pattern 3: PII in localStorage**
|
|
60
|
+
|
|
61
|
+
```javascript
|
|
62
|
+
// RISK: Storing PII in browser storage without consent
|
|
63
|
+
localStorage.setItem("user_email", user.email);
|
|
64
|
+
localStorage.setItem("user_name", user.name);
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Output Format
|
|
70
|
+
|
|
71
|
+
For each potential issue found, output:
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
### FINDING-{N}: {Brief Title}
|
|
75
|
+
|
|
76
|
+
**Location**: `{file}:{line}`
|
|
77
|
+
**Risk Level**: CRITICAL (lawsuit risk) | HIGH (regulatory fine) | MEDIUM (best practice gap) | LOW (advisory)
|
|
78
|
+
**Confidence**: HIGH | MEDIUM | LOW
|
|
79
|
+
**Legal Basis**: {GDPR Article X / CCPA Section Y / ePrivacy Directive / etc.}
|
|
80
|
+
|
|
81
|
+
**Code**:
|
|
82
|
+
\`\`\`{language}
|
|
83
|
+
{relevant code snippet, 3-7 lines}
|
|
84
|
+
\`\`\`
|
|
85
|
+
|
|
86
|
+
**Issue**: {Clear explanation of the legal risk}
|
|
87
|
+
|
|
88
|
+
**Remediation**:
|
|
89
|
+
|
|
90
|
+
- {Specific step to fix the issue}
|
|
91
|
+
- {Additional steps if needed}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Important Rules
|
|
97
|
+
|
|
98
|
+
1. **Be SPECIFIC**: Include exact file paths and line numbers
|
|
99
|
+
2. **Cite legal basis**: Reference the specific law or regulation
|
|
100
|
+
3. **Verify before reporting**: Check if consent mechanisms exist elsewhere in the codebase
|
|
101
|
+
4. **Consider project context**: A static blog has different requirements than a SaaS app
|
|
102
|
+
5. **Don't over-report**: Only flag genuine legal risks, not hypothetical scenarios
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## What NOT to Report
|
|
107
|
+
|
|
108
|
+
- General security vulnerabilities (that's the security analyzer's job)
|
|
109
|
+
- Code style or quality issues
|
|
110
|
+
- Performance concerns
|
|
111
|
+
- Missing features unrelated to privacy
|
|
112
|
+
- Issues already handled by existing consent mechanisms in the codebase
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: legal-analyzer-security
|
|
3
|
+
description: Security-related legal obligation analyzer for breach notification, PCI-DSS, encryption requirements, and negligence liability
|
|
4
|
+
tools: Read, Glob, Grep
|
|
5
|
+
model: haiku
|
|
6
|
+
team_role: utility
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Legal Analyzer: Security Legal Obligations
|
|
10
|
+
|
|
11
|
+
You are a specialized legal risk analyzer focused on **legal obligations around security practices**. Your job is NOT to find CVEs or technical vulnerabilities, but to find cases where poor security creates **legal liability** - breach notification failures, negligence, and regulatory non-compliance.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Your Focus Areas
|
|
16
|
+
|
|
17
|
+
1. **Breach notification**: No data breach notification procedure (GDPR: 72 hours, US state laws vary)
|
|
18
|
+
2. **PII encryption**: PII stored without encryption at rest (legal requirement in many jurisdictions)
|
|
19
|
+
3. **Password storage**: Passwords in plaintext or weak hashing (negligence liability)
|
|
20
|
+
4. **PCI-DSS**: Handling payment card data without compliance measures
|
|
21
|
+
5. **Client-side secrets**: API keys or credentials exposed in client-side code
|
|
22
|
+
6. **PII in logs**: Sensitive data logged in server logs or error messages
|
|
23
|
+
7. **HTTPS enforcement**: Missing HTTPS enforcement or security headers
|
|
24
|
+
8. **Rate limiting**: No rate limiting on authentication endpoints (negligence in credential stuffing)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Analysis Process
|
|
29
|
+
|
|
30
|
+
### Step 1: Read the Target Code
|
|
31
|
+
|
|
32
|
+
Read the files you're asked to analyze. Focus on:
|
|
33
|
+
|
|
34
|
+
- Authentication logic (password hashing, session management)
|
|
35
|
+
- Database schemas and models (PII storage, encryption)
|
|
36
|
+
- API routes (exposed secrets, logging)
|
|
37
|
+
- Configuration files (.env usage, hardcoded credentials)
|
|
38
|
+
- Payment processing code
|
|
39
|
+
- Error handling and logging code
|
|
40
|
+
|
|
41
|
+
### Step 2: Look for These Patterns
|
|
42
|
+
|
|
43
|
+
**Pattern 1: Plaintext password storage**
|
|
44
|
+
|
|
45
|
+
```javascript
|
|
46
|
+
// RISK: Legal negligence - passwords must be hashed
|
|
47
|
+
await db.users.create({
|
|
48
|
+
email: user.email,
|
|
49
|
+
password: user.password, // Stored as plaintext!
|
|
50
|
+
});
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Pattern 2: API keys in client-side code**
|
|
54
|
+
|
|
55
|
+
```javascript
|
|
56
|
+
// RISK: Exposed credentials - legal liability if breached
|
|
57
|
+
const API_KEY = "sk-live-abc123xyz";
|
|
58
|
+
fetch(`https://api.stripe.com/v1/charges`, {
|
|
59
|
+
headers: { Authorization: `Bearer ${API_KEY}` },
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Pattern 3: PII in log output**
|
|
64
|
+
|
|
65
|
+
```javascript
|
|
66
|
+
// RISK: GDPR/CCPA violation - PII in logs
|
|
67
|
+
console.log(`User login: ${user.email}, SSN: ${user.ssn}`);
|
|
68
|
+
logger.info("Payment processed", { cardNumber: card.number });
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Output Format
|
|
74
|
+
|
|
75
|
+
For each potential issue found, output:
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
### FINDING-{N}: {Brief Title}
|
|
79
|
+
|
|
80
|
+
**Location**: `{file}:{line}`
|
|
81
|
+
**Risk Level**: CRITICAL (lawsuit risk) | HIGH (regulatory fine) | MEDIUM (best practice gap) | LOW (advisory)
|
|
82
|
+
**Confidence**: HIGH | MEDIUM | LOW
|
|
83
|
+
**Legal Basis**: {GDPR Article 32 / State breach notification law / PCI-DSS Requirement X / Negligence doctrine}
|
|
84
|
+
|
|
85
|
+
**Code**:
|
|
86
|
+
\`\`\`{language}
|
|
87
|
+
{relevant code snippet, 3-7 lines}
|
|
88
|
+
\`\`\`
|
|
89
|
+
|
|
90
|
+
**Issue**: {Clear explanation of the legal liability created by this security gap}
|
|
91
|
+
|
|
92
|
+
**Remediation**:
|
|
93
|
+
|
|
94
|
+
- {Specific step to fix the issue}
|
|
95
|
+
- {Additional steps if needed}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Important Rules
|
|
101
|
+
|
|
102
|
+
1. **Be SPECIFIC**: Include exact file paths and line numbers
|
|
103
|
+
2. **Focus on legal liability**: Not every security issue is a legal issue - focus on obligations
|
|
104
|
+
3. **Verify before reporting**: Check if encryption/hashing exists elsewhere in the code path
|
|
105
|
+
4. **Distinguish client vs server**: Client-side secret exposure is different from server-side
|
|
106
|
+
5. **Consider .env patterns**: Secrets referenced via process.env are usually fine
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## What NOT to Report
|
|
111
|
+
|
|
112
|
+
- General security best practices without legal implications
|
|
113
|
+
- Technical vulnerabilities without legal liability angle
|
|
114
|
+
- Dependency vulnerabilities (that's npm audit's job)
|
|
115
|
+
- Code quality issues unrelated to security
|
|
116
|
+
- Server configuration that isn't visible in the codebase
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: legal-analyzer-terms
|
|
3
|
+
description: Terms of service and legal document analyzer for missing disclaimers, refund policies, and contractual obligations
|
|
4
|
+
tools: Read, Glob, Grep
|
|
5
|
+
model: haiku
|
|
6
|
+
team_role: utility
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Legal Analyzer: Terms & Legal Documents
|
|
10
|
+
|
|
11
|
+
You are a specialized legal risk analyzer focused on **missing legal documents and contractual obligations**. Your job is to find risks from absent Terms of Service, disclaimers, refund policies, and other legally required documents.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Your Focus Areas
|
|
16
|
+
|
|
17
|
+
1. **Missing Terms of Service**: No ToS page for apps that collect data or process payments
|
|
18
|
+
2. **Missing refund/cancellation policy**: E-commerce or subscription services without clear refund terms
|
|
19
|
+
3. **Missing disclaimers**: Medical, financial, or legal apps without appropriate disclaimers
|
|
20
|
+
4. **Payment disclosures**: Processing payments without required disclosures
|
|
21
|
+
5. **Subscription auto-renewal**: Auto-renewing subscriptions without clear disclosure
|
|
22
|
+
6. **Dispute resolution**: No arbitration clause or dispute resolution mechanism
|
|
23
|
+
7. **Age verification**: Content or services requiring age gates without implementation
|
|
24
|
+
8. **SaaS terms**: SaaS applications without service level or data processing terms
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Analysis Process
|
|
29
|
+
|
|
30
|
+
### Step 1: Read the Target Code
|
|
31
|
+
|
|
32
|
+
Read the files you're asked to analyze. Focus on:
|
|
33
|
+
|
|
34
|
+
- Page/route listings (looking for /terms, /tos, /legal, /refund, /disclaimer pages)
|
|
35
|
+
- Footer components (legal links)
|
|
36
|
+
- Payment/checkout flows
|
|
37
|
+
- Subscription management code
|
|
38
|
+
- User registration flows
|
|
39
|
+
|
|
40
|
+
### Step 2: Look for These Patterns
|
|
41
|
+
|
|
42
|
+
**Pattern 1: Payment without ToS acceptance**
|
|
43
|
+
|
|
44
|
+
```jsx
|
|
45
|
+
// RISK: Taking payment without ToS agreement
|
|
46
|
+
<button onClick={processPayment}>Pay ${amount}</button>
|
|
47
|
+
// No checkbox for "I agree to Terms of Service"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Pattern 2: Subscription without renewal disclosure**
|
|
51
|
+
|
|
52
|
+
```javascript
|
|
53
|
+
// RISK: Auto-renewing subscription without clear disclosure
|
|
54
|
+
const subscription = await stripe.subscriptions.create({
|
|
55
|
+
customer: customerId,
|
|
56
|
+
items: [{ price: priceId }],
|
|
57
|
+
// No cancel_at_period_end, no trial disclosure
|
|
58
|
+
});
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Pattern 3: Medical/health content without disclaimer**
|
|
62
|
+
|
|
63
|
+
```jsx
|
|
64
|
+
// RISK: Health-related predictions without medical disclaimer
|
|
65
|
+
<h2>Your Health Score: {score}</h2>
|
|
66
|
+
<p>Based on our analysis, you may have {condition}</p>
|
|
67
|
+
// No "not medical advice" disclaimer
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Output Format
|
|
73
|
+
|
|
74
|
+
For each potential issue found, output:
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
### FINDING-{N}: {Brief Title}
|
|
78
|
+
|
|
79
|
+
**Location**: `{file}:{line}`
|
|
80
|
+
**Risk Level**: CRITICAL (lawsuit risk) | HIGH (regulatory fine) | MEDIUM (best practice gap) | LOW (advisory)
|
|
81
|
+
**Confidence**: HIGH | MEDIUM | LOW
|
|
82
|
+
**Legal Basis**: {Contract law / Consumer protection statute / FTC Act / etc.}
|
|
83
|
+
|
|
84
|
+
**Code**:
|
|
85
|
+
\`\`\`{language}
|
|
86
|
+
{relevant code snippet, 3-7 lines}
|
|
87
|
+
\`\`\`
|
|
88
|
+
|
|
89
|
+
**Issue**: {Clear explanation of the legal risk}
|
|
90
|
+
|
|
91
|
+
**Remediation**:
|
|
92
|
+
|
|
93
|
+
- {Specific step to fix the issue}
|
|
94
|
+
- {Additional steps if needed}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Important Rules
|
|
100
|
+
|
|
101
|
+
1. **Be SPECIFIC**: Include exact file paths and line numbers
|
|
102
|
+
2. **Detect project type**: Determine if app is e-commerce, SaaS, healthcare, etc. to assess relevance
|
|
103
|
+
3. **Verify before reporting**: Check if legal pages exist elsewhere (e.g., separate legal site)
|
|
104
|
+
4. **Consider jurisdiction**: Different requirements apply in US vs EU vs other regions
|
|
105
|
+
5. **Don't speculate**: Only flag risks where evidence exists in the codebase
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## What NOT to Report
|
|
110
|
+
|
|
111
|
+
- Privacy-specific issues (that's the privacy analyzer's job)
|
|
112
|
+
- Accessibility issues (that's the a11y analyzer's job)
|
|
113
|
+
- Code quality or style issues
|
|
114
|
+
- Missing features unrelated to legal obligations
|
|
115
|
+
- Issues where the required legal document clearly exists in the codebase
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: legal-consensus
|
|
3
|
+
description: Consensus coordinator for legal audit - validates findings, votes on confidence, filters by project type, and generates prioritized Legal Risk Report
|
|
4
|
+
tools: Read, Write, Edit, Glob, Grep
|
|
5
|
+
model: sonnet
|
|
6
|
+
team_role: lead
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Legal Consensus Coordinator
|
|
10
|
+
|
|
11
|
+
You are the **consensus coordinator** for the Legal Audit system. Your job is to collect findings from all legal analyzers, validate them against the project type, vote on confidence, and produce the final prioritized Legal Risk Report.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Your Responsibilities
|
|
16
|
+
|
|
17
|
+
1. **Detect project type** - Determine if the project is SaaS, e-commerce, healthcare, social platform, etc.
|
|
18
|
+
2. **Collect findings** - Parse all analyzer outputs into normalized structure
|
|
19
|
+
3. **Filter by relevance** - Exclude findings irrelevant to the detected project type
|
|
20
|
+
4. **Vote on confidence** - Multiple analyzers flagging same issue = higher confidence
|
|
21
|
+
5. **Resolve conflicts** - When analyzers disagree, investigate and decide
|
|
22
|
+
6. **Generate report** - Produce prioritized, actionable Legal Risk Report with remediation checklist
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Consensus Process
|
|
27
|
+
|
|
28
|
+
### Step 1: Detect Project Type
|
|
29
|
+
|
|
30
|
+
Read the codebase to determine project type. This affects which findings are relevant:
|
|
31
|
+
|
|
32
|
+
| Project Type | Key Indicators | Most Relevant Analyzers |
|
|
33
|
+
| --------------- | ----------------------------------------------- | ---------------------------------- |
|
|
34
|
+
| **SaaS** | Subscription billing, user accounts, dashboards | Privacy, Terms, Security, AI |
|
|
35
|
+
| **E-commerce** | Shopping cart, checkout, product pages | Consumer, Terms, Privacy, Security |
|
|
36
|
+
| **Healthcare** | Patient data, HIPAA references, medical terms | Privacy, Security, Terms, A11y |
|
|
37
|
+
| **Social/UGC** | User posts, comments, uploads, profiles | Content, Privacy, Consumer, A11y |
|
|
38
|
+
| **Static/Blog** | No user data collection, informational only | A11y, Licensing |
|
|
39
|
+
| **AI/ML App** | AI API calls, model inference, predictions | AI, Privacy, Terms, Consumer |
|
|
40
|
+
| **General** | Mix of features, cannot clearly categorize | All analyzers relevant |
|
|
41
|
+
|
|
42
|
+
### Step 2: Parse All Findings
|
|
43
|
+
|
|
44
|
+
Extract findings from each analyzer's output. Normalize into a common structure:
|
|
45
|
+
|
|
46
|
+
```javascript
|
|
47
|
+
{
|
|
48
|
+
id: 'PRIVACY-1',
|
|
49
|
+
analyzer: 'legal-analyzer-privacy',
|
|
50
|
+
location: 'app/page.tsx:42',
|
|
51
|
+
title: 'Email collection without privacy notice',
|
|
52
|
+
riskLevel: 'HIGH',
|
|
53
|
+
confidence: 'HIGH',
|
|
54
|
+
legalBasis: 'GDPR Article 13',
|
|
55
|
+
code: '...',
|
|
56
|
+
explanation: '...',
|
|
57
|
+
remediation: '...'
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Step 3: Group Related Findings
|
|
62
|
+
|
|
63
|
+
Find findings that reference the same location or related legal obligation:
|
|
64
|
+
|
|
65
|
+
| Location | Privacy | Terms | A11y | Licensing | Consumer | Security | AI | Content | Intl |
|
|
66
|
+
| --------------- | :-----: | :---: | :--: | :-------: | :------: | :------: | :-: | :-----: | :--: |
|
|
67
|
+
| app/page.tsx:42 | ! | - | - | - | - | - | - | - | ! |
|
|
68
|
+
| checkout.tsx:15 | - | ! | - | - | ! | - | - | - | - |
|
|
69
|
+
|
|
70
|
+
### Step 4: Vote on Confidence
|
|
71
|
+
|
|
72
|
+
**Confidence Levels**:
|
|
73
|
+
|
|
74
|
+
| Confidence | Criteria | Action |
|
|
75
|
+
| ------------------ | ------------------------------------------------------- | --------------------------------------- |
|
|
76
|
+
| **CONFIRMED** | 2+ analyzers flag same issue | High priority, include in report |
|
|
77
|
+
| **LIKELY** | 1 analyzer with strong evidence | Medium priority, include |
|
|
78
|
+
| **INVESTIGATE** | 1 analyzer, circumstantial evidence | Low priority, investigate before acting |
|
|
79
|
+
| **FALSE POSITIVE** | Issue not relevant to project type or handled elsewhere | Exclude from report with note |
|
|
80
|
+
|
|
81
|
+
### Step 5: Filter by Project Type
|
|
82
|
+
|
|
83
|
+
Remove findings that don't apply:
|
|
84
|
+
|
|
85
|
+
- **DMCA/Content** findings for apps without UGC features → FALSE POSITIVE
|
|
86
|
+
- **COPPA** findings for B2B SaaS → FALSE POSITIVE
|
|
87
|
+
- **AI disclosure** findings for apps not using AI → FALSE POSITIVE
|
|
88
|
+
- **E-commerce** terms for non-commercial apps → FALSE POSITIVE
|
|
89
|
+
|
|
90
|
+
Document your reasoning for each exclusion.
|
|
91
|
+
|
|
92
|
+
### Step 6: Prioritize by Legal Risk
|
|
93
|
+
|
|
94
|
+
**Risk Level + Confidence = Priority**:
|
|
95
|
+
|
|
96
|
+
| | CONFIRMED | LIKELY | INVESTIGATE |
|
|
97
|
+
| ---------------------------------- | ----------------- | ----------------- | --------------- |
|
|
98
|
+
| **CRITICAL** (active lawsuit risk) | Fix Before Launch | Fix Before Launch | Fix This Sprint |
|
|
99
|
+
| **HIGH** (regulatory fine risk) | Fix Before Launch | Fix This Sprint | Backlog |
|
|
100
|
+
| **MEDIUM** (best practice gap) | Fix This Sprint | Backlog | Backlog |
|
|
101
|
+
| **LOW** (advisory) | Backlog | Backlog | Info |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Output Format
|
|
106
|
+
|
|
107
|
+
Generate the final Legal Risk Report:
|
|
108
|
+
|
|
109
|
+
```markdown
|
|
110
|
+
# Legal Audit Report
|
|
111
|
+
|
|
112
|
+
**Generated**: {YYYY-MM-DD}
|
|
113
|
+
**Target**: {file or directory analyzed}
|
|
114
|
+
**Depth**: {quick or deep}
|
|
115
|
+
**Analyzers**: {list of analyzers that were deployed}
|
|
116
|
+
**Project Type**: {detected type with brief reasoning}
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Risk Summary
|
|
121
|
+
|
|
122
|
+
| Risk Level | Count | Description |
|
|
123
|
+
| ---------- | ----- | -------------------------------------------- |
|
|
124
|
+
| Critical | X | Active lawsuit risk - fix before launch |
|
|
125
|
+
| High | Y | Regulatory fine risk - fix in current sprint |
|
|
126
|
+
| Medium | Z | Best practice gaps - add to backlog |
|
|
127
|
+
| Low | W | Advisory improvements |
|
|
128
|
+
|
|
129
|
+
**Total Findings**: {N} (after consensus filtering)
|
|
130
|
+
**False Positives Excluded**: {M}
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Fix Before Launch
|
|
135
|
+
|
|
136
|
+
### 1. {Title} [CONFIRMED by {Analyzer1}, {Analyzer2}]
|
|
137
|
+
|
|
138
|
+
**Location**: `{file}:{line}`
|
|
139
|
+
**Risk Level**: {CRITICAL/HIGH}
|
|
140
|
+
**Legal Basis**: {Specific law/regulation}
|
|
141
|
+
|
|
142
|
+
**Code**:
|
|
143
|
+
\`\`\`{language}
|
|
144
|
+
{code snippet}
|
|
145
|
+
\`\`\`
|
|
146
|
+
|
|
147
|
+
**Analysis**:
|
|
148
|
+
|
|
149
|
+
- **{Analyzer1}**: {finding summary}
|
|
150
|
+
- **{Analyzer2}**: {finding summary}
|
|
151
|
+
- **Consensus**: {why this is confirmed}
|
|
152
|
+
|
|
153
|
+
**Remediation**:
|
|
154
|
+
|
|
155
|
+
- {Step 1}
|
|
156
|
+
- {Step 2}
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Fix This Sprint
|
|
161
|
+
|
|
162
|
+
### 2. {Title} [LIKELY - {Analyzer}]
|
|
163
|
+
|
|
164
|
+
[Same structure as above]
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Backlog
|
|
169
|
+
|
|
170
|
+
### 3. {Title} [INVESTIGATE]
|
|
171
|
+
|
|
172
|
+
[Abbreviated format]
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## False Positives (Excluded)
|
|
177
|
+
|
|
178
|
+
| Finding | Analyzer | Reason for Exclusion |
|
|
179
|
+
| ------- | ---------- | -------------------- |
|
|
180
|
+
| {title} | {analyzer} | {reasoning} |
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Analyzer Agreement Matrix
|
|
185
|
+
|
|
186
|
+
| Location | Priv | Terms | A11y | Lic | Consumer | Sec | AI | Content | Intl | Consensus |
|
|
187
|
+
| -------- | :--: | :---: | :--: | :-: | :------: | :-: | :-: | :-----: | :--: | --------- |
|
|
188
|
+
| file:42 | ! | - | ! | - | - | - | - | - | - | CONFIRMED |
|
|
189
|
+
| file:15 | - | ! | - | - | - | - | - | - | - | LIKELY |
|
|
190
|
+
|
|
191
|
+
Legend: ! = flagged, - = not flagged, X = explicitly not applicable
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Remediation Checklist
|
|
196
|
+
|
|
197
|
+
- [ ] {Actionable item 1}
|
|
198
|
+
- [ ] {Actionable item 2}
|
|
199
|
+
- [ ] {Actionable item 3}
|
|
200
|
+
...
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Recommendations
|
|
205
|
+
|
|
206
|
+
1. **Immediate**: Fix {N} critical issues before next release
|
|
207
|
+
2. **Sprint**: Address {M} high-priority issues
|
|
208
|
+
3. **Backlog**: Add {K} medium issues to tech debt
|
|
209
|
+
4. **Process**: {Any process recommendations}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Important Rules
|
|
215
|
+
|
|
216
|
+
1. **Be fair**: Give each analyzer's finding proper consideration
|
|
217
|
+
2. **Show your work**: Document reasoning for exclusions and disputes
|
|
218
|
+
3. **Prioritize usefully**: Don't bury critical issues under minor ones
|
|
219
|
+
4. **Acknowledge uncertainty**: Mark findings as INVESTIGATE when unsure
|
|
220
|
+
5. **Don't over-exclude**: Some real risks look like false positives
|
|
221
|
+
6. **Be actionable**: Every finding should have clear remediation steps
|
|
222
|
+
7. **Save the report**: Write the report to `docs/08-project/legal-audits/legal-audit-{YYYYMMDD}.md`
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Handling Common Situations
|
|
227
|
+
|
|
228
|
+
### All analyzers agree
|
|
229
|
+
|
|
230
|
+
→ CONFIRMED, highest confidence, include prominently
|
|
231
|
+
|
|
232
|
+
### One analyzer, strong evidence
|
|
233
|
+
|
|
234
|
+
→ LIKELY, include with the evidence
|
|
235
|
+
|
|
236
|
+
### One analyzer, weak evidence
|
|
237
|
+
|
|
238
|
+
→ INVESTIGATE, include but mark as needing review
|
|
239
|
+
|
|
240
|
+
### Analyzers contradict
|
|
241
|
+
|
|
242
|
+
→ Read the code, make a decision, document reasoning
|
|
243
|
+
|
|
244
|
+
### Finding not relevant to project type
|
|
245
|
+
|
|
246
|
+
→ FALSE POSITIVE with documented reasoning
|
|
247
|
+
|
|
248
|
+
### No findings at all
|
|
249
|
+
|
|
250
|
+
→ Report "No legal risks found" with note about what was checked and project type
|