@cregis-dev/cckit 0.4.0 → 0.5.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/LICENSE +21 -21
- package/README.md +98 -148
- package/bin/cckit.js +3 -3
- package/package.json +8 -7
- package/registry.json +92 -234
- package/src/cli.js +17 -26
- package/src/commands/init.js +160 -337
- package/src/commands/status.js +85 -62
- package/src/commands/update.js +151 -430
- package/src/core/config.js +74 -82
- package/src/core/orchestrator.js +79 -0
- package/src/core/registry.js +60 -75
- package/src/steps/configure-user.js +115 -0
- package/src/steps/enable-plugins.js +97 -0
- package/src/steps/install-bmad.js +85 -0
- package/src/steps/install-mcp.js +70 -0
- package/src/steps/install-rules.js +110 -0
- package/src/steps/install-skills.js +54 -0
- package/src/utils/fs.js +33 -55
- package/src/utils/logger.js +16 -16
- package/src/utils/manifest.js +99 -0
- package/src/utils/prompt.js +41 -0
- package/templates/mcp/claude-code/.mcp.json +40 -35
- package/src/adapters/trae-adapter.js +0 -90
- package/src/commands/add.js +0 -192
- package/src/commands/sync.js +0 -325
- package/src/core/differ.js +0 -57
- package/src/core/installer.js +0 -97
- package/src/core/plugin-installer.js +0 -278
- package/src/core/templatize.js +0 -42
- package/src/core/upstream.js +0 -357
- package/templates/bmad/_config/agent-manifest.csv +0 -12
- package/templates/bmad/_config/agents/bmm-analyst.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-architect.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-dev.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-pm.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-qa.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-quick-flow-solo-dev.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-sm.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-tech-writer.customize.yaml +0 -41
- package/templates/bmad/_config/agents/bmm-ux-designer.customize.yaml +0 -41
- package/templates/bmad/_config/agents/core-bmad-master.customize.yaml +0 -41
- package/templates/bmad/_config/agents/tea-tea.customize.yaml +0 -41
- package/templates/bmad/_config/bmad-help.csv +0 -49
- package/templates/bmad/_config/files-manifest.csv +0 -437
- package/templates/bmad/_config/ides/claude-code.yaml +0 -5
- package/templates/bmad/_config/ides/opencode.yaml +0 -5
- package/templates/bmad/_config/ides/trae.yaml +0 -5
- package/templates/bmad/_config/task-manifest.csv +0 -8
- package/templates/bmad/_config/tool-manifest.csv +0 -1
- package/templates/bmad/_config/workflow-manifest.csv +0 -35
- package/templates/bmad/bmm/agents/analyst.md +0 -78
- package/templates/bmad/bmm/agents/architect.md +0 -58
- package/templates/bmad/bmm/agents/dev.md +0 -69
- package/templates/bmad/bmm/agents/pm.md +0 -72
- package/templates/bmad/bmm/agents/qa.md +0 -92
- package/templates/bmad/bmm/agents/quick-flow-solo-dev.md +0 -69
- package/templates/bmad/bmm/agents/sm.md +0 -70
- package/templates/bmad/bmm/agents/tech-writer/tech-writer.md +0 -70
- package/templates/bmad/bmm/agents/ux-designer.md +0 -57
- package/templates/bmad/bmm/config.yaml +0 -15
- package/templates/bmad/bmm/data/project-context-template.md +0 -26
- package/templates/bmad/bmm/module-help.csv +0 -31
- package/templates/bmad/bmm/teams/default-party.csv +0 -20
- package/templates/bmad/bmm/teams/team-fullstack.yaml +0 -12
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +0 -10
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +0 -177
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +0 -161
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +0 -199
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +0 -202
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +0 -205
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +0 -219
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +0 -162
- package/templates/bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +0 -57
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +0 -137
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +0 -229
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +0 -238
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +0 -206
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +0 -234
- package/templates/bmad/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +0 -444
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +0 -182
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +0 -237
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +0 -249
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +0 -259
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +0 -177
- package/templates/bmad/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +0 -476
- package/templates/bmad/bmm/workflows/1-analysis/research/research.template.md +0 -29
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +0 -137
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +0 -239
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +0 -248
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +0 -202
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +0 -233
- package/templates/bmad/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +0 -487
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-domain-research.md +0 -54
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-market-research.md +0 -54
- package/templates/bmad/bmm/workflows/1-analysis/research/workflow-technical-research.md +0 -54
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/data/domain-complexity.csv +0 -15
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/data/prd-purpose.md +0 -197
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/data/project-types.csv +0 -11
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md +0 -191
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md +0 -152
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md +0 -224
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md +0 -154
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md +0 -170
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md +0 -226
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md +0 -213
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md +0 -207
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md +0 -226
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md +0 -237
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md +0 -228
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md +0 -231
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md +0 -242
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md +0 -217
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +0 -124
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01-discovery.md +0 -247
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01b-legacy-conversion.md +0 -208
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-02-review.md +0 -249
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-03-edit.md +0 -253
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-04-complete.md +0 -168
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +0 -226
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02-format-detection.md +0 -191
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-02b-parity-check.md +0 -209
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-03-density-validation.md +0 -174
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -214
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-05-measurability-validation.md +0 -228
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-06-traceability-validation.md +0 -217
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -205
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -243
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-09-project-type-validation.md +0 -263
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +0 -209
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -264
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-12-completeness-validation.md +0 -242
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +0 -231
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md +0 -10
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +0 -63
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-edit-prd.md +0 -65
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +0 -63
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +0 -135
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +0 -127
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +0 -190
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +0 -216
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +0 -219
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +0 -234
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +0 -252
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +0 -254
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +0 -224
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +0 -224
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +0 -241
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +0 -248
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +0 -237
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +0 -264
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +0 -171
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +0 -13
- package/templates/bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +0 -42
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +0 -184
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +0 -172
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -173
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +0 -133
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +0 -245
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +0 -129
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +0 -4
- package/templates/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +0 -54
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +0 -12
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +0 -13
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +0 -7
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +0 -153
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +0 -173
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +0 -224
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +0 -329
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +0 -318
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +0 -359
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +0 -379
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +0 -359
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +0 -76
- package/templates/bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +0 -49
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -259
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +0 -233
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +0 -272
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +0 -149
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +0 -57
- package/templates/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +0 -58
- package/templates/bmad/bmm/workflows/4-implementation/code-review/checklist.md +0 -23
- package/templates/bmad/bmm/workflows/4-implementation/code-review/instructions.xml +0 -227
- package/templates/bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -43
- package/templates/bmad/bmm/workflows/4-implementation/correct-course/checklist.md +0 -288
- package/templates/bmad/bmm/workflows/4-implementation/correct-course/instructions.md +0 -207
- package/templates/bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -53
- package/templates/bmad/bmm/workflows/4-implementation/create-story/checklist.md +0 -358
- package/templates/bmad/bmm/workflows/4-implementation/create-story/instructions.xml +0 -346
- package/templates/bmad/bmm/workflows/4-implementation/create-story/template.md +0 -49
- package/templates/bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -52
- package/templates/bmad/bmm/workflows/4-implementation/dev-story/checklist.md +0 -80
- package/templates/bmad/bmm/workflows/4-implementation/dev-story/instructions.xml +0 -410
- package/templates/bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -20
- package/templates/bmad/bmm/workflows/4-implementation/retrospective/instructions.md +0 -1444
- package/templates/bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -52
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +0 -33
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +0 -226
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +0 -55
- package/templates/bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -47
- package/templates/bmad/bmm/workflows/4-implementation/sprint-status/instructions.md +0 -230
- package/templates/bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +0 -25
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +0 -174
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +0 -118
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +0 -111
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +0 -111
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +0 -104
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +0 -146
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +0 -50
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-01-understand.md +0 -189
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-02-investigate.md +0 -143
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-03-generate.md +0 -126
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-04-review.md +0 -200
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/tech-spec-template.md +0 -74
- package/templates/bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +0 -79
- package/templates/bmad/bmm/workflows/document-project/checklist.md +0 -245
- package/templates/bmad/bmm/workflows/document-project/documentation-requirements.csv +0 -12
- package/templates/bmad/bmm/workflows/document-project/instructions.md +0 -130
- package/templates/bmad/bmm/workflows/document-project/templates/deep-dive-template.md +0 -345
- package/templates/bmad/bmm/workflows/document-project/templates/index-template.md +0 -169
- package/templates/bmad/bmm/workflows/document-project/templates/project-overview-template.md +0 -103
- package/templates/bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +0 -160
- package/templates/bmad/bmm/workflows/document-project/templates/source-tree-template.md +0 -135
- package/templates/bmad/bmm/workflows/document-project/workflow.yaml +0 -22
- package/templates/bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -298
- package/templates/bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
- package/templates/bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1106
- package/templates/bmad/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
- package/templates/bmad/bmm/workflows/generate-project-context/project-context-template.md +0 -21
- package/templates/bmad/bmm/workflows/generate-project-context/steps/step-01-discover.md +0 -184
- package/templates/bmad/bmm/workflows/generate-project-context/steps/step-02-generate.md +0 -318
- package/templates/bmad/bmm/workflows/generate-project-context/steps/step-03-complete.md +0 -278
- package/templates/bmad/bmm/workflows/generate-project-context/workflow.md +0 -49
- package/templates/bmad/bmm/workflows/qa/automate/checklist.md +0 -33
- package/templates/bmad/bmm/workflows/qa/automate/instructions.md +0 -110
- package/templates/bmad/bmm/workflows/qa/automate/workflow.yaml +0 -44
- package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/checklist.md +0 -33
- package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/instructions.md +0 -110
- package/templates/bmad/bmm/workflows/qa-generate-e2e-tests/workflow.yaml +0 -42
- package/templates/bmad/commands/bmad-agent-bmad-master.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-analyst.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-architect.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-dev.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-pm.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-qa.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-quick-flow-solo-dev.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-sm.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-tech-writer.md +0 -15
- package/templates/bmad/commands/bmad-agent-bmm-ux-designer.md +0 -15
- package/templates/bmad/commands/bmad-agent-tea-tea.md +0 -15
- package/templates/bmad/commands/bmad-bmm-check-implementation-readiness.md +0 -6
- package/templates/bmad/commands/bmad-bmm-code-review.md +0 -14
- package/templates/bmad/commands/bmad-bmm-correct-course.md +0 -14
- package/templates/bmad/commands/bmad-bmm-create-architecture.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-epics-and-stories.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-prd.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-product-brief.md +0 -6
- package/templates/bmad/commands/bmad-bmm-create-story.md +0 -14
- package/templates/bmad/commands/bmad-bmm-create-ux-design.md +0 -6
- package/templates/bmad/commands/bmad-bmm-dev-story.md +0 -14
- package/templates/bmad/commands/bmad-bmm-document-project.md +0 -14
- package/templates/bmad/commands/bmad-bmm-domain-research.md +0 -6
- package/templates/bmad/commands/bmad-bmm-edit-prd.md +0 -6
- package/templates/bmad/commands/bmad-bmm-generate-project-context.md +0 -6
- package/templates/bmad/commands/bmad-bmm-market-research.md +0 -6
- package/templates/bmad/commands/bmad-bmm-qa-automate.md +0 -15
- package/templates/bmad/commands/bmad-bmm-qa-generate-e2e-tests.md +0 -14
- package/templates/bmad/commands/bmad-bmm-quick-dev.md +0 -6
- package/templates/bmad/commands/bmad-bmm-quick-spec.md +0 -6
- package/templates/bmad/commands/bmad-bmm-retrospective.md +0 -14
- package/templates/bmad/commands/bmad-bmm-sprint-planning.md +0 -14
- package/templates/bmad/commands/bmad-bmm-sprint-status.md +0 -14
- package/templates/bmad/commands/bmad-bmm-technical-research.md +0 -6
- package/templates/bmad/commands/bmad-bmm-validate-prd.md +0 -6
- package/templates/bmad/commands/bmad-brainstorming.md +0 -6
- package/templates/bmad/commands/bmad-editorial-review-prose.md +0 -10
- package/templates/bmad/commands/bmad-editorial-review-structure.md +0 -10
- package/templates/bmad/commands/bmad-help.md +0 -10
- package/templates/bmad/commands/bmad-index-docs.md +0 -10
- package/templates/bmad/commands/bmad-party-mode.md +0 -6
- package/templates/bmad/commands/bmad-review-adversarial-general.md +0 -10
- package/templates/bmad/commands/bmad-review-edge-case-hunter.md +0 -10
- package/templates/bmad/commands/bmad-shard-doc.md +0 -10
- package/templates/bmad/commands/bmad-tea-teach-me-testing.md +0 -6
- package/templates/bmad/commands/bmad-tea-testarch-atdd.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-automate.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-ci.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-framework.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-nfr.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-test-design.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-test-review.md +0 -14
- package/templates/bmad/commands/bmad-tea-testarch-trace.md +0 -14
- package/templates/bmad/core/agents/bmad-master.md +0 -56
- package/templates/bmad/core/config.yaml +0 -8
- package/templates/bmad/core/module-help.csv +0 -10
- package/templates/bmad/core/tasks/editorial-review-prose.xml +0 -102
- package/templates/bmad/core/tasks/editorial-review-structure.xml +0 -208
- package/templates/bmad/core/tasks/help.md +0 -86
- package/templates/bmad/core/tasks/index-docs.xml +0 -65
- package/templates/bmad/core/tasks/review-adversarial-general.xml +0 -49
- package/templates/bmad/core/tasks/review-edge-case-hunter.xml +0 -63
- package/templates/bmad/core/tasks/shard-doc.xml +0 -108
- package/templates/bmad/core/tasks/workflow.xml +0 -235
- package/templates/bmad/core/workflows/advanced-elicitation/methods.csv +0 -51
- package/templates/bmad/core/workflows/advanced-elicitation/workflow.xml +0 -118
- package/templates/bmad/core/workflows/brainstorming/brain-methods.csv +0 -62
- package/templates/bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +0 -210
- package/templates/bmad/core/workflows/brainstorming/steps/step-01b-continue.md +0 -122
- package/templates/bmad/core/workflows/brainstorming/steps/step-02a-user-selected.md +0 -225
- package/templates/bmad/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +0 -237
- package/templates/bmad/core/workflows/brainstorming/steps/step-02c-random-selection.md +0 -209
- package/templates/bmad/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +0 -264
- package/templates/bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +0 -399
- package/templates/bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +0 -303
- package/templates/bmad/core/workflows/brainstorming/template.md +0 -15
- package/templates/bmad/core/workflows/brainstorming/workflow.md +0 -60
- package/templates/bmad/core/workflows/party-mode/steps/step-01-agent-loading.md +0 -138
- package/templates/bmad/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +0 -187
- package/templates/bmad/core/workflows/party-mode/steps/step-03-graceful-exit.md +0 -168
- package/templates/bmad/core/workflows/party-mode/workflow.md +0 -194
- package/templates/bmad/tea/agents/tea.md +0 -71
- package/templates/bmad/tea/config.yaml +0 -24
- package/templates/bmad/tea/module-help.csv +0 -10
- package/templates/bmad/tea/teams/default-party.csv +0 -2
- package/templates/bmad/tea/testarch/knowledge/adr-quality-readiness-checklist.md +0 -377
- package/templates/bmad/tea/testarch/knowledge/api-request.md +0 -563
- package/templates/bmad/tea/testarch/knowledge/api-testing-patterns.md +0 -915
- package/templates/bmad/tea/testarch/knowledge/auth-session.md +0 -548
- package/templates/bmad/tea/testarch/knowledge/burn-in.md +0 -273
- package/templates/bmad/tea/testarch/knowledge/ci-burn-in.md +0 -675
- package/templates/bmad/tea/testarch/knowledge/component-tdd.md +0 -486
- package/templates/bmad/tea/testarch/knowledge/contract-testing.md +0 -979
- package/templates/bmad/tea/testarch/knowledge/data-factories.md +0 -500
- package/templates/bmad/tea/testarch/knowledge/email-auth.md +0 -721
- package/templates/bmad/tea/testarch/knowledge/error-handling.md +0 -725
- package/templates/bmad/tea/testarch/knowledge/feature-flags.md +0 -750
- package/templates/bmad/tea/testarch/knowledge/file-utils.md +0 -456
- package/templates/bmad/tea/testarch/knowledge/fixture-architecture.md +0 -401
- package/templates/bmad/tea/testarch/knowledge/fixtures-composition.md +0 -382
- package/templates/bmad/tea/testarch/knowledge/intercept-network-call.md +0 -426
- package/templates/bmad/tea/testarch/knowledge/log.md +0 -426
- package/templates/bmad/tea/testarch/knowledge/network-error-monitor.md +0 -401
- package/templates/bmad/tea/testarch/knowledge/network-first.md +0 -486
- package/templates/bmad/tea/testarch/knowledge/network-recorder.md +0 -527
- package/templates/bmad/tea/testarch/knowledge/nfr-criteria.md +0 -670
- package/templates/bmad/tea/testarch/knowledge/overview.md +0 -286
- package/templates/bmad/tea/testarch/knowledge/pact-mcp.md +0 -204
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-consumer-helpers.md +0 -211
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-overview.md +0 -210
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-provider-verifier.md +0 -315
- package/templates/bmad/tea/testarch/knowledge/pactjs-utils-request-filter.md +0 -224
- package/templates/bmad/tea/testarch/knowledge/playwright-cli.md +0 -165
- package/templates/bmad/tea/testarch/knowledge/playwright-config.md +0 -730
- package/templates/bmad/tea/testarch/knowledge/probability-impact.md +0 -601
- package/templates/bmad/tea/testarch/knowledge/recurse.md +0 -421
- package/templates/bmad/tea/testarch/knowledge/risk-governance.md +0 -615
- package/templates/bmad/tea/testarch/knowledge/selective-testing.md +0 -732
- package/templates/bmad/tea/testarch/knowledge/selector-resilience.md +0 -527
- package/templates/bmad/tea/testarch/knowledge/test-healing-patterns.md +0 -644
- package/templates/bmad/tea/testarch/knowledge/test-levels-framework.md +0 -473
- package/templates/bmad/tea/testarch/knowledge/test-priorities-matrix.md +0 -373
- package/templates/bmad/tea/testarch/knowledge/test-quality.md +0 -664
- package/templates/bmad/tea/testarch/knowledge/timing-debugging.md +0 -372
- package/templates/bmad/tea/testarch/knowledge/visual-debugging.md +0 -524
- package/templates/bmad/tea/testarch/tea-index.csv +0 -41
- package/templates/bmad/tea/workflows/testarch/README.md +0 -74
- package/templates/bmad/tea/workflows/testarch/atdd/atdd-checklist-template.md +0 -371
- package/templates/bmad/tea/workflows/testarch/atdd/checklist.md +0 -374
- package/templates/bmad/tea/workflows/testarch/atdd/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +0 -226
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-01b-resume.md +0 -96
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-02-generation-mode.md +0 -125
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-03-test-strategy.md +0 -110
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +0 -331
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subagent-api-failing.md +0 -215
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04a-subprocess-api-failing.md +0 -215
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subagent-e2e-failing.md +0 -244
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04b-subprocess-e2e-failing.md +0 -244
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +0 -370
- package/templates/bmad/tea/workflows/testarch/atdd/steps-c/step-05-validate-and-complete.md +0 -106
- package/templates/bmad/tea/workflows/testarch/atdd/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/atdd/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/atdd/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/atdd/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/atdd/workflow-plan.md +0 -21
- package/templates/bmad/tea/workflows/testarch/atdd/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/atdd/workflow.yaml +0 -46
- package/templates/bmad/tea/workflows/testarch/automate/checklist.md +0 -582
- package/templates/bmad/tea/workflows/testarch/automate/instructions.md +0 -50
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +0 -237
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-01b-resume.md +0 -94
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-02-identify-targets.md +0 -145
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03-generate-tests.md +0 -392
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03a-subagent-api.md +0 -193
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03a-subprocess-api.md +0 -183
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-backend.md +0 -246
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subagent-e2e.md +0 -213
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subprocess-backend.md +0 -246
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03b-subprocess-e2e.md +0 -213
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-03c-aggregate.md +0 -393
- package/templates/bmad/tea/workflows/testarch/automate/steps-c/step-04-validate-and-summarize.md +0 -106
- package/templates/bmad/tea/workflows/testarch/automate/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/automate/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/automate/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-095021.md +0 -72
- package/templates/bmad/tea/workflows/testarch/automate/validation-report-20260127-102401.md +0 -114
- package/templates/bmad/tea/workflows/testarch/automate/workflow-plan.md +0 -20
- package/templates/bmad/tea/workflows/testarch/automate/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/automate/workflow.yaml +0 -53
- package/templates/bmad/tea/workflows/testarch/ci/azure-pipelines-template.yaml +0 -155
- package/templates/bmad/tea/workflows/testarch/ci/checklist.md +0 -288
- package/templates/bmad/tea/workflows/testarch/ci/github-actions-template.yaml +0 -210
- package/templates/bmad/tea/workflows/testarch/ci/gitlab-ci-template.yaml +0 -158
- package/templates/bmad/tea/workflows/testarch/ci/harness-pipeline-template.yaml +0 -159
- package/templates/bmad/tea/workflows/testarch/ci/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/ci/jenkins-pipeline-template.groovy +0 -129
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-01-preflight.md +0 -158
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-01b-resume.md +0 -110
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +0 -241
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +0 -112
- package/templates/bmad/tea/workflows/testarch/ci/steps-c/step-04-validate-and-summary.md +0 -92
- package/templates/bmad/tea/workflows/testarch/ci/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/ci/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/ci/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-095021.md +0 -72
- package/templates/bmad/tea/workflows/testarch/ci/validation-report-20260127-102401.md +0 -114
- package/templates/bmad/tea/workflows/testarch/ci/workflow-plan.md +0 -20
- package/templates/bmad/tea/workflows/testarch/ci/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/ci/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/framework/checklist.md +0 -321
- package/templates/bmad/tea/workflows/testarch/framework/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-01-preflight.md +0 -132
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-01b-resume.md +0 -116
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-02-select-framework.md +0 -117
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +0 -319
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-04-docs-and-scripts.md +0 -105
- package/templates/bmad/tea/workflows/testarch/framework/steps-c/step-05-validate-and-summary.md +0 -93
- package/templates/bmad/tea/workflows/testarch/framework/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/framework/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/framework/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/framework/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/framework/workflow-plan.md +0 -22
- package/templates/bmad/tea/workflows/testarch/framework/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/framework/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/nfr-assess/checklist.md +0 -407
- package/templates/bmad/tea/workflows/testarch/nfr-assess/instructions.md +0 -43
- package/templates/bmad/tea/workflows/testarch/nfr-assess/nfr-report-template.md +0 -470
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-01-load-context.md +0 -138
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-01b-resume.md +0 -106
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-02-define-thresholds.md +0 -107
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-03-gather-evidence.md +0 -108
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +0 -254
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subagent-security.md +0 -138
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04a-subprocess-security.md +0 -138
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subagent-performance.md +0 -84
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04b-subprocess-performance.md +0 -84
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subagent-reliability.md +0 -85
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04c-subprocess-reliability.md +0 -85
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subagent-scalability.md +0 -88
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04d-subprocess-scalability.md +0 -88
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +0 -264
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-c/step-05-generate-report.md +0 -108
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/nfr-assess/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow-plan.md +0 -19
- package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/nfr-assess/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/checklist.md +0 -197
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/curriculum.yaml +0 -129
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/quiz-questions.yaml +0 -206
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/role-paths.yaml +0 -136
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/session-content-map.yaml +0 -207
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/data/tea-resources-index.yaml +0 -359
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/instructions.md +0 -130
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01-init.md +0 -235
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-01b-continue.md +0 -147
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-02-assess.md +0 -258
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-03-session-menu.md +0 -219
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-01.md +0 -460
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-02.md +0 -465
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-03.md +0 -301
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-04.md +0 -234
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-05.md +0 -234
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-06.md +0 -209
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-04-session-07.md +0 -212
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-c/step-05-completion.md +0 -339
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-01-assess-workflow.md +0 -141
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-e/step-e-02-apply-edits.md +0 -122
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/steps-v/step-v-01-validate.md +0 -263
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/templates/certificate-template.md +0 -86
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/templates/progress-template.yaml +0 -95
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/templates/session-notes-template.md +0 -83
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow-plan-teach-me-testing.md +0 -950
- package/templates/bmad/tea/workflows/testarch/teach-me-testing/workflow.md +0 -90
- package/templates/bmad/tea/workflows/testarch/test-design/checklist.md +0 -464
- package/templates/bmad/tea/workflows/testarch/test-design/instructions.md +0 -105
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-01-detect-mode.md +0 -134
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-01b-resume.md +0 -102
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-02-load-context.md +0 -242
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-03-risk-and-testability.md +0 -110
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-04-coverage-plan.md +0 -123
- package/templates/bmad/tea/workflows/testarch/test-design/steps-c/step-05-generate-output.md +0 -222
- package/templates/bmad/tea/workflows/testarch/test-design/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/test-design/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/test-design/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-architecture-template.md +0 -230
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-handoff-template.md +0 -70
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-qa-template.md +0 -396
- package/templates/bmad/tea/workflows/testarch/test-design/test-design-template.md +0 -344
- package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/test-design/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/test-design/workflow-plan.md +0 -22
- package/templates/bmad/tea/workflows/testarch/test-design/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/test-design/workflow.yaml +0 -77
- package/templates/bmad/tea/workflows/testarch/test-review/checklist.md +0 -475
- package/templates/bmad/tea/workflows/testarch/test-review/instructions.md +0 -45
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-01-load-context.md +0 -197
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-01b-resume.md +0 -104
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-02-discover-tests.md +0 -113
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +0 -274
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subagent-determinism.md +0 -214
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03a-subprocess-determinism.md +0 -214
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subagent-isolation.md +0 -125
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03b-subprocess-isolation.md +0 -125
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subagent-maintainability.md +0 -102
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03c-subprocess-maintainability.md +0 -102
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03d-subprocess-coverage.md +0 -111
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subagent-performance.md +0 -117
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03e-subprocess-performance.md +0 -117
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +0 -277
- package/templates/bmad/tea/workflows/testarch/test-review/steps-c/step-04-generate-report.md +0 -111
- package/templates/bmad/tea/workflows/testarch/test-review/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/test-review/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/test-review/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/test-review/test-review-template.md +0 -387
- package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-095021.md +0 -72
- package/templates/bmad/tea/workflows/testarch/test-review/validation-report-20260127-102401.md +0 -114
- package/templates/bmad/tea/workflows/testarch/test-review/workflow-plan.md +0 -18
- package/templates/bmad/tea/workflows/testarch/test-review/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/test-review/workflow.yaml +0 -48
- package/templates/bmad/tea/workflows/testarch/trace/checklist.md +0 -647
- package/templates/bmad/tea/workflows/testarch/trace/instructions.md +0 -43
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-01-load-context.md +0 -105
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-01b-resume.md +0 -102
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-02-discover-tests.md +0 -112
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-03-map-criteria.md +0 -97
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +0 -421
- package/templates/bmad/tea/workflows/testarch/trace/steps-c/step-05-gate-decision.md +0 -266
- package/templates/bmad/tea/workflows/testarch/trace/steps-e/step-01-assess.md +0 -65
- package/templates/bmad/tea/workflows/testarch/trace/steps-e/step-02-apply-edit.md +0 -60
- package/templates/bmad/tea/workflows/testarch/trace/steps-v/step-01-validate.md +0 -67
- package/templates/bmad/tea/workflows/testarch/trace/trace-template.md +0 -708
- package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-095021.md +0 -73
- package/templates/bmad/tea/workflows/testarch/trace/validation-report-20260127-102401.md +0 -116
- package/templates/bmad/tea/workflows/testarch/trace/workflow-plan.md +0 -21
- package/templates/bmad/tea/workflows/testarch/trace/workflow.md +0 -41
- package/templates/bmad/tea/workflows/testarch/trace/workflow.yaml +0 -56
- package/templates/ecc/agents/architect.md +0 -211
- package/templates/ecc/agents/build-error-resolver.md +0 -114
- package/templates/ecc/agents/chief-of-staff.md +0 -151
- package/templates/ecc/agents/code-reviewer.md +0 -224
- package/templates/ecc/agents/database-reviewer.md +0 -91
- package/templates/ecc/agents/doc-updater.md +0 -107
- package/templates/ecc/agents/e2e-runner.md +0 -107
- package/templates/ecc/agents/go-build-resolver.md +0 -94
- package/templates/ecc/agents/go-reviewer.md +0 -76
- package/templates/ecc/agents/planner.md +0 -212
- package/templates/ecc/agents/python-reviewer.md +0 -98
- package/templates/ecc/agents/refactor-cleaner.md +0 -85
- package/templates/ecc/agents/security-reviewer.md +0 -108
- package/templates/ecc/agents/tdd-guide.md +0 -80
- package/templates/ecc/commands/build-fix.md +0 -62
- package/templates/ecc/commands/checkpoint.md +0 -74
- package/templates/ecc/commands/claw.md +0 -79
- package/templates/ecc/commands/code-review.md +0 -40
- package/templates/ecc/commands/e2e.md +0 -363
- package/templates/ecc/commands/eval.md +0 -120
- package/templates/ecc/commands/evolve.md +0 -193
- package/templates/ecc/commands/go-build.md +0 -183
- package/templates/ecc/commands/go-review.md +0 -148
- package/templates/ecc/commands/go-test.md +0 -268
- package/templates/ecc/commands/instinct-export.md +0 -91
- package/templates/ecc/commands/instinct-import.md +0 -142
- package/templates/ecc/commands/instinct-status.md +0 -86
- package/templates/ecc/commands/learn-eval.md +0 -91
- package/templates/ecc/commands/learn.md +0 -70
- package/templates/ecc/commands/multi-backend.md +0 -158
- package/templates/ecc/commands/multi-execute.md +0 -310
- package/templates/ecc/commands/multi-frontend.md +0 -158
- package/templates/ecc/commands/multi-plan.md +0 -261
- package/templates/ecc/commands/multi-workflow.md +0 -183
- package/templates/ecc/commands/orchestrate.md +0 -172
- package/templates/ecc/commands/plan.md +0 -113
- package/templates/ecc/commands/pm2.md +0 -272
- package/templates/ecc/commands/python-review.md +0 -297
- package/templates/ecc/commands/refactor-clean.md +0 -80
- package/templates/ecc/commands/sessions.md +0 -305
- package/templates/ecc/commands/setup-pm.md +0 -80
- package/templates/ecc/commands/skill-create.md +0 -174
- package/templates/ecc/commands/tdd.md +0 -326
- package/templates/ecc/commands/test-coverage.md +0 -69
- package/templates/ecc/commands/update-codemaps.md +0 -72
- package/templates/ecc/commands/update-docs.md +0 -84
- package/templates/ecc/commands/verify.md +0 -59
- package/templates/ecc/rules/README.md +0 -103
- package/templates/ecc/rules/common/agents.md +0 -49
- package/templates/ecc/rules/common/coding-style.md +0 -48
- package/templates/ecc/rules/common/development-workflow.md +0 -37
- package/templates/ecc/rules/common/git-workflow.md +0 -24
- package/templates/ecc/rules/common/hooks.md +0 -30
- package/templates/ecc/rules/common/patterns.md +0 -31
- package/templates/ecc/rules/common/performance.md +0 -55
- package/templates/ecc/rules/common/security.md +0 -29
- package/templates/ecc/rules/common/testing.md +0 -29
- package/templates/ecc/rules/golang/coding-style.md +0 -32
- package/templates/ecc/rules/golang/hooks.md +0 -17
- package/templates/ecc/rules/golang/patterns.md +0 -45
- package/templates/ecc/rules/golang/security.md +0 -34
- package/templates/ecc/rules/golang/testing.md +0 -31
- package/templates/ecc/rules/python/coding-style.md +0 -42
- package/templates/ecc/rules/python/hooks.md +0 -19
- package/templates/ecc/rules/python/patterns.md +0 -39
- package/templates/ecc/rules/python/security.md +0 -30
- package/templates/ecc/rules/python/testing.md +0 -38
- package/templates/ecc/rules/swift/coding-style.md +0 -47
- package/templates/ecc/rules/swift/hooks.md +0 -20
- package/templates/ecc/rules/swift/patterns.md +0 -66
- package/templates/ecc/rules/swift/security.md +0 -33
- package/templates/ecc/rules/swift/testing.md +0 -45
- package/templates/ecc/rules/typescript/coding-style.md +0 -65
- package/templates/ecc/rules/typescript/hooks.md +0 -22
- package/templates/ecc/rules/typescript/patterns.md +0 -52
- package/templates/ecc/rules/typescript/security.md +0 -28
- package/templates/ecc/rules/typescript/testing.md +0 -18
- package/templates/ecc/skills/api-design/SKILL.md +0 -523
- package/templates/ecc/skills/article-writing/SKILL.md +0 -85
- package/templates/ecc/skills/backend-patterns/SKILL.md +0 -598
- package/templates/ecc/skills/clickhouse-io/SKILL.md +0 -439
- package/templates/ecc/skills/coding-standards/SKILL.md +0 -530
- package/templates/ecc/skills/configure-ecc/SKILL.md +0 -326
- package/templates/ecc/skills/content-engine/SKILL.md +0 -88
- package/templates/ecc/skills/content-hash-cache-pattern/SKILL.md +0 -161
- package/templates/ecc/skills/continuous-learning/SKILL.md +0 -119
- package/templates/ecc/skills/continuous-learning/config.json +0 -18
- package/templates/ecc/skills/continuous-learning/evaluate-session.sh +0 -69
- package/templates/ecc/skills/continuous-learning-v2/SKILL.md +0 -295
- package/templates/ecc/skills/continuous-learning-v2/agents/observer.md +0 -137
- package/templates/ecc/skills/continuous-learning-v2/agents/start-observer.sh +0 -143
- package/templates/ecc/skills/continuous-learning-v2/config.json +0 -41
- package/templates/ecc/skills/continuous-learning-v2/hooks/observe.sh +0 -164
- package/templates/ecc/skills/continuous-learning-v2/scripts/instinct-cli.py +0 -575
- package/templates/ecc/skills/continuous-learning-v2/scripts/test_parse_instinct.py +0 -82
- package/templates/ecc/skills/cost-aware-llm-pipeline/SKILL.md +0 -183
- package/templates/ecc/skills/cpp-coding-standards/SKILL.md +0 -723
- package/templates/ecc/skills/cpp-testing/SKILL.md +0 -323
- package/templates/ecc/skills/database-migrations/SKILL.md +0 -335
- package/templates/ecc/skills/deployment-patterns/SKILL.md +0 -427
- package/templates/ecc/skills/django-patterns/SKILL.md +0 -734
- package/templates/ecc/skills/django-security/SKILL.md +0 -593
- package/templates/ecc/skills/django-tdd/SKILL.md +0 -729
- package/templates/ecc/skills/django-verification/SKILL.md +0 -469
- package/templates/ecc/skills/docker-patterns/SKILL.md +0 -364
- package/templates/ecc/skills/e2e-testing/SKILL.md +0 -326
- package/templates/ecc/skills/eval-harness/SKILL.md +0 -236
- package/templates/ecc/skills/foundation-models-on-device/SKILL.md +0 -243
- package/templates/ecc/skills/frontend-patterns/SKILL.md +0 -642
- package/templates/ecc/skills/frontend-slides/SKILL.md +0 -184
- package/templates/ecc/skills/frontend-slides/STYLE_PRESETS.md +0 -330
- package/templates/ecc/skills/golang-patterns/SKILL.md +0 -674
- package/templates/ecc/skills/golang-testing/SKILL.md +0 -720
- package/templates/ecc/skills/investor-materials/SKILL.md +0 -96
- package/templates/ecc/skills/investor-outreach/SKILL.md +0 -76
- package/templates/ecc/skills/iterative-retrieval/SKILL.md +0 -211
- package/templates/ecc/skills/java-coding-standards/SKILL.md +0 -147
- package/templates/ecc/skills/jpa-patterns/SKILL.md +0 -151
- package/templates/ecc/skills/liquid-glass-design/SKILL.md +0 -279
- package/templates/ecc/skills/market-research/SKILL.md +0 -75
- package/templates/ecc/skills/nutrient-document-processing/SKILL.md +0 -165
- package/templates/ecc/skills/postgres-patterns/SKILL.md +0 -147
- package/templates/ecc/skills/project-guidelines-example/SKILL.md +0 -349
- package/templates/ecc/skills/python-patterns/SKILL.md +0 -750
- package/templates/ecc/skills/python-testing/SKILL.md +0 -816
- package/templates/ecc/skills/regex-vs-llm-structured-text/SKILL.md +0 -220
- package/templates/ecc/skills/search-first/SKILL.md +0 -161
- package/templates/ecc/skills/security-review/SKILL.md +0 -495
- package/templates/ecc/skills/security-review/cloud-infrastructure-security.md +0 -361
- package/templates/ecc/skills/security-scan/SKILL.md +0 -165
- package/templates/ecc/skills/skill-stocktake/SKILL.md +0 -176
- package/templates/ecc/skills/skill-stocktake/scripts/quick-diff.sh +0 -87
- package/templates/ecc/skills/skill-stocktake/scripts/save-results.sh +0 -56
- package/templates/ecc/skills/skill-stocktake/scripts/scan.sh +0 -170
- package/templates/ecc/skills/springboot-patterns/SKILL.md +0 -314
- package/templates/ecc/skills/springboot-security/SKILL.md +0 -272
- package/templates/ecc/skills/springboot-tdd/SKILL.md +0 -158
- package/templates/ecc/skills/springboot-verification/SKILL.md +0 -231
- package/templates/ecc/skills/strategic-compact/SKILL.md +0 -103
- package/templates/ecc/skills/strategic-compact/suggest-compact.sh +0 -54
- package/templates/ecc/skills/swift-actor-persistence/SKILL.md +0 -143
- package/templates/ecc/skills/swift-concurrency-6-2/SKILL.md +0 -216
- package/templates/ecc/skills/swift-protocol-di-testing/SKILL.md +0 -190
- package/templates/ecc/skills/swiftui-patterns/SKILL.md +0 -259
- package/templates/ecc/skills/tdd-workflow/SKILL.md +0 -410
- package/templates/ecc/skills/verification-loop/SKILL.md +0 -126
- package/templates/ecc/skills/visa-doc-translate/README.md +0 -86
- package/templates/ecc/skills/visa-doc-translate/SKILL.md +0 -117
- package/templates/ext-skills/pinchtab/SKILL.md +0 -173
- package/templates/ext-skills/pinchtab/TRUST.md +0 -69
- package/templates/ext-skills/pinchtab/references/api.md +0 -297
- package/templates/ext-skills/pinchtab/references/env.md +0 -45
- package/templates/ext-skills/pinchtab/references/profiles.md +0 -107
- package/templates/mcp/trae/mcp.json +0 -35
- package/templates/plugins/claude-code-setup/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/claude-code-setup/LICENSE +0 -202
- package/templates/plugins/claude-code-setup/README.md +0 -29
- package/templates/plugins/claude-code-setup/automation-recommender-example.png +0 -0
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/SKILL.md +0 -288
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/hooks-patterns.md +0 -226
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/mcp-servers.md +0 -263
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/plugins-reference.md +0 -98
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/skills-reference.md +0 -408
- package/templates/plugins/claude-code-setup/skills/claude-automation-recommender/references/subagent-templates.md +0 -181
- package/templates/plugins/claude-md-management/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/claude-md-management/LICENSE +0 -202
- package/templates/plugins/claude-md-management/README.md +0 -40
- package/templates/plugins/claude-md-management/claude-md-improver-example.png +0 -0
- package/templates/plugins/claude-md-management/commands/revise-claude-md.md +0 -54
- package/templates/plugins/claude-md-management/revise-claude-md-example.png +0 -0
- package/templates/plugins/claude-md-management/skills/claude-md-improver/SKILL.md +0 -179
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/quality-criteria.md +0 -109
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/templates.md +0 -253
- package/templates/plugins/claude-md-management/skills/claude-md-improver/references/update-guidelines.md +0 -150
- package/templates/plugins/code-simplifier/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/code-simplifier/LICENSE +0 -202
- package/templates/plugins/code-simplifier/agents/code-simplifier.md +0 -52
- package/templates/plugins/commit-commands/.claude-plugin/plugin.json +0 -9
- package/templates/plugins/commit-commands/LICENSE +0 -202
- package/templates/plugins/commit-commands/README.md +0 -225
- package/templates/plugins/commit-commands/commands/clean_gone.md +0 -53
- package/templates/plugins/commit-commands/commands/commit-push-pr.md +0 -20
- package/templates/plugins/commit-commands/commands/commit.md +0 -17
- package/templates/trae-bmad/rules/bmad-agent-bmad-master.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-analyst.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-architect.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-dev.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-pm.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-qa.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-quick-flow-solo-dev.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-sm.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-tech-writer.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-bmm-ux-designer.md +0 -15
- package/templates/trae-bmad/rules/bmad-agent-tea-tea.md +0 -15
- package/templates/trae-bmad/rules/bmad-bmm-check-implementation-readiness.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-code-review.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-correct-course.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-create-architecture.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-epics-and-stories.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-prd.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-product-brief.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-create-story.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-create-ux-design.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-dev-story.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-document-project.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-domain-research.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-edit-prd.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-generate-project-context.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-market-research.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-qa-automate.md +0 -15
- package/templates/trae-bmad/rules/bmad-bmm-qa-generate-e2e-tests.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-quick-dev.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-quick-spec.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-retrospective.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-sprint-planning.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-sprint-status.md +0 -14
- package/templates/trae-bmad/rules/bmad-bmm-technical-research.md +0 -6
- package/templates/trae-bmad/rules/bmad-bmm-validate-prd.md +0 -6
- package/templates/trae-bmad/rules/bmad-brainstorming.md +0 -6
- package/templates/trae-bmad/rules/bmad-editorial-review-prose.md +0 -10
- package/templates/trae-bmad/rules/bmad-editorial-review-structure.md +0 -10
- package/templates/trae-bmad/rules/bmad-help.md +0 -10
- package/templates/trae-bmad/rules/bmad-index-docs.md +0 -10
- package/templates/trae-bmad/rules/bmad-party-mode.md +0 -6
- package/templates/trae-bmad/rules/bmad-review-adversarial-general.md +0 -10
- package/templates/trae-bmad/rules/bmad-review-edge-case-hunter.md +0 -10
- package/templates/trae-bmad/rules/bmad-shard-doc.md +0 -10
- package/templates/trae-bmad/rules/bmad-tea-teach-me-testing.md +0 -6
- package/templates/trae-bmad/rules/bmad-tea-testarch-atdd.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-automate.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-ci.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-framework.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-nfr.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-test-design.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-test-review.md +0 -14
- package/templates/trae-bmad/rules/bmad-tea-testarch-trace.md +0 -14
|
@@ -1,723 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cpp-coding-standards
|
|
3
|
-
description: C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.
|
|
4
|
-
origin: ECC
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# C++ Coding Standards (C++ Core Guidelines)
|
|
8
|
-
|
|
9
|
-
Comprehensive coding standards for modern C++ (C++17/20/23) derived from the [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines). Enforces type safety, resource safety, immutability, and clarity.
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
|
|
13
|
-
- Writing new C++ code (classes, functions, templates)
|
|
14
|
-
- Reviewing or refactoring existing C++ code
|
|
15
|
-
- Making architectural decisions in C++ projects
|
|
16
|
-
- Enforcing consistent style across a C++ codebase
|
|
17
|
-
- Choosing between language features (e.g., `enum` vs `enum class`, raw pointer vs smart pointer)
|
|
18
|
-
|
|
19
|
-
### When NOT to Use
|
|
20
|
-
|
|
21
|
-
- Non-C++ projects
|
|
22
|
-
- Legacy C codebases that cannot adopt modern C++ features
|
|
23
|
-
- Embedded/bare-metal contexts where specific guidelines conflict with hardware constraints (adapt selectively)
|
|
24
|
-
|
|
25
|
-
## Cross-Cutting Principles
|
|
26
|
-
|
|
27
|
-
These themes recur across the entire guidelines and form the foundation:
|
|
28
|
-
|
|
29
|
-
1. **RAII everywhere** (P.8, R.1, E.6, CP.20): Bind resource lifetime to object lifetime
|
|
30
|
-
2. **Immutability by default** (P.10, Con.1-5, ES.25): Start with `const`/`constexpr`; mutability is the exception
|
|
31
|
-
3. **Type safety** (P.4, I.4, ES.46-49, Enum.3): Use the type system to prevent errors at compile time
|
|
32
|
-
4. **Express intent** (P.3, F.1, NL.1-2, T.10): Names, types, and concepts should communicate purpose
|
|
33
|
-
5. **Minimize complexity** (F.2-3, ES.5, Per.4-5): Simple code is correct code
|
|
34
|
-
6. **Value semantics over pointer semantics** (C.10, R.3-5, F.20, CP.31): Prefer returning by value and scoped objects
|
|
35
|
-
|
|
36
|
-
## Philosophy & Interfaces (P.*, I.*)
|
|
37
|
-
|
|
38
|
-
### Key Rules
|
|
39
|
-
|
|
40
|
-
| Rule | Summary |
|
|
41
|
-
|------|---------|
|
|
42
|
-
| **P.1** | Express ideas directly in code |
|
|
43
|
-
| **P.3** | Express intent |
|
|
44
|
-
| **P.4** | Ideally, a program should be statically type safe |
|
|
45
|
-
| **P.5** | Prefer compile-time checking to run-time checking |
|
|
46
|
-
| **P.8** | Don't leak any resources |
|
|
47
|
-
| **P.10** | Prefer immutable data to mutable data |
|
|
48
|
-
| **I.1** | Make interfaces explicit |
|
|
49
|
-
| **I.2** | Avoid non-const global variables |
|
|
50
|
-
| **I.4** | Make interfaces precisely and strongly typed |
|
|
51
|
-
| **I.11** | Never transfer ownership by a raw pointer or reference |
|
|
52
|
-
| **I.23** | Keep the number of function arguments low |
|
|
53
|
-
|
|
54
|
-
### DO
|
|
55
|
-
|
|
56
|
-
```cpp
|
|
57
|
-
// P.10 + I.4: Immutable, strongly typed interface
|
|
58
|
-
struct Temperature {
|
|
59
|
-
double kelvin;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
Temperature boil(const Temperature& water);
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### DON'T
|
|
66
|
-
|
|
67
|
-
```cpp
|
|
68
|
-
// Weak interface: unclear ownership, unclear units
|
|
69
|
-
double boil(double* temp);
|
|
70
|
-
|
|
71
|
-
// Non-const global variable
|
|
72
|
-
int g_counter = 0; // I.2 violation
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Functions (F.*)
|
|
76
|
-
|
|
77
|
-
### Key Rules
|
|
78
|
-
|
|
79
|
-
| Rule | Summary |
|
|
80
|
-
|------|---------|
|
|
81
|
-
| **F.1** | Package meaningful operations as carefully named functions |
|
|
82
|
-
| **F.2** | A function should perform a single logical operation |
|
|
83
|
-
| **F.3** | Keep functions short and simple |
|
|
84
|
-
| **F.4** | If a function might be evaluated at compile time, declare it `constexpr` |
|
|
85
|
-
| **F.6** | If your function must not throw, declare it `noexcept` |
|
|
86
|
-
| **F.8** | Prefer pure functions |
|
|
87
|
-
| **F.16** | For "in" parameters, pass cheaply-copied types by value and others by `const&` |
|
|
88
|
-
| **F.20** | For "out" values, prefer return values to output parameters |
|
|
89
|
-
| **F.21** | To return multiple "out" values, prefer returning a struct |
|
|
90
|
-
| **F.43** | Never return a pointer or reference to a local object |
|
|
91
|
-
|
|
92
|
-
### Parameter Passing
|
|
93
|
-
|
|
94
|
-
```cpp
|
|
95
|
-
// F.16: Cheap types by value, others by const&
|
|
96
|
-
void print(int x); // cheap: by value
|
|
97
|
-
void analyze(const std::string& data); // expensive: by const&
|
|
98
|
-
void transform(std::string s); // sink: by value (will move)
|
|
99
|
-
|
|
100
|
-
// F.20 + F.21: Return values, not output parameters
|
|
101
|
-
struct ParseResult {
|
|
102
|
-
std::string token;
|
|
103
|
-
int position;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
ParseResult parse(std::string_view input); // GOOD: return struct
|
|
107
|
-
|
|
108
|
-
// BAD: output parameters
|
|
109
|
-
void parse(std::string_view input,
|
|
110
|
-
std::string& token, int& pos); // avoid this
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
### Pure Functions and constexpr
|
|
114
|
-
|
|
115
|
-
```cpp
|
|
116
|
-
// F.4 + F.8: Pure, constexpr where possible
|
|
117
|
-
constexpr int factorial(int n) noexcept {
|
|
118
|
-
return (n <= 1) ? 1 : n * factorial(n - 1);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
static_assert(factorial(5) == 120);
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
### Anti-Patterns
|
|
125
|
-
|
|
126
|
-
- Returning `T&&` from functions (F.45)
|
|
127
|
-
- Using `va_arg` / C-style variadics (F.55)
|
|
128
|
-
- Capturing by reference in lambdas passed to other threads (F.53)
|
|
129
|
-
- Returning `const T` which inhibits move semantics (F.49)
|
|
130
|
-
|
|
131
|
-
## Classes & Class Hierarchies (C.*)
|
|
132
|
-
|
|
133
|
-
### Key Rules
|
|
134
|
-
|
|
135
|
-
| Rule | Summary |
|
|
136
|
-
|------|---------|
|
|
137
|
-
| **C.2** | Use `class` if invariant exists; `struct` if data members vary independently |
|
|
138
|
-
| **C.9** | Minimize exposure of members |
|
|
139
|
-
| **C.20** | If you can avoid defining default operations, do (Rule of Zero) |
|
|
140
|
-
| **C.21** | If you define or `=delete` any copy/move/destructor, handle them all (Rule of Five) |
|
|
141
|
-
| **C.35** | Base class destructor: public virtual or protected non-virtual |
|
|
142
|
-
| **C.41** | A constructor should create a fully initialized object |
|
|
143
|
-
| **C.46** | Declare single-argument constructors `explicit` |
|
|
144
|
-
| **C.67** | A polymorphic class should suppress public copy/move |
|
|
145
|
-
| **C.128** | Virtual functions: specify exactly one of `virtual`, `override`, or `final` |
|
|
146
|
-
|
|
147
|
-
### Rule of Zero
|
|
148
|
-
|
|
149
|
-
```cpp
|
|
150
|
-
// C.20: Let the compiler generate special members
|
|
151
|
-
struct Employee {
|
|
152
|
-
std::string name;
|
|
153
|
-
std::string department;
|
|
154
|
-
int id;
|
|
155
|
-
// No destructor, copy/move constructors, or assignment operators needed
|
|
156
|
-
};
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### Rule of Five
|
|
160
|
-
|
|
161
|
-
```cpp
|
|
162
|
-
// C.21: If you must manage a resource, define all five
|
|
163
|
-
class Buffer {
|
|
164
|
-
public:
|
|
165
|
-
explicit Buffer(std::size_t size)
|
|
166
|
-
: data_(std::make_unique<char[]>(size)), size_(size) {}
|
|
167
|
-
|
|
168
|
-
~Buffer() = default;
|
|
169
|
-
|
|
170
|
-
Buffer(const Buffer& other)
|
|
171
|
-
: data_(std::make_unique<char[]>(other.size_)), size_(other.size_) {
|
|
172
|
-
std::copy_n(other.data_.get(), size_, data_.get());
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
Buffer& operator=(const Buffer& other) {
|
|
176
|
-
if (this != &other) {
|
|
177
|
-
auto new_data = std::make_unique<char[]>(other.size_);
|
|
178
|
-
std::copy_n(other.data_.get(), other.size_, new_data.get());
|
|
179
|
-
data_ = std::move(new_data);
|
|
180
|
-
size_ = other.size_;
|
|
181
|
-
}
|
|
182
|
-
return *this;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
Buffer(Buffer&&) noexcept = default;
|
|
186
|
-
Buffer& operator=(Buffer&&) noexcept = default;
|
|
187
|
-
|
|
188
|
-
private:
|
|
189
|
-
std::unique_ptr<char[]> data_;
|
|
190
|
-
std::size_t size_;
|
|
191
|
-
};
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### Class Hierarchy
|
|
195
|
-
|
|
196
|
-
```cpp
|
|
197
|
-
// C.35 + C.128: Virtual destructor, use override
|
|
198
|
-
class Shape {
|
|
199
|
-
public:
|
|
200
|
-
virtual ~Shape() = default;
|
|
201
|
-
virtual double area() const = 0; // C.121: pure interface
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
class Circle : public Shape {
|
|
205
|
-
public:
|
|
206
|
-
explicit Circle(double r) : radius_(r) {}
|
|
207
|
-
double area() const override { return 3.14159 * radius_ * radius_; }
|
|
208
|
-
|
|
209
|
-
private:
|
|
210
|
-
double radius_;
|
|
211
|
-
};
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### Anti-Patterns
|
|
215
|
-
|
|
216
|
-
- Calling virtual functions in constructors/destructors (C.82)
|
|
217
|
-
- Using `memset`/`memcpy` on non-trivial types (C.90)
|
|
218
|
-
- Providing different default arguments for virtual function and overrider (C.140)
|
|
219
|
-
- Making data members `const` or references, which suppresses move/copy (C.12)
|
|
220
|
-
|
|
221
|
-
## Resource Management (R.*)
|
|
222
|
-
|
|
223
|
-
### Key Rules
|
|
224
|
-
|
|
225
|
-
| Rule | Summary |
|
|
226
|
-
|------|---------|
|
|
227
|
-
| **R.1** | Manage resources automatically using RAII |
|
|
228
|
-
| **R.3** | A raw pointer (`T*`) is non-owning |
|
|
229
|
-
| **R.5** | Prefer scoped objects; don't heap-allocate unnecessarily |
|
|
230
|
-
| **R.10** | Avoid `malloc()`/`free()` |
|
|
231
|
-
| **R.11** | Avoid calling `new` and `delete` explicitly |
|
|
232
|
-
| **R.20** | Use `unique_ptr` or `shared_ptr` to represent ownership |
|
|
233
|
-
| **R.21** | Prefer `unique_ptr` over `shared_ptr` unless sharing ownership |
|
|
234
|
-
| **R.22** | Use `make_shared()` to make `shared_ptr`s |
|
|
235
|
-
|
|
236
|
-
### Smart Pointer Usage
|
|
237
|
-
|
|
238
|
-
```cpp
|
|
239
|
-
// R.11 + R.20 + R.21: RAII with smart pointers
|
|
240
|
-
auto widget = std::make_unique<Widget>("config"); // unique ownership
|
|
241
|
-
auto cache = std::make_shared<Cache>(1024); // shared ownership
|
|
242
|
-
|
|
243
|
-
// R.3: Raw pointer = non-owning observer
|
|
244
|
-
void render(const Widget* w) { // does NOT own w
|
|
245
|
-
if (w) w->draw();
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
render(widget.get());
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### RAII Pattern
|
|
252
|
-
|
|
253
|
-
```cpp
|
|
254
|
-
// R.1: Resource acquisition is initialization
|
|
255
|
-
class FileHandle {
|
|
256
|
-
public:
|
|
257
|
-
explicit FileHandle(const std::string& path)
|
|
258
|
-
: handle_(std::fopen(path.c_str(), "r")) {
|
|
259
|
-
if (!handle_) throw std::runtime_error("Failed to open: " + path);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
~FileHandle() {
|
|
263
|
-
if (handle_) std::fclose(handle_);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
FileHandle(const FileHandle&) = delete;
|
|
267
|
-
FileHandle& operator=(const FileHandle&) = delete;
|
|
268
|
-
FileHandle(FileHandle&& other) noexcept
|
|
269
|
-
: handle_(std::exchange(other.handle_, nullptr)) {}
|
|
270
|
-
FileHandle& operator=(FileHandle&& other) noexcept {
|
|
271
|
-
if (this != &other) {
|
|
272
|
-
if (handle_) std::fclose(handle_);
|
|
273
|
-
handle_ = std::exchange(other.handle_, nullptr);
|
|
274
|
-
}
|
|
275
|
-
return *this;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
private:
|
|
279
|
-
std::FILE* handle_;
|
|
280
|
-
};
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Anti-Patterns
|
|
284
|
-
|
|
285
|
-
- Naked `new`/`delete` (R.11)
|
|
286
|
-
- `malloc()`/`free()` in C++ code (R.10)
|
|
287
|
-
- Multiple resource allocations in a single expression (R.13 -- exception safety hazard)
|
|
288
|
-
- `shared_ptr` where `unique_ptr` suffices (R.21)
|
|
289
|
-
|
|
290
|
-
## Expressions & Statements (ES.*)
|
|
291
|
-
|
|
292
|
-
### Key Rules
|
|
293
|
-
|
|
294
|
-
| Rule | Summary |
|
|
295
|
-
|------|---------|
|
|
296
|
-
| **ES.5** | Keep scopes small |
|
|
297
|
-
| **ES.20** | Always initialize an object |
|
|
298
|
-
| **ES.23** | Prefer `{}` initializer syntax |
|
|
299
|
-
| **ES.25** | Declare objects `const` or `constexpr` unless modification is intended |
|
|
300
|
-
| **ES.28** | Use lambdas for complex initialization of `const` variables |
|
|
301
|
-
| **ES.45** | Avoid magic constants; use symbolic constants |
|
|
302
|
-
| **ES.46** | Avoid narrowing/lossy arithmetic conversions |
|
|
303
|
-
| **ES.47** | Use `nullptr` rather than `0` or `NULL` |
|
|
304
|
-
| **ES.48** | Avoid casts |
|
|
305
|
-
| **ES.50** | Don't cast away `const` |
|
|
306
|
-
|
|
307
|
-
### Initialization
|
|
308
|
-
|
|
309
|
-
```cpp
|
|
310
|
-
// ES.20 + ES.23 + ES.25: Always initialize, prefer {}, default to const
|
|
311
|
-
const int max_retries{3};
|
|
312
|
-
const std::string name{"widget"};
|
|
313
|
-
const std::vector<int> primes{2, 3, 5, 7, 11};
|
|
314
|
-
|
|
315
|
-
// ES.28: Lambda for complex const initialization
|
|
316
|
-
const auto config = [&] {
|
|
317
|
-
Config c;
|
|
318
|
-
c.timeout = std::chrono::seconds{30};
|
|
319
|
-
c.retries = max_retries;
|
|
320
|
-
c.verbose = debug_mode;
|
|
321
|
-
return c;
|
|
322
|
-
}();
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
### Anti-Patterns
|
|
326
|
-
|
|
327
|
-
- Uninitialized variables (ES.20)
|
|
328
|
-
- Using `0` or `NULL` as pointer (ES.47 -- use `nullptr`)
|
|
329
|
-
- C-style casts (ES.48 -- use `static_cast`, `const_cast`, etc.)
|
|
330
|
-
- Casting away `const` (ES.50)
|
|
331
|
-
- Magic numbers without named constants (ES.45)
|
|
332
|
-
- Mixing signed and unsigned arithmetic (ES.100)
|
|
333
|
-
- Reusing names in nested scopes (ES.12)
|
|
334
|
-
|
|
335
|
-
## Error Handling (E.*)
|
|
336
|
-
|
|
337
|
-
### Key Rules
|
|
338
|
-
|
|
339
|
-
| Rule | Summary |
|
|
340
|
-
|------|---------|
|
|
341
|
-
| **E.1** | Develop an error-handling strategy early in a design |
|
|
342
|
-
| **E.2** | Throw an exception to signal that a function can't perform its assigned task |
|
|
343
|
-
| **E.6** | Use RAII to prevent leaks |
|
|
344
|
-
| **E.12** | Use `noexcept` when throwing is impossible or unacceptable |
|
|
345
|
-
| **E.14** | Use purpose-designed user-defined types as exceptions |
|
|
346
|
-
| **E.15** | Throw by value, catch by reference |
|
|
347
|
-
| **E.16** | Destructors, deallocation, and swap must never fail |
|
|
348
|
-
| **E.17** | Don't try to catch every exception in every function |
|
|
349
|
-
|
|
350
|
-
### Exception Hierarchy
|
|
351
|
-
|
|
352
|
-
```cpp
|
|
353
|
-
// E.14 + E.15: Custom exception types, throw by value, catch by reference
|
|
354
|
-
class AppError : public std::runtime_error {
|
|
355
|
-
public:
|
|
356
|
-
using std::runtime_error::runtime_error;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
class NetworkError : public AppError {
|
|
360
|
-
public:
|
|
361
|
-
NetworkError(const std::string& msg, int code)
|
|
362
|
-
: AppError(msg), status_code(code) {}
|
|
363
|
-
int status_code;
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
void fetch_data(const std::string& url) {
|
|
367
|
-
// E.2: Throw to signal failure
|
|
368
|
-
throw NetworkError("connection refused", 503);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
void run() {
|
|
372
|
-
try {
|
|
373
|
-
fetch_data("https://api.example.com");
|
|
374
|
-
} catch (const NetworkError& e) {
|
|
375
|
-
log_error(e.what(), e.status_code);
|
|
376
|
-
} catch (const AppError& e) {
|
|
377
|
-
log_error(e.what());
|
|
378
|
-
}
|
|
379
|
-
// E.17: Don't catch everything here -- let unexpected errors propagate
|
|
380
|
-
}
|
|
381
|
-
```
|
|
382
|
-
|
|
383
|
-
### Anti-Patterns
|
|
384
|
-
|
|
385
|
-
- Throwing built-in types like `int` or string literals (E.14)
|
|
386
|
-
- Catching by value (slicing risk) (E.15)
|
|
387
|
-
- Empty catch blocks that silently swallow errors
|
|
388
|
-
- Using exceptions for flow control (E.3)
|
|
389
|
-
- Error handling based on global state like `errno` (E.28)
|
|
390
|
-
|
|
391
|
-
## Constants & Immutability (Con.*)
|
|
392
|
-
|
|
393
|
-
### All Rules
|
|
394
|
-
|
|
395
|
-
| Rule | Summary |
|
|
396
|
-
|------|---------|
|
|
397
|
-
| **Con.1** | By default, make objects immutable |
|
|
398
|
-
| **Con.2** | By default, make member functions `const` |
|
|
399
|
-
| **Con.3** | By default, pass pointers and references to `const` |
|
|
400
|
-
| **Con.4** | Use `const` for values that don't change after construction |
|
|
401
|
-
| **Con.5** | Use `constexpr` for values computable at compile time |
|
|
402
|
-
|
|
403
|
-
```cpp
|
|
404
|
-
// Con.1 through Con.5: Immutability by default
|
|
405
|
-
class Sensor {
|
|
406
|
-
public:
|
|
407
|
-
explicit Sensor(std::string id) : id_(std::move(id)) {}
|
|
408
|
-
|
|
409
|
-
// Con.2: const member functions by default
|
|
410
|
-
const std::string& id() const { return id_; }
|
|
411
|
-
double last_reading() const { return reading_; }
|
|
412
|
-
|
|
413
|
-
// Only non-const when mutation is required
|
|
414
|
-
void record(double value) { reading_ = value; }
|
|
415
|
-
|
|
416
|
-
private:
|
|
417
|
-
const std::string id_; // Con.4: never changes after construction
|
|
418
|
-
double reading_{0.0};
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
// Con.3: Pass by const reference
|
|
422
|
-
void display(const Sensor& s) {
|
|
423
|
-
std::cout << s.id() << ": " << s.last_reading() << '\n';
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
// Con.5: Compile-time constants
|
|
427
|
-
constexpr double PI = 3.14159265358979;
|
|
428
|
-
constexpr int MAX_SENSORS = 256;
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
## Concurrency & Parallelism (CP.*)
|
|
432
|
-
|
|
433
|
-
### Key Rules
|
|
434
|
-
|
|
435
|
-
| Rule | Summary |
|
|
436
|
-
|------|---------|
|
|
437
|
-
| **CP.2** | Avoid data races |
|
|
438
|
-
| **CP.3** | Minimize explicit sharing of writable data |
|
|
439
|
-
| **CP.4** | Think in terms of tasks, rather than threads |
|
|
440
|
-
| **CP.8** | Don't use `volatile` for synchronization |
|
|
441
|
-
| **CP.20** | Use RAII, never plain `lock()`/`unlock()` |
|
|
442
|
-
| **CP.21** | Use `std::scoped_lock` to acquire multiple mutexes |
|
|
443
|
-
| **CP.22** | Never call unknown code while holding a lock |
|
|
444
|
-
| **CP.42** | Don't wait without a condition |
|
|
445
|
-
| **CP.44** | Remember to name your `lock_guard`s and `unique_lock`s |
|
|
446
|
-
| **CP.100** | Don't use lock-free programming unless you absolutely have to |
|
|
447
|
-
|
|
448
|
-
### Safe Locking
|
|
449
|
-
|
|
450
|
-
```cpp
|
|
451
|
-
// CP.20 + CP.44: RAII locks, always named
|
|
452
|
-
class ThreadSafeQueue {
|
|
453
|
-
public:
|
|
454
|
-
void push(int value) {
|
|
455
|
-
std::lock_guard<std::mutex> lock(mutex_); // CP.44: named!
|
|
456
|
-
queue_.push(value);
|
|
457
|
-
cv_.notify_one();
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
int pop() {
|
|
461
|
-
std::unique_lock<std::mutex> lock(mutex_);
|
|
462
|
-
// CP.42: Always wait with a condition
|
|
463
|
-
cv_.wait(lock, [this] { return !queue_.empty(); });
|
|
464
|
-
const int value = queue_.front();
|
|
465
|
-
queue_.pop();
|
|
466
|
-
return value;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
private:
|
|
470
|
-
std::mutex mutex_; // CP.50: mutex with its data
|
|
471
|
-
std::condition_variable cv_;
|
|
472
|
-
std::queue<int> queue_;
|
|
473
|
-
};
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
### Multiple Mutexes
|
|
477
|
-
|
|
478
|
-
```cpp
|
|
479
|
-
// CP.21: std::scoped_lock for multiple mutexes (deadlock-free)
|
|
480
|
-
void transfer(Account& from, Account& to, double amount) {
|
|
481
|
-
std::scoped_lock lock(from.mutex_, to.mutex_);
|
|
482
|
-
from.balance_ -= amount;
|
|
483
|
-
to.balance_ += amount;
|
|
484
|
-
}
|
|
485
|
-
```
|
|
486
|
-
|
|
487
|
-
### Anti-Patterns
|
|
488
|
-
|
|
489
|
-
- `volatile` for synchronization (CP.8 -- it's for hardware I/O only)
|
|
490
|
-
- Detaching threads (CP.26 -- lifetime management becomes nearly impossible)
|
|
491
|
-
- Unnamed lock guards: `std::lock_guard<std::mutex>(m);` destroys immediately (CP.44)
|
|
492
|
-
- Holding locks while calling callbacks (CP.22 -- deadlock risk)
|
|
493
|
-
- Lock-free programming without deep expertise (CP.100)
|
|
494
|
-
|
|
495
|
-
## Templates & Generic Programming (T.*)
|
|
496
|
-
|
|
497
|
-
### Key Rules
|
|
498
|
-
|
|
499
|
-
| Rule | Summary |
|
|
500
|
-
|------|---------|
|
|
501
|
-
| **T.1** | Use templates to raise the level of abstraction |
|
|
502
|
-
| **T.2** | Use templates to express algorithms for many argument types |
|
|
503
|
-
| **T.10** | Specify concepts for all template arguments |
|
|
504
|
-
| **T.11** | Use standard concepts whenever possible |
|
|
505
|
-
| **T.13** | Prefer shorthand notation for simple concepts |
|
|
506
|
-
| **T.43** | Prefer `using` over `typedef` |
|
|
507
|
-
| **T.120** | Use template metaprogramming only when you really need to |
|
|
508
|
-
| **T.144** | Don't specialize function templates (overload instead) |
|
|
509
|
-
|
|
510
|
-
### Concepts (C++20)
|
|
511
|
-
|
|
512
|
-
```cpp
|
|
513
|
-
#include <concepts>
|
|
514
|
-
|
|
515
|
-
// T.10 + T.11: Constrain templates with standard concepts
|
|
516
|
-
template<std::integral T>
|
|
517
|
-
T gcd(T a, T b) {
|
|
518
|
-
while (b != 0) {
|
|
519
|
-
a = std::exchange(b, a % b);
|
|
520
|
-
}
|
|
521
|
-
return a;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
// T.13: Shorthand concept syntax
|
|
525
|
-
void sort(std::ranges::random_access_range auto& range) {
|
|
526
|
-
std::ranges::sort(range);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
// Custom concept for domain-specific constraints
|
|
530
|
-
template<typename T>
|
|
531
|
-
concept Serializable = requires(const T& t) {
|
|
532
|
-
{ t.serialize() } -> std::convertible_to<std::string>;
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
template<Serializable T>
|
|
536
|
-
void save(const T& obj, const std::string& path);
|
|
537
|
-
```
|
|
538
|
-
|
|
539
|
-
### Anti-Patterns
|
|
540
|
-
|
|
541
|
-
- Unconstrained templates in visible namespaces (T.47)
|
|
542
|
-
- Specializing function templates instead of overloading (T.144)
|
|
543
|
-
- Template metaprogramming where `constexpr` suffices (T.120)
|
|
544
|
-
- `typedef` instead of `using` (T.43)
|
|
545
|
-
|
|
546
|
-
## Standard Library (SL.*)
|
|
547
|
-
|
|
548
|
-
### Key Rules
|
|
549
|
-
|
|
550
|
-
| Rule | Summary |
|
|
551
|
-
|------|---------|
|
|
552
|
-
| **SL.1** | Use libraries wherever possible |
|
|
553
|
-
| **SL.2** | Prefer the standard library to other libraries |
|
|
554
|
-
| **SL.con.1** | Prefer `std::array` or `std::vector` over C arrays |
|
|
555
|
-
| **SL.con.2** | Prefer `std::vector` by default |
|
|
556
|
-
| **SL.str.1** | Use `std::string` to own character sequences |
|
|
557
|
-
| **SL.str.2** | Use `std::string_view` to refer to character sequences |
|
|
558
|
-
| **SL.io.50** | Avoid `endl` (use `'\n'` -- `endl` forces a flush) |
|
|
559
|
-
|
|
560
|
-
```cpp
|
|
561
|
-
// SL.con.1 + SL.con.2: Prefer vector/array over C arrays
|
|
562
|
-
const std::array<int, 4> fixed_data{1, 2, 3, 4};
|
|
563
|
-
std::vector<std::string> dynamic_data;
|
|
564
|
-
|
|
565
|
-
// SL.str.1 + SL.str.2: string owns, string_view observes
|
|
566
|
-
std::string build_greeting(std::string_view name) {
|
|
567
|
-
return "Hello, " + std::string(name) + "!";
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
// SL.io.50: Use '\n' not endl
|
|
571
|
-
std::cout << "result: " << value << '\n';
|
|
572
|
-
```
|
|
573
|
-
|
|
574
|
-
## Enumerations (Enum.*)
|
|
575
|
-
|
|
576
|
-
### Key Rules
|
|
577
|
-
|
|
578
|
-
| Rule | Summary |
|
|
579
|
-
|------|---------|
|
|
580
|
-
| **Enum.1** | Prefer enumerations over macros |
|
|
581
|
-
| **Enum.3** | Prefer `enum class` over plain `enum` |
|
|
582
|
-
| **Enum.5** | Don't use ALL_CAPS for enumerators |
|
|
583
|
-
| **Enum.6** | Avoid unnamed enumerations |
|
|
584
|
-
|
|
585
|
-
```cpp
|
|
586
|
-
// Enum.3 + Enum.5: Scoped enum, no ALL_CAPS
|
|
587
|
-
enum class Color { red, green, blue };
|
|
588
|
-
enum class LogLevel { debug, info, warning, error };
|
|
589
|
-
|
|
590
|
-
// BAD: plain enum leaks names, ALL_CAPS clashes with macros
|
|
591
|
-
enum { RED, GREEN, BLUE }; // Enum.3 + Enum.5 + Enum.6 violation
|
|
592
|
-
#define MAX_SIZE 100 // Enum.1 violation -- use constexpr
|
|
593
|
-
```
|
|
594
|
-
|
|
595
|
-
## Source Files & Naming (SF.*, NL.*)
|
|
596
|
-
|
|
597
|
-
### Key Rules
|
|
598
|
-
|
|
599
|
-
| Rule | Summary |
|
|
600
|
-
|------|---------|
|
|
601
|
-
| **SF.1** | Use `.cpp` for code files and `.h` for interface files |
|
|
602
|
-
| **SF.7** | Don't write `using namespace` at global scope in a header |
|
|
603
|
-
| **SF.8** | Use `#include` guards for all `.h` files |
|
|
604
|
-
| **SF.11** | Header files should be self-contained |
|
|
605
|
-
| **NL.5** | Avoid encoding type information in names (no Hungarian notation) |
|
|
606
|
-
| **NL.8** | Use a consistent naming style |
|
|
607
|
-
| **NL.9** | Use ALL_CAPS for macro names only |
|
|
608
|
-
| **NL.10** | Prefer `underscore_style` names |
|
|
609
|
-
|
|
610
|
-
### Header Guard
|
|
611
|
-
|
|
612
|
-
```cpp
|
|
613
|
-
// SF.8: Include guard (or #pragma once)
|
|
614
|
-
#ifndef PROJECT_MODULE_WIDGET_H
|
|
615
|
-
#define PROJECT_MODULE_WIDGET_H
|
|
616
|
-
|
|
617
|
-
// SF.11: Self-contained -- include everything this header needs
|
|
618
|
-
#include <string>
|
|
619
|
-
#include <vector>
|
|
620
|
-
|
|
621
|
-
namespace project::module {
|
|
622
|
-
|
|
623
|
-
class Widget {
|
|
624
|
-
public:
|
|
625
|
-
explicit Widget(std::string name);
|
|
626
|
-
const std::string& name() const;
|
|
627
|
-
|
|
628
|
-
private:
|
|
629
|
-
std::string name_;
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
} // namespace project::module
|
|
633
|
-
|
|
634
|
-
#endif // PROJECT_MODULE_WIDGET_H
|
|
635
|
-
```
|
|
636
|
-
|
|
637
|
-
### Naming Conventions
|
|
638
|
-
|
|
639
|
-
```cpp
|
|
640
|
-
// NL.8 + NL.10: Consistent underscore_style
|
|
641
|
-
namespace my_project {
|
|
642
|
-
|
|
643
|
-
constexpr int max_buffer_size = 4096; // NL.9: not ALL_CAPS (it's not a macro)
|
|
644
|
-
|
|
645
|
-
class tcp_connection { // underscore_style class
|
|
646
|
-
public:
|
|
647
|
-
void send_message(std::string_view msg);
|
|
648
|
-
bool is_connected() const;
|
|
649
|
-
|
|
650
|
-
private:
|
|
651
|
-
std::string host_; // trailing underscore for members
|
|
652
|
-
int port_;
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
} // namespace my_project
|
|
656
|
-
```
|
|
657
|
-
|
|
658
|
-
### Anti-Patterns
|
|
659
|
-
|
|
660
|
-
- `using namespace std;` in a header at global scope (SF.7)
|
|
661
|
-
- Headers that depend on inclusion order (SF.10, SF.11)
|
|
662
|
-
- Hungarian notation like `strName`, `iCount` (NL.5)
|
|
663
|
-
- ALL_CAPS for anything other than macros (NL.9)
|
|
664
|
-
|
|
665
|
-
## Performance (Per.*)
|
|
666
|
-
|
|
667
|
-
### Key Rules
|
|
668
|
-
|
|
669
|
-
| Rule | Summary |
|
|
670
|
-
|------|---------|
|
|
671
|
-
| **Per.1** | Don't optimize without reason |
|
|
672
|
-
| **Per.2** | Don't optimize prematurely |
|
|
673
|
-
| **Per.6** | Don't make claims about performance without measurements |
|
|
674
|
-
| **Per.7** | Design to enable optimization |
|
|
675
|
-
| **Per.10** | Rely on the static type system |
|
|
676
|
-
| **Per.11** | Move computation from run time to compile time |
|
|
677
|
-
| **Per.19** | Access memory predictably |
|
|
678
|
-
|
|
679
|
-
### Guidelines
|
|
680
|
-
|
|
681
|
-
```cpp
|
|
682
|
-
// Per.11: Compile-time computation where possible
|
|
683
|
-
constexpr auto lookup_table = [] {
|
|
684
|
-
std::array<int, 256> table{};
|
|
685
|
-
for (int i = 0; i < 256; ++i) {
|
|
686
|
-
table[i] = i * i;
|
|
687
|
-
}
|
|
688
|
-
return table;
|
|
689
|
-
}();
|
|
690
|
-
|
|
691
|
-
// Per.19: Prefer contiguous data for cache-friendliness
|
|
692
|
-
std::vector<Point> points; // GOOD: contiguous
|
|
693
|
-
std::vector<std::unique_ptr<Point>> indirect_points; // BAD: pointer chasing
|
|
694
|
-
```
|
|
695
|
-
|
|
696
|
-
### Anti-Patterns
|
|
697
|
-
|
|
698
|
-
- Optimizing without profiling data (Per.1, Per.6)
|
|
699
|
-
- Choosing "clever" low-level code over clear abstractions (Per.4, Per.5)
|
|
700
|
-
- Ignoring data layout and cache behavior (Per.19)
|
|
701
|
-
|
|
702
|
-
## Quick Reference Checklist
|
|
703
|
-
|
|
704
|
-
Before marking C++ work complete:
|
|
705
|
-
|
|
706
|
-
- [ ] No raw `new`/`delete` -- use smart pointers or RAII (R.11)
|
|
707
|
-
- [ ] Objects initialized at declaration (ES.20)
|
|
708
|
-
- [ ] Variables are `const`/`constexpr` by default (Con.1, ES.25)
|
|
709
|
-
- [ ] Member functions are `const` where possible (Con.2)
|
|
710
|
-
- [ ] `enum class` instead of plain `enum` (Enum.3)
|
|
711
|
-
- [ ] `nullptr` instead of `0`/`NULL` (ES.47)
|
|
712
|
-
- [ ] No narrowing conversions (ES.46)
|
|
713
|
-
- [ ] No C-style casts (ES.48)
|
|
714
|
-
- [ ] Single-argument constructors are `explicit` (C.46)
|
|
715
|
-
- [ ] Rule of Zero or Rule of Five applied (C.20, C.21)
|
|
716
|
-
- [ ] Base class destructors are public virtual or protected non-virtual (C.35)
|
|
717
|
-
- [ ] Templates are constrained with concepts (T.10)
|
|
718
|
-
- [ ] No `using namespace` in headers at global scope (SF.7)
|
|
719
|
-
- [ ] Headers have include guards and are self-contained (SF.8, SF.11)
|
|
720
|
-
- [ ] Locks use RAII (`scoped_lock`/`lock_guard`) (CP.20)
|
|
721
|
-
- [ ] Exceptions are custom types, thrown by value, caught by reference (E.14, E.15)
|
|
722
|
-
- [ ] `'\n'` instead of `std::endl` (SL.io.50)
|
|
723
|
-
- [ ] No magic numbers (ES.45)
|