aios-core 1.0.0
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/.aios-core/cli/commands/generate/index.js +222 -0
- package/.aios-core/cli/commands/manifest/index.js +46 -0
- package/.aios-core/cli/commands/manifest/regenerate.js +96 -0
- package/.aios-core/cli/commands/manifest/validate.js +66 -0
- package/.aios-core/cli/commands/mcp/add.js +234 -0
- package/.aios-core/cli/commands/mcp/index.js +76 -0
- package/.aios-core/cli/commands/mcp/link.js +217 -0
- package/.aios-core/cli/commands/mcp/setup.js +164 -0
- package/.aios-core/cli/commands/mcp/status.js +183 -0
- package/.aios-core/cli/commands/metrics/cleanup.js +91 -0
- package/.aios-core/cli/commands/metrics/index.js +65 -0
- package/.aios-core/cli/commands/metrics/record.js +154 -0
- package/.aios-core/cli/commands/metrics/seed.js +126 -0
- package/.aios-core/cli/commands/metrics/show.js +209 -0
- package/.aios-core/cli/commands/migrate/analyze.js +353 -0
- package/.aios-core/cli/commands/migrate/backup.js +352 -0
- package/.aios-core/cli/commands/migrate/execute.js +292 -0
- package/.aios-core/cli/commands/migrate/index.js +441 -0
- package/.aios-core/cli/commands/migrate/rollback.js +323 -0
- package/.aios-core/cli/commands/migrate/update-imports.js +396 -0
- package/.aios-core/cli/commands/migrate/validate.js +452 -0
- package/.aios-core/cli/commands/qa/index.js +56 -0
- package/.aios-core/cli/commands/qa/run.js +163 -0
- package/.aios-core/cli/commands/qa/status.js +195 -0
- package/.aios-core/cli/commands/workers/formatters/info-formatter.js +274 -0
- package/.aios-core/cli/commands/workers/formatters/list-table.js +265 -0
- package/.aios-core/cli/commands/workers/formatters/list-tree.js +159 -0
- package/.aios-core/cli/commands/workers/index.js +56 -0
- package/.aios-core/cli/commands/workers/info.js +194 -0
- package/.aios-core/cli/commands/workers/list.js +214 -0
- package/.aios-core/cli/commands/workers/search-filters.js +185 -0
- package/.aios-core/cli/commands/workers/search-keyword.js +310 -0
- package/.aios-core/cli/commands/workers/search-semantic.js +293 -0
- package/.aios-core/cli/commands/workers/search.js +154 -0
- package/.aios-core/cli/commands/workers/utils/pagination.js +102 -0
- package/.aios-core/cli/index.js +128 -0
- package/.aios-core/cli/utils/output-formatter-cli.js +232 -0
- package/.aios-core/cli/utils/score-calculator.js +221 -0
- package/.aios-core/core/README.md +229 -0
- package/.aios-core/core/config/config-cache.js +233 -0
- package/.aios-core/core/config/config-loader.js +277 -0
- package/.aios-core/core/docs/SHARD-TRANSLATION-GUIDE.md +335 -0
- package/.aios-core/core/docs/component-creation-guide.md +458 -0
- package/.aios-core/core/docs/session-update-pattern.md +314 -0
- package/.aios-core/core/docs/template-syntax.md +267 -0
- package/.aios-core/core/docs/troubleshooting-guide.md +625 -0
- package/.aios-core/core/elicitation/agent-elicitation.js +272 -0
- package/.aios-core/core/elicitation/elicitation-engine.js +484 -0
- package/.aios-core/core/elicitation/session-manager.js +321 -0
- package/.aios-core/core/elicitation/task-elicitation.js +281 -0
- package/.aios-core/core/elicitation/workflow-elicitation.js +315 -0
- package/.aios-core/core/index.esm.js +42 -0
- package/.aios-core/core/index.js +76 -0
- package/.aios-core/core/manifest/manifest-generator.js +386 -0
- package/.aios-core/core/manifest/manifest-validator.js +429 -0
- package/.aios-core/core/mcp/config-migrator.js +340 -0
- package/.aios-core/core/mcp/global-config-manager.js +369 -0
- package/.aios-core/core/mcp/index.js +34 -0
- package/.aios-core/core/mcp/os-detector.js +188 -0
- package/.aios-core/core/mcp/symlink-manager.js +413 -0
- package/.aios-core/core/migration/migration-config.yaml +83 -0
- package/.aios-core/core/migration/module-mapping.yaml +89 -0
- package/.aios-core/core/quality-gates/base-layer.js +134 -0
- package/.aios-core/core/quality-gates/checklist-generator.js +329 -0
- package/.aios-core/core/quality-gates/focus-area-recommender.js +359 -0
- package/.aios-core/core/quality-gates/human-review-orchestrator.js +529 -0
- package/.aios-core/core/quality-gates/layer1-precommit.js +336 -0
- package/.aios-core/core/quality-gates/layer2-pr-automation.js +324 -0
- package/.aios-core/core/quality-gates/layer3-human-review.js +348 -0
- package/.aios-core/core/quality-gates/notification-manager.js +550 -0
- package/.aios-core/core/quality-gates/quality-gate-config.yaml +86 -0
- package/.aios-core/core/quality-gates/quality-gate-manager.js +601 -0
- package/.aios-core/core/registry/README.md +179 -0
- package/.aios-core/core/registry/build-registry.js +452 -0
- package/.aios-core/core/registry/registry-loader.js +330 -0
- package/.aios-core/core/registry/registry-schema.json +166 -0
- package/.aios-core/core/registry/service-registry.json +6586 -0
- package/.aios-core/core/registry/validate-registry.js +340 -0
- package/.aios-core/core/session/context-detector.js +232 -0
- package/.aios-core/core/session/context-loader.js +442 -0
- package/.aios-core/core/utils/output-formatter.js +298 -0
- package/.aios-core/core/utils/security-utils.js +333 -0
- package/.aios-core/core/utils/yaml-validator.js +419 -0
- package/.aios-core/core-config.yaml +497 -0
- package/.aios-core/data/agent-config-requirements.yaml +368 -0
- package/.aios-core/data/aios-kb.md +924 -0
- package/.aios-core/data/learned-patterns.yaml +3 -0
- package/.aios-core/data/technical-preferences.md +4 -0
- package/.aios-core/data/workflow-patterns.yaml +611 -0
- package/.aios-core/development/README.md +142 -0
- package/.aios-core/development/agent-teams/team-all.yaml +15 -0
- package/.aios-core/development/agent-teams/team-fullstack.yaml +18 -0
- package/.aios-core/development/agent-teams/team-ide-minimal.yaml +10 -0
- package/.aios-core/development/agent-teams/team-no-ui.yaml +13 -0
- package/.aios-core/development/agent-teams/team-qa-focused.yaml +155 -0
- package/.aios-core/development/agents/aios-master.md +370 -0
- package/.aios-core/development/agents/analyst.md +195 -0
- package/.aios-core/development/agents/architect.md +363 -0
- package/.aios-core/development/agents/data-engineer.md +468 -0
- package/.aios-core/development/agents/dev.md +403 -0
- package/.aios-core/development/agents/devops.md +410 -0
- package/.aios-core/development/agents/pm.md +198 -0
- package/.aios-core/development/agents/po.md +256 -0
- package/.aios-core/development/agents/qa.md +312 -0
- package/.aios-core/development/agents/sm.md +220 -0
- package/.aios-core/development/agents/squad-creator.md +302 -0
- package/.aios-core/development/agents/ux-design-expert.md +471 -0
- package/.aios-core/development/scripts/agent-assignment-resolver.js +231 -0
- package/.aios-core/development/scripts/agent-config-loader.js +624 -0
- package/.aios-core/development/scripts/agent-exit-hooks.js +96 -0
- package/.aios-core/development/scripts/apply-inline-greeting-all-agents.js +146 -0
- package/.aios-core/development/scripts/audit-agent-config.js +380 -0
- package/.aios-core/development/scripts/backlog-manager.js +404 -0
- package/.aios-core/development/scripts/batch-update-agents-session-context.js +95 -0
- package/.aios-core/development/scripts/decision-context.js +228 -0
- package/.aios-core/development/scripts/decision-log-generator.js +293 -0
- package/.aios-core/development/scripts/decision-log-indexer.js +284 -0
- package/.aios-core/development/scripts/decision-recorder.js +168 -0
- package/.aios-core/development/scripts/dev-context-loader.js +297 -0
- package/.aios-core/development/scripts/generate-greeting.js +160 -0
- package/.aios-core/development/scripts/greeting-builder.js +866 -0
- package/.aios-core/development/scripts/greeting-config-cli.js +85 -0
- package/.aios-core/development/scripts/greeting-preference-manager.js +145 -0
- package/.aios-core/development/scripts/migrate-task-to-v2.js +377 -0
- package/.aios-core/development/scripts/squad/README.md +112 -0
- package/.aios-core/development/scripts/squad/index.js +123 -0
- package/.aios-core/development/scripts/squad/squad-analyzer.js +638 -0
- package/.aios-core/development/scripts/squad/squad-designer.js +1010 -0
- package/.aios-core/development/scripts/squad/squad-downloader.js +510 -0
- package/.aios-core/development/scripts/squad/squad-extender.js +871 -0
- package/.aios-core/development/scripts/squad/squad-generator.js +1405 -0
- package/.aios-core/development/scripts/squad/squad-loader.js +359 -0
- package/.aios-core/development/scripts/squad/squad-migrator.js +632 -0
- package/.aios-core/development/scripts/squad/squad-publisher.js +629 -0
- package/.aios-core/development/scripts/squad/squad-validator.js +783 -0
- package/.aios-core/development/scripts/story-index-generator.js +337 -0
- package/.aios-core/development/scripts/story-manager.js +375 -0
- package/.aios-core/development/scripts/story-update-hook.js +259 -0
- package/.aios-core/development/scripts/task-identifier-resolver.js +145 -0
- package/.aios-core/development/scripts/test-greeting-system.js +142 -0
- package/.aios-core/development/scripts/validate-task-v2.js +319 -0
- package/.aios-core/development/scripts/workflow-navigator.js +214 -0
- package/.aios-core/development/tasks/add-mcp.md +436 -0
- package/.aios-core/development/tasks/advanced-elicitation.md +319 -0
- package/.aios-core/development/tasks/analyst-facilitate-brainstorming.md +342 -0
- package/.aios-core/development/tasks/analyze-brownfield.md +456 -0
- package/.aios-core/development/tasks/analyze-framework.md +697 -0
- package/.aios-core/development/tasks/analyze-performance.md +637 -0
- package/.aios-core/development/tasks/analyze-project-structure.md +621 -0
- package/.aios-core/development/tasks/apply-qa-fixes.md +340 -0
- package/.aios-core/development/tasks/architect-analyze-impact.md +827 -0
- package/.aios-core/development/tasks/audit-codebase.md +429 -0
- package/.aios-core/development/tasks/audit-tailwind-config.md +270 -0
- package/.aios-core/development/tasks/audit-utilities.md +358 -0
- package/.aios-core/development/tasks/bootstrap-shadcn-library.md +286 -0
- package/.aios-core/development/tasks/brownfield-create-epic.md +486 -0
- package/.aios-core/development/tasks/brownfield-create-story.md +357 -0
- package/.aios-core/development/tasks/build-component.md +478 -0
- package/.aios-core/development/tasks/calculate-roi.md +455 -0
- package/.aios-core/development/tasks/ci-cd-configuration.md +764 -0
- package/.aios-core/development/tasks/cleanup-utilities.md +670 -0
- package/.aios-core/development/tasks/collaborative-edit.md +1109 -0
- package/.aios-core/development/tasks/compose-molecule.md +284 -0
- package/.aios-core/development/tasks/consolidate-patterns.md +414 -0
- package/.aios-core/development/tasks/correct-course.md +280 -0
- package/.aios-core/development/tasks/create-agent.md +322 -0
- package/.aios-core/development/tasks/create-brownfield-story.md +727 -0
- package/.aios-core/development/tasks/create-deep-research-prompt.md +499 -0
- package/.aios-core/development/tasks/create-doc.md +316 -0
- package/.aios-core/development/tasks/create-next-story.md +774 -0
- package/.aios-core/development/tasks/create-service.md +391 -0
- package/.aios-core/development/tasks/create-suite.md +284 -0
- package/.aios-core/development/tasks/create-task.md +372 -0
- package/.aios-core/development/tasks/create-workflow.md +371 -0
- package/.aios-core/development/tasks/db-analyze-hotpaths.md +572 -0
- package/.aios-core/development/tasks/db-apply-migration.md +381 -0
- package/.aios-core/development/tasks/db-bootstrap.md +642 -0
- package/.aios-core/development/tasks/db-domain-modeling.md +693 -0
- package/.aios-core/development/tasks/db-dry-run.md +293 -0
- package/.aios-core/development/tasks/db-env-check.md +260 -0
- package/.aios-core/development/tasks/db-expansion-pack-integration.md +663 -0
- package/.aios-core/development/tasks/db-explain.md +631 -0
- package/.aios-core/development/tasks/db-impersonate.md +495 -0
- package/.aios-core/development/tasks/db-load-csv.md +593 -0
- package/.aios-core/development/tasks/db-policy-apply.md +653 -0
- package/.aios-core/development/tasks/db-rls-audit.md +411 -0
- package/.aios-core/development/tasks/db-rollback.md +739 -0
- package/.aios-core/development/tasks/db-run-sql.md +613 -0
- package/.aios-core/development/tasks/db-schema-audit.md +1011 -0
- package/.aios-core/development/tasks/db-seed.md +390 -0
- package/.aios-core/development/tasks/db-smoke-test.md +351 -0
- package/.aios-core/development/tasks/db-snapshot.md +569 -0
- package/.aios-core/development/tasks/db-supabase-setup.md +712 -0
- package/.aios-core/development/tasks/db-verify-order.md +515 -0
- package/.aios-core/development/tasks/deprecate-component.md +957 -0
- package/.aios-core/development/tasks/dev-apply-qa-fixes.md +318 -0
- package/.aios-core/development/tasks/dev-backlog-debt.md +469 -0
- package/.aios-core/development/tasks/dev-develop-story.md +846 -0
- package/.aios-core/development/tasks/dev-improve-code-quality.md +873 -0
- package/.aios-core/development/tasks/dev-optimize-performance.md +1034 -0
- package/.aios-core/development/tasks/dev-suggest-refactoring.md +871 -0
- package/.aios-core/development/tasks/dev-validate-next-story.md +349 -0
- package/.aios-core/development/tasks/document-project.md +553 -0
- package/.aios-core/development/tasks/environment-bootstrap.md +1311 -0
- package/.aios-core/development/tasks/execute-checklist.md +301 -0
- package/.aios-core/development/tasks/export-design-tokens-dtcg.md +274 -0
- package/.aios-core/development/tasks/extend-pattern.md +269 -0
- package/.aios-core/development/tasks/extract-tokens.md +467 -0
- package/.aios-core/development/tasks/facilitate-brainstorming-session.md +518 -0
- package/.aios-core/development/tasks/generate-ai-frontend-prompt.md +261 -0
- package/.aios-core/development/tasks/generate-documentation.md +284 -0
- package/.aios-core/development/tasks/generate-migration-strategy.md +522 -0
- package/.aios-core/development/tasks/generate-shock-report.md +501 -0
- package/.aios-core/development/tasks/github-devops-github-pr-automation.md +664 -0
- package/.aios-core/development/tasks/github-devops-pre-push-quality-gate.md +733 -0
- package/.aios-core/development/tasks/github-devops-repository-cleanup.md +374 -0
- package/.aios-core/development/tasks/github-devops-version-management.md +483 -0
- package/.aios-core/development/tasks/improve-self.md +823 -0
- package/.aios-core/development/tasks/index-docs.md +388 -0
- package/.aios-core/development/tasks/init-project-status.md +506 -0
- package/.aios-core/development/tasks/integrate-expansion-pack.md +314 -0
- package/.aios-core/development/tasks/kb-mode-interaction.md +284 -0
- package/.aios-core/development/tasks/learn-patterns.md +901 -0
- package/.aios-core/development/tasks/mcp-workflow.md +437 -0
- package/.aios-core/development/tasks/modify-agent.md +382 -0
- package/.aios-core/development/tasks/modify-task.md +425 -0
- package/.aios-core/development/tasks/modify-workflow.md +466 -0
- package/.aios-core/development/tasks/next.md +294 -0
- package/.aios-core/development/tasks/patterns.md +334 -0
- package/.aios-core/development/tasks/po-backlog-add.md +370 -0
- package/.aios-core/development/tasks/po-manage-story-backlog.md +523 -0
- package/.aios-core/development/tasks/po-pull-story-from-clickup.md +540 -0
- package/.aios-core/development/tasks/po-pull-story.md +316 -0
- package/.aios-core/development/tasks/po-stories-index.md +351 -0
- package/.aios-core/development/tasks/po-sync-story-to-clickup.md +457 -0
- package/.aios-core/development/tasks/po-sync-story.md +303 -0
- package/.aios-core/development/tasks/pr-automation.md +701 -0
- package/.aios-core/development/tasks/propose-modification.md +843 -0
- package/.aios-core/development/tasks/qa-backlog-add-followup.md +425 -0
- package/.aios-core/development/tasks/qa-gate.md +374 -0
- package/.aios-core/development/tasks/qa-generate-tests.md +1175 -0
- package/.aios-core/development/tasks/qa-nfr-assess.md +558 -0
- package/.aios-core/development/tasks/qa-review-proposal.md +1158 -0
- package/.aios-core/development/tasks/qa-review-story.md +683 -0
- package/.aios-core/development/tasks/qa-risk-profile.md +567 -0
- package/.aios-core/development/tasks/qa-run-tests.md +277 -0
- package/.aios-core/development/tasks/qa-test-design.md +388 -0
- package/.aios-core/development/tasks/qa-trace-requirements.md +477 -0
- package/.aios-core/development/tasks/release-management.md +723 -0
- package/.aios-core/development/tasks/search-mcp.md +309 -0
- package/.aios-core/development/tasks/security-audit.md +554 -0
- package/.aios-core/development/tasks/security-scan.md +790 -0
- package/.aios-core/development/tasks/setup-database.md +741 -0
- package/.aios-core/development/tasks/setup-design-system.md +462 -0
- package/.aios-core/development/tasks/setup-github.md +874 -0
- package/.aios-core/development/tasks/setup-llm-routing.md +229 -0
- package/.aios-core/development/tasks/setup-mcp-docker.md +627 -0
- package/.aios-core/development/tasks/setup-project-docs.md +440 -0
- package/.aios-core/development/tasks/shard-doc.md +538 -0
- package/.aios-core/development/tasks/sm-create-next-story.md +480 -0
- package/.aios-core/development/tasks/squad-creator-analyze.md +315 -0
- package/.aios-core/development/tasks/squad-creator-create.md +312 -0
- package/.aios-core/development/tasks/squad-creator-design.md +334 -0
- package/.aios-core/development/tasks/squad-creator-download.md +167 -0
- package/.aios-core/development/tasks/squad-creator-extend.md +411 -0
- package/.aios-core/development/tasks/squad-creator-list.md +225 -0
- package/.aios-core/development/tasks/squad-creator-migrate.md +243 -0
- package/.aios-core/development/tasks/squad-creator-publish.md +229 -0
- package/.aios-core/development/tasks/squad-creator-sync-synkra.md +315 -0
- package/.aios-core/development/tasks/squad-creator-validate.md +159 -0
- package/.aios-core/development/tasks/sync-documentation.md +865 -0
- package/.aios-core/development/tasks/tailwind-upgrade.md +294 -0
- package/.aios-core/development/tasks/test-as-user.md +621 -0
- package/.aios-core/development/tasks/test-validation-task.md +171 -0
- package/.aios-core/development/tasks/undo-last.md +347 -0
- package/.aios-core/development/tasks/update-manifest.md +410 -0
- package/.aios-core/development/tasks/ux-create-wireframe.md +617 -0
- package/.aios-core/development/tasks/ux-ds-scan-artifact.md +672 -0
- package/.aios-core/development/tasks/ux-user-research.md +559 -0
- package/.aios-core/development/tasks/validate-next-story.md +423 -0
- package/.aios-core/development/tasks/waves.md +205 -0
- package/.aios-core/development/templates/service-template/README.md.hbs +158 -0
- package/.aios-core/development/templates/service-template/__tests__/index.test.ts.hbs +237 -0
- package/.aios-core/development/templates/service-template/client.ts.hbs +403 -0
- package/.aios-core/development/templates/service-template/errors.ts.hbs +182 -0
- package/.aios-core/development/templates/service-template/index.ts.hbs +120 -0
- package/.aios-core/development/templates/service-template/jest.config.js +89 -0
- package/.aios-core/development/templates/service-template/package.json.hbs +87 -0
- package/.aios-core/development/templates/service-template/tsconfig.json +45 -0
- package/.aios-core/development/templates/service-template/types.ts.hbs +145 -0
- package/.aios-core/development/templates/squad/agent-template.md +69 -0
- package/.aios-core/development/templates/squad/checklist-template.md +82 -0
- package/.aios-core/development/templates/squad/data-template.yaml +105 -0
- package/.aios-core/development/templates/squad/script-template.js +179 -0
- package/.aios-core/development/templates/squad/task-template.md +125 -0
- package/.aios-core/development/templates/squad/template-template.md +97 -0
- package/.aios-core/development/templates/squad/tool-template.js +103 -0
- package/.aios-core/development/templates/squad/workflow-template.yaml +108 -0
- package/.aios-core/development/workflows/README.md +84 -0
- package/.aios-core/development/workflows/brownfield-fullstack.yaml +297 -0
- package/.aios-core/development/workflows/brownfield-service.yaml +187 -0
- package/.aios-core/development/workflows/brownfield-ui.yaml +197 -0
- package/.aios-core/development/workflows/greenfield-fullstack.yaml +333 -0
- package/.aios-core/development/workflows/greenfield-service.yaml +206 -0
- package/.aios-core/development/workflows/greenfield-ui.yaml +235 -0
- package/.aios-core/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +572 -0
- package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-QUICK-REFERENCE.md +185 -0
- package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-V2.1.md +354 -0
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md +821 -0
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md +1339 -0
- package/.aios-core/docs/standards/EXECUTOR-DECISION-TREE.md +697 -0
- package/.aios-core/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +511 -0
- package/.aios-core/docs/standards/QUALITY-GATES-SPECIFICATION.md +556 -0
- package/.aios-core/docs/standards/STANDARDS-INDEX.md +210 -0
- package/.aios-core/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +550 -0
- package/.aios-core/docs/standards/TASK-FORMAT-SPECIFICATION-V1.md +1414 -0
- package/.aios-core/elicitation/agent-elicitation.js +272 -0
- package/.aios-core/elicitation/task-elicitation.js +281 -0
- package/.aios-core/elicitation/workflow-elicitation.js +315 -0
- package/.aios-core/index.esm.js +16 -0
- package/.aios-core/index.js +16 -0
- package/.aios-core/infrastructure/README.md +126 -0
- package/.aios-core/infrastructure/index.js +199 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/README.md +59 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/clickup-adapter.js +345 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/github-adapter.js +392 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/jira-adapter.js +448 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/local-adapter.js +175 -0
- package/.aios-core/infrastructure/scripts/aios-validator.js +294 -0
- package/.aios-core/infrastructure/scripts/approval-workflow.js +643 -0
- package/.aios-core/infrastructure/scripts/atomic-layer-classifier.js +308 -0
- package/.aios-core/infrastructure/scripts/backup-manager.js +607 -0
- package/.aios-core/infrastructure/scripts/batch-creator.js +608 -0
- package/.aios-core/infrastructure/scripts/branch-manager.js +391 -0
- package/.aios-core/infrastructure/scripts/capability-analyzer.js +535 -0
- package/.aios-core/infrastructure/scripts/clickup-helpers.js +226 -0
- package/.aios-core/infrastructure/scripts/code-quality-improver.js +1312 -0
- package/.aios-core/infrastructure/scripts/commit-message-generator.js +850 -0
- package/.aios-core/infrastructure/scripts/component-generator.js +738 -0
- package/.aios-core/infrastructure/scripts/component-metadata.js +627 -0
- package/.aios-core/infrastructure/scripts/component-search.js +277 -0
- package/.aios-core/infrastructure/scripts/config-cache.js +322 -0
- package/.aios-core/infrastructure/scripts/config-loader.js +349 -0
- package/.aios-core/infrastructure/scripts/conflict-resolver.js +675 -0
- package/.aios-core/infrastructure/scripts/coverage-analyzer.js +882 -0
- package/.aios-core/infrastructure/scripts/dependency-analyzer.js +638 -0
- package/.aios-core/infrastructure/scripts/dependency-impact-analyzer.js +703 -0
- package/.aios-core/infrastructure/scripts/diff-generator.js +129 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +501 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/config-generator.js +368 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +308 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/doc-generator.js +331 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/gitignore-generator.js +312 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/index.js +74 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/mode-detector.js +389 -0
- package/.aios-core/infrastructure/scripts/documentation-synchronizer.js +1432 -0
- package/.aios-core/infrastructure/scripts/framework-analyzer.js +746 -0
- package/.aios-core/infrastructure/scripts/git-config-detector.js +293 -0
- package/.aios-core/infrastructure/scripts/git-wrapper.js +443 -0
- package/.aios-core/infrastructure/scripts/ide-sync/README.md +184 -0
- package/.aios-core/infrastructure/scripts/ide-sync/agent-parser.js +295 -0
- package/.aios-core/infrastructure/scripts/ide-sync/index.js +502 -0
- package/.aios-core/infrastructure/scripts/ide-sync/redirect-generator.js +200 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/antigravity.js +105 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/claude-code.js +84 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/cursor.js +94 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/trae.js +125 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/windsurf.js +106 -0
- package/.aios-core/infrastructure/scripts/ide-sync/validator.js +273 -0
- package/.aios-core/infrastructure/scripts/improvement-engine.js +758 -0
- package/.aios-core/infrastructure/scripts/improvement-validator.js +710 -0
- package/.aios-core/infrastructure/scripts/llm-routing/install-llm-routing.js +280 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free-tracked.cmd +127 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free-tracked.sh +108 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free.cmd +80 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free.sh +62 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-max.cmd +26 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-max.sh +18 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-proxy.cmd +71 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-proxy.sh +65 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-usage.cmd +51 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-usage.sh +16 -0
- package/.aios-core/infrastructure/scripts/llm-routing/usage-tracker/index.js +549 -0
- package/.aios-core/infrastructure/scripts/modification-risk-assessment.js +970 -0
- package/.aios-core/infrastructure/scripts/modification-validator.js +555 -0
- package/.aios-core/infrastructure/scripts/output-formatter.js +297 -0
- package/.aios-core/infrastructure/scripts/performance-analyzer.js +758 -0
- package/.aios-core/infrastructure/scripts/performance-and-error-resolver.js +258 -0
- package/.aios-core/infrastructure/scripts/performance-optimizer.js +1902 -0
- package/.aios-core/infrastructure/scripts/performance-tracker.js +452 -0
- package/.aios-core/infrastructure/scripts/pm-adapter-factory.js +181 -0
- package/.aios-core/infrastructure/scripts/pm-adapter.js +134 -0
- package/.aios-core/infrastructure/scripts/project-status-loader.js +445 -0
- package/.aios-core/infrastructure/scripts/refactoring-suggester.js +1139 -0
- package/.aios-core/infrastructure/scripts/repository-detector.js +64 -0
- package/.aios-core/infrastructure/scripts/sandbox-tester.js +618 -0
- package/.aios-core/infrastructure/scripts/security-checker.js +359 -0
- package/.aios-core/infrastructure/scripts/spot-check-validator.js +149 -0
- package/.aios-core/infrastructure/scripts/status-mapper.js +115 -0
- package/.aios-core/infrastructure/scripts/template-engine.js +240 -0
- package/.aios-core/infrastructure/scripts/template-validator.js +279 -0
- package/.aios-core/infrastructure/scripts/test-generator.js +844 -0
- package/.aios-core/infrastructure/scripts/test-quality-assessment.js +1081 -0
- package/.aios-core/infrastructure/scripts/test-utilities-fast.js +126 -0
- package/.aios-core/infrastructure/scripts/test-utilities.js +200 -0
- package/.aios-core/infrastructure/scripts/tool-resolver.js +360 -0
- package/.aios-core/infrastructure/scripts/transaction-manager.js +590 -0
- package/.aios-core/infrastructure/scripts/usage-analytics.js +634 -0
- package/.aios-core/infrastructure/scripts/validate-output-pattern.js +213 -0
- package/.aios-core/infrastructure/scripts/visual-impact-generator.js +1056 -0
- package/.aios-core/infrastructure/scripts/yaml-validator.js +397 -0
- package/.aios-core/infrastructure/templates/coderabbit.yaml.template +279 -0
- package/.aios-core/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +176 -0
- package/.aios-core/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +168 -0
- package/.aios-core/infrastructure/templates/github-workflows/README.md +109 -0
- package/.aios-core/infrastructure/templates/github-workflows/ci.yml.template +169 -0
- package/.aios-core/infrastructure/templates/github-workflows/pr-automation.yml.template +330 -0
- package/.aios-core/infrastructure/templates/github-workflows/release.yml.template +196 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-aios-base.tmpl +63 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +18 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-node.tmpl +85 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-python.tmpl +145 -0
- package/.aios-core/infrastructure/templates/project-docs/coding-standards-tmpl.md +346 -0
- package/.aios-core/infrastructure/templates/project-docs/source-tree-tmpl.md +177 -0
- package/.aios-core/infrastructure/templates/project-docs/tech-stack-tmpl.md +267 -0
- package/.aios-core/infrastructure/tests/project-status-loader.test.js +394 -0
- package/.aios-core/infrastructure/tests/regression-suite-v2.md +621 -0
- package/.aios-core/infrastructure/tests/validate-module.js +97 -0
- package/.aios-core/infrastructure/tools/README.md +222 -0
- package/.aios-core/infrastructure/tools/cli/github-cli.yaml +200 -0
- package/.aios-core/infrastructure/tools/cli/llm-routing.yaml +126 -0
- package/.aios-core/infrastructure/tools/cli/railway-cli.yaml +260 -0
- package/.aios-core/infrastructure/tools/cli/supabase-cli.yaml +224 -0
- package/.aios-core/infrastructure/tools/local/ffmpeg.yaml +261 -0
- package/.aios-core/infrastructure/tools/mcp/21st-dev-magic.yaml +127 -0
- package/.aios-core/infrastructure/tools/mcp/browser.yaml +103 -0
- package/.aios-core/infrastructure/tools/mcp/clickup.yaml +534 -0
- package/.aios-core/infrastructure/tools/mcp/context7.yaml +78 -0
- package/.aios-core/infrastructure/tools/mcp/desktop-commander.yaml +180 -0
- package/.aios-core/infrastructure/tools/mcp/exa.yaml +103 -0
- package/.aios-core/infrastructure/tools/mcp/google-workspace.yaml +930 -0
- package/.aios-core/infrastructure/tools/mcp/n8n.yaml +551 -0
- package/.aios-core/infrastructure/tools/mcp/supabase.yaml +808 -0
- package/.aios-core/install-manifest.yaml +2338 -0
- package/.aios-core/manifests/schema/manifest-schema.json +190 -0
- package/.aios-core/package.json +103 -0
- package/.aios-core/product/README.md +56 -0
- package/.aios-core/product/checklists/accessibility-wcag-checklist.md +80 -0
- package/.aios-core/product/checklists/architect-checklist.md +444 -0
- package/.aios-core/product/checklists/change-checklist.md +183 -0
- package/.aios-core/product/checklists/component-quality-checklist.md +74 -0
- package/.aios-core/product/checklists/database-design-checklist.md +119 -0
- package/.aios-core/product/checklists/dba-predeploy-checklist.md +97 -0
- package/.aios-core/product/checklists/dba-rollback-checklist.md +99 -0
- package/.aios-core/product/checklists/migration-readiness-checklist.md +75 -0
- package/.aios-core/product/checklists/pattern-audit-checklist.md +88 -0
- package/.aios-core/product/checklists/pm-checklist.md +376 -0
- package/.aios-core/product/checklists/po-master-checklist.md +442 -0
- package/.aios-core/product/checklists/pre-push-checklist.md +108 -0
- package/.aios-core/product/checklists/release-checklist.md +122 -0
- package/.aios-core/product/checklists/story-dod-checklist.md +102 -0
- package/.aios-core/product/checklists/story-draft-checklist.md +216 -0
- package/.aios-core/product/data/atomic-design-principles.md +108 -0
- package/.aios-core/product/data/brainstorming-techniques.md +37 -0
- package/.aios-core/product/data/consolidation-algorithms.md +142 -0
- package/.aios-core/product/data/database-best-practices.md +182 -0
- package/.aios-core/product/data/design-token-best-practices.md +107 -0
- package/.aios-core/product/data/elicitation-methods.md +135 -0
- package/.aios-core/product/data/integration-patterns.md +207 -0
- package/.aios-core/product/data/migration-safety-guide.md +329 -0
- package/.aios-core/product/data/mode-selection-best-practices.md +471 -0
- package/.aios-core/product/data/postgres-tuning-guide.md +300 -0
- package/.aios-core/product/data/rls-security-patterns.md +333 -0
- package/.aios-core/product/data/roi-calculation-guide.md +142 -0
- package/.aios-core/product/data/supabase-patterns.md +330 -0
- package/.aios-core/product/data/test-levels-framework.md +149 -0
- package/.aios-core/product/data/test-priorities-matrix.md +175 -0
- package/.aios-core/product/data/wcag-compliance-guide.md +267 -0
- package/.aios-core/product/templates/activation-instructions-inline-greeting.yaml +63 -0
- package/.aios-core/product/templates/activation-instructions-template.md +258 -0
- package/.aios-core/product/templates/adr.hbs +125 -0
- package/.aios-core/product/templates/agent-template.yaml +121 -0
- package/.aios-core/product/templates/architecture-tmpl.yaml +651 -0
- package/.aios-core/product/templates/brainstorming-output-tmpl.yaml +156 -0
- package/.aios-core/product/templates/brownfield-architecture-tmpl.yaml +476 -0
- package/.aios-core/product/templates/brownfield-prd-tmpl.yaml +280 -0
- package/.aios-core/product/templates/changelog-template.md +134 -0
- package/.aios-core/product/templates/command-rationalization-matrix.md +152 -0
- package/.aios-core/product/templates/competitor-analysis-tmpl.yaml +293 -0
- package/.aios-core/product/templates/component-react-tmpl.tsx +98 -0
- package/.aios-core/product/templates/dbdr.hbs +241 -0
- package/.aios-core/product/templates/design-story-tmpl.yaml +587 -0
- package/.aios-core/product/templates/ds-artifact-analysis.md +70 -0
- package/.aios-core/product/templates/engine/elicitation.js +298 -0
- package/.aios-core/product/templates/engine/index.js +308 -0
- package/.aios-core/product/templates/engine/loader.js +231 -0
- package/.aios-core/product/templates/engine/renderer.js +343 -0
- package/.aios-core/product/templates/engine/schemas/adr.schema.json +102 -0
- package/.aios-core/product/templates/engine/schemas/dbdr.schema.json +205 -0
- package/.aios-core/product/templates/engine/schemas/epic.schema.json +175 -0
- package/.aios-core/product/templates/engine/schemas/pmdr.schema.json +175 -0
- package/.aios-core/product/templates/engine/schemas/prd-v2.schema.json +300 -0
- package/.aios-core/product/templates/engine/schemas/prd.schema.json +152 -0
- package/.aios-core/product/templates/engine/schemas/story.schema.json +222 -0
- package/.aios-core/product/templates/engine/schemas/task.schema.json +154 -0
- package/.aios-core/product/templates/engine/validator.js +294 -0
- package/.aios-core/product/templates/epic.hbs +212 -0
- package/.aios-core/product/templates/eslintrc-security.json +32 -0
- package/.aios-core/product/templates/front-end-architecture-tmpl.yaml +206 -0
- package/.aios-core/product/templates/front-end-spec-tmpl.yaml +349 -0
- package/.aios-core/product/templates/fullstack-architecture-tmpl.yaml +805 -0
- package/.aios-core/product/templates/github-actions-cd.yml +212 -0
- package/.aios-core/product/templates/github-actions-ci.yml +172 -0
- package/.aios-core/product/templates/github-pr-template.md +67 -0
- package/.aios-core/product/templates/gordon-mcp.yaml +140 -0
- package/.aios-core/product/templates/ide-rules/antigravity-rules.md +115 -0
- package/.aios-core/product/templates/ide-rules/claude-rules.md +221 -0
- package/.aios-core/product/templates/ide-rules/cline-rules.md +84 -0
- package/.aios-core/product/templates/ide-rules/copilot-rules.md +92 -0
- package/.aios-core/product/templates/ide-rules/cursor-rules.md +115 -0
- package/.aios-core/product/templates/ide-rules/gemini-rules.md +85 -0
- package/.aios-core/product/templates/ide-rules/roo-rules.md +86 -0
- package/.aios-core/product/templates/ide-rules/trae-rules.md +104 -0
- package/.aios-core/product/templates/ide-rules/windsurf-rules.md +80 -0
- package/.aios-core/product/templates/index-strategy-tmpl.yaml +53 -0
- package/.aios-core/product/templates/market-research-tmpl.yaml +252 -0
- package/.aios-core/product/templates/mcp-workflow.js +271 -0
- package/.aios-core/product/templates/migration-plan-tmpl.yaml +1022 -0
- package/.aios-core/product/templates/migration-strategy-tmpl.md +524 -0
- package/.aios-core/product/templates/personalized-agent-template.md +258 -0
- package/.aios-core/product/templates/personalized-checklist-template.md +340 -0
- package/.aios-core/product/templates/personalized-task-template-v2.md +905 -0
- package/.aios-core/product/templates/personalized-task-template.md +344 -0
- package/.aios-core/product/templates/personalized-template-file.yaml +322 -0
- package/.aios-core/product/templates/personalized-workflow-template.yaml +460 -0
- package/.aios-core/product/templates/pmdr.hbs +186 -0
- package/.aios-core/product/templates/prd-tmpl.yaml +202 -0
- package/.aios-core/product/templates/prd-v2.0.hbs +216 -0
- package/.aios-core/product/templates/prd.hbs +201 -0
- package/.aios-core/product/templates/project-brief-tmpl.yaml +221 -0
- package/.aios-core/product/templates/qa-gate-tmpl.yaml +240 -0
- package/.aios-core/product/templates/rls-policies-tmpl.yaml +1203 -0
- package/.aios-core/product/templates/schema-design-tmpl.yaml +428 -0
- package/.aios-core/product/templates/shock-report-tmpl.html +502 -0
- package/.aios-core/product/templates/state-persistence-tmpl.yaml +219 -0
- package/.aios-core/product/templates/story-tmpl.yaml +332 -0
- package/.aios-core/product/templates/story.hbs +263 -0
- package/.aios-core/product/templates/task-execution-report.md +495 -0
- package/.aios-core/product/templates/task-template.md +123 -0
- package/.aios-core/product/templates/task.hbs +170 -0
- package/.aios-core/product/templates/tmpl-comment-on-examples.sql +158 -0
- package/.aios-core/product/templates/tmpl-migration-script.sql +91 -0
- package/.aios-core/product/templates/tmpl-rls-granular-policies.sql +104 -0
- package/.aios-core/product/templates/tmpl-rls-kiss-policy.sql +10 -0
- package/.aios-core/product/templates/tmpl-rls-roles.sql +135 -0
- package/.aios-core/product/templates/tmpl-rls-simple.sql +77 -0
- package/.aios-core/product/templates/tmpl-rls-tenant.sql +152 -0
- package/.aios-core/product/templates/tmpl-rollback-script.sql +77 -0
- package/.aios-core/product/templates/tmpl-seed-data.sql +140 -0
- package/.aios-core/product/templates/tmpl-smoke-test.sql +16 -0
- package/.aios-core/product/templates/tmpl-staging-copy-merge.sql +139 -0
- package/.aios-core/product/templates/tmpl-stored-proc.sql +140 -0
- package/.aios-core/product/templates/tmpl-trigger.sql +152 -0
- package/.aios-core/product/templates/tmpl-view-materialized.sql +133 -0
- package/.aios-core/product/templates/tmpl-view.sql +177 -0
- package/.aios-core/product/templates/token-exports-css-tmpl.css +240 -0
- package/.aios-core/product/templates/token-exports-tailwind-tmpl.js +395 -0
- package/.aios-core/product/templates/tokens-schema-tmpl.yaml +305 -0
- package/.aios-core/product/templates/workflow-template.yaml +134 -0
- package/.aios-core/quality/metrics-collector.js +599 -0
- package/.aios-core/quality/metrics-hook.js +260 -0
- package/.aios-core/quality/schemas/quality-metrics.schema.json +233 -0
- package/.aios-core/quality/seed-metrics.js +336 -0
- package/.aios-core/schemas/squad-design-schema.json +299 -0
- package/.aios-core/schemas/squad-schema.json +185 -0
- package/.aios-core/scripts/README.md +122 -0
- package/.aios-core/scripts/aios-doc-template.md +325 -0
- package/.aios-core/scripts/batch-migrate-phase1.ps1 +36 -0
- package/.aios-core/scripts/batch-migrate-phase2.ps1 +88 -0
- package/.aios-core/scripts/batch-migrate-phase3.ps1 +45 -0
- package/.aios-core/scripts/command-execution-hook.js +201 -0
- package/.aios-core/scripts/migrate-framework-docs.sh +300 -0
- package/.aios-core/scripts/session-context-loader.js +45 -0
- package/.aios-core/scripts/test-template-system.js +941 -0
- package/.aios-core/scripts/validate-phase1.ps1 +35 -0
- package/.aios-core/scripts/workflow-management.md +69 -0
- package/.aios-core/user-guide.md +1413 -0
- package/.aios-core/utils/aios-validator.js +25 -0
- package/.aios-core/workflow-intelligence/__tests__/confidence-scorer.test.js +334 -0
- package/.aios-core/workflow-intelligence/__tests__/integration.test.js +337 -0
- package/.aios-core/workflow-intelligence/__tests__/suggestion-engine.test.js +433 -0
- package/.aios-core/workflow-intelligence/__tests__/wave-analyzer.test.js +458 -0
- package/.aios-core/workflow-intelligence/__tests__/workflow-registry.test.js +302 -0
- package/.aios-core/workflow-intelligence/engine/confidence-scorer.js +305 -0
- package/.aios-core/workflow-intelligence/engine/output-formatter.js +285 -0
- package/.aios-core/workflow-intelligence/engine/suggestion-engine.js +603 -0
- package/.aios-core/workflow-intelligence/engine/wave-analyzer.js +676 -0
- package/.aios-core/workflow-intelligence/index.js +327 -0
- package/.aios-core/workflow-intelligence/learning/capture-hook.js +147 -0
- package/.aios-core/workflow-intelligence/learning/index.js +230 -0
- package/.aios-core/workflow-intelligence/learning/pattern-capture.js +340 -0
- package/.aios-core/workflow-intelligence/learning/pattern-store.js +498 -0
- package/.aios-core/workflow-intelligence/learning/pattern-validator.js +309 -0
- package/.aios-core/workflow-intelligence/registry/workflow-registry.js +358 -0
- package/.aios-core/working-in-the-brownfield.md +361 -0
- package/.claude/rules/mcp-usage.md +176 -0
- package/LICENSE +48 -0
- package/README.md +705 -0
- package/bin/aios-init.js +867 -0
- package/bin/aios-minimal.js +26 -0
- package/bin/aios.js +280 -0
- package/bin/modules/env-config.js +436 -0
- package/bin/modules/mcp-installer.js +383 -0
- package/bin/utils/install-errors.js +339 -0
- package/bin/utils/install-transaction.js +445 -0
- package/package.json +126 -0
- package/packages/installer/package.json +39 -0
- package/packages/installer/src/config/configure-environment.js +312 -0
- package/packages/installer/src/config/templates/core-config-template.js +183 -0
- package/packages/installer/src/config/templates/env-template.js +270 -0
- package/packages/installer/src/config/validation/config-validator.js +243 -0
- package/packages/installer/src/detection/detect-project-type.js +81 -0
- package/packages/installer/src/wizard/wizard.js +244 -0
- package/packages/installer/tests/integration/environment-configuration.test.js +329 -0
- package/packages/installer/tests/integration/wizard-detection.test.js +351 -0
- package/packages/installer/tests/unit/config-validator.test.js +315 -0
- package/packages/installer/tests/unit/detection/detect-project-type.test.js +401 -0
- package/packages/installer/tests/unit/env-template.test.js +187 -0
- package/scripts/generate-install-manifest.js +337 -0
- package/scripts/validate-manifest.js +265 -0
- package/src/config/ide-configs.js +189 -0
- package/src/installer/aios-core-installer.js +319 -0
- package/src/installer/brownfield-upgrader.js +438 -0
- package/src/installer/dependency-installer.js +335 -0
- package/src/installer/file-hasher.js +137 -0
- package/src/utils/aios-colors.js +234 -0
- package/src/wizard/feedback.js +218 -0
- package/src/wizard/ide-config-generator.js +536 -0
- package/src/wizard/ide-selector.js +84 -0
- package/src/wizard/index.js +589 -0
- package/src/wizard/questions.js +249 -0
- package/src/wizard/validation/index.js +120 -0
- package/src/wizard/validation/report-generator.js +269 -0
- package/src/wizard/validation/troubleshooting-system.js +346 -0
- package/src/wizard/validation/validators/config-validator.js +362 -0
- package/src/wizard/validation/validators/dependency-validator.js +333 -0
- package/src/wizard/validation/validators/file-structure-validator.js +181 -0
- package/src/wizard/validation/validators/mcp-health-checker.js +310 -0
- package/src/wizard/validators.js +274 -0
- package/templates/squad/LICENSE +21 -0
- package/templates/squad/README.md +37 -0
- package/templates/squad/agents/example-agent.yaml +36 -0
- package/templates/squad/package.json +19 -0
- package/templates/squad/squad.yaml +25 -0
- package/templates/squad/tasks/example-task.yaml +46 -0
- package/templates/squad/templates/example-template.md +24 -0
- package/templates/squad/tests/example-agent.test.js +53 -0
- package/templates/squad/workflows/example-workflow.yaml +54 -0
- package/tools/diagnose-installation.js +266 -0
- package/tools/diagnose-npx-issue.ps1 +96 -0
- package/tools/quick-diagnose.cmd +85 -0
- package/tools/quick-diagnose.ps1 +117 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Story Definition of Done (DoD) Checklist
|
|
2
|
+
|
|
3
|
+
## Instructions for Developer Agent
|
|
4
|
+
|
|
5
|
+
Before marking a story as 'Review', please go through each item in this checklist. Report the status of each item (e.g., [x] Done, [ ] Not Done, [N/A] Not Applicable) and provide brief comments if necessary.
|
|
6
|
+
|
|
7
|
+
[[LLM: INITIALIZATION INSTRUCTIONS - STORY DOD VALIDATION
|
|
8
|
+
|
|
9
|
+
This checklist is for DEVELOPER AGENTS to self-validate their work before marking a story complete.
|
|
10
|
+
|
|
11
|
+
IMPORTANT: This is a self-assessment. Be honest about what's actually done vs what should be done. It's better to identify issues now than have them found in review.
|
|
12
|
+
|
|
13
|
+
EXECUTION APPROACH:
|
|
14
|
+
|
|
15
|
+
1. Go through each section systematically
|
|
16
|
+
2. Mark items as [x] Done, [ ] Not Done, or [N/A] Not Applicable
|
|
17
|
+
3. Add brief comments explaining any [ ] or [N/A] items
|
|
18
|
+
4. Be specific about what was actually implemented
|
|
19
|
+
5. Flag any concerns or technical debt created
|
|
20
|
+
|
|
21
|
+
The goal is quality delivery, not just checking boxes.]]
|
|
22
|
+
|
|
23
|
+
## Checklist Items
|
|
24
|
+
|
|
25
|
+
1. **Requirements Met:**
|
|
26
|
+
|
|
27
|
+
[[LLM: Be specific - list each requirement and whether it's complete]]
|
|
28
|
+
|
|
29
|
+
- [ ] All functional requirements specified in the story are implemented.
|
|
30
|
+
- [ ] All acceptance criteria defined in the story are met.
|
|
31
|
+
|
|
32
|
+
2. **Coding Standards & Project Structure:**
|
|
33
|
+
|
|
34
|
+
[[LLM: Code quality matters for maintainability. Check each item carefully]]
|
|
35
|
+
|
|
36
|
+
- [ ] All new/modified code strictly adheres to `Operational Guidelines`.
|
|
37
|
+
- [ ] All new/modified code aligns with `Project Structure` (file locations, naming, etc.).
|
|
38
|
+
- [ ] Adherence to `Tech Stack` for technologies/versions used (if story introduces or modifies tech usage).
|
|
39
|
+
- [ ] Adherence to `Api Reference` and `Data Models` (if story involves API or data model changes).
|
|
40
|
+
- [ ] Basic security best practices (e.g., input validation, proper error handling, no hardcoded secrets) applied for new/modified code.
|
|
41
|
+
- [ ] No new linter errors or warnings introduced.
|
|
42
|
+
- [ ] Code is well-commented where necessary (clarifying complex logic, not obvious statements).
|
|
43
|
+
|
|
44
|
+
3. **Testing:**
|
|
45
|
+
|
|
46
|
+
[[LLM: Testing proves your code works. Be honest about test coverage]]
|
|
47
|
+
|
|
48
|
+
- [ ] All required unit tests as per the story and `Operational Guidelines` Testing Strategy are implemented.
|
|
49
|
+
- [ ] All required integration tests (if applicable) as per the story and `Operational Guidelines` Testing Strategy are implemented.
|
|
50
|
+
- [ ] All tests (unit, integration, E2E if applicable) pass successfully.
|
|
51
|
+
- [ ] Test coverage meets project standards (if defined).
|
|
52
|
+
|
|
53
|
+
4. **Functionality & Verification:**
|
|
54
|
+
|
|
55
|
+
[[LLM: Did you actually run and test your code? Be specific about what you tested]]
|
|
56
|
+
|
|
57
|
+
- [ ] Functionality has been manually verified by the developer (e.g., running the app locally, checking UI, testing API endpoints).
|
|
58
|
+
- [ ] Edge cases and potential error conditions considered and handled gracefully.
|
|
59
|
+
|
|
60
|
+
5. **Story Administration:**
|
|
61
|
+
|
|
62
|
+
[[LLM: Documentation helps the next developer. What should they know?]]
|
|
63
|
+
|
|
64
|
+
- [ ] All tasks within the story file are marked as complete.
|
|
65
|
+
- [ ] Any clarifications or decisions made during development are documented in the story file or linked appropriately.
|
|
66
|
+
- [ ] The story wrap up section has been completed with notes of changes or information relevant to the next story or overall project, the agent model that was primarily used during development, and the changelog of any changes is properly updated.
|
|
67
|
+
|
|
68
|
+
6. **Dependencies, Build & Configuration:**
|
|
69
|
+
|
|
70
|
+
[[LLM: Build issues block everyone. Ensure everything compiles and runs cleanly]]
|
|
71
|
+
|
|
72
|
+
- [ ] Project builds successfully without errors.
|
|
73
|
+
- [ ] Project linting passes
|
|
74
|
+
- [ ] Any new dependencies added were either pre-approved in the story requirements OR explicitly approved by the user during development (approval documented in story file).
|
|
75
|
+
- [ ] If new dependencies were added, they are recorded in the appropriate project files (e.g., `package.json`, `requirements.txt`) with justification.
|
|
76
|
+
- [ ] No known security vulnerabilities introduced by newly added and approved dependencies.
|
|
77
|
+
- [ ] If new environment variables or configurations were introduced by the story, they are documented and handled securely.
|
|
78
|
+
|
|
79
|
+
7. **Documentation (If Applicable):**
|
|
80
|
+
|
|
81
|
+
[[LLM: Good documentation prevents future confusion. What needs explaining?]]
|
|
82
|
+
|
|
83
|
+
- [ ] Relevant inline code documentation (e.g., JSDoc, TSDoc, Python docstrings) for new public APIs or complex logic is complete.
|
|
84
|
+
- [ ] User-facing documentation updated, if changes impact users.
|
|
85
|
+
- [ ] Technical documentation (e.g., READMEs, system diagrams) updated if significant architectural changes were made.
|
|
86
|
+
|
|
87
|
+
## Final Confirmation
|
|
88
|
+
|
|
89
|
+
[[LLM: FINAL DOD SUMMARY
|
|
90
|
+
|
|
91
|
+
After completing the checklist:
|
|
92
|
+
|
|
93
|
+
1. Summarize what was accomplished in this story
|
|
94
|
+
2. List any items marked as [ ] Not Done with explanations
|
|
95
|
+
3. Identify any technical debt or follow-up work needed
|
|
96
|
+
4. Note any challenges or learnings for future stories
|
|
97
|
+
5. Confirm whether the story is truly ready for review
|
|
98
|
+
|
|
99
|
+
Be honest - it's better to flag issues now than have them discovered later.]]
|
|
100
|
+
|
|
101
|
+
- [ ] I, the Developer Agent, confirm that all applicable items above have been addressed.
|
|
102
|
+
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Story Draft Checklist
|
|
2
|
+
|
|
3
|
+
The Scrum Master should use this checklist to validate that each story contains sufficient context for a developer agent to implement it successfully, while assuming the dev agent has reasonable capabilities to figure things out.
|
|
4
|
+
|
|
5
|
+
[[LLM: INITIALIZATION INSTRUCTIONS - STORY DRAFT VALIDATION
|
|
6
|
+
|
|
7
|
+
Before proceeding with this checklist, ensure you have access to:
|
|
8
|
+
|
|
9
|
+
1. The story document being validated (usually in docs/stories/ or provided directly)
|
|
10
|
+
2. The parent epic context
|
|
11
|
+
3. Any referenced architecture or design documents
|
|
12
|
+
4. Previous related stories if this builds on prior work
|
|
13
|
+
|
|
14
|
+
IMPORTANT: This checklist validates individual stories BEFORE implementation begins.
|
|
15
|
+
|
|
16
|
+
VALIDATION PRINCIPLES:
|
|
17
|
+
|
|
18
|
+
1. Clarity - A developer should understand WHAT to build
|
|
19
|
+
2. Context - WHY this is being built and how it fits
|
|
20
|
+
3. Guidance - Key technical decisions and patterns to follow
|
|
21
|
+
4. Testability - How to verify the implementation works
|
|
22
|
+
5. Self-Contained - Most info needed is in the story itself
|
|
23
|
+
|
|
24
|
+
REMEMBER: We assume competent developer agents who can:
|
|
25
|
+
|
|
26
|
+
- Research documentation and codebases
|
|
27
|
+
- Make reasonable technical decisions
|
|
28
|
+
- Follow established patterns
|
|
29
|
+
- Ask for clarification when truly stuck
|
|
30
|
+
|
|
31
|
+
We're checking for SUFFICIENT guidance, not exhaustive detail.]]
|
|
32
|
+
|
|
33
|
+
## 1. GOAL & CONTEXT CLARITY
|
|
34
|
+
|
|
35
|
+
[[LLM: Without clear goals, developers build the wrong thing. Verify:
|
|
36
|
+
|
|
37
|
+
1. The story states WHAT functionality to implement
|
|
38
|
+
2. The business value or user benefit is clear
|
|
39
|
+
3. How this fits into the larger epic/product is explained
|
|
40
|
+
4. Dependencies are explicit ("requires Story X to be complete")
|
|
41
|
+
5. Success looks like something specific, not vague]]
|
|
42
|
+
|
|
43
|
+
- [ ] Story goal/purpose is clearly stated
|
|
44
|
+
- [ ] Relationship to epic goals is evident
|
|
45
|
+
- [ ] How the story fits into overall system flow is explained
|
|
46
|
+
- [ ] Dependencies on previous stories are identified (if applicable)
|
|
47
|
+
- [ ] Business context and value are clear
|
|
48
|
+
|
|
49
|
+
## 2. TECHNICAL IMPLEMENTATION GUIDANCE
|
|
50
|
+
|
|
51
|
+
[[LLM: Developers need enough technical context to start coding. Check:
|
|
52
|
+
|
|
53
|
+
1. Key files/components to create or modify are mentioned
|
|
54
|
+
2. Technology choices are specified where non-obvious
|
|
55
|
+
3. Integration points with existing code are identified
|
|
56
|
+
4. Data models or API contracts are defined or referenced
|
|
57
|
+
5. Non-standard patterns or exceptions are called out
|
|
58
|
+
|
|
59
|
+
Note: We don't need every file listed - just the important ones.]]
|
|
60
|
+
|
|
61
|
+
- [ ] Key files to create/modify are identified (not necessarily exhaustive)
|
|
62
|
+
- [ ] Technologies specifically needed for this story are mentioned
|
|
63
|
+
- [ ] Critical APIs or interfaces are sufficiently described
|
|
64
|
+
- [ ] Necessary data models or structures are referenced
|
|
65
|
+
- [ ] Required environment variables are listed (if applicable)
|
|
66
|
+
- [ ] Any exceptions to standard coding patterns are noted
|
|
67
|
+
|
|
68
|
+
## 3. REFERENCE EFFECTIVENESS
|
|
69
|
+
|
|
70
|
+
[[LLM: References should help, not create a treasure hunt. Ensure:
|
|
71
|
+
|
|
72
|
+
1. References point to specific sections, not whole documents
|
|
73
|
+
2. The relevance of each reference is explained
|
|
74
|
+
3. Critical information is summarized in the story
|
|
75
|
+
4. References are accessible (not broken links)
|
|
76
|
+
5. Previous story context is summarized if needed]]
|
|
77
|
+
|
|
78
|
+
- [ ] References to external documents point to specific relevant sections
|
|
79
|
+
- [ ] Critical information from previous stories is summarized (not just referenced)
|
|
80
|
+
- [ ] Context is provided for why references are relevant
|
|
81
|
+
- [ ] References use consistent format (e.g., `docs/filename.md#section`)
|
|
82
|
+
|
|
83
|
+
## 4. SELF-CONTAINMENT ASSESSMENT
|
|
84
|
+
|
|
85
|
+
[[LLM: Stories should be mostly self-contained to avoid context switching. Verify:
|
|
86
|
+
|
|
87
|
+
1. Core requirements are in the story, not just in references
|
|
88
|
+
2. Domain terms are explained or obvious from context
|
|
89
|
+
3. Assumptions are stated explicitly
|
|
90
|
+
4. Edge cases are mentioned (even if deferred)
|
|
91
|
+
5. The story could be understood without reading 10 other documents]]
|
|
92
|
+
|
|
93
|
+
- [ ] Core information needed is included (not overly reliant on external docs)
|
|
94
|
+
- [ ] Implicit assumptions are made explicit
|
|
95
|
+
- [ ] Domain-specific terms or concepts are explained
|
|
96
|
+
- [ ] Edge cases or error scenarios are addressed
|
|
97
|
+
|
|
98
|
+
## 5. TESTING GUIDANCE
|
|
99
|
+
|
|
100
|
+
[[LLM: Testing ensures the implementation actually works. Check:
|
|
101
|
+
|
|
102
|
+
1. Test approach is specified (unit, integration, e2e)
|
|
103
|
+
2. Key test scenarios are listed
|
|
104
|
+
3. Success criteria are measurable
|
|
105
|
+
4. Special test considerations are noted
|
|
106
|
+
5. Acceptance criteria in the story are testable]]
|
|
107
|
+
|
|
108
|
+
- [ ] Required testing approach is outlined
|
|
109
|
+
- [ ] Key test scenarios are identified
|
|
110
|
+
- [ ] Success criteria are defined
|
|
111
|
+
- [ ] Special testing considerations are noted (if applicable)
|
|
112
|
+
|
|
113
|
+
## 6. CODERABBIT INTEGRATION (CONDITIONAL)
|
|
114
|
+
|
|
115
|
+
[[LLM: CONDITIONAL SECTION - Check `coderabbit_integration.enabled` in `.aios-core/core-config.yaml`
|
|
116
|
+
|
|
117
|
+
**IF `coderabbit_integration.enabled: false`:**
|
|
118
|
+
- SKIP this entire section (6)
|
|
119
|
+
- Verify the story contains the skip notice:
|
|
120
|
+
> **CodeRabbit Integration**: Disabled
|
|
121
|
+
- Mark section as N/A in validation result
|
|
122
|
+
- Log: "ℹ️ CodeRabbit validation skipped - disabled in core-config.yaml"
|
|
123
|
+
|
|
124
|
+
**IF `coderabbit_integration.enabled: true`:**
|
|
125
|
+
- Validate ALL items below
|
|
126
|
+
- Story must have complete CodeRabbit section including Story 6.3.3 Self-Healing
|
|
127
|
+
|
|
128
|
+
CodeRabbit integration ensures automated code review and quality gates. Verify:
|
|
129
|
+
|
|
130
|
+
1. The 🤖 CodeRabbit Integration section is present
|
|
131
|
+
2. Story type is correctly identified (Database, API, Frontend, Deployment, Security, Architecture, Integration)
|
|
132
|
+
3. Specialized agents are assigned appropriately (@dev required, type-specific agents as needed)
|
|
133
|
+
4. Quality gates are defined (Pre-Commit required, Pre-PR/Pre-Deployment as applicable)
|
|
134
|
+
5. Self-Healing Configuration (Story 6.3.3) is present with correct mode
|
|
135
|
+
6. Focus areas match the story type]]
|
|
136
|
+
|
|
137
|
+
**Section Presence:**
|
|
138
|
+
- [ ] 🤖 CodeRabbit Integration section exists
|
|
139
|
+
- [ ] All subsections are populated (Story Type Analysis, Specialized Agents, Quality Gates, Self-Healing, Focus Areas)
|
|
140
|
+
|
|
141
|
+
**Story Type Analysis:**
|
|
142
|
+
- [ ] Primary story type is correctly identified
|
|
143
|
+
- [ ] Complexity level matches story scope
|
|
144
|
+
- [ ] Secondary types listed if applicable
|
|
145
|
+
|
|
146
|
+
**Specialized Agent Assignment:**
|
|
147
|
+
- [ ] @dev listed as primary agent (required for all stories)
|
|
148
|
+
- [ ] Type-specific agents assigned appropriately:
|
|
149
|
+
- Database stories → @db-sage
|
|
150
|
+
- Frontend stories → @ux-expert
|
|
151
|
+
- Deployment stories → @github-devops
|
|
152
|
+
- Security stories → @architect
|
|
153
|
+
|
|
154
|
+
**Quality Gate Tasks:**
|
|
155
|
+
- [ ] Pre-Commit (@dev) defined - REQUIRED for all stories
|
|
156
|
+
- [ ] Pre-PR (@github-devops) defined if PR will be created
|
|
157
|
+
- [ ] Pre-Deployment (@github-devops) defined for production stories
|
|
158
|
+
|
|
159
|
+
**Self-Healing Configuration (Story 6.3.3):**
|
|
160
|
+
- [ ] Self-healing configuration section is present
|
|
161
|
+
- [ ] Mode matches primary agent:
|
|
162
|
+
- @dev: light mode (2 iterations, 15 min, CRITICAL only)
|
|
163
|
+
- @qa: full mode (3 iterations, 30 min, CRITICAL+HIGH)
|
|
164
|
+
- @github-devops: check mode (report only)
|
|
165
|
+
- [ ] Severity behavior is documented
|
|
166
|
+
|
|
167
|
+
**Focus Areas:**
|
|
168
|
+
- [ ] Focus areas match the story type
|
|
169
|
+
- [ ] Type-specific validations are listed
|
|
170
|
+
|
|
171
|
+
## VALIDATION RESULT
|
|
172
|
+
|
|
173
|
+
[[LLM: FINAL STORY VALIDATION REPORT
|
|
174
|
+
|
|
175
|
+
Generate a concise validation report:
|
|
176
|
+
|
|
177
|
+
1. Quick Summary
|
|
178
|
+
|
|
179
|
+
- Story readiness: READY / NEEDS REVISION / BLOCKED
|
|
180
|
+
- Clarity score (1-10)
|
|
181
|
+
- Major gaps identified
|
|
182
|
+
|
|
183
|
+
2. Fill in the validation table with:
|
|
184
|
+
|
|
185
|
+
- PASS: Requirements clearly met
|
|
186
|
+
- PARTIAL: Some gaps but workable
|
|
187
|
+
- FAIL: Critical information missing
|
|
188
|
+
|
|
189
|
+
3. Specific Issues (if any)
|
|
190
|
+
|
|
191
|
+
- List concrete problems to fix
|
|
192
|
+
- Suggest specific improvements
|
|
193
|
+
- Identify any blocking dependencies
|
|
194
|
+
|
|
195
|
+
4. Developer Perspective
|
|
196
|
+
- Could YOU implement this story as written?
|
|
197
|
+
- What questions would you have?
|
|
198
|
+
- What might cause delays or rework?
|
|
199
|
+
|
|
200
|
+
Be pragmatic - perfect documentation doesn't exist, but it must be enough to provide the extreme context a dev agent needs to get the work down and not create a mess.]]
|
|
201
|
+
|
|
202
|
+
| Category | Status | Issues |
|
|
203
|
+
| ------------------------------------ | ------ | ------ |
|
|
204
|
+
| 1. Goal & Context Clarity | _TBD_ | |
|
|
205
|
+
| 2. Technical Implementation Guidance | _TBD_ | |
|
|
206
|
+
| 3. Reference Effectiveness | _TBD_ | |
|
|
207
|
+
| 4. Self-Containment Assessment | _TBD_ | |
|
|
208
|
+
| 5. Testing Guidance | _TBD_ | |
|
|
209
|
+
| 6. CodeRabbit Integration (conditional) | _TBD_ or N/A | |
|
|
210
|
+
|
|
211
|
+
**Final Assessment:**
|
|
212
|
+
|
|
213
|
+
- READY: The story provides sufficient context for implementation
|
|
214
|
+
- NEEDS REVISION: The story requires updates (see issues)
|
|
215
|
+
- BLOCKED: External information required (specify what information)
|
|
216
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Atomic Design Principles
|
|
2
|
+
|
|
3
|
+
**Source:** Brad Frost's Atomic Design methodology
|
|
4
|
+
**Application:** Atlas component organization
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## The Five Levels
|
|
9
|
+
|
|
10
|
+
### Atoms
|
|
11
|
+
**Definition:** Basic building blocks that can't be broken down further.
|
|
12
|
+
|
|
13
|
+
**Examples:**
|
|
14
|
+
- Button
|
|
15
|
+
- Input
|
|
16
|
+
- Label
|
|
17
|
+
- Icon
|
|
18
|
+
- Heading
|
|
19
|
+
- Text
|
|
20
|
+
|
|
21
|
+
**Rules:**
|
|
22
|
+
- Standalone, reusable
|
|
23
|
+
- No dependencies on other atoms
|
|
24
|
+
- Uses tokens only (no hardcoded values)
|
|
25
|
+
- Single responsibility
|
|
26
|
+
|
|
27
|
+
### Molecules
|
|
28
|
+
**Definition:** Groups of atoms functioning together as a unit.
|
|
29
|
+
|
|
30
|
+
**Examples:**
|
|
31
|
+
- FormField (Label + Input + HelperText)
|
|
32
|
+
- SearchBar (Input + Button)
|
|
33
|
+
- Card Header (Icon + Heading + Text)
|
|
34
|
+
|
|
35
|
+
**Rules:**
|
|
36
|
+
- Composes atoms (doesn't reimplement)
|
|
37
|
+
- Adds composition logic
|
|
38
|
+
- Atoms remain independent
|
|
39
|
+
|
|
40
|
+
### Organisms
|
|
41
|
+
**Definition:** Complex UI components composed of molecules and/or atoms.
|
|
42
|
+
|
|
43
|
+
**Examples:**
|
|
44
|
+
- Navigation (Logo + NavLinks + SearchBar + UserMenu)
|
|
45
|
+
- LoginForm (FormFields + Button + Link)
|
|
46
|
+
- ProductCard (Image + CardHeader + CardBody + Button)
|
|
47
|
+
|
|
48
|
+
**Rules:**
|
|
49
|
+
- Distinct section of interface
|
|
50
|
+
- Can be reused across templates
|
|
51
|
+
- Manages internal state if needed
|
|
52
|
+
|
|
53
|
+
### Templates
|
|
54
|
+
**Definition:** Page-level layout without real content.
|
|
55
|
+
|
|
56
|
+
**Examples:**
|
|
57
|
+
- DashboardLayout
|
|
58
|
+
- ArticleLayout
|
|
59
|
+
- CheckoutFlowLayout
|
|
60
|
+
|
|
61
|
+
**Rules:**
|
|
62
|
+
- Defines page structure
|
|
63
|
+
- Placeholder content
|
|
64
|
+
- Reusable across pages
|
|
65
|
+
|
|
66
|
+
### Pages
|
|
67
|
+
**Definition:** Templates with real content.
|
|
68
|
+
|
|
69
|
+
**Examples:**
|
|
70
|
+
- Homepage
|
|
71
|
+
- Product Detail Page
|
|
72
|
+
- User Dashboard
|
|
73
|
+
|
|
74
|
+
**Note:** Atlas focuses on atoms → organisms. Pages are application-specific.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Benefits
|
|
79
|
+
|
|
80
|
+
1. **Consistency:** Reusing atoms ensures UI consistency
|
|
81
|
+
2. **Scalability:** New features built from existing components
|
|
82
|
+
3. **Maintenance:** Fix once, applies everywhere
|
|
83
|
+
4. **Testing:** Test atoms thoroughly, compose with confidence
|
|
84
|
+
5. **Collaboration:** Clear component taxonomy
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Atlas Implementation
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
design-system/
|
|
92
|
+
├── atoms/
|
|
93
|
+
│ ├── Button/
|
|
94
|
+
│ ├── Input/
|
|
95
|
+
│ └── Label/
|
|
96
|
+
├── molecules/
|
|
97
|
+
│ ├── FormField/
|
|
98
|
+
│ └── SearchBar/
|
|
99
|
+
├── organisms/
|
|
100
|
+
│ ├── Navigation/
|
|
101
|
+
│ └── LoginForm/
|
|
102
|
+
└── templates/
|
|
103
|
+
└── DashboardLayout/
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Atlas builds:** atoms first → molecules → organisms → templates
|
|
107
|
+
|
|
108
|
+
**Reference:** https://atomicdesign.bradfrost.com/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Brainstorming Techniques Data
|
|
2
|
+
|
|
3
|
+
## Creative Expansion
|
|
4
|
+
|
|
5
|
+
1. **What If Scenarios**: Ask one provocative question, get their response, then ask another
|
|
6
|
+
2. **Analogical Thinking**: Give one example analogy, ask them to find 2-3 more
|
|
7
|
+
3. **Reversal/Inversion**: Pose the reverse question, let them work through it
|
|
8
|
+
4. **First Principles Thinking**: Ask "What are the fundamentals?" and guide them to break it down
|
|
9
|
+
|
|
10
|
+
## Structured Frameworks
|
|
11
|
+
|
|
12
|
+
5. **SCAMPER Method**: Go through one letter at a time, wait for their ideas before moving to next
|
|
13
|
+
6. **Six Thinking Hats**: Present one hat, ask for their thoughts, then move to next hat
|
|
14
|
+
7. **Mind Mapping**: Start with central concept, ask them to suggest branches
|
|
15
|
+
|
|
16
|
+
## Collaborative Techniques
|
|
17
|
+
|
|
18
|
+
8. **"Yes, And..." Building**: They give idea, you "yes and" it, they "yes and" back - alternate
|
|
19
|
+
9. **Brainwriting/Round Robin**: They suggest idea, you build on it, ask them to build on yours
|
|
20
|
+
10. **Random Stimulation**: Give one random prompt/word, ask them to make connections
|
|
21
|
+
|
|
22
|
+
## Deep Exploration
|
|
23
|
+
|
|
24
|
+
11. **Five Whys**: Ask "why" and wait for their answer before asking next "why"
|
|
25
|
+
12. **Morphological Analysis**: Ask them to list parameters first, then explore combinations together
|
|
26
|
+
13. **Provocation Technique (PO)**: Give one provocative statement, ask them to extract useful ideas
|
|
27
|
+
|
|
28
|
+
## Advanced Techniques
|
|
29
|
+
|
|
30
|
+
14. **Forced Relationships**: Connect two unrelated concepts and ask them to find the bridge
|
|
31
|
+
15. **Assumption Reversal**: Challenge their core assumptions and ask them to build from there
|
|
32
|
+
16. **Role Playing**: Ask them to brainstorm from different stakeholder perspectives
|
|
33
|
+
17. **Time Shifting**: "How would you solve this in 1995? 2030?"
|
|
34
|
+
18. **Resource Constraints**: "What if you had only $10 and 1 hour?"
|
|
35
|
+
19. **Metaphor Mapping**: Use extended metaphors to explore solutions
|
|
36
|
+
20. **Question Storming**: Generate questions instead of answers first
|
|
37
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Pattern Consolidation Algorithms
|
|
2
|
+
|
|
3
|
+
**Agent:** Brad (Design System Architect)
|
|
4
|
+
**Purpose:** How Brad reduces 176 patterns to 32
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Color Clustering (HSL-based)
|
|
9
|
+
|
|
10
|
+
**Algorithm:** Perceptual similarity in HSL color space
|
|
11
|
+
|
|
12
|
+
```python
|
|
13
|
+
def cluster_colors(colors, threshold=0.05):
|
|
14
|
+
"""
|
|
15
|
+
Group colors within 5% HSL difference
|
|
16
|
+
threshold: 0.05 = 5% difference in H, S, or L
|
|
17
|
+
"""
|
|
18
|
+
clusters = []
|
|
19
|
+
for color in colors:
|
|
20
|
+
hsl = hex_to_hsl(color)
|
|
21
|
+
found_cluster = False
|
|
22
|
+
|
|
23
|
+
for cluster in clusters:
|
|
24
|
+
cluster_hsl = hex_to_hsl(cluster['primary'])
|
|
25
|
+
if hsl_distance(hsl, cluster_hsl) < threshold:
|
|
26
|
+
cluster['members'].append(color)
|
|
27
|
+
found_cluster = True
|
|
28
|
+
break
|
|
29
|
+
|
|
30
|
+
if not found_cluster:
|
|
31
|
+
clusters.append({
|
|
32
|
+
'primary': color, # Most-used in this cluster
|
|
33
|
+
'members': [color]
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
return clusters
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Example:**
|
|
40
|
+
```
|
|
41
|
+
Input: #0066CC, #0065CB, #0067CD, #0064CA
|
|
42
|
+
HSL distance: All within 2% of each other
|
|
43
|
+
Output: Cluster → Keep #0066CC (most-used)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Why HSL not RGB:** Perceptually similar colors cluster better in HSL space.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Button Semantic Analysis
|
|
51
|
+
|
|
52
|
+
**Algorithm:** Keyword matching + usage frequency
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
def analyze_button_semantics(button_classes):
|
|
56
|
+
"""
|
|
57
|
+
Group buttons by semantic purpose
|
|
58
|
+
Keywords: primary, main, secondary, default, danger, delete, destructive
|
|
59
|
+
"""
|
|
60
|
+
semantic_groups = {
|
|
61
|
+
'primary': [],
|
|
62
|
+
'secondary': [],
|
|
63
|
+
'destructive': []
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
for btn_class, usage_count in button_classes:
|
|
67
|
+
if any(kw in btn_class.lower() for kw in ['primary', 'main', 'cta']):
|
|
68
|
+
semantic_groups['primary'].append((btn_class, usage_count))
|
|
69
|
+
elif any(kw in btn_class.lower() for kw in ['secondary', 'default', 'ghost']):
|
|
70
|
+
semantic_groups['secondary'].append((btn_class, usage_count))
|
|
71
|
+
elif any(kw in btn_class.lower() for kw in ['danger', 'delete', 'destructive', 'error']):
|
|
72
|
+
semantic_groups['destructive'].append((btn_class, usage_count))
|
|
73
|
+
|
|
74
|
+
# Keep most-used in each group
|
|
75
|
+
return {
|
|
76
|
+
group: max(classes, key=lambda x: x[1])[0]
|
|
77
|
+
for group, classes in semantic_groups.items()
|
|
78
|
+
if classes
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Result:** 47 buttons → 3 variants (primary, secondary, destructive)
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Spacing Scale Generation
|
|
87
|
+
|
|
88
|
+
**Algorithm:** Base unit detection + scale building
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
def generate_spacing_scale(spacing_values):
|
|
92
|
+
"""
|
|
93
|
+
Detect base unit (4px or 8px)
|
|
94
|
+
Build scale from base unit
|
|
95
|
+
"""
|
|
96
|
+
# Find GCD of all spacing values
|
|
97
|
+
base_unit = gcd_multiple(spacing_values)
|
|
98
|
+
|
|
99
|
+
# Common: 4px or 8px
|
|
100
|
+
if base_unit not in [4, 8]:
|
|
101
|
+
base_unit = 4 # Default to 4px
|
|
102
|
+
|
|
103
|
+
# Generate scale
|
|
104
|
+
scale = {
|
|
105
|
+
'xs': base_unit,
|
|
106
|
+
'sm': base_unit * 2,
|
|
107
|
+
'md': base_unit * 4,
|
|
108
|
+
'lg': base_unit * 6,
|
|
109
|
+
'xl': base_unit * 8,
|
|
110
|
+
'2xl': base_unit * 12,
|
|
111
|
+
'3xl': base_unit * 16
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return scale
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Example:**
|
|
118
|
+
```
|
|
119
|
+
Input: 2, 4, 6, 8, 12, 16, 20, 24, 32
|
|
120
|
+
Base unit: 4px
|
|
121
|
+
Output: xs=4, sm=8, md=16, lg=24, xl=32, 2xl=48, 3xl=64
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Consolidation Targets
|
|
127
|
+
|
|
128
|
+
**Brad's Targets:**
|
|
129
|
+
- Colors: >85% reduction
|
|
130
|
+
- Buttons: >90% reduction
|
|
131
|
+
- Spacing: >60% reduction
|
|
132
|
+
- Typography: >50% reduction
|
|
133
|
+
- **Overall:** >80% reduction
|
|
134
|
+
|
|
135
|
+
**Achieved:** Typically 81-86% overall reduction
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## References
|
|
140
|
+
|
|
141
|
+
- HSL color space: https://en.wikipedia.org/wiki/HSL_and_HSV
|
|
142
|
+
- Brad Frost patterns: https://bradfrost.com/blog/
|