ma-agents 2.20.0 → 2.20.2
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/README.md +55 -1
- package/lib/agents.js +22 -11
- package/lib/bmad-cache/bmb/_git_preserved/HEAD +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/config +13 -0
- package/lib/bmad-cache/bmb/_git_preserved/description +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/applypatch-msg.sample +15 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/commit-msg.sample +24 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/post-update.sample +8 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-applypatch.sample +14 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-commit.sample +49 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-merge-commit.sample +13 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-push.sample +53 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-rebase.sample +169 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-receive.sample +24 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/push-to-checkout.sample +78 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/sendemail-validate.sample +77 -0
- package/lib/bmad-cache/bmb/_git_preserved/hooks/update.sample +128 -0
- package/lib/bmad-cache/bmb/_git_preserved/index +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/info/exclude +6 -0
- package/lib/bmad-cache/bmb/_git_preserved/logs/HEAD +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/logs/refs/heads/main +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.idx +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.pack +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-c6e539e2308f8ed764c5b54b6ab68a67f8a3796b.rev +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/packed-refs +2 -0
- package/lib/bmad-cache/bmb/_git_preserved/refs/heads/main +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/refs/remotes/origin/HEAD +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/shallow +1 -0
- package/lib/bmad-cache/cache-manifest.json +6 -6
- package/lib/bmad-cache/cis/_git_preserved/HEAD +1 -0
- package/lib/bmad-cache/cis/_git_preserved/config +13 -0
- package/lib/bmad-cache/cis/_git_preserved/description +1 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/applypatch-msg.sample +15 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/commit-msg.sample +24 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/post-update.sample +8 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-applypatch.sample +14 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-commit.sample +49 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-merge-commit.sample +13 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-push.sample +53 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-rebase.sample +169 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-receive.sample +24 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/push-to-checkout.sample +78 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/sendemail-validate.sample +77 -0
- package/lib/bmad-cache/cis/_git_preserved/hooks/update.sample +128 -0
- package/lib/bmad-cache/cis/_git_preserved/index +0 -0
- package/lib/bmad-cache/cis/_git_preserved/info/exclude +6 -0
- package/lib/bmad-cache/cis/_git_preserved/logs/HEAD +1 -0
- package/lib/bmad-cache/cis/_git_preserved/logs/refs/heads/main +1 -0
- package/lib/bmad-cache/cis/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.idx +0 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.pack +0 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-157d7eb8d527233a8607d926fc74ebf87f2ae0d3.rev +0 -0
- package/lib/bmad-cache/cis/_git_preserved/packed-refs +2 -0
- package/lib/bmad-cache/cis/_git_preserved/refs/heads/main +1 -0
- package/lib/bmad-cache/cis/_git_preserved/refs/remotes/origin/HEAD +1 -0
- package/lib/bmad-cache/cis/_git_preserved/shallow +1 -0
- package/lib/bmad-cache/gds/_git_preserved/HEAD +1 -0
- package/lib/bmad-cache/gds/_git_preserved/config +13 -0
- package/lib/bmad-cache/gds/_git_preserved/description +1 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/applypatch-msg.sample +15 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/commit-msg.sample +24 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/post-update.sample +8 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-applypatch.sample +14 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-commit.sample +49 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-merge-commit.sample +13 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-push.sample +53 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-rebase.sample +169 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-receive.sample +24 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/push-to-checkout.sample +78 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/sendemail-validate.sample +77 -0
- package/lib/bmad-cache/gds/_git_preserved/hooks/update.sample +128 -0
- package/lib/bmad-cache/gds/_git_preserved/index +0 -0
- package/lib/bmad-cache/gds/_git_preserved/info/exclude +6 -0
- package/lib/bmad-cache/gds/_git_preserved/logs/HEAD +1 -0
- package/lib/bmad-cache/gds/_git_preserved/logs/refs/heads/main +1 -0
- package/lib/bmad-cache/gds/_git_preserved/logs/refs/remotes/origin/HEAD +1 -0
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.idx +0 -0
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.pack +0 -0
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-44faafb9245b4ca17ad81bd6c9e6fc52fb5915a1.rev +0 -0
- package/lib/bmad-cache/gds/_git_preserved/packed-refs +2 -0
- package/lib/bmad-cache/gds/_git_preserved/refs/heads/main +1 -0
- package/lib/bmad-cache/gds/_git_preserved/refs/remotes/origin/HEAD +1 -0
- package/lib/bmad-cache/gds/_git_preserved/refs/tags/v0.2.2 +1 -0
- package/lib/bmad-cache/gds/_git_preserved/shallow +1 -0
- package/lib/bmad-cache/gds/package.json +2 -4
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-architect/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-designer/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-dev/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-qa/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-scrum-master/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-solo-dev/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-tech-writer/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-cache/gds/src/module-help.csv +28 -28
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-brainstorm-game/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-create-game-brief/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-gdd/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-narrative/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-check-implementation-readiness/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-create-epics-and-stories/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-generate-project-context/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-code-review/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-correct-course/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-retrospective/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-planning/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-status/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-e2e-scaffold/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-performance-test/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-playtest-plan/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-automate/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-design/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-framework/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-review/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gds-document-project/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev/bmad-skill-manifest.yaml +1 -4
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev-new-preview/bmad-skill-manifest.yaml +1 -4
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-spec/bmad-skill-manifest.yaml +1 -0
- package/lib/bmad-cache/tea/_git_preserved/HEAD +1 -0
- package/lib/bmad-cache/tea/_git_preserved/config +13 -0
- package/lib/bmad-cache/tea/_git_preserved/description +1 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/applypatch-msg.sample +15 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/commit-msg.sample +24 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/fsmonitor-watchman.sample +174 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/post-update.sample +8 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-applypatch.sample +14 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-commit.sample +49 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-merge-commit.sample +13 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-push.sample +53 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-rebase.sample +169 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-receive.sample +24 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/prepare-commit-msg.sample +42 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/push-to-checkout.sample +78 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/sendemail-validate.sample +77 -0
- package/lib/bmad-cache/tea/_git_preserved/hooks/update.sample +128 -0
- package/lib/bmad-cache/tea/_git_preserved/index +0 -0
- package/lib/bmad-cache/tea/_git_preserved/info/exclude +6 -0
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.idx +0 -0
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.pack +0 -0
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-96ec1ce3a9ef4c891e00e060795b4434ba8f7163.rev +0 -0
- package/lib/bmad-cache/tea/_git_preserved/packed-refs +2 -0
- package/lib/bmad-cache/tea/_git_preserved/refs/heads/main +1 -0
- package/lib/bmad-cache/tea/_git_preserved/refs/remotes/origin/HEAD +1 -0
- package/lib/bmad-cache/tea/_git_preserved/refs/tags/v1.7.0 +1 -0
- package/lib/bmad-cache/tea/_git_preserved/shallow +1 -0
- package/lib/bmad.js +33 -0
- package/lib/installer.js +60 -3
- package/package.json +1 -1
- package/scripts/build-bmad-cache.js +6 -3
- package/test/agent-injection-strategy.test.js +123 -0
- package/test/instruction-injection.test.js +336 -0
- package/.cline/clinerules.md +0 -14
- package/.cline/skills/.ma-agents.json +0 -199
- package/.cline/skills/MANIFEST.yaml +0 -204
- package/.cline/skills/ai-audit-trail/SKILL.md +0 -23
- package/.cline/skills/cmake-best-practices/SKILL.md +0 -64
- package/.cline/skills/cmake-best-practices/examples/cmake.md +0 -59
- package/.cline/skills/code-documentation/SKILL.md +0 -57
- package/.cline/skills/code-documentation/examples/cpp.md +0 -29
- package/.cline/skills/code-documentation/examples/csharp.md +0 -28
- package/.cline/skills/code-documentation/examples/javascript_typescript.md +0 -28
- package/.cline/skills/code-documentation/examples/python.md +0 -57
- package/.cline/skills/code-review/SKILL.md +0 -59
- package/.cline/skills/commit-message/SKILL.md +0 -79
- package/.cline/skills/cpp-concurrency-safety/SKILL.md +0 -60
- package/.cline/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
- package/.cline/skills/cpp-const-correctness/SKILL.md +0 -63
- package/.cline/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
- package/.cline/skills/cpp-memory-handling/SKILL.md +0 -42
- package/.cline/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
- package/.cline/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
- package/.cline/skills/cpp-modern-composition/SKILL.md +0 -64
- package/.cline/skills/cpp-modern-composition/examples/composition.md +0 -51
- package/.cline/skills/cpp-robust-interfaces/SKILL.md +0 -55
- package/.cline/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
- package/.cline/skills/create-hardened-docker-skill/SKILL.md +0 -637
- package/.cline/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
- package/.cline/skills/docker-hardening-verification/SKILL.md +0 -28
- package/.cline/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
- package/.cline/skills/docker-image-signing/SKILL.md +0 -28
- package/.cline/skills/docker-image-signing/scripts/sign-image.sh +0 -33
- package/.cline/skills/document-revision-history/SKILL.md +0 -104
- package/.cline/skills/git-workflow-skill/SKILL.md +0 -194
- package/.cline/skills/git-workflow-skill/hooks/commit-msg +0 -61
- package/.cline/skills/git-workflow-skill/hooks/pre-commit +0 -38
- package/.cline/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
- package/.cline/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
- package/.cline/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
- package/.cline/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
- package/.cline/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
- package/.cline/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
- package/.cline/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
- package/.cline/skills/js-ts-security-skill/SKILL.md +0 -64
- package/.cline/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
- package/.cline/skills/logging-best-practices/SKILL.md +0 -50
- package/.cline/skills/logging-best-practices/docs/logging-standards.md +0 -29
- package/.cline/skills/logging-best-practices/examples/cpp.md +0 -36
- package/.cline/skills/logging-best-practices/examples/csharp.md +0 -49
- package/.cline/skills/logging-best-practices/examples/javascript.md +0 -77
- package/.cline/skills/logging-best-practices/examples/python.md +0 -57
- package/.cline/skills/opentelemetry-best-practices/SKILL.md +0 -34
- package/.cline/skills/opentelemetry-best-practices/docs/otel-standards.md +0 -37
- package/.cline/skills/opentelemetry-best-practices/examples/go.md +0 -32
- package/.cline/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
- package/.cline/skills/opentelemetry-best-practices/examples/python.md +0 -37
- package/.cline/skills/python-dependency-mgmt/SKILL.md +0 -42
- package/.cline/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
- package/.cline/skills/python-security-skill/SKILL.md +0 -56
- package/.cline/skills/python-security-skill/examples/security.md +0 -56
- package/.cline/skills/self-signed-cert/SKILL.md +0 -42
- package/.cline/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
- package/.cline/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
- package/.cline/skills/skill-creator/SKILL.md +0 -196
- package/.cline/skills/skill-creator/docs/output-patterns.md +0 -82
- package/.cline/skills/skill-creator/docs/workflows.md +0 -28
- package/.cline/skills/skill-creator/scripts/init_skill.py +0 -208
- package/.cline/skills/skill-creator/scripts/package_skill.py +0 -99
- package/.cline/skills/skill-creator/scripts/quick_validate.py +0 -113
- package/.cline/skills/test-accompanied-development/SKILL.md +0 -50
- package/.cline/skills/test-generator/SKILL.md +0 -73
- package/.cline/skills/vercel-react-best-practices/SKILL.md +0 -109
- package/.cline/skills/verify-hardened-docker-skill/SKILL.md +0 -442
- package/.cline/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
- package/.clinerules +0 -14
- package/.cursor/cursor.md +0 -14
- package/.cursor/skills/.ma-agents.json +0 -199
- package/.cursor/skills/MANIFEST.yaml +0 -204
- package/.cursor/skills/ai-audit-trail/SKILL.md +0 -23
- package/.cursor/skills/cmake-best-practices/SKILL.md +0 -64
- package/.cursor/skills/cmake-best-practices/examples/cmake.md +0 -59
- package/.cursor/skills/code-documentation/SKILL.md +0 -57
- package/.cursor/skills/code-documentation/examples/cpp.md +0 -29
- package/.cursor/skills/code-documentation/examples/csharp.md +0 -28
- package/.cursor/skills/code-documentation/examples/javascript_typescript.md +0 -28
- package/.cursor/skills/code-documentation/examples/python.md +0 -57
- package/.cursor/skills/code-review/SKILL.md +0 -43
- package/.cursor/skills/commit-message/SKILL.md +0 -79
- package/.cursor/skills/cpp-concurrency-safety/SKILL.md +0 -60
- package/.cursor/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
- package/.cursor/skills/cpp-const-correctness/SKILL.md +0 -63
- package/.cursor/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
- package/.cursor/skills/cpp-memory-handling/SKILL.md +0 -42
- package/.cursor/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
- package/.cursor/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
- package/.cursor/skills/cpp-modern-composition/SKILL.md +0 -64
- package/.cursor/skills/cpp-modern-composition/examples/composition.md +0 -51
- package/.cursor/skills/cpp-robust-interfaces/SKILL.md +0 -55
- package/.cursor/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
- package/.cursor/skills/create-hardened-docker-skill/SKILL.md +0 -637
- package/.cursor/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
- package/.cursor/skills/docker-hardening-verification/SKILL.md +0 -28
- package/.cursor/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
- package/.cursor/skills/docker-image-signing/SKILL.md +0 -28
- package/.cursor/skills/docker-image-signing/scripts/sign-image.sh +0 -33
- package/.cursor/skills/document-revision-history/SKILL.md +0 -104
- package/.cursor/skills/git-workflow-skill/SKILL.md +0 -194
- package/.cursor/skills/git-workflow-skill/hooks/commit-msg +0 -61
- package/.cursor/skills/git-workflow-skill/hooks/pre-commit +0 -38
- package/.cursor/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
- package/.cursor/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
- package/.cursor/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
- package/.cursor/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
- package/.cursor/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
- package/.cursor/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
- package/.cursor/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
- package/.cursor/skills/js-ts-security-skill/SKILL.md +0 -64
- package/.cursor/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
- package/.cursor/skills/logging-best-practices/SKILL.md +0 -50
- package/.cursor/skills/logging-best-practices/examples/cpp.md +0 -36
- package/.cursor/skills/logging-best-practices/examples/csharp.md +0 -49
- package/.cursor/skills/logging-best-practices/examples/javascript.md +0 -77
- package/.cursor/skills/logging-best-practices/examples/python.md +0 -57
- package/.cursor/skills/logging-best-practices/references/logging-standards.md +0 -29
- package/.cursor/skills/opentelemetry-best-practices/SKILL.md +0 -34
- package/.cursor/skills/opentelemetry-best-practices/examples/go.md +0 -32
- package/.cursor/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
- package/.cursor/skills/opentelemetry-best-practices/examples/python.md +0 -37
- package/.cursor/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
- package/.cursor/skills/python-dependency-mgmt/SKILL.md +0 -42
- package/.cursor/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
- package/.cursor/skills/python-security-skill/SKILL.md +0 -56
- package/.cursor/skills/python-security-skill/examples/security.md +0 -56
- package/.cursor/skills/self-signed-cert/SKILL.md +0 -42
- package/.cursor/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
- package/.cursor/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
- package/.cursor/skills/skill-creator/SKILL.md +0 -196
- package/.cursor/skills/skill-creator/references/output-patterns.md +0 -82
- package/.cursor/skills/skill-creator/references/workflows.md +0 -28
- package/.cursor/skills/skill-creator/scripts/init_skill.py +0 -208
- package/.cursor/skills/skill-creator/scripts/package_skill.py +0 -99
- package/.cursor/skills/skill-creator/scripts/quick_validate.py +0 -113
- package/.cursor/skills/test-accompanied-development/SKILL.md +0 -50
- package/.cursor/skills/test-generator/SKILL.md +0 -65
- package/.cursor/skills/vercel-react-best-practices/SKILL.md +0 -109
- package/.cursor/skills/verify-hardened-docker-skill/SKILL.md +0 -442
- package/.cursor/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
- package/.gemini/gemini.md +0 -14
- package/.gemini/skills/.ma-agents.json +0 -199
- package/.gemini/skills/MANIFEST.yaml +0 -204
- package/.gemini/skills/ai-audit-trail/SKILL.md +0 -23
- package/.gemini/skills/cmake-best-practices/SKILL.md +0 -64
- package/.gemini/skills/cmake-best-practices/examples/cmake.md +0 -59
- package/.gemini/skills/code-documentation/SKILL.md +0 -57
- package/.gemini/skills/code-documentation/examples/cpp.md +0 -29
- package/.gemini/skills/code-documentation/examples/csharp.md +0 -28
- package/.gemini/skills/code-documentation/examples/javascript_typescript.md +0 -28
- package/.gemini/skills/code-documentation/examples/python.md +0 -57
- package/.gemini/skills/code-review/SKILL.md +0 -43
- package/.gemini/skills/commit-message/SKILL.md +0 -79
- package/.gemini/skills/cpp-concurrency-safety/SKILL.md +0 -60
- package/.gemini/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
- package/.gemini/skills/cpp-const-correctness/SKILL.md +0 -63
- package/.gemini/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
- package/.gemini/skills/cpp-memory-handling/SKILL.md +0 -42
- package/.gemini/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
- package/.gemini/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
- package/.gemini/skills/cpp-modern-composition/SKILL.md +0 -64
- package/.gemini/skills/cpp-modern-composition/examples/composition.md +0 -51
- package/.gemini/skills/cpp-robust-interfaces/SKILL.md +0 -55
- package/.gemini/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
- package/.gemini/skills/create-hardened-docker-skill/SKILL.md +0 -637
- package/.gemini/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
- package/.gemini/skills/docker-hardening-verification/SKILL.md +0 -28
- package/.gemini/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
- package/.gemini/skills/docker-image-signing/SKILL.md +0 -28
- package/.gemini/skills/docker-image-signing/scripts/sign-image.sh +0 -33
- package/.gemini/skills/document-revision-history/SKILL.md +0 -104
- package/.gemini/skills/git-workflow-skill/SKILL.md +0 -194
- package/.gemini/skills/git-workflow-skill/hooks/commit-msg +0 -61
- package/.gemini/skills/git-workflow-skill/hooks/pre-commit +0 -38
- package/.gemini/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
- package/.gemini/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
- package/.gemini/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
- package/.gemini/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
- package/.gemini/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
- package/.gemini/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
- package/.gemini/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
- package/.gemini/skills/js-ts-security-skill/SKILL.md +0 -64
- package/.gemini/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
- package/.gemini/skills/logging-best-practices/SKILL.md +0 -50
- package/.gemini/skills/logging-best-practices/examples/cpp.md +0 -36
- package/.gemini/skills/logging-best-practices/examples/csharp.md +0 -49
- package/.gemini/skills/logging-best-practices/examples/javascript.md +0 -77
- package/.gemini/skills/logging-best-practices/examples/python.md +0 -57
- package/.gemini/skills/logging-best-practices/references/logging-standards.md +0 -29
- package/.gemini/skills/opentelemetry-best-practices/SKILL.md +0 -34
- package/.gemini/skills/opentelemetry-best-practices/examples/go.md +0 -32
- package/.gemini/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
- package/.gemini/skills/opentelemetry-best-practices/examples/python.md +0 -37
- package/.gemini/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
- package/.gemini/skills/python-dependency-mgmt/SKILL.md +0 -42
- package/.gemini/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
- package/.gemini/skills/python-security-skill/SKILL.md +0 -56
- package/.gemini/skills/python-security-skill/examples/security.md +0 -56
- package/.gemini/skills/self-signed-cert/SKILL.md +0 -42
- package/.gemini/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
- package/.gemini/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
- package/.gemini/skills/skill-creator/SKILL.md +0 -196
- package/.gemini/skills/skill-creator/references/output-patterns.md +0 -82
- package/.gemini/skills/skill-creator/references/workflows.md +0 -28
- package/.gemini/skills/skill-creator/scripts/init_skill.py +0 -208
- package/.gemini/skills/skill-creator/scripts/package_skill.py +0 -99
- package/.gemini/skills/skill-creator/scripts/quick_validate.py +0 -113
- package/.gemini/skills/test-accompanied-development/SKILL.md +0 -50
- package/.gemini/skills/test-generator/SKILL.md +0 -65
- package/.gemini/skills/vercel-react-best-practices/SKILL.md +0 -109
- package/.gemini/skills/verify-hardened-docker-skill/SKILL.md +0 -442
- package/.gemini/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
- package/.github/copilot/copilot.md +0 -14
- package/.github/copilot/skills/.ma-agents.json +0 -199
- package/.github/copilot/skills/MANIFEST.yaml +0 -204
- package/.github/copilot/skills/ai-audit-trail/SKILL.md +0 -23
- package/.github/copilot/skills/cmake-best-practices/SKILL.md +0 -64
- package/.github/copilot/skills/cmake-best-practices/examples/cmake.md +0 -59
- package/.github/copilot/skills/code-documentation/SKILL.md +0 -57
- package/.github/copilot/skills/code-documentation/examples/cpp.md +0 -29
- package/.github/copilot/skills/code-documentation/examples/csharp.md +0 -28
- package/.github/copilot/skills/code-documentation/examples/javascript_typescript.md +0 -28
- package/.github/copilot/skills/code-documentation/examples/python.md +0 -57
- package/.github/copilot/skills/code-review/SKILL.md +0 -43
- package/.github/copilot/skills/commit-message/SKILL.md +0 -79
- package/.github/copilot/skills/cpp-concurrency-safety/SKILL.md +0 -60
- package/.github/copilot/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
- package/.github/copilot/skills/cpp-const-correctness/SKILL.md +0 -63
- package/.github/copilot/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
- package/.github/copilot/skills/cpp-memory-handling/SKILL.md +0 -42
- package/.github/copilot/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
- package/.github/copilot/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
- package/.github/copilot/skills/cpp-modern-composition/SKILL.md +0 -64
- package/.github/copilot/skills/cpp-modern-composition/examples/composition.md +0 -51
- package/.github/copilot/skills/cpp-robust-interfaces/SKILL.md +0 -55
- package/.github/copilot/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
- package/.github/copilot/skills/create-hardened-docker-skill/SKILL.md +0 -637
- package/.github/copilot/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
- package/.github/copilot/skills/docker-hardening-verification/SKILL.md +0 -28
- package/.github/copilot/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
- package/.github/copilot/skills/docker-image-signing/SKILL.md +0 -28
- package/.github/copilot/skills/docker-image-signing/scripts/sign-image.sh +0 -33
- package/.github/copilot/skills/document-revision-history/SKILL.md +0 -104
- package/.github/copilot/skills/git-workflow-skill/SKILL.md +0 -194
- package/.github/copilot/skills/git-workflow-skill/hooks/commit-msg +0 -61
- package/.github/copilot/skills/git-workflow-skill/hooks/pre-commit +0 -38
- package/.github/copilot/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
- package/.github/copilot/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
- package/.github/copilot/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
- package/.github/copilot/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
- package/.github/copilot/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
- package/.github/copilot/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
- package/.github/copilot/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
- package/.github/copilot/skills/js-ts-security-skill/SKILL.md +0 -64
- package/.github/copilot/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
- package/.github/copilot/skills/logging-best-practices/SKILL.md +0 -50
- package/.github/copilot/skills/logging-best-practices/examples/cpp.md +0 -36
- package/.github/copilot/skills/logging-best-practices/examples/csharp.md +0 -49
- package/.github/copilot/skills/logging-best-practices/examples/javascript.md +0 -77
- package/.github/copilot/skills/logging-best-practices/examples/python.md +0 -57
- package/.github/copilot/skills/logging-best-practices/references/logging-standards.md +0 -29
- package/.github/copilot/skills/opentelemetry-best-practices/SKILL.md +0 -34
- package/.github/copilot/skills/opentelemetry-best-practices/examples/go.md +0 -32
- package/.github/copilot/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
- package/.github/copilot/skills/opentelemetry-best-practices/examples/python.md +0 -37
- package/.github/copilot/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
- package/.github/copilot/skills/python-dependency-mgmt/SKILL.md +0 -42
- package/.github/copilot/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
- package/.github/copilot/skills/python-security-skill/SKILL.md +0 -56
- package/.github/copilot/skills/python-security-skill/examples/security.md +0 -56
- package/.github/copilot/skills/self-signed-cert/SKILL.md +0 -42
- package/.github/copilot/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
- package/.github/copilot/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
- package/.github/copilot/skills/skill-creator/SKILL.md +0 -196
- package/.github/copilot/skills/skill-creator/references/output-patterns.md +0 -82
- package/.github/copilot/skills/skill-creator/references/workflows.md +0 -28
- package/.github/copilot/skills/skill-creator/scripts/init_skill.py +0 -208
- package/.github/copilot/skills/skill-creator/scripts/package_skill.py +0 -99
- package/.github/copilot/skills/skill-creator/scripts/quick_validate.py +0 -113
- package/.github/copilot/skills/test-accompanied-development/SKILL.md +0 -50
- package/.github/copilot/skills/test-generator/SKILL.md +0 -65
- package/.github/copilot/skills/vercel-react-best-practices/SKILL.md +0 -109
- package/.github/copilot/skills/verify-hardened-docker-skill/SKILL.md +0 -442
- package/.github/copilot/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
- package/.kilocode/kilocode.md +0 -14
- package/.kilocode/skills/.ma-agents.json +0 -199
- package/.kilocode/skills/MANIFEST.yaml +0 -204
- package/.kilocode/skills/ai-audit-trail/SKILL.md +0 -23
- package/.kilocode/skills/cmake-best-practices/SKILL.md +0 -64
- package/.kilocode/skills/cmake-best-practices/examples/cmake.md +0 -59
- package/.kilocode/skills/code-documentation/SKILL.md +0 -57
- package/.kilocode/skills/code-documentation/examples/cpp.md +0 -29
- package/.kilocode/skills/code-documentation/examples/csharp.md +0 -28
- package/.kilocode/skills/code-documentation/examples/javascript_typescript.md +0 -28
- package/.kilocode/skills/code-documentation/examples/python.md +0 -57
- package/.kilocode/skills/code-review/SKILL.md +0 -43
- package/.kilocode/skills/commit-message/SKILL.md +0 -79
- package/.kilocode/skills/cpp-concurrency-safety/SKILL.md +0 -60
- package/.kilocode/skills/cpp-concurrency-safety/examples/concurrency.md +0 -73
- package/.kilocode/skills/cpp-const-correctness/SKILL.md +0 -63
- package/.kilocode/skills/cpp-const-correctness/examples/const_correctness.md +0 -54
- package/.kilocode/skills/cpp-memory-handling/SKILL.md +0 -42
- package/.kilocode/skills/cpp-memory-handling/examples/modern-cpp.md +0 -49
- package/.kilocode/skills/cpp-memory-handling/examples/smart-pointers.md +0 -46
- package/.kilocode/skills/cpp-modern-composition/SKILL.md +0 -64
- package/.kilocode/skills/cpp-modern-composition/examples/composition.md +0 -51
- package/.kilocode/skills/cpp-robust-interfaces/SKILL.md +0 -55
- package/.kilocode/skills/cpp-robust-interfaces/examples/interfaces.md +0 -56
- package/.kilocode/skills/create-hardened-docker-skill/SKILL.md +0 -637
- package/.kilocode/skills/create-hardened-docker-skill/scripts/create-all.sh +0 -489
- package/.kilocode/skills/docker-hardening-verification/SKILL.md +0 -28
- package/.kilocode/skills/docker-hardening-verification/scripts/verify-hardening.sh +0 -39
- package/.kilocode/skills/docker-image-signing/SKILL.md +0 -28
- package/.kilocode/skills/docker-image-signing/scripts/sign-image.sh +0 -33
- package/.kilocode/skills/document-revision-history/SKILL.md +0 -104
- package/.kilocode/skills/git-workflow-skill/SKILL.md +0 -194
- package/.kilocode/skills/git-workflow-skill/hooks/commit-msg +0 -61
- package/.kilocode/skills/git-workflow-skill/hooks/pre-commit +0 -38
- package/.kilocode/skills/git-workflow-skill/hooks/prepare-commit-msg +0 -56
- package/.kilocode/skills/git-workflow-skill/scripts/finish-feature.sh +0 -192
- package/.kilocode/skills/git-workflow-skill/scripts/install-hooks.sh +0 -55
- package/.kilocode/skills/git-workflow-skill/scripts/start-feature.sh +0 -110
- package/.kilocode/skills/git-workflow-skill/scripts/validate-workflow.sh +0 -229
- package/.kilocode/skills/js-ts-dependency-mgmt/SKILL.md +0 -49
- package/.kilocode/skills/js-ts-dependency-mgmt/examples/dependency_mgmt.md +0 -60
- package/.kilocode/skills/js-ts-security-skill/SKILL.md +0 -64
- package/.kilocode/skills/js-ts-security-skill/scripts/verify-security.sh +0 -136
- package/.kilocode/skills/logging-best-practices/SKILL.md +0 -50
- package/.kilocode/skills/logging-best-practices/examples/cpp.md +0 -36
- package/.kilocode/skills/logging-best-practices/examples/csharp.md +0 -49
- package/.kilocode/skills/logging-best-practices/examples/javascript.md +0 -77
- package/.kilocode/skills/logging-best-practices/examples/python.md +0 -57
- package/.kilocode/skills/logging-best-practices/references/logging-standards.md +0 -29
- package/.kilocode/skills/opentelemetry-best-practices/SKILL.md +0 -34
- package/.kilocode/skills/opentelemetry-best-practices/examples/go.md +0 -32
- package/.kilocode/skills/opentelemetry-best-practices/examples/javascript.md +0 -58
- package/.kilocode/skills/opentelemetry-best-practices/examples/python.md +0 -37
- package/.kilocode/skills/opentelemetry-best-practices/references/otel-standards.md +0 -37
- package/.kilocode/skills/python-dependency-mgmt/SKILL.md +0 -42
- package/.kilocode/skills/python-dependency-mgmt/examples/dependency_mgmt.md +0 -67
- package/.kilocode/skills/python-security-skill/SKILL.md +0 -56
- package/.kilocode/skills/python-security-skill/examples/security.md +0 -56
- package/.kilocode/skills/self-signed-cert/SKILL.md +0 -42
- package/.kilocode/skills/self-signed-cert/scripts/generate-cert.ps1 +0 -45
- package/.kilocode/skills/self-signed-cert/scripts/generate-cert.sh +0 -43
- package/.kilocode/skills/skill-creator/SKILL.md +0 -196
- package/.kilocode/skills/skill-creator/references/output-patterns.md +0 -82
- package/.kilocode/skills/skill-creator/references/workflows.md +0 -28
- package/.kilocode/skills/skill-creator/scripts/init_skill.py +0 -208
- package/.kilocode/skills/skill-creator/scripts/package_skill.py +0 -99
- package/.kilocode/skills/skill-creator/scripts/quick_validate.py +0 -113
- package/.kilocode/skills/test-accompanied-development/SKILL.md +0 -50
- package/.kilocode/skills/test-generator/SKILL.md +0 -65
- package/.kilocode/skills/vercel-react-best-practices/SKILL.md +0 -109
- package/.kilocode/skills/verify-hardened-docker-skill/SKILL.md +0 -442
- package/.kilocode/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +0 -439
- package/lib/bmad-cache/gds/src/agents/game-architect.agent.yaml +0 -44
- package/lib/bmad-cache/gds/src/agents/game-designer.agent.yaml +0 -45
- package/lib/bmad-cache/gds/src/agents/game-dev.agent.yaml +0 -49
- package/lib/bmad-cache/gds/src/agents/game-qa.agent.yaml +0 -63
- package/lib/bmad-cache/gds/src/agents/game-scrum-master.agent.yaml +0 -52
- package/lib/bmad-cache/gds/src/agents/game-solo-dev.agent.yaml +0 -53
- package/lib/bmad-cache/gds/src/agents/tech-writer/tech-writer.agent.yaml +0 -45
- package/lib/bmad-cache/gds/src/teams/default-party.csv +0 -12
- package/lib/bmad-cache/gds/src/teams/team-gamedev.yaml +0 -29
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/brainstorm-game/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/game-brief/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/2-design/gdd/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/2-design/narrative/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/3-technical/check-implementation-readiness/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/3-technical/create-epics-and-stories/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/3-technical/game-architecture/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/3-technical/generate-project-context/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/4-production/code-review/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/4-production/correct-course/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/4-production/retrospective/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/4-production/sprint-planning/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/4-production/sprint-status/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/document-project/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gametest/automate/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gametest/e2e-scaffold/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gametest/performance/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gametest/playtest-plan/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gametest/test-design/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gametest/test-framework/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gametest/test-review/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/quick-spec/bmad-skill-manifest.yaml +0 -3
- package/lib/bmad-cache/tea/.github/CODE_OF_CONDUCT.md +0 -128
- package/lib/bmad-cache/tea/.github/FUNDING.yaml +0 -15
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/config.yaml +0 -11
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/feature_request.md +0 -70
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/issue.md +0 -61
- package/lib/bmad-cache/tea/.github/workflows/docs.yaml +0 -66
- package/lib/bmad-cache/tea/.github/workflows/manual-release.yaml +0 -195
- package/lib/bmad-cache/tea/.github/workflows/quality.yaml +0 -114
- /package/lib/bmad-cache/gds/src/workflows/1-preproduction/{brainstorm-game → gds-brainstorm-game}/game-brain-methods.csv +0 -0
- /package/lib/bmad-cache/gds/src/workflows/2-design/{gdd → gds-create-gdd}/game-types.csv +0 -0
- /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/architecture-patterns.yaml +0 -0
- /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/decision-catalog.yaml +0 -0
- /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/engine-mcps.yaml +0 -0
- /package/lib/bmad-cache/gds/src/workflows/3-technical/{game-architecture → gds-game-architecture}/pattern-categories.csv +0 -0
- /package/lib/bmad-cache/gds/src/workflows/4-production/{sprint-planning → gds-sprint-planning}/sprint-status-template.yaml +0 -0
- /package/lib/bmad-cache/gds/src/workflows/{document-project → gds-document-project}/documentation-requirements.csv +0 -0
- /package/lib/bmad-cache/gds/src/workflows/{document-project → gds-document-project}/templates/project-scan-report-schema.json +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: C++ Safety-First Concurrency
|
|
3
|
-
description: Enforce safe multi-threading patterns using RAII locking and task-based parallelism (C++14+).
|
|
4
|
-
---
|
|
5
|
-
# C++ Safety-First Concurrency (Core Guidelines Section CP)
|
|
6
|
-
|
|
7
|
-
This skill prevents common multi-threading defects like data races, deadlocks, and shared-state corruption.
|
|
8
|
-
|
|
9
|
-
## Policies
|
|
10
|
-
|
|
11
|
-
### 1. RAII Locking Only
|
|
12
|
-
* **Rule**: Never call `mutex.lock()` or `mutex.unlock()` manually.
|
|
13
|
-
* **Action**:
|
|
14
|
-
- Use `std::lock_guard` for single mutexes.
|
|
15
|
-
- Use `std::unique_lock` if you need deferred locking or condition variables.
|
|
16
|
-
- Use `std::scoped_lock` (C++17) for multiple mutexes to avoid deadlocks.
|
|
17
|
-
* **Rationale**: Ensures locks are released even if an exception is thrown.
|
|
18
|
-
|
|
19
|
-
### 2. Task-Based Parallelism
|
|
20
|
-
* **Rule**: Prefer tasks (`std::async`, `std::packaged_task`, `std::future`) over raw threads (`std::thread`).
|
|
21
|
-
* **Action**: Use `auto result = std::async(std::launch::async, func, args...);`
|
|
22
|
-
* **Rationale**: Automates thread management and handles value return/exception propagation naturally.
|
|
23
|
-
|
|
24
|
-
### 3. Minimize Shared Mutable State
|
|
25
|
-
* **Rule**: Data should ideally be either "Thread-Local" or "Read-Only".
|
|
26
|
-
* **Action**:
|
|
27
|
-
- Pass data to threads by value where possible.
|
|
28
|
-
- Use `const` for data shared between threads.
|
|
29
|
-
- Group mutexes with the data they protect (e.g., in a struct).
|
|
30
|
-
* **Rationale**: If data isn't shared or isn't mutable, it cannot have a race condition.
|
|
31
|
-
|
|
32
|
-
### 4. Never Sleep/Wait without a Condition
|
|
33
|
-
* **Rule**: Avoid `std::this_thread::sleep_for` for synchronization.
|
|
34
|
-
* **Action**: Use `std::condition_variable` with a predicate to wait for work.
|
|
35
|
-
* **Rationale**: Sleeping is inefficient and bug-prone; condition variables are precise and responsive.
|
|
36
|
-
|
|
37
|
-
## Examples
|
|
38
|
-
|
|
39
|
-
### Before (Dangerous Concurrency)
|
|
40
|
-
```cpp
|
|
41
|
-
std::mutex mtx;
|
|
42
|
-
int sharedData = 0;
|
|
43
|
-
|
|
44
|
-
void worker() {
|
|
45
|
-
mtx.lock();
|
|
46
|
-
sharedData++;
|
|
47
|
-
mtx.unlock(); // What if an exception happened above?
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### After (Safe Concurrency)
|
|
52
|
-
```cpp
|
|
53
|
-
std::mutex mtx;
|
|
54
|
-
int sharedData = 0;
|
|
55
|
-
|
|
56
|
-
void worker() {
|
|
57
|
-
std::lock_guard<std::mutex> lock(mtx);
|
|
58
|
-
sharedData++;
|
|
59
|
-
} // Lock automatically released here
|
|
60
|
-
```
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Concurrency Safety Examples (C++14+)
|
|
2
|
-
|
|
3
|
-
### 1. Task-Based Parallelism (Async)
|
|
4
|
-
Avoids manual thread joining and handles return values safely.
|
|
5
|
-
|
|
6
|
-
```cpp
|
|
7
|
-
#include <future>
|
|
8
|
-
#include <vector>
|
|
9
|
-
#include <numeric>
|
|
10
|
-
|
|
11
|
-
int computeLargeSum(const std::vector<int>& data) {
|
|
12
|
-
auto part1 = std::async(std::launch::async, [&data]() {
|
|
13
|
-
return std::accumulate(data.begin(), data.begin() + data.size()/2, 0);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
auto part2 = std::accumulate(data.begin() + data.size()/2, data.end(), 0);
|
|
17
|
-
|
|
18
|
-
return part1.get() + part2;
|
|
19
|
-
}
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
### 2. Multi-Lock Safety (C++17 scoped_lock)
|
|
23
|
-
Prevents deadlocks when acquiring multiple resources.
|
|
24
|
-
|
|
25
|
-
```cpp
|
|
26
|
-
#include <mutex>
|
|
27
|
-
|
|
28
|
-
struct Account {
|
|
29
|
-
std::mutex mtx;
|
|
30
|
-
double balance;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
void transfer(Account& from, Account& to, double amount) {
|
|
34
|
-
// Acquire both locks simultaneously in a deadlock-free manner
|
|
35
|
-
std::scoped_lock lock(from.mtx, to.mtx);
|
|
36
|
-
|
|
37
|
-
if (from.balance >= amount) {
|
|
38
|
-
from.balance -= amount;
|
|
39
|
-
to.balance += amount;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### 3. Condition Variables with Predicates
|
|
45
|
-
Always use a predicate to protect against "spurious wakeups."
|
|
46
|
-
|
|
47
|
-
```cpp
|
|
48
|
-
#include <mutex>
|
|
49
|
-
#include <condition_variable>
|
|
50
|
-
#include <queue>
|
|
51
|
-
|
|
52
|
-
std::queue<int> workQueue;
|
|
53
|
-
std::mutex workMtx;
|
|
54
|
-
std::condition_variable workCv;
|
|
55
|
-
bool finished = false;
|
|
56
|
-
|
|
57
|
-
void consumer() {
|
|
58
|
-
while (true) {
|
|
59
|
-
std::unique_lock<std::mutex> lock(workMtx);
|
|
60
|
-
|
|
61
|
-
// Wait until there is work OR we are finished
|
|
62
|
-
workCv.wait(lock, []{ return !workQueue.empty() || finished; });
|
|
63
|
-
|
|
64
|
-
if (workQueue.empty() && finished) break;
|
|
65
|
-
|
|
66
|
-
int task = workQueue.front();
|
|
67
|
-
workQueue.pop();
|
|
68
|
-
lock.unlock(); // Release lock before processing
|
|
69
|
-
|
|
70
|
-
process(task);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
```
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: C++ Const-Correctness & Logic
|
|
3
|
-
description: Enforce immutability-by-default and push logic to compile-time using constexpr (C++14+).
|
|
4
|
-
---
|
|
5
|
-
# C++ Const-Correctness & Logic (Core Guidelines Section Con & ES)
|
|
6
|
-
|
|
7
|
-
This skill ensures that C++ code is "immutable by default," reducing side effects and enabling better compiler optimizations.
|
|
8
|
-
|
|
9
|
-
## Policies
|
|
10
|
-
|
|
11
|
-
### 1. By Default, Make Objects Immutable
|
|
12
|
-
* **Rule**: Declare all variables `const` unless they *must* be modified.
|
|
13
|
-
* **Action**:
|
|
14
|
-
- Use `const auto x = ...;` instead of `auto x = ...;`.
|
|
15
|
-
- Use `const` for function results that won't be modified.
|
|
16
|
-
* **Rationale**: Prevents accidental state mutation and improves code reasoning.
|
|
17
|
-
|
|
18
|
-
### 2. Const Member Functions
|
|
19
|
-
* **Rule**: Any member function that does not modify the object's observable state must be `const`.
|
|
20
|
-
* **Action**: Append `const` to the function signature: `T getValue() const { ... }`.
|
|
21
|
-
* **Rationale**: Necessary for calling functions on `const` objects and `const&` parameters.
|
|
22
|
-
|
|
23
|
-
### 3. Compute at Compile-Time (`constexpr`)
|
|
24
|
-
* **Rule**: Prefer `constexpr` for any value or simple logic that *can* be computed at compile-time.
|
|
25
|
-
* **Action**:
|
|
26
|
-
- Use `constexpr` for constants.
|
|
27
|
-
- Declare mathematical or configuration functions as `constexpr` (C++14 allows complex logic in `constexpr`).
|
|
28
|
-
* **Rationale**: Moves work from runtime to compile-time, reducing binary size and execution time.
|
|
29
|
-
|
|
30
|
-
### 4. Consistent Parameter Logic
|
|
31
|
-
* **Rule**: Avoid passing by value for large types; avoid passing by non-const reference unless it's an "out" or "in-out" parameter.
|
|
32
|
-
* **Action**:
|
|
33
|
-
- **In parameters**: Pass cheap types (int, double, pointers, `string_view`) by value. Pass large types by `const&`.
|
|
34
|
-
- **Out/In-out parameters**: Pass by `T&`.
|
|
35
|
-
- **Sinks**: Pass by `T&&` (rvalue reference).
|
|
36
|
-
|
|
37
|
-
## Examples
|
|
38
|
-
|
|
39
|
-
### Before (Mutable/Runtime Logic)
|
|
40
|
-
```cpp
|
|
41
|
-
int getMultiplier(int x) {
|
|
42
|
-
return x * 10;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
void process() {
|
|
46
|
-
auto data = loadData();
|
|
47
|
-
auto mult = getMultiplier(5); // mutable by accident
|
|
48
|
-
data.apply(mult);
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### After (Const/Compile-time Logic)
|
|
53
|
-
```cpp
|
|
54
|
-
constexpr int getMultiplier(int x) {
|
|
55
|
-
return x * 10;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
void process() {
|
|
59
|
-
const auto data = loadData(); // data won't change
|
|
60
|
-
constexpr auto mult = getMultiplier(5); // computed at compile time
|
|
61
|
-
data.apply(mult);
|
|
62
|
-
}
|
|
63
|
-
```
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Const-Correctness Examples (C++14+)
|
|
2
|
-
|
|
3
|
-
### 1. Complex Const Initialization (Lambda)
|
|
4
|
-
Sometimes you need to conditionally initialize a variable, but you want it to be `const` afterward.
|
|
5
|
-
|
|
6
|
-
**Modern (C++14):**
|
|
7
|
-
```cpp
|
|
8
|
-
const auto path = []() {
|
|
9
|
-
if (auto env = std::getenv("APP_PATH")) {
|
|
10
|
-
return std::string(env);
|
|
11
|
-
}
|
|
12
|
-
return std::string("/default/path");
|
|
13
|
-
}(); // Immediately invoked lambda
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
### 2. Const-Correct Member Functions
|
|
17
|
-
Ensure getters and inspectors are `const`.
|
|
18
|
-
|
|
19
|
-
```cpp
|
|
20
|
-
class Config {
|
|
21
|
-
int timeout = 30;
|
|
22
|
-
public:
|
|
23
|
-
// This is an inspector, must be const
|
|
24
|
-
int getTimeout() const { return timeout; }
|
|
25
|
-
|
|
26
|
-
// This is a mutator, cannot be const
|
|
27
|
-
void setTimeout(int t) { timeout = t; }
|
|
28
|
-
};
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### 3. C++14 constexpr Logic
|
|
32
|
-
C++14 expanded `constexpr` significantly (loops, branches allowed).
|
|
33
|
-
|
|
34
|
-
```cpp
|
|
35
|
-
constexpr int fibonacci(int n) {
|
|
36
|
-
if (n <= 1) return n;
|
|
37
|
-
int a = 0, b = 1;
|
|
38
|
-
for (int i = 2; i <= n; ++i) {
|
|
39
|
-
int next = a + b;
|
|
40
|
-
a = b;
|
|
41
|
-
b = next;
|
|
42
|
-
}
|
|
43
|
-
return b;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Result is computed by the compiler
|
|
47
|
-
constexpr int fib10 = fibonacci(10);
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### 4. Parameter Passing Guide
|
|
51
|
-
- `void f(int)` : Fast to copy (Value)
|
|
52
|
-
- `void f(const LargeObject&)` : Expensive to copy (Const Ref)
|
|
53
|
-
- `void f(LargeObject&)` : I will modify this (Ref)
|
|
54
|
-
- `void f(LargeObject&&)` : I will MOVE/OWN this (Rvalue Ref)
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: C++ Safe Memory Handling
|
|
3
|
-
description: Enforces Modern C++ practices (RAII, Smart Pointers) to prevent memory leaks, dangling pointers, and buffer overflows.
|
|
4
|
-
---
|
|
5
|
-
# C++ Safe Memory Handling
|
|
6
|
-
|
|
7
|
-
Guidelines for writing robust, memory-safe C++ code by leveraging Modern C++ features and RAII principles.
|
|
8
|
-
|
|
9
|
-
## Mandatory Policies
|
|
10
|
-
|
|
11
|
-
### 1. Smart Pointers by Default
|
|
12
|
-
You MUST use smart pointers for all heap allocations.
|
|
13
|
-
- Use `std::unique_ptr` for exclusive ownership. This is the preferred default.
|
|
14
|
-
- Use `std::shared_ptr` only when multiple objects share ownership of a resource.
|
|
15
|
-
- Use `std::weak_ptr` to break circular dependencies or for non-owning references that must be checked for validity.
|
|
16
|
-
|
|
17
|
-
### 2. Forbid raw new/delete
|
|
18
|
-
You MUST NOT use raw `new` and `delete` operators.
|
|
19
|
-
- Use `std::make_unique` (C++14+) or `std::make_shared` to allocate objects on the heap.
|
|
20
|
-
- Exceptions are only allowed within low-level custom container implementations, which must be encapsulated.
|
|
21
|
-
|
|
22
|
-
### 3. Prefer Value Semantics
|
|
23
|
-
Always prefer stack-allocated objects and value semantics over pointer-based indirection unless heap allocation is strictly necessary (e.g., polymorphism, very large objects, or dynamic lifetimes).
|
|
24
|
-
|
|
25
|
-
### 4. RAII for All Resources
|
|
26
|
-
Every resource (file handles, sockets, mutexes, memory) MUST be managed by an object whose constructor acquires the resource and destructor releases it. Never rely on manual cleanup blocks.
|
|
27
|
-
|
|
28
|
-
### 5. Standard Containers
|
|
29
|
-
NEVER use raw buffers or manually managed arrays.
|
|
30
|
-
- Use `std::vector` for dynamic arrays.
|
|
31
|
-
- Use `std::string` for text.
|
|
32
|
-
- Use `std::array` (C++11) for fixed-size stack arrays.
|
|
33
|
-
- Access elements using `.at()` if bounds checking is required for security-critical logic.
|
|
34
|
-
|
|
35
|
-
## Critical Rules
|
|
36
|
-
- **No Dangling Pointers**: Never return a pointer or reference to a local stack-allocated variable.
|
|
37
|
-
- **Rule of Zero/Five**: Follow the "Rule of Zero" (prefer components that handle their own resource management). If manual management is needed, correctly implement the "Rule of Five".
|
|
38
|
-
- **Nullable Checks**: Always check pointers (even smart ones) for `nullptr` before dereferencing if there is any chance they could be empty.
|
|
39
|
-
|
|
40
|
-
## Resources
|
|
41
|
-
- [Modern C++ Examples](file:///skills/cpp-memory-handling/examples/modern-cpp.md)
|
|
42
|
-
- [Smart Pointer Reference](file:///skills/cpp-memory-handling/examples/smart-pointers.md)
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Modern C++ Safe Memory Examples
|
|
2
|
-
|
|
3
|
-
Demonstrating RAII and safe resource management in modern C++.
|
|
4
|
-
|
|
5
|
-
## RAII Resource Management
|
|
6
|
-
|
|
7
|
-
```cpp
|
|
8
|
-
#include <iostream>
|
|
9
|
-
#include <fstream>
|
|
10
|
-
#include <vector>
|
|
11
|
-
#include <memory>
|
|
12
|
-
|
|
13
|
-
class FileHandler {
|
|
14
|
-
public:
|
|
15
|
-
FileHandler(const std::string& filename) : file(filename) {
|
|
16
|
-
if (!file.is_open()) throw std::runtime_error("Could not open file");
|
|
17
|
-
}
|
|
18
|
-
// Destructor automatically closes the file
|
|
19
|
-
~FileHandler() { if (file.is_open()) file.close(); }
|
|
20
|
-
|
|
21
|
-
void write(const std::string& data) { file << data; }
|
|
22
|
-
|
|
23
|
-
private:
|
|
24
|
-
std::ofstream file;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
void log_data(const std::string& message) {
|
|
28
|
-
// RAII handles lifetime. No manual close needed.
|
|
29
|
-
FileHandler handler("app.log");
|
|
30
|
-
handler.write(message);
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Vector vs Raw Arrays
|
|
35
|
-
|
|
36
|
-
```cpp
|
|
37
|
-
// BAD: Manual memory management
|
|
38
|
-
void bad_array() {
|
|
39
|
-
int* arr = new int[100];
|
|
40
|
-
// ... logic ...
|
|
41
|
-
delete[] arr; // Manual cleanup is error-prone
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// GOOD: Automatic memory management
|
|
45
|
-
void safe_vector() {
|
|
46
|
-
std::vector<int> arr(100);
|
|
47
|
-
// Vector manages its own heap memory. RAII cleans up at scope exit.
|
|
48
|
-
}
|
|
49
|
-
```
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# C++ Smart Pointer Reference
|
|
2
|
-
|
|
3
|
-
Guidelines for selecting and using smart pointers correctly.
|
|
4
|
-
|
|
5
|
-
## unique_ptr (Preferred Default)
|
|
6
|
-
- Represents **exclusive ownership**.
|
|
7
|
-
- Zero runtime overhead compared to raw pointers.
|
|
8
|
-
|
|
9
|
-
```cpp
|
|
10
|
-
#include <memory>
|
|
11
|
-
|
|
12
|
-
class Widget { /* ... */ };
|
|
13
|
-
|
|
14
|
-
void exclusive_use() {
|
|
15
|
-
// Use make_unique for safety and efficiency
|
|
16
|
-
auto widget = std::make_unique<Widget>();
|
|
17
|
-
|
|
18
|
-
// Ownership can be moved but not copied
|
|
19
|
-
std::unique_ptr<Widget> other = std::move(widget);
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## shared_ptr (For Shared Ownership)
|
|
24
|
-
- Use only when **multiple** owners truly exist.
|
|
25
|
-
- Reference counting has small overhead.
|
|
26
|
-
|
|
27
|
-
```cpp
|
|
28
|
-
void shared_use() {
|
|
29
|
-
auto shared_widget = std::make_shared<Widget>();
|
|
30
|
-
|
|
31
|
-
auto owner1 = shared_widget; // Count = 2
|
|
32
|
-
auto owner2 = shared_widget; // Count = 3
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## weak_ptr (Breaking Cycles)
|
|
37
|
-
- Non-owning reference. Must be locked before use.
|
|
38
|
-
|
|
39
|
-
```cpp
|
|
40
|
-
void weak_use(std::weak_ptr<Widget> weak_widget) {
|
|
41
|
-
if (auto shared = weak_widget.lock()) {
|
|
42
|
-
// Resource is still alive
|
|
43
|
-
shared->do_something();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
```
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: C++ Modern Composition
|
|
3
|
-
description: Replace legacy C patterns with STL, Ranges, and modern C++ abstractions (C++14+).
|
|
4
|
-
---
|
|
5
|
-
# C++ Modern Composition (Core Guidelines Section STL, CPL, ES)
|
|
6
|
-
|
|
7
|
-
This skill forces the transition from legacy "C-style" C++ to modern, declarative, and safer C++ idioms.
|
|
8
|
-
|
|
9
|
-
## Policies
|
|
10
|
-
|
|
11
|
-
### 1. STL Algorithms over Manual Loops
|
|
12
|
-
* **Rule**: Never write a raw `for` or `while` loop for operations supported by `<algorithm>` or `<numeric>`.
|
|
13
|
-
* **Action**:
|
|
14
|
-
- Use `std::any_of`, `std::all_of`, `std::find_if`, `std::transform`, `std::accumulate`.
|
|
15
|
-
- In C++20 projects, prefer `std::ranges` versions.
|
|
16
|
-
* **Rationale**: Reduces "off-by-one" errors and improves intent readability.
|
|
17
|
-
|
|
18
|
-
### 2. Eradicate C-style Casts and Macros
|
|
19
|
-
* **Rule**: Ban `(type)value` and `#define` for logic/constants.
|
|
20
|
-
* **Action**:
|
|
21
|
-
- Use `static_cast`, `reinterpret_cast`, or `const_cast`.
|
|
22
|
-
- Replace macros with `constexpr` variables or `inline` functions/templates.
|
|
23
|
-
* **Rationale**: Named casts are searchable and safer; `constexpr` respects namespaces and scopes.
|
|
24
|
-
|
|
25
|
-
### 3. Universal Initialization
|
|
26
|
-
* **Rule**: Prefer `{}` initialization to avoid the "Most Vexing Parse".
|
|
27
|
-
* **Action**: Use `auto x = Type{args...};` or `Type x{args...};`.
|
|
28
|
-
* **Rationale**: Prevents narrowing conversions (e.g., `int x{3.5}` is a compiler error, while `int x = 3.5` is not).
|
|
29
|
-
|
|
30
|
-
### 4. Zero Raw Memory Manipulation
|
|
31
|
-
* **Rule**: Ban `memset`, `memcpy`, and `malloc`.
|
|
32
|
-
* **Action**:
|
|
33
|
-
- Use `std::fill`, `std::copy`, or `container.assign()`.
|
|
34
|
-
- Use `std::vector` or `std::array` instead of raw arrays.
|
|
35
|
-
* **Rationale**: Standard containers are bounds-checked (via `.at()`) and manage their own memory.
|
|
36
|
-
|
|
37
|
-
## Examples
|
|
38
|
-
|
|
39
|
-
### Before (C-style C++)
|
|
40
|
-
```cpp
|
|
41
|
-
#define MAX_BUFFER 1024
|
|
42
|
-
int arr[MAX_BUFFER];
|
|
43
|
-
memset(arr, 0, sizeof(arr));
|
|
44
|
-
|
|
45
|
-
bool found = false;
|
|
46
|
-
for (int i = 0; i < MAX_BUFFER; ++i) {
|
|
47
|
-
if (arr[i] == (int)someFloat) {
|
|
48
|
-
found = true;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### After (Modern C++)
|
|
55
|
-
```cpp
|
|
56
|
-
constexpr size_t MaxBuffer = 1024;
|
|
57
|
-
std::array<int, MaxBuffer> arr;
|
|
58
|
-
arr.fill(0);
|
|
59
|
-
|
|
60
|
-
auto target = static_cast<int>(someFloat);
|
|
61
|
-
bool found = std::any_of(arr.begin(), arr.end(), [target](int v) {
|
|
62
|
-
return v == target;
|
|
63
|
-
});
|
|
64
|
-
```
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Modern Composition Examples (C++14+)
|
|
2
|
-
|
|
3
|
-
### 1. Data Transformation (Transform)
|
|
4
|
-
**Legacy:**
|
|
5
|
-
```cpp
|
|
6
|
-
std::vector<int> inputs = {1, 2, 3};
|
|
7
|
-
std::vector<int> outputs;
|
|
8
|
-
for (size_t i = 0; i < inputs.size(); ++i) {
|
|
9
|
-
outputs.push_back(inputs[i] * 2);
|
|
10
|
-
}
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
**Modern (C++14):**
|
|
14
|
-
```cpp
|
|
15
|
-
std::vector<int> inputs = {1, 2, 3};
|
|
16
|
-
std::vector<int> outputs;
|
|
17
|
-
outputs.reserve(inputs.size());
|
|
18
|
-
std::transform(inputs.begin(), inputs.end(), std::back_inserter(outputs),
|
|
19
|
-
[](int n) { return n * 2; });
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
### 2. Summation and Reduction (Accumulate)
|
|
23
|
-
**Modern (C++14):**
|
|
24
|
-
```cpp
|
|
25
|
-
#include <numeric>
|
|
26
|
-
|
|
27
|
-
std::vector<double> prices = {10.5, 20.0, 5.25};
|
|
28
|
-
double total = std::accumulate(prices.begin(), prices.end(), 0.0);
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### 3. Safe Narrowing Protection
|
|
32
|
-
**Logic:**
|
|
33
|
-
```cpp
|
|
34
|
-
double d = 7.9;
|
|
35
|
-
// int i{d}; // Error: narrowing conversion from 'double' to 'int'
|
|
36
|
-
int i = static_cast<int>(d); // Explicit and safe
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 4. Replacing Function Macros
|
|
40
|
-
**Legacy:**
|
|
41
|
-
```cpp
|
|
42
|
-
#define SQUARE(x) ((x)*(x))
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**Modern (C++14):**
|
|
46
|
-
```cpp
|
|
47
|
-
template<typename T>
|
|
48
|
-
constexpr T square(T t) {
|
|
49
|
-
return t * t;
|
|
50
|
-
}
|
|
51
|
-
```
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: C++ Robust Interfaces
|
|
3
|
-
description: Enforce contract-based design and strong typing in C++ interfaces (C++14+).
|
|
4
|
-
---
|
|
5
|
-
# C++ Robust Interfaces (Core Guidelines Section I & E)
|
|
6
|
-
|
|
7
|
-
This skill ensures that C++ interfaces follow contract-based design principles to improve safety, clarity, and maintainability.
|
|
8
|
-
|
|
9
|
-
## Policies
|
|
10
|
-
|
|
11
|
-
### 1. Make Interfaces Explicit
|
|
12
|
-
* **Rule**: Functions must explicitly state their requirements (pre-conditions) and guarantees (post-conditions).
|
|
13
|
-
* **Action**: Use `Expects()` and `Ensures()` (from GSL) or standardized comments if GSL is unavailable.
|
|
14
|
-
* **Rationale**: Detects integration bugs at the call site rather than deep in the implementation.
|
|
15
|
-
|
|
16
|
-
### 2. Strong Typing over Primitive Types
|
|
17
|
-
* **Rule**: Avoid "Boolean Blindness" and `void*`.
|
|
18
|
-
* **Action**:
|
|
19
|
-
- Use `enum class` for options instead of `bool`.
|
|
20
|
-
- Use `std::chrono` for time instead of `int`.
|
|
21
|
-
- Use specific types/structs instead of a long list of primitive arguments.
|
|
22
|
-
|
|
23
|
-
### 3. Clear Ownership and Lifetime
|
|
24
|
-
* **Rule**: A raw pointer (`T*`) in an interface **must never** represent ownership.
|
|
25
|
-
* **Action**:
|
|
26
|
-
- Use `gsl::not_null<T*>` for pointers that cannot be null.
|
|
27
|
-
- Use `std::unique_ptr` or `std::shared_ptr` ONLY if the function is participating in ownership/lifetime management.
|
|
28
|
-
- Prefer `T&` for arguments that must exist and aren't owned by the callee.
|
|
29
|
-
|
|
30
|
-
### 4. Sequence Safety
|
|
31
|
-
* **Rule**: Never pass an array as a raw pointer + size.
|
|
32
|
-
* **Action**:
|
|
33
|
-
- Use `gsl::span<T>` (C++14/17 via GSL) or `std::span<T>` (C++20).
|
|
34
|
-
- Use `std::string_view` for read-only strings.
|
|
35
|
-
|
|
36
|
-
## Examples
|
|
37
|
-
|
|
38
|
-
### Before (Fragile Interface)
|
|
39
|
-
```cpp
|
|
40
|
-
// What does 'flag' mean? Is data allowed to be null? Is it an array?
|
|
41
|
-
void processData(char* data, int size, bool flag);
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### After (Robust Interface)
|
|
45
|
-
```cpp
|
|
46
|
-
#include <gsl/gsl>
|
|
47
|
-
|
|
48
|
-
enum class ProcessingMode { Fast, Thorough };
|
|
49
|
-
|
|
50
|
-
// Explicit contract: data must not be null, size is handled by span
|
|
51
|
-
void processData(gsl::span<const char> data, ProcessingMode mode) {
|
|
52
|
-
Expects(!data.empty());
|
|
53
|
-
// ...
|
|
54
|
-
}
|
|
55
|
-
```
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# Robust Interface Examples (C++14+)
|
|
2
|
-
|
|
3
|
-
### 1. Avoiding Boolean Blindness
|
|
4
|
-
**Incorrect:**
|
|
5
|
-
```cpp
|
|
6
|
-
void setWindowVisible(bool visible, bool animate);
|
|
7
|
-
// Call site: setWindowVisible(true, false); // What is false?
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
**Correct (C++14):**
|
|
11
|
-
```cpp
|
|
12
|
-
enum class Visibility { Visible, Hidden };
|
|
13
|
-
enum class Animation { Enabled, Disabled };
|
|
14
|
-
|
|
15
|
-
void setWindowVisible(Visibility v, Animation a);
|
|
16
|
-
// Call site: setWindowVisible(Visibility::Visible, Animation::Disabled);
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### 2. Contract-Based Validation
|
|
20
|
-
Using GSL (Guidelines Support Library) style:
|
|
21
|
-
|
|
22
|
-
```cpp
|
|
23
|
-
#include <gsl/gsl>
|
|
24
|
-
|
|
25
|
-
class User {
|
|
26
|
-
public:
|
|
27
|
-
// Ensure name is never null or empty
|
|
28
|
-
void setName(gsl::not_null<const char*> name) {
|
|
29
|
-
Expects(std::strlen(name) > 0);
|
|
30
|
-
this->name = name;
|
|
31
|
-
}
|
|
32
|
-
private:
|
|
33
|
-
std::string name;
|
|
34
|
-
};
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### 3. Safe Sequences with Span
|
|
38
|
-
Replaces pointer + length pairs which are prone to buffer overflows.
|
|
39
|
-
|
|
40
|
-
```cpp
|
|
41
|
-
#include <gsl/gsl> // Use gsl::span in C++14
|
|
42
|
-
|
|
43
|
-
float calculateAverage(gsl::span<const float> values) {
|
|
44
|
-
Expects(!values.empty());
|
|
45
|
-
|
|
46
|
-
float sum = 0.0f;
|
|
47
|
-
for (float v : values) {
|
|
48
|
-
sum += v;
|
|
49
|
-
}
|
|
50
|
-
return sum / values.size();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Usage:
|
|
54
|
-
// float arr[] = {1, 2, 3};
|
|
55
|
-
// calculateAverage(arr); // Automatic conversion to span
|
|
56
|
-
```
|