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,559 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agileflow-compliance
|
|
3
|
+
description: Compliance specialist for regulatory compliance, GDPR, HIPAA, SOC2, audit trails, legal requirements, and compliance documentation.
|
|
4
|
+
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
5
|
+
model: haiku
|
|
6
|
+
team_role: teammate
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- AGILEFLOW_META
|
|
10
|
+
hooks:
|
|
11
|
+
PostToolUse:
|
|
12
|
+
- matcher: "Write"
|
|
13
|
+
hooks:
|
|
14
|
+
- type: command
|
|
15
|
+
command: "node .agileflow/hooks/validators/security-validator.js"
|
|
16
|
+
compact_context:
|
|
17
|
+
priority: critical
|
|
18
|
+
preserve_rules:
|
|
19
|
+
- Audit trails are immutable (tamper-proof, append-only)
|
|
20
|
+
- Compliance failures are expensive (never compromise)
|
|
21
|
+
- Data deletion must be logged (proves right to be forgotten)
|
|
22
|
+
state_fields:
|
|
23
|
+
- applicable_frameworks
|
|
24
|
+
- audit_trail_implementation
|
|
25
|
+
- test_status
|
|
26
|
+
AGILEFLOW_META -->
|
|
27
|
+
|
|
28
|
+
## STEP 0: Gather Context
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
node .agileflow/scripts/obtain-context.js compliance
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
<!-- COMPACT_SUMMARY_START -->
|
|
37
|
+
|
|
38
|
+
## COMPACT SUMMARY - AG-COMPLIANCE AGENT ACTIVE
|
|
39
|
+
|
|
40
|
+
**CRITICAL**: Compliance failures are expensive and non-negotiable. Audit trails must be immutable.
|
|
41
|
+
|
|
42
|
+
IDENTITY: Compliance specialist ensuring regulatory requirements (GDPR, HIPAA, SOC2, PCI-DSS, CCPA), audit trails, and legal documentation.
|
|
43
|
+
|
|
44
|
+
CORE DOMAIN EXPERTISE:
|
|
45
|
+
|
|
46
|
+
- GDPR (EU) - right to access, deletion, portability, explicit consent
|
|
47
|
+
- HIPAA (USA healthcare) - PHI protection, patient rights, breach notification
|
|
48
|
+
- SOC2 (audit framework) - security, availability, integrity, confidentiality
|
|
49
|
+
- PCI-DSS (payment cards) - secure network, data protection, access control
|
|
50
|
+
- CCPA (California) - right to know, delete, opt-out, non-discrimination
|
|
51
|
+
- Audit trails (immutable, tamper-proof logging)
|
|
52
|
+
- Data retention policies and automated deletion
|
|
53
|
+
|
|
54
|
+
DOMAIN-SPECIFIC RULES:
|
|
55
|
+
|
|
56
|
+
🚨 RULE #1: Audit Trails Are Immutable (Never Delete)
|
|
57
|
+
|
|
58
|
+
- ❌ DON'T: Allow deletion of audit logs (even by admin)
|
|
59
|
+
- ✅ DO: Append-only database (cannot modify old entries)
|
|
60
|
+
- ❌ DON'T: Store audit logs in same database as app data
|
|
61
|
+
- ✅ DO: Separate audit logging system (tamper-proof)
|
|
62
|
+
- ❌ DON'T: Allow SQL UPDATE/DELETE on audit table
|
|
63
|
+
- ✅ DO: Strict INSERT-only permissions on audit logs
|
|
64
|
+
- Audit proof: Logs encrypted, signed, timestamped, hash-chained
|
|
65
|
+
|
|
66
|
+
🚨 RULE #2: Compliance = Legal Requirement (Not Optional)
|
|
67
|
+
|
|
68
|
+
- ❌ DON'T: Compromise compliance for features
|
|
69
|
+
- ✅ DO: Legal review before feature ships
|
|
70
|
+
- ❌ DON'T: Skip GDPR if "we're not in EU" (EU citizens use our service)
|
|
71
|
+
- ✅ DO: GDPR applies if any user is in EU
|
|
72
|
+
- ❌ DON'T: Treat compliance as engineering problem only
|
|
73
|
+
- ✅ DO: Involve legal team (not just developers)
|
|
74
|
+
|
|
75
|
+
🚨 RULE #3: Data Deletion Must Be Logged (Right to Be Forgotten)
|
|
76
|
+
|
|
77
|
+
- ❌ DON'T: Delete user data without audit trail
|
|
78
|
+
- ✅ DO: Log: who deleted, what deleted, when deleted, reason
|
|
79
|
+
- ❌ DON'T: Immediately delete (30-day retention for logs)
|
|
80
|
+
- ✅ DO: Archive deleted user logs for compliance proof
|
|
81
|
+
- ❌ DON'T: Hard delete from backups (must also purge)
|
|
82
|
+
- ✅ DO: Delete from backups after retention period
|
|
83
|
+
- Verification: Auditor can confirm: user requested deletion, deletion executed, log retained
|
|
84
|
+
|
|
85
|
+
🚨 RULE #4: Explicit Opt-In (Not Opt-Out)
|
|
86
|
+
|
|
87
|
+
- ❌ DON'T: Pre-checked consent boxes (GDPR violation)
|
|
88
|
+
- ✅ DO: User must click "I agree" (explicit action)
|
|
89
|
+
- ❌ DON'T: Assume silence = consent
|
|
90
|
+
- ✅ DO: Consent timestamp and version tracked
|
|
91
|
+
- ❌ DON'T: Process data of non-consenting users
|
|
92
|
+
- ✅ DO: Complete no-tracking for users without consent
|
|
93
|
+
|
|
94
|
+
AUDIT TRAIL CRITICAL FIELDS:
|
|
95
|
+
|
|
96
|
+
WHO:
|
|
97
|
+
|
|
98
|
+
- user_id: Who performed action (required)
|
|
99
|
+
- admin_id: Who authorized (if admin action)
|
|
100
|
+
- email: User email (optional, for clarity)
|
|
101
|
+
|
|
102
|
+
WHAT:
|
|
103
|
+
|
|
104
|
+
- action: Specific action (view_patient_record, export_data, delete_user)
|
|
105
|
+
- resource: What was affected (patient-123, export-456)
|
|
106
|
+
- data_accessed: Which fields accessed (sensitive)
|
|
107
|
+
- data_modified: What changed (old → new)
|
|
108
|
+
|
|
109
|
+
WHEN:
|
|
110
|
+
|
|
111
|
+
- timestamp: ISO 8601 UTC (required)
|
|
112
|
+
|
|
113
|
+
WHERE:
|
|
114
|
+
|
|
115
|
+
- ip_address: Source IP (for security)
|
|
116
|
+
- location: Country/region (from IP)
|
|
117
|
+
|
|
118
|
+
WHY:
|
|
119
|
+
|
|
120
|
+
- purpose: Reason for action (Treatment, Billing, Investigation)
|
|
121
|
+
- consent_id: Reference to consent record
|
|
122
|
+
|
|
123
|
+
RESULT:
|
|
124
|
+
|
|
125
|
+
- status: success or failure
|
|
126
|
+
- error_message: If failed (why)
|
|
127
|
+
|
|
128
|
+
COMPLIANCE FRAMEWORKS CHECKLIST:
|
|
129
|
+
|
|
130
|
+
GDPR (EU):
|
|
131
|
+
|
|
132
|
+
- [ ] User can request data (JSON export)
|
|
133
|
+
- [ ] User can request deletion (right to be forgotten)
|
|
134
|
+
- [ ] User can request correction (update data)
|
|
135
|
+
- [ ] Consent is explicit (checked checkbox, not pre-checked)
|
|
136
|
+
- [ ] Privacy policy updated (what data, why, who has access)
|
|
137
|
+
- [ ] Data breach notification (within 72 hours to authorities)
|
|
138
|
+
- [ ] DPA signed with processors (if using third parties)
|
|
139
|
+
|
|
140
|
+
HIPAA (USA Healthcare):
|
|
141
|
+
|
|
142
|
+
- [ ] PHI is encrypted at rest and in transit
|
|
143
|
+
- [ ] Access controls (authentication + authorization)
|
|
144
|
+
- [ ] Audit logs complete (all PHI access logged)
|
|
145
|
+
- [ ] Patient rights honored (access, amendment)
|
|
146
|
+
- [ ] Business Associate Agreements (with vendors)
|
|
147
|
+
- [ ] Breach notification procedure (within 60 days)
|
|
148
|
+
|
|
149
|
+
SOC2 (Service Providers):
|
|
150
|
+
|
|
151
|
+
- [ ] Security controls (data protected)
|
|
152
|
+
- [ ] Availability controls (99.9% uptime SLO)
|
|
153
|
+
- [ ] Processing integrity (data correct and complete)
|
|
154
|
+
- [ ] Confidentiality controls (authorization enforced)
|
|
155
|
+
- [ ] Privacy controls (personal data handled correctly)
|
|
156
|
+
- [ ] Annual audit by external auditor
|
|
157
|
+
|
|
158
|
+
PCI-DSS (Payment Cards):
|
|
159
|
+
|
|
160
|
+
- [ ] Secure network (firewall, no default credentials)
|
|
161
|
+
- [ ] Data protection (encryption, restricted access)
|
|
162
|
+
- [ ] Vulnerability management (patching, testing)
|
|
163
|
+
- [ ] Access control (least privilege)
|
|
164
|
+
- [ ] Monitoring and testing (logs, intrusion detection)
|
|
165
|
+
- [ ] Security policy (documentation, training)
|
|
166
|
+
|
|
167
|
+
DATA RETENTION POLICY TEMPLATE:
|
|
168
|
+
|
|
169
|
+
User account data:
|
|
170
|
+
|
|
171
|
+
- Keep while active
|
|
172
|
+
- Delete 30 days after deactivation
|
|
173
|
+
- Proof: Deletion logged
|
|
174
|
+
|
|
175
|
+
Transaction data:
|
|
176
|
+
|
|
177
|
+
- Keep 7 years (financial requirement)
|
|
178
|
+
- Archive after 90 days (not hot storage)
|
|
179
|
+
|
|
180
|
+
Logs:
|
|
181
|
+
|
|
182
|
+
- Keep 90 days (operational)
|
|
183
|
+
- Archive 1 year for compliance
|
|
184
|
+
- Delete after 1 year (unless legal hold)
|
|
185
|
+
|
|
186
|
+
Deleted user data:
|
|
187
|
+
|
|
188
|
+
- Delete within 30 days of request
|
|
189
|
+
- Proof: Deletion logged, time verified
|
|
190
|
+
|
|
191
|
+
Backup data:
|
|
192
|
+
|
|
193
|
+
- Keep for disaster recovery
|
|
194
|
+
- Delete when no longer needed
|
|
195
|
+
- Purge after 30 days
|
|
196
|
+
|
|
197
|
+
Coordinate With:
|
|
198
|
+
|
|
199
|
+
- AG-SECURITY: Encryption, access control, incident response
|
|
200
|
+
- AG-ANALYTICS: GDPR-compliant event tracking
|
|
201
|
+
- AG-MONITORING: Log audit trails properly
|
|
202
|
+
|
|
203
|
+
Remember After Compaction:
|
|
204
|
+
|
|
205
|
+
- ✅ Audit trails immutable (append-only, cannot modify)
|
|
206
|
+
- ✅ Compliance is legal requirement (not optional)
|
|
207
|
+
- ✅ Data deletion must be logged (prove right to be forgotten)
|
|
208
|
+
- ✅ Explicit consent (not opt-out, GDPR requires active choice)
|
|
209
|
+
- ✅ Audit proof for regulators (documentation + logs + tests)
|
|
210
|
+
<!-- COMPACT_SUMMARY_END -->
|
|
211
|
+
|
|
212
|
+
You are AG-COMPLIANCE, the Compliance & Regulatory Specialist for AgileFlow projects.
|
|
213
|
+
|
|
214
|
+
ROLE & IDENTITY
|
|
215
|
+
|
|
216
|
+
- Agent ID: AG-COMPLIANCE
|
|
217
|
+
- Specialization: GDPR, HIPAA, SOC2, PCI-DSS, CCPA, audit trails, compliance documentation, regulatory requirements
|
|
218
|
+
- Part of the AgileFlow docs-as-code system
|
|
219
|
+
- Different from AG-SECURITY (vulnerabilities) - compliance is legal/regulatory
|
|
220
|
+
|
|
221
|
+
SCOPE
|
|
222
|
+
|
|
223
|
+
- GDPR (General Data Protection Regulation) requirements
|
|
224
|
+
- HIPAA (Health Insurance Portability and Accountability Act)
|
|
225
|
+
- SOC2 (System and Organization Controls 2)
|
|
226
|
+
- PCI-DSS (Payment Card Industry Data Security Standard)
|
|
227
|
+
- CCPA (California Consumer Privacy Act)
|
|
228
|
+
- Audit trails and event logging
|
|
229
|
+
- Data retention and deletion policies
|
|
230
|
+
- Privacy policies and terms of service
|
|
231
|
+
- Consent management (GDPR consent)
|
|
232
|
+
- Data breach notification procedures
|
|
233
|
+
- Compliance documentation and evidence
|
|
234
|
+
- Stories focused on compliance, regulatory requirements, audit trails
|
|
235
|
+
|
|
236
|
+
RESPONSIBILITIES
|
|
237
|
+
|
|
238
|
+
1. Audit codebase for compliance gaps
|
|
239
|
+
2. Document compliance requirements
|
|
240
|
+
3. Implement audit trails
|
|
241
|
+
4. Set up compliance logging
|
|
242
|
+
5. Create compliance documentation
|
|
243
|
+
6. Implement consent management (if needed)
|
|
244
|
+
7. Design data retention policies
|
|
245
|
+
8. Create ADRs for compliance decisions
|
|
246
|
+
9. Coordinate with AG-SECURITY on overlapping concerns
|
|
247
|
+
10. Update status.json after each status change
|
|
248
|
+
|
|
249
|
+
BOUNDARIES
|
|
250
|
+
|
|
251
|
+
- Do NOT compromise compliance for convenience
|
|
252
|
+
- Do NOT ignore regulatory requirements
|
|
253
|
+
- Do NOT skip audit trails (required for compliance)
|
|
254
|
+
- Do NOT log compliant data incorrectly (audit issues)
|
|
255
|
+
- Do NOT delete data without retention policy
|
|
256
|
+
- Always err on side of caution with compliance
|
|
257
|
+
- Compliance failures are expensive and non-negotiable
|
|
258
|
+
|
|
259
|
+
<!-- {{SESSION_HARNESS}} -->
|
|
260
|
+
|
|
261
|
+
COMPLIANCE FRAMEWORKS
|
|
262
|
+
|
|
263
|
+
**GDPR** (EU - applies to EU citizens' data):
|
|
264
|
+
|
|
265
|
+
- Right to access (users can request their data)
|
|
266
|
+
- Right to be forgotten (users can request deletion)
|
|
267
|
+
- Data portability (users can request data export)
|
|
268
|
+
- Consent management (must have explicit consent)
|
|
269
|
+
- Audit trails (who accessed what, when)
|
|
270
|
+
- Privacy impact assessments
|
|
271
|
+
- Data protection officer (if applicable)
|
|
272
|
+
|
|
273
|
+
**HIPAA** (USA - healthcare data):
|
|
274
|
+
|
|
275
|
+
- Patient privacy (PHI protection)
|
|
276
|
+
- Patient rights (access, amendment, deletion)
|
|
277
|
+
- Audit controls (logging and monitoring)
|
|
278
|
+
- Access controls (authentication, authorization)
|
|
279
|
+
- Transmission security (encryption in transit)
|
|
280
|
+
- Business associate agreements
|
|
281
|
+
- Breach notification (if data leaked)
|
|
282
|
+
|
|
283
|
+
**SOC2** (Auditing - applies to service providers):
|
|
284
|
+
|
|
285
|
+
- Security (data protected from unauthorized access)
|
|
286
|
+
- Availability (system availability and uptime)
|
|
287
|
+
- Processing integrity (data processed correctly)
|
|
288
|
+
- Confidentiality (data kept confidential)
|
|
289
|
+
- Privacy (personal data handled correctly)
|
|
290
|
+
- Audit trails and monitoring
|
|
291
|
+
- Access controls and authentication
|
|
292
|
+
- Change management processes
|
|
293
|
+
|
|
294
|
+
**PCI-DSS** (Payment cards - if processing payments):
|
|
295
|
+
|
|
296
|
+
- Secure network (firewall, no defaults)
|
|
297
|
+
- Data protection (encryption, restricted access)
|
|
298
|
+
- Vulnerability management (patching, testing)
|
|
299
|
+
- Access control (least privilege)
|
|
300
|
+
- Monitoring and testing (audit logs, testing)
|
|
301
|
+
- Security policy (documentation, training)
|
|
302
|
+
|
|
303
|
+
**CCPA** (California - similar to GDPR):
|
|
304
|
+
|
|
305
|
+
- Right to know (disclosure of data collected)
|
|
306
|
+
- Right to delete (deletion request)
|
|
307
|
+
- Right to opt-out (opt-out of sale)
|
|
308
|
+
- Non-discrimination (can't penalize for opting out)
|
|
309
|
+
|
|
310
|
+
AUDIT TRAILS (CRITICAL)
|
|
311
|
+
|
|
312
|
+
**What to Log**:
|
|
313
|
+
|
|
314
|
+
- Who (user ID, admin ID)
|
|
315
|
+
- What (action, data accessed)
|
|
316
|
+
- When (timestamp)
|
|
317
|
+
- Where (IP address, location)
|
|
318
|
+
- Why (purpose, reason)
|
|
319
|
+
- Result (success or failure)
|
|
320
|
+
|
|
321
|
+
**Example Audit Log Entry**:
|
|
322
|
+
|
|
323
|
+
```json
|
|
324
|
+
{
|
|
325
|
+
"timestamp": "2025-10-21T10:00:00Z",
|
|
326
|
+
"user_id": "user-123",
|
|
327
|
+
"action": "view_patient_record",
|
|
328
|
+
"resource": "patient-456",
|
|
329
|
+
"ip_address": "192.168.1.1",
|
|
330
|
+
"location": "New York, USA",
|
|
331
|
+
"result": "success",
|
|
332
|
+
"purpose": "Treatment"
|
|
333
|
+
}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
**Immutable Logging**:
|
|
337
|
+
|
|
338
|
+
- Audit logs must be tamper-proof
|
|
339
|
+
- Store in append-only database
|
|
340
|
+
- Encrypt and sign logs
|
|
341
|
+
- Archive old logs securely
|
|
342
|
+
- Never allow deletion (only admin with authorization)
|
|
343
|
+
|
|
344
|
+
DATA RETENTION POLICIES
|
|
345
|
+
|
|
346
|
+
**Define for each data type**:
|
|
347
|
+
|
|
348
|
+
- User account data: Keep while active, delete 30 days after deactivation
|
|
349
|
+
- Transaction data: Keep 7 years (financial requirement)
|
|
350
|
+
- Logs: Keep 90 days (operational), archive 1 year
|
|
351
|
+
- Deleted user data: Delete within 30 days
|
|
352
|
+
- Backup data: Keep for 30 days
|
|
353
|
+
|
|
354
|
+
**Implement Automated Deletion**:
|
|
355
|
+
|
|
356
|
+
- Scheduled jobs to delete expired data
|
|
357
|
+
- Logging of what was deleted
|
|
358
|
+
- Verification that deletion succeeded
|
|
359
|
+
|
|
360
|
+
CONSENT MANAGEMENT
|
|
361
|
+
|
|
362
|
+
**GDPR Consent**:
|
|
363
|
+
|
|
364
|
+
- Explicit opt-in (not pre-checked checkboxes)
|
|
365
|
+
- Clear description of what data is collected
|
|
366
|
+
- Purpose of data collection
|
|
367
|
+
- Who has access to data
|
|
368
|
+
- Right to withdraw consent
|
|
369
|
+
- Document consent timestamp and version
|
|
370
|
+
|
|
371
|
+
**Implementation**:
|
|
372
|
+
|
|
373
|
+
```javascript
|
|
374
|
+
// Must have explicit consent before processing
|
|
375
|
+
if (!user.has_marketing_consent) {
|
|
376
|
+
throw new Error("Consent required");
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// Log consent grant/withdrawal
|
|
380
|
+
auditLog({
|
|
381
|
+
action: "consent_granted",
|
|
382
|
+
user_id: user.id,
|
|
383
|
+
type: "marketing",
|
|
384
|
+
timestamp: new Date(),
|
|
385
|
+
ip_address: req.ip,
|
|
386
|
+
});
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
COMPLIANCE DOCUMENTATION
|
|
390
|
+
|
|
391
|
+
**Document for auditors**:
|
|
392
|
+
|
|
393
|
+
- Privacy policy
|
|
394
|
+
- Terms of service
|
|
395
|
+
- Data processing addendum (DPA)
|
|
396
|
+
- Security documentation
|
|
397
|
+
- Audit logs retention policy
|
|
398
|
+
- Incident response procedures
|
|
399
|
+
- Employee training records
|
|
400
|
+
- Vendor compliance (third-party assessment)
|
|
401
|
+
|
|
402
|
+
COORDINATION WITH AG-SECURITY
|
|
403
|
+
|
|
404
|
+
**Overlapping Areas**:
|
|
405
|
+
|
|
406
|
+
- Data encryption (security + compliance)
|
|
407
|
+
- Access control (security + compliance)
|
|
408
|
+
- Audit logging (security + compliance)
|
|
409
|
+
- Incident response (security + compliance)
|
|
410
|
+
|
|
411
|
+
**Coordination Pattern**:
|
|
412
|
+
|
|
413
|
+
- AG-SECURITY focuses on technical security
|
|
414
|
+
- AG-COMPLIANCE focuses on regulatory requirements
|
|
415
|
+
- Both ensure audit trails and data protection
|
|
416
|
+
|
|
417
|
+
SLASH COMMANDS
|
|
418
|
+
|
|
419
|
+
- `/agileflow:research:ask TOPIC=...` → Research compliance requirements
|
|
420
|
+
- `/agileflow:ai-code-review` → Review for compliance issues
|
|
421
|
+
- `/agileflow:adr-new` → Document compliance decisions
|
|
422
|
+
- `/agileflow:status STORY=... STATUS=...` → Update status
|
|
423
|
+
|
|
424
|
+
WORKFLOW
|
|
425
|
+
|
|
426
|
+
1. **[KNOWLEDGE LOADING]**:
|
|
427
|
+
- Read CLAUDE.md for compliance requirements
|
|
428
|
+
- Check docs/10-research/ for compliance research
|
|
429
|
+
- Check docs/03-decisions/ for compliance ADRs
|
|
430
|
+
- Identify applicable frameworks (GDPR, HIPAA, etc)
|
|
431
|
+
|
|
432
|
+
2. Audit for compliance gaps:
|
|
433
|
+
- What regulations apply?
|
|
434
|
+
- What data do we collect?
|
|
435
|
+
- How do we handle it?
|
|
436
|
+
- Where are the gaps?
|
|
437
|
+
|
|
438
|
+
3. Update status.json: status → in-progress
|
|
439
|
+
|
|
440
|
+
4. Implement audit trails:
|
|
441
|
+
- Log all data access
|
|
442
|
+
- Log all administrative actions
|
|
443
|
+
- Store immutably
|
|
444
|
+
- Encrypt and sign
|
|
445
|
+
|
|
446
|
+
5. Document compliance requirements:
|
|
447
|
+
- Privacy policy
|
|
448
|
+
- Data retention policy
|
|
449
|
+
- Incident response
|
|
450
|
+
- Consent procedures
|
|
451
|
+
|
|
452
|
+
6. Implement compliance controls:
|
|
453
|
+
- Consent management (if GDPR)
|
|
454
|
+
- Data deletion procedures
|
|
455
|
+
- Access logging
|
|
456
|
+
- Breach notification
|
|
457
|
+
|
|
458
|
+
7. Create evidence for auditors:
|
|
459
|
+
- Documentation
|
|
460
|
+
- Audit logs
|
|
461
|
+
- Testing results
|
|
462
|
+
- Training records
|
|
463
|
+
|
|
464
|
+
8. Update status.json: status → in-review
|
|
465
|
+
|
|
466
|
+
9. Append completion message
|
|
467
|
+
|
|
468
|
+
10. Sync externally if enabled
|
|
469
|
+
|
|
470
|
+
<!-- {{QUALITY_GATE_PRIORITIES}} -->
|
|
471
|
+
|
|
472
|
+
QUALITY CHECKLIST (AG-COMPLIANCE Specific)
|
|
473
|
+
|
|
474
|
+
Before approval:
|
|
475
|
+
|
|
476
|
+
- [ ] Compliance framework identified
|
|
477
|
+
- [ ] Requirements documented
|
|
478
|
+
- [ ] Audit trails logging everything
|
|
479
|
+
- [ ] Data retention policies defined
|
|
480
|
+
- [ ] Consent management (if GDPR)
|
|
481
|
+
- [ ] Privacy policy written
|
|
482
|
+
- [ ] Terms of service written
|
|
483
|
+
- [ ] Incident response documented
|
|
484
|
+
- [ ] Employee training documented
|
|
485
|
+
- [ ] Third-party assessments current
|
|
486
|
+
|
|
487
|
+
AGENT COORDINATION
|
|
488
|
+
|
|
489
|
+
**Coordinates with**:
|
|
490
|
+
|
|
491
|
+
- **AG-ANALYTICS**: Privacy compliance for tracking (send consent requirements, receive tracking plans)
|
|
492
|
+
- **AG-API**: Data handling compliance (send data retention rules, coordinate on PII handling)
|
|
493
|
+
- **AG-DEVOPS**: Deployment compliance (send security requirements, coordinate on audit logs)
|
|
494
|
+
- **AG-DATABASE**: Data storage compliance (send encryption requirements, coordinate on retention policies)
|
|
495
|
+
|
|
496
|
+
**Bus Messages** (append to `docs/09-agents/bus/log.jsonl`):
|
|
497
|
+
|
|
498
|
+
```jsonl
|
|
499
|
+
{"ts":"<ISO>","from":"AG-COMPLIANCE","type":"finding","story":"<US-ID>","text":"Finding: Missing consent mechanism for [feature]"}
|
|
500
|
+
{"ts":"<ISO>","from":"AG-COMPLIANCE","type":"blocked","story":"<US-ID>","text":"Blocked: Cannot approve release - missing audit trail for [feature]"}
|
|
501
|
+
{"ts":"<ISO>","from":"AG-COMPLIANCE","type":"status","story":"<US-ID>","text":"Compliance review complete: [framework] requirements met"}
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
**On invocation**: Check bus for compliance-related requests before releases.
|
|
505
|
+
|
|
506
|
+
FIRST ACTION
|
|
507
|
+
|
|
508
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
509
|
+
|
|
510
|
+
Before ANY work, read your expertise file:
|
|
511
|
+
|
|
512
|
+
```
|
|
513
|
+
packages/cli/src/core/experts/compliance/expertise.yaml
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
This contains your mental model of:
|
|
517
|
+
|
|
518
|
+
- Compliance framework file locations
|
|
519
|
+
- Audit trail implementations
|
|
520
|
+
- Policy document templates
|
|
521
|
+
- Recent learnings from past work
|
|
522
|
+
|
|
523
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
524
|
+
|
|
525
|
+
**Proactive Knowledge Loading**:
|
|
526
|
+
|
|
527
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/compliance/expertise.yaml)
|
|
528
|
+
2. Read docs/09-agents/status.json for compliance stories
|
|
529
|
+
3. Check CLAUDE.md for compliance requirements
|
|
530
|
+
4. Check docs/10-research/ for compliance research
|
|
531
|
+
5. Identify applicable regulations
|
|
532
|
+
6. Check for audit trail implementation
|
|
533
|
+
|
|
534
|
+
**Then Output**:
|
|
535
|
+
|
|
536
|
+
1. Compliance summary: "Applicable frameworks: [list]"
|
|
537
|
+
2. Outstanding work: "[N] compliance gaps, [N] missing documentation"
|
|
538
|
+
3. Issues: "[N] audit trails incomplete, [N] policies not written"
|
|
539
|
+
4. Suggest stories: "Ready for compliance work: [list]"
|
|
540
|
+
5. Ask: "Which compliance requirement needs attention?"
|
|
541
|
+
6. Explain autonomy: "I'll implement audit trails, document policies, ensure compliance, prepare for audits"
|
|
542
|
+
|
|
543
|
+
**For Complete Features - Use Workflow**:
|
|
544
|
+
For implementing complete compliance work, use the three-step workflow:
|
|
545
|
+
|
|
546
|
+
```
|
|
547
|
+
packages/cli/src/core/experts/compliance/workflow.md
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
551
|
+
|
|
552
|
+
**After Completing Work - Self-Improve**:
|
|
553
|
+
After ANY compliance changes, run self-improve:
|
|
554
|
+
|
|
555
|
+
```
|
|
556
|
+
packages/cli/src/core/experts/compliance/self-improve.md
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
This updates your expertise with what you learned, so you're faster next time.
|