@opengroundplan/core 0.1.1
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 -0
- package/README.md +26 -0
- package/adapters/README.md +155 -0
- package/adapters/_shared/README.md +16 -0
- package/adapters/aider/adapter.yaml +30 -0
- package/adapters/aider/templates/.aider.conf.yml.tmpl +5 -0
- package/adapters/amp/adapter.yaml +32 -0
- package/adapters/amp/templates/SKILL.md.tmpl +8 -0
- package/adapters/antigravity-cli/adapter.yaml +36 -0
- package/adapters/antigravity-cli/templates/ANTIGRAVITY.md.tmpl +11 -0
- package/adapters/claude-code/adapter.yaml +65 -0
- package/adapters/claude-code/templates/CLAUDE.md.tmpl +24 -0
- package/adapters/claude-code/templates/SKILL.md.tmpl +8 -0
- package/adapters/claude-code/templates/agent.md.tmpl +9 -0
- package/adapters/claude-code/templates/command.md.tmpl +6 -0
- package/adapters/claude-code/templates/rule.md.tmpl +8 -0
- package/adapters/claude-code/templates/settings.json.tmpl +11 -0
- package/adapters/cline/adapter.yaml +31 -0
- package/adapters/cline/templates/rule.md.tmpl +8 -0
- package/adapters/codex/adapter.yaml +29 -0
- package/adapters/continue/adapter.yaml +36 -0
- package/adapters/continue/templates/00-agents-md.md.tmpl +9 -0
- package/adapters/continue/templates/rule.md.tmpl +8 -0
- package/adapters/cursor/adapter.yaml +34 -0
- package/adapters/cursor/templates/rule.mdc.tmpl +9 -0
- package/adapters/gemini-cli/adapter.yaml +51 -0
- package/adapters/gemini-cli/templates/GEMINI.md.tmpl +9 -0
- package/adapters/gemini-cli/templates/command.toml.tmpl +4 -0
- package/adapters/github-copilot/adapter.yaml +44 -0
- package/adapters/github-copilot/templates/instructions.md.tmpl +8 -0
- package/adapters/github-copilot/templates/prompt.prompt.md.tmpl +6 -0
- package/adapters/opencode/adapter.yaml +18 -0
- package/adapters/opencode/templates/opencode.json.tmpl +4 -0
- package/adapters/roo-code/adapter.yaml +21 -0
- package/adapters/roo-code/templates/rule.md.tmpl +5 -0
- package/adapters/windsurf/adapter.yaml +34 -0
- package/adapters/windsurf/templates/agents-md.md.tmpl +12 -0
- package/adapters/windsurf/templates/rule.md.tmpl +9 -0
- package/adapters/windsurf/templates/workflow.md.tmpl +7 -0
- package/adapters/zed/adapter.yaml +14 -0
- package/catalog/README.md +62 -0
- package/catalog/architectures/agentic-tool-loop.yaml +62 -0
- package/catalog/architectures/bff.yaml +58 -0
- package/catalog/architectures/clean.yaml +61 -0
- package/catalog/architectures/cqrs.yaml +58 -0
- package/catalog/architectures/ddd-tactical.yaml +68 -0
- package/catalog/architectures/event-driven.yaml +59 -0
- package/catalog/architectures/feature-sliced-design.yaml +61 -0
- package/catalog/architectures/hexagonal.yaml +60 -0
- package/catalog/architectures/lakehouse.yaml +63 -0
- package/catalog/architectures/layered.yaml +60 -0
- package/catalog/architectures/llm-workflow.yaml +59 -0
- package/catalog/architectures/medallion.yaml +60 -0
- package/catalog/architectures/micro-frontends.yaml +60 -0
- package/catalog/architectures/microservices.yaml +62 -0
- package/catalog/architectures/modular-monolith.yaml +62 -0
- package/catalog/architectures/monolith.yaml +61 -0
- package/catalog/architectures/multi-agent.yaml +61 -0
- package/catalog/architectures/mvc-mvvm.yaml +62 -0
- package/catalog/architectures/nextjs-colocation.yaml +67 -0
- package/catalog/architectures/onion.yaml +60 -0
- package/catalog/architectures/pipes-and-filters.yaml +59 -0
- package/catalog/architectures/rag-hybrid.yaml +62 -0
- package/catalog/architectures/serverless.yaml +58 -0
- package/catalog/architectures/vertical-slice.yaml +61 -0
- package/catalog/characteristics.yaml +165 -0
- package/catalog/decision.yaml +309 -0
- package/catalog/sources/README.md +697 -0
- package/catalog/sources/agent-tooling.yaml +1180 -0
- package/catalog/sources/ai-llm.yaml +508 -0
- package/catalog/sources/auth.yaml +618 -0
- package/catalog/sources/backend-api.yaml +720 -0
- package/catalog/sources/cms-ecommerce.yaml +558 -0
- package/catalog/sources/data-engineering.yaml +618 -0
- package/catalog/sources/database-orm.yaml +507 -0
- package/catalog/sources/devops-cicd.yaml +422 -0
- package/catalog/sources/frontend-ui.yaml +654 -0
- package/catalog/sources/fullstack-saas.yaml +629 -0
- package/catalog/sources/game-3d.yaml +834 -0
- package/catalog/sources/gaps.md +268 -0
- package/catalog/sources/layer-plan.yaml +3919 -0
- package/catalog/sources/mobile-desktop.yaml +638 -0
- package/catalog/sources/observability.yaml +1364 -0
- package/catalog/sources/payments-billing.yaml +553 -0
- package/catalog/sources/realtime-messaging.yaml +787 -0
- package/catalog/sources/security-compliance.yaml +613 -0
- package/catalog/sources/testing.yaml +652 -0
- package/dist/adapters.d.ts +43 -0
- package/dist/adapters.js +181 -0
- package/dist/adapters.js.map +1 -0
- package/dist/agentkit.d.ts +65 -0
- package/dist/agentkit.js +183 -0
- package/dist/agentkit.js.map +1 -0
- package/dist/apply.d.ts +21 -0
- package/dist/apply.js +135 -0
- package/dist/apply.js.map +1 -0
- package/dist/condition.d.ts +14 -0
- package/dist/condition.js +121 -0
- package/dist/condition.js.map +1 -0
- package/dist/config.d.ts +36 -0
- package/dist/config.js +131 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/intent.d.ts +52 -0
- package/dist/intent.js +220 -0
- package/dist/intent.js.map +1 -0
- package/dist/license.d.ts +11 -0
- package/dist/license.js +68 -0
- package/dist/license.js.map +1 -0
- package/dist/loader.d.ts +12 -0
- package/dist/loader.js +118 -0
- package/dist/loader.js.map +1 -0
- package/dist/merge.d.ts +28 -0
- package/dist/merge.js +412 -0
- package/dist/merge.js.map +1 -0
- package/dist/plan.d.ts +12 -0
- package/dist/plan.js +206 -0
- package/dist/plan.js.map +1 -0
- package/dist/python-data.json +575 -0
- package/dist/python-requirements.d.ts +7 -0
- package/dist/python-requirements.js +79 -0
- package/dist/python-requirements.js.map +1 -0
- package/dist/recommend.d.ts +27 -0
- package/dist/recommend.js +68 -0
- package/dist/recommend.js.map +1 -0
- package/dist/resolve.d.ts +22 -0
- package/dist/resolve.js +132 -0
- package/dist/resolve.js.map +1 -0
- package/dist/schema.d.ts +878 -0
- package/dist/schema.js +307 -0
- package/dist/schema.js.map +1 -0
- package/dist/tokens.d.ts +42 -0
- package/dist/tokens.js +90 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +61 -0
- package/registry/README.md +194 -0
- package/registry/agents/architecture-reviewer/agent.md +59 -0
- package/registry/agents/architecture-reviewer/agent.yaml +7 -0
- package/registry/agents/breaking-change-detector/agent.md +83 -0
- package/registry/agents/breaking-change-detector/agent.yaml +7 -0
- package/registry/agents/security-reviewer/agent.md +63 -0
- package/registry/agents/security-reviewer/agent.yaml +7 -0
- package/registry/agents/solid-reviewer/agent.md +61 -0
- package/registry/agents/solid-reviewer/agent.yaml +7 -0
- package/registry/agents/spec-consistency-checker/agent.md +70 -0
- package/registry/agents/spec-consistency-checker/agent.yaml +7 -0
- package/registry/agents/test-coverage-reviewer/agent.md +67 -0
- package/registry/agents/test-coverage-reviewer/agent.yaml +7 -0
- package/registry/commands/adr/command.md +80 -0
- package/registry/commands/adr/command.yaml +7 -0
- package/registry/commands/breaking/command.md +72 -0
- package/registry/commands/breaking/command.yaml +7 -0
- package/registry/commands/done/command.md +50 -0
- package/registry/commands/done/command.yaml +7 -0
- package/registry/commands/handoff/command.md +65 -0
- package/registry/commands/handoff/command.yaml +7 -0
- package/registry/commands/plan/command.md +81 -0
- package/registry/commands/plan/command.yaml +7 -0
- package/registry/commands/review/command.md +54 -0
- package/registry/commands/review/command.yaml +8 -0
- package/registry/commands/scope/command.md +45 -0
- package/registry/commands/scope/command.yaml +7 -0
- package/registry/commands/spec/command.md +81 -0
- package/registry/commands/spec/command.yaml +7 -0
- package/registry/commands/tasks/command.md +70 -0
- package/registry/commands/tasks/command.yaml +7 -0
- package/registry/commands/verify/command.md +43 -0
- package/registry/commands/verify/command.yaml +7 -0
- package/registry/hooks/_lib/config.ps1 +116 -0
- package/registry/hooks/_lib/config.sh +143 -0
- package/registry/hooks/_lib/defaults.json +76 -0
- package/registry/hooks/_lib/json_get.mjs +59 -0
- package/registry/hooks/_lib/json_get.py +60 -0
- package/registry/hooks/architecture-boundary-check/hook.ps1 +46 -0
- package/registry/hooks/architecture-boundary-check/hook.sh +49 -0
- package/registry/hooks/architecture-boundary-check/hook.yaml +18 -0
- package/registry/hooks/conventional-commit-check/hook.ps1 +68 -0
- package/registry/hooks/conventional-commit-check/hook.sh +68 -0
- package/registry/hooks/conventional-commit-check/hook.yaml +16 -0
- package/registry/hooks/format-on-write/hook.ps1 +36 -0
- package/registry/hooks/format-on-write/hook.sh +33 -0
- package/registry/hooks/format-on-write/hook.yaml +14 -0
- package/registry/hooks/guard-protected-paths/hook.ps1 +34 -0
- package/registry/hooks/guard-protected-paths/hook.sh +35 -0
- package/registry/hooks/guard-protected-paths/hook.yaml +14 -0
- package/registry/hooks/no-secrets/hook.ps1 +67 -0
- package/registry/hooks/no-secrets/hook.sh +56 -0
- package/registry/hooks/no-secrets/hook.yaml +16 -0
- package/registry/skills/adr-write/SKILL.md +127 -0
- package/registry/skills/adr-write/references/adr-template.md +143 -0
- package/registry/skills/adr-write/references/when-to-write-an-adr.md +74 -0
- package/registry/skills/adr-write/skill.yaml +7 -0
- package/registry/skills/architecture-guard/SKILL.md +150 -0
- package/registry/skills/architecture-guard/references/boundary-patterns.md +142 -0
- package/registry/skills/architecture-guard/references/violation-catalog.md +149 -0
- package/registry/skills/architecture-guard/skill.yaml +7 -0
- package/registry/skills/handoff/SKILL.md +125 -0
- package/registry/skills/handoff/references/agent-protocol.md +128 -0
- package/registry/skills/handoff/references/handoff-template.md +116 -0
- package/registry/skills/handoff/skill.yaml +7 -0
- package/registry/skills/onboard/SKILL.md +120 -0
- package/registry/skills/onboard/references/discovery-checklist.md +129 -0
- package/registry/skills/onboard/references/repo-map-template.md +120 -0
- package/registry/skills/onboard/skill.yaml +7 -0
- package/registry/skills/perf-budget/SKILL.md +152 -0
- package/registry/skills/perf-budget/references/budget-catalog.md +165 -0
- package/registry/skills/perf-budget/references/measurement-sources.md +163 -0
- package/registry/skills/perf-budget/skill.yaml +7 -0
- package/registry/skills/security-review/SKILL.md +145 -0
- package/registry/skills/security-review/references/owasp-checklist.md +190 -0
- package/registry/skills/security-review/references/secret-patterns.md +110 -0
- package/registry/skills/security-review/skill.yaml +7 -0
- package/registry/skills/spec-driven/SKILL.md +124 -0
- package/registry/skills/spec-driven/references/phase-gates.md +115 -0
- package/registry/skills/spec-driven/references/plan-template.md +98 -0
- package/registry/skills/spec-driven/references/spec-template.md +101 -0
- package/registry/skills/spec-driven/references/tasks-template.md +96 -0
- package/registry/skills/spec-driven/skill.yaml +7 -0
- package/registry/skills/test-first/SKILL.md +125 -0
- package/registry/skills/test-first/references/anti-patterns.md +178 -0
- package/registry/skills/test-first/references/test-design.md +156 -0
- package/registry/skills/test-first/skill.yaml +7 -0
- package/templates/README.md +104 -0
- package/templates/agent-kits/core/blueprint.yaml +39 -0
- package/templates/agent-kits/core/files/.agent/ACTIVE.md +25 -0
- package/templates/agent-kits/core/files/.agent/DECISIONS.md +27 -0
- package/templates/agent-kits/core/files/.agent/DELEGATION.md +30 -0
- package/templates/agent-kits/core/files/.agent/DONE.md +9 -0
- package/templates/agent-kits/core/files/.agent/HANDOFF.md +38 -0
- package/templates/agent-kits/core/files/.agent/delegate.mjs +352 -0
- package/templates/agent-kits/core/files/.agent/delegation-tools.json +1 -0
- package/templates/agent-kits/core/files/.agent/delegation.yaml +33 -0
- package/templates/agent-kits/core/files/AGENTS.md +107 -0
- package/templates/agent-kits/core/files/docs/ARCHITECTURE.md +26 -0
- package/templates/agent-kits/core/files/docs/adr/0001-record-architecture-decisions.md +27 -0
- package/templates/agent-kits/core/files/specs/000-template/plan.md +48 -0
- package/templates/agent-kits/core/files/specs/000-template/spec.md +45 -0
- package/templates/agent-kits/core/files/specs/000-template/tasks.md +21 -0
- package/templates/agent-kits/core/files/specs/README.md +32 -0
- package/templates/architectures/agentic-tool-loop/blueprint.yaml +137 -0
- package/templates/architectures/agentic-tool-loop/files/.importlinter +47 -0
- package/templates/architectures/agentic-tool-loop/files/docs/architecture/agentic-tool-loop.node.md +83 -0
- package/templates/architectures/agentic-tool-loop/files/docs/architecture/agentic-tool-loop.python.md +93 -0
- package/templates/architectures/agentic-tool-loop/files/package.json +6 -0
- package/templates/architectures/agentic-tool-loop/files/pyproject.toml +5 -0
- package/templates/architectures/agentic-tool-loop/files/scripts/check-agent-loop.mjs +227 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/__init__.py +20 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/loop.py +112 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/model.py +50 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/sandbox.py +62 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/settings.py +69 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/tools/__init__.py +6 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/tools/current_time.py +27 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/tools/registry.py +44 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/tools/spec.py +29 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/tools/write_note.py +36 -0
- package/templates/architectures/agentic-tool-loop/files/src/__solutionName.snake__/agent/trace.py +33 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/config.ts +65 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/index.ts +8 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/loop.ts +117 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/model.ts +35 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/sandbox.ts +52 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/tools/current-time.ts +13 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/tools/registry.ts +49 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/tools/types.ts +26 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/tools/write-note.ts +23 -0
- package/templates/architectures/agentic-tool-loop/files/src/agent/trace.ts +26 -0
- package/templates/architectures/agentic-tool-loop/files/tests/architecture/test_agent_loop.py +167 -0
- package/templates/architectures/bff/blueprint.yaml +83 -0
- package/templates/architectures/bff/files/docs/architecture/bff.node.md +115 -0
- package/templates/architectures/bff/files/docs/architecture/bff.typescript.md +113 -0
- package/templates/architectures/bff/files/scripts/check-bff-boundaries.mjs +223 -0
- package/templates/architectures/bff/files/src/bff/__primaryClient.kebab__/aggregate.ts +38 -0
- package/templates/architectures/bff/files/src/bff/__primaryClient.kebab__/config.ts +30 -0
- package/templates/architectures/bff/files/src/bff/__primaryClient.kebab__/dto.ts +21 -0
- package/templates/architectures/bff/files/src/bff/__primaryClient.kebab__/index.ts +6 -0
- package/templates/architectures/bff/files/src/bff/__primaryClient.kebab__/routes.ts +21 -0
- package/templates/architectures/bff/files/src/bff/__secondaryClient.kebab__/aggregate.ts +23 -0
- package/templates/architectures/bff/files/src/bff/__secondaryClient.kebab__/config.ts +26 -0
- package/templates/architectures/bff/files/src/bff/__secondaryClient.kebab__/dto.ts +16 -0
- package/templates/architectures/bff/files/src/bff/__secondaryClient.kebab__/index.ts +6 -0
- package/templates/architectures/bff/files/src/bff/__secondaryClient.kebab__/routes.ts +21 -0
- package/templates/architectures/bff/files/src/downstream/config.ts +35 -0
- package/templates/architectures/bff/files/src/downstream/http-client.ts +41 -0
- package/templates/architectures/bff/files/src/downstream/index.ts +9 -0
- package/templates/architectures/bff/files/src/downstream/orders-client.ts +23 -0
- package/templates/architectures/bff/files/src/downstream/profile-client.ts +18 -0
- package/templates/architectures/clean/blueprint.yaml +147 -0
- package/templates/architectures/clean/files/.importlinter +35 -0
- package/templates/architectures/clean/files/Directory.Packages.props +7 -0
- package/templates/architectures/clean/files/__solutionName.dot__.slnx +10 -0
- package/templates/architectures/clean/files/docs/architecture/clean.md +87 -0
- package/templates/architectures/clean/files/eslint.config.architecture.mjs +27 -0
- package/templates/architectures/clean/files/internal/application/doc.go +2 -0
- package/templates/architectures/clean/files/internal/application/ports/doc.go +2 -0
- package/templates/architectures/clean/files/internal/architecture/architecture_test.go +166 -0
- package/templates/architectures/clean/files/internal/architecture/doc.go +3 -0
- package/templates/architectures/clean/files/internal/domain/doc.go +2 -0
- package/templates/architectures/clean/files/internal/infrastructure/doc.go +2 -0
- package/templates/architectures/clean/files/pyproject.toml +2 -0
- package/templates/architectures/clean/files/scripts/check-architecture.mjs +68 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Application/Abstractions/.gitkeep +1 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Application/AssemblyMarker.cs +10 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Application/UseCases/.gitkeep +1 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Application/__solutionName.dot__.Application.csproj +14 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Domain/AssemblyMarker.cs +10 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Domain/Entities/.gitkeep +1 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Domain/Events/.gitkeep +1 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Domain/ValueObjects/.gitkeep +1 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Domain/__solutionName.dot__.Domain.csproj +11 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Infrastructure/AssemblyMarker.cs +10 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Infrastructure/External/.gitkeep +1 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Infrastructure/Persistence/.gitkeep +1 -0
- package/templates/architectures/clean/files/src/__solutionName.dot__.Infrastructure/__solutionName.dot__.Infrastructure.csproj +14 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/application/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/application/ports/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/application/use_cases/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/domain/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/domain/entities/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/domain/events/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/infrastructure/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/infrastructure/external/__init__.py +1 -0
- package/templates/architectures/clean/files/src/__solutionName.snake__/infrastructure/persistence/__init__.py +1 -0
- package/templates/architectures/clean/files/src/application/ports/README.md +1 -0
- package/templates/architectures/clean/files/src/application/use-cases/README.md +1 -0
- package/templates/architectures/clean/files/src/domain/README.md +1 -0
- package/templates/architectures/clean/files/src/infrastructure/README.md +1 -0
- package/templates/architectures/clean/files/tests/__solutionName.dot__.ArchitectureTests/DependencyRuleTests.cs +118 -0
- package/templates/architectures/clean/files/tests/__solutionName.dot__.ArchitectureTests/__solutionName.dot__.ArchitectureTests.csproj +27 -0
- package/templates/architectures/cqrs/blueprint.yaml +134 -0
- package/templates/architectures/cqrs/files/.importlinter +26 -0
- package/templates/architectures/cqrs/files/Directory.Packages.props +7 -0
- package/templates/architectures/cqrs/files/__solutionName.dot__.slnx +11 -0
- package/templates/architectures/cqrs/files/docs/architecture/cqrs.dotnet.md +116 -0
- package/templates/architectures/cqrs/files/docs/architecture/cqrs.node.md +117 -0
- package/templates/architectures/cqrs/files/docs/architecture/cqrs.python.md +107 -0
- package/templates/architectures/cqrs/files/eslint.config.cqrs.mjs +29 -0
- package/templates/architectures/cqrs/files/pyproject.toml +2 -0
- package/templates/architectures/cqrs/files/scripts/check-cqrs-boundaries.mjs +132 -0
- package/templates/architectures/cqrs/files/src/__contextName.kebab__/commands/index.ts +15 -0
- package/templates/architectures/cqrs/files/src/__contextName.kebab__/domain/index.ts +10 -0
- package/templates/architectures/cqrs/files/src/__contextName.kebab__/queries/index.ts +13 -0
- package/templates/architectures/cqrs/files/src/__contextName.kebab__/read-models/index.ts +7 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.Abstractions/AssemblyMarker.cs +9 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.Abstractions/ICommandHandler.cs +12 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.Abstractions/IQueryHandler.cs +10 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.Abstractions/__solutionName.dot__.Abstractions.csproj +11 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Commands/AssemblyMarker.cs +9 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Commands/Handlers/.gitkeep +2 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Commands/__solutionName.dot__.__contextName.pascal__.Commands.csproj +15 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Domain/Aggregates/.gitkeep +2 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Domain/AssemblyMarker.cs +9 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Domain/__solutionName.dot__.__contextName.pascal__.Domain.csproj +11 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Queries/AssemblyMarker.cs +9 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Queries/Handlers/.gitkeep +2 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Queries/ReadModels/.gitkeep +2 -0
- package/templates/architectures/cqrs/files/src/__solutionName.dot__.__contextName.pascal__.Queries/__solutionName.dot__.__contextName.pascal__.Queries.csproj +14 -0
- package/templates/architectures/cqrs/files/src/__solutionName.snake__/__contextName.snake__/__init__.py +6 -0
- package/templates/architectures/cqrs/files/src/__solutionName.snake__/__contextName.snake__/commands/__init__.py +15 -0
- package/templates/architectures/cqrs/files/src/__solutionName.snake__/__contextName.snake__/domain/__init__.py +9 -0
- package/templates/architectures/cqrs/files/src/__solutionName.snake__/__contextName.snake__/queries/__init__.py +14 -0
- package/templates/architectures/cqrs/files/src/__solutionName.snake__/__contextName.snake__/read_models/__init__.py +14 -0
- package/templates/architectures/cqrs/files/tests/ArchitectureTests/ArchitectureTests.csproj +33 -0
- package/templates/architectures/cqrs/files/tests/ArchitectureTests/CqrsBoundaryTests.cs +104 -0
- package/templates/architectures/event-driven/blueprint.yaml +163 -0
- package/templates/architectures/event-driven/files/.importlinter +43 -0
- package/templates/architectures/event-driven/files/Directory.Packages.props +11 -0
- package/templates/architectures/event-driven/files/__solutionName.dot__.slnx +11 -0
- package/templates/architectures/event-driven/files/docs/architecture/event-driven.dotnet.md +117 -0
- package/templates/architectures/event-driven/files/docs/architecture/event-driven.node.md +98 -0
- package/templates/architectures/event-driven/files/docs/architecture/event-driven.python.md +100 -0
- package/templates/architectures/event-driven/files/scripts/check-event-boundaries.mjs +181 -0
- package/templates/architectures/event-driven/files/src/EventCatalog/EventCatalog.csproj +11 -0
- package/templates/architectures/event-driven/files/src/EventCatalog/EventContract.cs +36 -0
- package/templates/architectures/event-driven/files/src/EventCatalog/EventEnvelope.cs +10 -0
- package/templates/architectures/event-driven/files/src/EventCatalog/EventRegistry.cs +16 -0
- package/templates/architectures/event-driven/files/src/EventCatalog/EventSchemaException.cs +19 -0
- package/templates/architectures/event-driven/files/src/EventCatalog/__eventDomain.pascal__/__firstEvent.pascal__V1.cs +20 -0
- package/templates/architectures/event-driven/files/src/EventHandlers/EventHandlers.csproj +14 -0
- package/templates/architectures/event-driven/files/src/EventHandlers/__firstHandler.pascal__/__firstHandler.pascal__Handler.cs +32 -0
- package/templates/architectures/event-driven/files/src/EventHandlers/__secondHandler.pascal__/__secondHandler.pascal__Handler.cs +30 -0
- package/templates/architectures/event-driven/files/src/EventPublishers/EventPublishers.csproj +14 -0
- package/templates/architectures/event-driven/files/src/EventPublishers/__eventDomain.pascal__/__eventDomain.pascal__Publisher.cs +27 -0
- package/templates/architectures/event-driven/files/src/Messaging/Adapters/InMemoryEventBroker.cs +107 -0
- package/templates/architectures/event-driven/files/src/Messaging/BrokerOptions.cs +19 -0
- package/templates/architectures/event-driven/files/src/Messaging/IEventBroker.cs +6 -0
- package/templates/architectures/event-driven/files/src/Messaging/IEventPublisher.cs +9 -0
- package/templates/architectures/event-driven/files/src/Messaging/IEventSubscriber.cs +11 -0
- package/templates/architectures/event-driven/files/src/Messaging/Messaging.csproj +18 -0
- package/templates/architectures/event-driven/files/src/Messaging/MessagingRegistration.cs +36 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/broker/__init__.py +17 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/broker/adapters/__init__.py +1 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/broker/adapters/in_memory.py +61 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/broker/config.py +42 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/broker/factory.py +13 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/broker/port.py +25 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/eventing.py +26 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/events/__eventDomain.snake__/__firstEvent.snake__/__init__.py +5 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/events/__eventDomain.snake__/__firstEvent.snake__/v1.py +34 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/events/__eventDomain.snake__/__init__.py +1 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/events/__init__.py +27 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/events/contract.py +35 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/events/envelope.py +24 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/handlers/__firstHandler.snake__/__init__.py +30 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/handlers/__init__.py +1 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/handlers/__secondHandler.snake__/__init__.py +25 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/publishers/__eventDomain.snake__.py +17 -0
- package/templates/architectures/event-driven/files/src/__solutionName.snake__/publishers/__init__.py +5 -0
- package/templates/architectures/event-driven/files/src/bootstrap/events.ts +24 -0
- package/templates/architectures/event-driven/files/src/broker/adapters/in-memory-broker.ts +63 -0
- package/templates/architectures/event-driven/files/src/broker/config.ts +39 -0
- package/templates/architectures/event-driven/files/src/broker/factory.ts +13 -0
- package/templates/architectures/event-driven/files/src/broker/index.ts +6 -0
- package/templates/architectures/event-driven/files/src/broker/port.ts +15 -0
- package/templates/architectures/event-driven/files/src/events/__eventDomain.kebab__/__firstEvent.kebab__/v1.ts +20 -0
- package/templates/architectures/event-driven/files/src/events/contract.ts +36 -0
- package/templates/architectures/event-driven/files/src/events/envelope.ts +20 -0
- package/templates/architectures/event-driven/files/src/events/index.ts +17 -0
- package/templates/architectures/event-driven/files/src/handlers/__firstHandler.kebab__/index.ts +21 -0
- package/templates/architectures/event-driven/files/src/handlers/__secondHandler.kebab__/index.ts +17 -0
- package/templates/architectures/event-driven/files/src/publishers/__eventDomain.kebab__.publisher.ts +20 -0
- package/templates/architectures/event-driven/files/tests/EventArchitectureTests/EventArchitectureTests.csproj +31 -0
- package/templates/architectures/event-driven/files/tests/EventArchitectureTests/EventBoundaryTests.cs +121 -0
- package/templates/architectures/event-driven/files/tests/architecture/test_event_boundaries.py +161 -0
- package/templates/architectures/feature-sliced-design/blueprint.yaml +121 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/app/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/entities/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/features/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/pages/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/shared/api/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/shared/config/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/shared/lib/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/shared/ui/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/apps/__appName.kebab__/src/widgets/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/docs/architecture.md +148 -0
- package/templates/architectures/feature-sliced-design/files/package.json +6 -0
- package/templates/architectures/feature-sliced-design/files/scripts/check-fsd-boundaries.mjs +210 -0
- package/templates/architectures/feature-sliced-design/files/src/_app/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/src/_pages/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/src/app/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/src/entities/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/src/features/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/src/pages/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/src/shared/api/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/src/shared/config/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/src/shared/lib/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/src/shared/ui/index.ts +3 -0
- package/templates/architectures/feature-sliced-design/files/src/widgets/.gitkeep +1 -0
- package/templates/architectures/feature-sliced-design/files/steiger.config.js +21 -0
- package/templates/architectures/hexagonal/blueprint.yaml +146 -0
- package/templates/architectures/hexagonal/files/.importlinter +33 -0
- package/templates/architectures/hexagonal/files/Directory.Packages.props +8 -0
- package/templates/architectures/hexagonal/files/__solutionName.dot__.slnx +13 -0
- package/templates/architectures/hexagonal/files/docs/architecture/hexagonal.md +102 -0
- package/templates/architectures/hexagonal/files/internal/adapters/inbound/rest/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/adapters/outbound/memory/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/adapters/outbound/postgres/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/application/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/architecture/architecture_test.go +150 -0
- package/templates/architectures/hexagonal/files/internal/architecture/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/bootstrap/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/domain/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/ports/inbound/doc.go +2 -0
- package/templates/architectures/hexagonal/files/internal/ports/outbound/doc.go +2 -0
- package/templates/architectures/hexagonal/files/pyproject.toml +2 -0
- package/templates/architectures/hexagonal/files/scripts/check-architecture.mjs +104 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Adapters.Inbound.Http/HttpAdapterMarker.cs +4 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Adapters.Inbound.Http/__solutionName.dot__.Adapters.Inbound.Http.csproj +15 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Adapters.Outbound.InMemory/InMemoryAdapterMarker.cs +4 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Adapters.Outbound.InMemory/__solutionName.dot__.Adapters.Outbound.InMemory.csproj +15 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Adapters.Outbound.Persistence/PersistenceAdapterMarker.cs +4 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Adapters.Outbound.Persistence/__solutionName.dot__.Adapters.Outbound.Persistence.csproj +15 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Application/ApplicationMarker.cs +4 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Application/Ports/Inbound/.gitkeep +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Application/Ports/Outbound/.gitkeep +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Application/UseCases/.gitkeep +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Application/__solutionName.dot__.Application.csproj +15 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Bootstrap/CompositionRoot.cs +8 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Bootstrap/__solutionName.dot__.Bootstrap.csproj +18 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Domain/DomainMarker.cs +4 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.dot__.Domain/__solutionName.dot__.Domain.csproj +12 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/adapters/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/adapters/inbound/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/adapters/inbound/http/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/adapters/outbound/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/adapters/outbound/in_memory/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/adapters/outbound/persistence/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/application/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/bootstrap/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/domain/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/ports/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/ports/inbound/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/__solutionName.snake__/ports/outbound/__init__.py +1 -0
- package/templates/architectures/hexagonal/files/src/adapters/inbound/http/index.ts +2 -0
- package/templates/architectures/hexagonal/files/src/adapters/outbound/in-memory/index.ts +2 -0
- package/templates/architectures/hexagonal/files/src/adapters/outbound/persistence/index.ts +2 -0
- package/templates/architectures/hexagonal/files/src/application/index.ts +2 -0
- package/templates/architectures/hexagonal/files/src/bootstrap/index.ts +2 -0
- package/templates/architectures/hexagonal/files/src/domain/index.ts +2 -0
- package/templates/architectures/hexagonal/files/src/ports/inbound/index.ts +2 -0
- package/templates/architectures/hexagonal/files/src/ports/outbound/index.ts +2 -0
- package/templates/architectures/hexagonal/files/tests/ArchitectureTests/ArchitectureTests.csproj +34 -0
- package/templates/architectures/hexagonal/files/tests/ArchitectureTests/HexagonBoundaryTests.cs +135 -0
- package/templates/architectures/lakehouse/blueprint.yaml +103 -0
- package/templates/architectures/lakehouse/files/.importlinter +51 -0
- package/templates/architectures/lakehouse/files/docs/architecture/lakehouse.python.md +134 -0
- package/templates/architectures/lakehouse/files/pyproject.toml +5 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/__init__.py +20 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/catalog/__init__.py +21 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/catalog/_delta.py +155 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/catalog/_iceberg.py +214 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/maintenance/__init__.py +9 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/maintenance/__main__.py +31 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/maintenance/jobs.py +38 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/ports.py +58 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/queries/__init__.py +13 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/queries/reads.py +30 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/schema.py +66 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/settings.py +61 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/tables/__firstTable.snake__.py +22 -0
- package/templates/architectures/lakehouse/files/src/__solutionName.snake__/lakehouse/tables/__init__.py +28 -0
- package/templates/architectures/lakehouse/files/tests/architecture/test_lakehouse_boundaries.py +155 -0
- package/templates/architectures/layered/blueprint.yaml +159 -0
- package/templates/architectures/layered/files/.importlinter +18 -0
- package/templates/architectures/layered/files/Directory.Build.targets +10 -0
- package/templates/architectures/layered/files/Directory.Packages.props +7 -0
- package/templates/architectures/layered/files/__solutionName.dot__.slnx +9 -0
- package/templates/architectures/layered/files/architecture.layers.json +19 -0
- package/templates/architectures/layered/files/docs/architecture/layered.md +94 -0
- package/templates/architectures/layered/files/internal/architecture/doc.go +3 -0
- package/templates/architectures/layered/files/internal/architecture/layers_test.go +138 -0
- package/templates/architectures/layered/files/internal/business/doc.go +3 -0
- package/templates/architectures/layered/files/internal/data/doc.go +3 -0
- package/templates/architectures/layered/files/internal/presentation/doc.go +4 -0
- package/templates/architectures/layered/files/pyproject.toml +2 -0
- package/templates/architectures/layered/files/scripts/check-layers.mjs +125 -0
- package/templates/architectures/layered/files/src/__solutionName.dot__.Business/AssemblyMarker.cs +7 -0
- package/templates/architectures/layered/files/src/__solutionName.dot__.Business/__solutionName.dot__.Business.csproj +15 -0
- package/templates/architectures/layered/files/src/__solutionName.dot__.Data/AssemblyMarker.cs +7 -0
- package/templates/architectures/layered/files/src/__solutionName.dot__.Data/__solutionName.dot__.Data.csproj +10 -0
- package/templates/architectures/layered/files/src/__solutionName.snake__/business/__init__.py +1 -0
- package/templates/architectures/layered/files/src/__solutionName.snake__/data/__init__.py +1 -0
- package/templates/architectures/layered/files/src/__solutionName.snake__/presentation/__init__.py +1 -0
- package/templates/architectures/layered/files/src/business/README.md +1 -0
- package/templates/architectures/layered/files/src/data/README.md +1 -0
- package/templates/architectures/layered/files/src/presentation/README.md +1 -0
- package/templates/architectures/layered/files/src/shared/README.md +1 -0
- package/templates/architectures/layered/files/tests/__solutionName.dot__.ArchitectureTests/LayerBoundaryTests.cs +151 -0
- package/templates/architectures/layered/files/tests/__solutionName.dot__.ArchitectureTests/__solutionName.dot__.ArchitectureTests.csproj +27 -0
- package/templates/architectures/llm-workflow/blueprint.yaml +129 -0
- package/templates/architectures/llm-workflow/files/.importlinter +34 -0
- package/templates/architectures/llm-workflow/files/__promptsDir__/README.md +26 -0
- package/templates/architectures/llm-workflow/files/__promptsDir__/__firstStep.kebab__/__promptVersion__.md +7 -0
- package/templates/architectures/llm-workflow/files/docs/architecture/llm-workflow.python.md +133 -0
- package/templates/architectures/llm-workflow/files/docs/architecture/llm-workflow.typescript.md +124 -0
- package/templates/architectures/llm-workflow/files/package.json +9 -0
- package/templates/architectures/llm-workflow/files/scripts/check-llm-workflow.mjs +200 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/__init__.py +5 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/chains/__init__.py +5 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/chains/__workflowName.snake__.py +19 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/evals/__init__.py +1 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/evals/assertions.py +82 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/evals/goldens.jsonl +4 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/evals/runner.py +64 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/parallel/__init__.py +5 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/parallel/gather.py +28 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/ports/__init__.py +38 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/ports/llm.py +41 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/ports/stub.py +27 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/prompts.py +22 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/routing/__init__.py +5 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/routing/route.py +47 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/settings.py +60 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/steps/__firstStep.snake__.py +24 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/steps/__init__.py +6 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/steps/normalize.py +11 -0
- package/templates/architectures/llm-workflow/files/src/__solutionName.snake__/workflow/types.py +40 -0
- package/templates/architectures/llm-workflow/files/src/workflow/chains/__workflowName.kebab__.ts +14 -0
- package/templates/architectures/llm-workflow/files/src/workflow/evals/assert.ts +59 -0
- package/templates/architectures/llm-workflow/files/src/workflow/evals/goldens.jsonl +4 -0
- package/templates/architectures/llm-workflow/files/src/workflow/evals/run.ts +60 -0
- package/templates/architectures/llm-workflow/files/src/workflow/parallel/gather.ts +25 -0
- package/templates/architectures/llm-workflow/files/src/workflow/ports/index.ts +34 -0
- package/templates/architectures/llm-workflow/files/src/workflow/ports/llm.ts +33 -0
- package/templates/architectures/llm-workflow/files/src/workflow/ports/stub.ts +23 -0
- package/templates/architectures/llm-workflow/files/src/workflow/prompts.ts +27 -0
- package/templates/architectures/llm-workflow/files/src/workflow/routing/route.ts +38 -0
- package/templates/architectures/llm-workflow/files/src/workflow/settings.ts +44 -0
- package/templates/architectures/llm-workflow/files/src/workflow/steps/__firstStep.kebab__.ts +19 -0
- package/templates/architectures/llm-workflow/files/src/workflow/steps/index.ts +3 -0
- package/templates/architectures/llm-workflow/files/src/workflow/steps/normalize.ts +8 -0
- package/templates/architectures/llm-workflow/files/src/workflow/types.ts +29 -0
- package/templates/architectures/llm-workflow/files/tests/test_workflow_boundaries.py +171 -0
- package/templates/architectures/llm-workflow/files/tests/test_workflow_goldens.py +30 -0
- package/templates/architectures/medallion/blueprint.yaml +91 -0
- package/templates/architectures/medallion/files/.importlinter +31 -0
- package/templates/architectures/medallion/files/contracts/bronze.contract.toml +16 -0
- package/templates/architectures/medallion/files/contracts/gold.contract.toml +21 -0
- package/templates/architectures/medallion/files/contracts/silver.contract.toml +31 -0
- package/templates/architectures/medallion/files/docs/architecture/medallion.python.md +104 -0
- package/templates/architectures/medallion/files/pyproject.toml +2 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/__init__.py +5 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/bronze/__init__.py +5 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/bronze/ingest.py +41 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/config.py +48 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/contracts.py +166 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/gold/__init__.py +5 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/gold/aggregate.py +40 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/io.py +28 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/run.py +40 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/silver/__init__.py +6 -0
- package/templates/architectures/medallion/files/src/__solutionName.snake__/pipelines/silver/conform.py +53 -0
- package/templates/architectures/medallion/files/tests/architecture/test_layer_contracts.py +72 -0
- package/templates/architectures/medallion/files/tests/architecture/test_medallion_boundaries.py +166 -0
- package/templates/architectures/micro-frontends/blueprint.yaml +124 -0
- package/templates/architectures/micro-frontends/files/apps/host/package.json +10 -0
- package/templates/architectures/micro-frontends/files/apps/host/remotes.example.json +9 -0
- package/templates/architectures/micro-frontends/files/apps/host/src/config.ts +34 -0
- package/templates/architectures/micro-frontends/files/apps/host/src/loaders/import-map.ts +34 -0
- package/templates/architectures/micro-frontends/files/apps/host/src/loaders/module-federation.ts +29 -0
- package/templates/architectures/micro-frontends/files/apps/host/src/remote-loader.ts +45 -0
- package/templates/architectures/micro-frontends/files/apps/remotes/__remoteName.kebab__/module-federation.config.mjs +19 -0
- package/templates/architectures/micro-frontends/files/apps/remotes/__remoteName.kebab__/package.json +15 -0
- package/templates/architectures/micro-frontends/files/apps/remotes/__remoteName.kebab__/src/config.ts +28 -0
- package/templates/architectures/micro-frontends/files/apps/remotes/__remoteName.kebab__/src/index.ts +5 -0
- package/templates/architectures/micro-frontends/files/apps/remotes/__remoteName.kebab__/src/mount.ts +32 -0
- package/templates/architectures/micro-frontends/files/docs/architecture/micro-frontends.md +161 -0
- package/templates/architectures/micro-frontends/files/package.json +14 -0
- package/templates/architectures/micro-frontends/files/packages/design-system/README.md +27 -0
- package/templates/architectures/micro-frontends/files/packages/design-system/package.json +11 -0
- package/templates/architectures/micro-frontends/files/packages/design-system/src/index.ts +10 -0
- package/templates/architectures/micro-frontends/files/packages/design-system/src/tokens.ts +20 -0
- package/templates/architectures/micro-frontends/files/packages/host-contract/package.json +11 -0
- package/templates/architectures/micro-frontends/files/packages/host-contract/src/index.ts +18 -0
- package/templates/architectures/micro-frontends/files/scripts/check-mfe-boundaries.mjs +199 -0
- package/templates/architectures/microservices/blueprint.yaml +160 -0
- package/templates/architectures/microservices/files/.importlinter +22 -0
- package/templates/architectures/microservices/files/Directory.Packages.props +8 -0
- package/templates/architectures/microservices/files/__solutionName.dot__.slnx +9 -0
- package/templates/architectures/microservices/files/contracts/__firstService.kebab__/package.json +8 -0
- package/templates/architectures/microservices/files/contracts/__firstService.kebab__/src/index.ts +32 -0
- package/templates/architectures/microservices/files/contracts/__firstService.lower__/contract.go +35 -0
- package/templates/architectures/microservices/files/contracts/__solutionName.pascal__.Contracts.__firstService.pascal__/__firstService.pascal__Contract.cs +26 -0
- package/templates/architectures/microservices/files/contracts/__solutionName.pascal__.Contracts.__firstService.pascal__/__solutionName.pascal__.Contracts.__firstService.pascal__.csproj +11 -0
- package/templates/architectures/microservices/files/deploy/__firstService.kebab__/Dockerfile +16 -0
- package/templates/architectures/microservices/files/docs/architecture/microservices.dotnet.md +91 -0
- package/templates/architectures/microservices/files/docs/architecture/microservices.go.md +77 -0
- package/templates/architectures/microservices/files/docs/architecture/microservices.node.md +88 -0
- package/templates/architectures/microservices/files/docs/architecture/microservices.python.md +92 -0
- package/templates/architectures/microservices/files/internal/architecture/boundary_test.go +139 -0
- package/templates/architectures/microservices/files/package.json +9 -0
- package/templates/architectures/microservices/files/pyproject.toml +2 -0
- package/templates/architectures/microservices/files/scripts/check-service-boundaries.mjs +200 -0
- package/templates/architectures/microservices/files/services/__firstService.kebab__/Dockerfile +19 -0
- package/templates/architectures/microservices/files/services/__firstService.kebab__/package.json +9 -0
- package/templates/architectures/microservices/files/services/__firstService.kebab__/src/config.ts +50 -0
- package/templates/architectures/microservices/files/services/__firstService.kebab__/src/index.ts +26 -0
- package/templates/architectures/microservices/files/services/__firstService.lower__/Dockerfile +18 -0
- package/templates/architectures/microservices/files/services/__firstService.lower__/internal/config/config.go +45 -0
- package/templates/architectures/microservices/files/services/__firstService.lower__/main.go +23 -0
- package/templates/architectures/microservices/files/services/__solutionName.pascal__.Services.__firstService.pascal__/Dockerfile +17 -0
- package/templates/architectures/microservices/files/services/__solutionName.pascal__.Services.__firstService.pascal__/ServiceAssemblyMarker.cs +10 -0
- package/templates/architectures/microservices/files/services/__solutionName.pascal__.Services.__firstService.pascal__/ServiceOptions.cs +28 -0
- package/templates/architectures/microservices/files/services/__solutionName.pascal__.Services.__firstService.pascal__/__solutionName.pascal__.Services.__firstService.pascal__.csproj +14 -0
- package/templates/architectures/microservices/files/src/__solutionName.snake__/contracts/__firstService.snake__/__init__.py +42 -0
- package/templates/architectures/microservices/files/src/__solutionName.snake__/contracts/__init__.py +5 -0
- package/templates/architectures/microservices/files/src/__solutionName.snake__/services/__firstService.snake__/__init__.py +5 -0
- package/templates/architectures/microservices/files/src/__solutionName.snake__/services/__firstService.snake__/config.py +54 -0
- package/templates/architectures/microservices/files/src/__solutionName.snake__/services/__firstService.snake__/service.py +21 -0
- package/templates/architectures/microservices/files/src/__solutionName.snake__/services/__init__.py +5 -0
- package/templates/architectures/microservices/files/tests/ArchitectureTests/ArchitectureTests.csproj +29 -0
- package/templates/architectures/microservices/files/tests/ArchitectureTests/ServiceBoundaryTests.cs +102 -0
- package/templates/architectures/microservices/files/tests/architecture/test_service_boundaries.py +120 -0
- package/templates/architectures/modular-monolith/blueprint.yaml +111 -0
- package/templates/architectures/modular-monolith/files/.importlinter +22 -0
- package/templates/architectures/modular-monolith/files/Directory.Packages.props +9 -0
- package/templates/architectures/modular-monolith/files/__solutionName.dot__.slnx +9 -0
- package/templates/architectures/modular-monolith/files/docs/architecture/modular-monolith.dotnet.md +54 -0
- package/templates/architectures/modular-monolith/files/docs/architecture/modular-monolith.go.md +50 -0
- package/templates/architectures/modular-monolith/files/docs/architecture/modular-monolith.node.md +56 -0
- package/templates/architectures/modular-monolith/files/docs/architecture/modular-monolith.python.md +54 -0
- package/templates/architectures/modular-monolith/files/internal/architecture/boundary_test.go +151 -0
- package/templates/architectures/modular-monolith/files/internal/modules/__moduleName.lower__/__moduleName.lower__.go +56 -0
- package/templates/architectures/modular-monolith/files/internal/modules/__moduleName.lower__/internal/store/store.go +12 -0
- package/templates/architectures/modular-monolith/files/internal/shared/events/bus.go +60 -0
- package/templates/architectures/modular-monolith/files/scripts/check-module-boundaries.mjs +185 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.Modules.__moduleName.pascal__/Api/I__moduleName.pascal__Module.cs +14 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.Modules.__moduleName.pascal__/Api/__moduleName.pascal__Events.cs +6 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.Modules.__moduleName.pascal__/Api/__moduleName.pascal__ModuleRegistration.cs +18 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.Modules.__moduleName.pascal__/Internal/__moduleName.pascal__Service.cs +19 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.Modules.__moduleName.pascal__/__solutionName.dot__.Modules.__moduleName.pascal__.csproj +16 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.SharedKernel/Events/EventBusRegistration.cs +14 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.SharedKernel/Events/IEventBus.cs +15 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.SharedKernel/Events/IIntegrationEvent.cs +8 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.SharedKernel/Events/InProcessEventBus.cs +23 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.dot__.SharedKernel/__solutionName.dot__.SharedKernel.csproj +12 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/modules/__init__.py +1 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/modules/__moduleName.snake__/__init__.py +1 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/modules/__moduleName.snake__/api/__init__.py +15 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/modules/__moduleName.snake__/api/contracts.py +27 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/modules/__moduleName.snake__/api/factory.py +11 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/modules/__moduleName.snake__/internal/__init__.py +1 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/modules/__moduleName.snake__/internal/service.py +20 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/shared/__init__.py +1 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/shared/events/__init__.py +3 -0
- package/templates/architectures/modular-monolith/files/src/__solutionName.snake__/shared/events/bus.py +43 -0
- package/templates/architectures/modular-monolith/files/src/modules/__moduleName.kebab__/api/contracts.ts +19 -0
- package/templates/architectures/modular-monolith/files/src/modules/__moduleName.kebab__/api/index.ts +18 -0
- package/templates/architectures/modular-monolith/files/src/modules/__moduleName.kebab__/internal/__moduleName.kebab__.service.ts +24 -0
- package/templates/architectures/modular-monolith/files/src/shared/events/event-bus.ts +34 -0
- package/templates/architectures/modular-monolith/files/src/shared/events/index.ts +2 -0
- package/templates/architectures/modular-monolith/files/tests/__solutionName.dot__.ArchitectureTests/ModuleBoundaryTests.cs +102 -0
- package/templates/architectures/modular-monolith/files/tests/__solutionName.dot__.ArchitectureTests/__solutionName.dot__.ArchitectureTests.csproj +30 -0
- package/templates/architectures/modular-monolith/files/tests/architecture/test_module_boundaries.py +114 -0
- package/templates/architectures/monolith/blueprint.yaml +141 -0
- package/templates/architectures/monolith/files/.importlinter +14 -0
- package/templates/architectures/monolith/files/Directory.Packages.props +8 -0
- package/templates/architectures/monolith/files/__solutionName.dot__.slnx +5 -0
- package/templates/architectures/monolith/files/docs/architecture/monolith.dotnet.md +78 -0
- package/templates/architectures/monolith/files/docs/architecture/monolith.go.md +69 -0
- package/templates/architectures/monolith/files/docs/architecture/monolith.node.md +70 -0
- package/templates/architectures/monolith/files/docs/architecture/monolith.python.md +71 -0
- package/templates/architectures/monolith/files/internal/architecture/boundary_test.go +141 -0
- package/templates/architectures/monolith/files/internal/features/__featureName.lower__/__featureName.lower__.go +37 -0
- package/templates/architectures/monolith/files/internal/features/__featureName.lower__/internal/store/store.go +14 -0
- package/templates/architectures/monolith/files/internal/features/features.go +18 -0
- package/templates/architectures/monolith/files/internal/shared/apperr/apperr.go +17 -0
- package/templates/architectures/monolith/files/pyproject.toml +2 -0
- package/templates/architectures/monolith/files/scripts/check-monolith-boundaries.mjs +187 -0
- package/templates/architectures/monolith/files/src/__solutionName.dot__.Api/Features/__featureName.pascal__/Internal/__featureName.pascal__Service.cs +12 -0
- package/templates/architectures/monolith/files/src/__solutionName.dot__.Api/Features/__featureName.pascal__/__featureName.pascal__Feature.cs +13 -0
- package/templates/architectures/monolith/files/src/__solutionName.dot__.Api/Features/__featureName.pascal__/__featureName.pascal__Registration.cs +13 -0
- package/templates/architectures/monolith/files/src/__solutionName.dot__.Api/Kernel/AppException.cs +30 -0
- package/templates/architectures/monolith/files/src/__solutionName.pascal__.Api/Features/__featureName.pascal__/Internal/__featureName.pascal__Service.cs +12 -0
- package/templates/architectures/monolith/files/src/__solutionName.pascal__.Api/Features/__featureName.pascal__/__featureName.pascal__Feature.cs +13 -0
- package/templates/architectures/monolith/files/src/__solutionName.pascal__.Api/Features/__featureName.pascal__/__featureName.pascal__Registration.cs +13 -0
- package/templates/architectures/monolith/files/src/__solutionName.pascal__.Api/Kernel/AppException.cs +30 -0
- package/templates/architectures/monolith/files/src/__solutionName.snake__/features/__featureName.snake__/__init__.py +31 -0
- package/templates/architectures/monolith/files/src/__solutionName.snake__/features/__featureName.snake__/service.py +22 -0
- package/templates/architectures/monolith/files/src/__solutionName.snake__/features/__init__.py +14 -0
- package/templates/architectures/monolith/files/src/__solutionName.snake__/shared/__init__.py +11 -0
- package/templates/architectures/monolith/files/src/__solutionName.snake__/shared/errors.py +13 -0
- package/templates/architectures/monolith/files/src/features/__featureName.kebab__/__featureName.kebab__.service.ts +15 -0
- package/templates/architectures/monolith/files/src/features/__featureName.kebab__/index.ts +20 -0
- package/templates/architectures/monolith/files/src/features/index.ts +11 -0
- package/templates/architectures/monolith/files/src/shared/errors.ts +13 -0
- package/templates/architectures/monolith/files/src/shared/index.ts +7 -0
- package/templates/architectures/monolith/files/tests/ArchitectureTests/ArchitectureTests.csproj +32 -0
- package/templates/architectures/monolith/files/tests/ArchitectureTests/FeatureBoundaryTests.cs +129 -0
- package/templates/architectures/monolith/files/tests/architecture/test_monolith_boundaries.py +136 -0
- package/templates/architectures/multi-agent/blueprint.yaml +97 -0
- package/templates/architectures/multi-agent/files/.importlinter +36 -0
- package/templates/architectures/multi-agent/files/docs/architecture/multi-agent.node.md +110 -0
- package/templates/architectures/multi-agent/files/docs/architecture/multi-agent.python.md +94 -0
- package/templates/architectures/multi-agent/files/docs/architecture/multi-agent.typescript.md +102 -0
- package/templates/architectures/multi-agent/files/pyproject.toml +2 -0
- package/templates/architectures/multi-agent/files/scripts/check-agent-boundaries.mjs +207 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/__init__.py +5 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/config.py +52 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/contracts.py +62 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/orchestrator/__init__.py +9 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/orchestrator/budget.py +45 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/orchestrator/fanout.py +63 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/orchestrator/lead.py +92 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/runtime/__init__.py +5 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/runtime/runner.py +48 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/workers/__init__.py +27 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/workers/__workerName.snake__/__init__.py +9 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/workers/__workerName.snake__/prompt.py +31 -0
- package/templates/architectures/multi-agent/files/src/__solutionName.snake__/agents/workers/__workerName.snake__/worker.py +28 -0
- package/templates/architectures/multi-agent/files/src/agents/config.ts +46 -0
- package/templates/architectures/multi-agent/files/src/agents/contracts/index.ts +4 -0
- package/templates/architectures/multi-agent/files/src/agents/contracts/result.ts +50 -0
- package/templates/architectures/multi-agent/files/src/agents/contracts/task.ts +19 -0
- package/templates/architectures/multi-agent/files/src/agents/orchestrator/budget.ts +51 -0
- package/templates/architectures/multi-agent/files/src/agents/orchestrator/fanout.ts +67 -0
- package/templates/architectures/multi-agent/files/src/agents/orchestrator/index.ts +4 -0
- package/templates/architectures/multi-agent/files/src/agents/orchestrator/lead.ts +77 -0
- package/templates/architectures/multi-agent/files/src/agents/runtime/index.ts +3 -0
- package/templates/architectures/multi-agent/files/src/agents/runtime/runner.ts +36 -0
- package/templates/architectures/multi-agent/files/src/agents/workers/README.md +13 -0
- package/templates/architectures/multi-agent/files/src/agents/workers/__workerName.kebab__/prompt.ts +22 -0
- package/templates/architectures/multi-agent/files/src/agents/workers/__workerName.kebab__/worker.ts +25 -0
- package/templates/architectures/multi-agent/files/src/agents/workers/index.ts +15 -0
- package/templates/architectures/multi-agent/files/tests/architecture/test_agent_boundaries.py +184 -0
- package/templates/architectures/mvc-mvvm/blueprint.yaml +156 -0
- package/templates/architectures/mvc-mvvm/files/.importlinter +25 -0
- package/templates/architectures/mvc-mvvm/files/Directory.Packages.props +8 -0
- package/templates/architectures/mvc-mvvm/files/__solutionName.dot__.slnx +8 -0
- package/templates/architectures/mvc-mvvm/files/docs/architecture/mvc-mvvm.dotnet.md +84 -0
- package/templates/architectures/mvc-mvvm/files/docs/architecture/mvc-mvvm.python.md +69 -0
- package/templates/architectures/mvc-mvvm/files/docs/architecture/mvc-mvvm.typescript.md +85 -0
- package/templates/architectures/mvc-mvvm/files/scripts/check-mvvm-boundaries.mjs +234 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.dot__.Presentation/Models/__firstScreen.pascal__.cs +8 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.dot__.Presentation/ViewModels/RelayCommand.cs +18 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.dot__.Presentation/ViewModels/ViewModelBase.cs +27 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.dot__.Presentation/ViewModels/__firstScreen.pascal__ViewModel.cs +55 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.dot__.Presentation/Views/README.md +12 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.dot__.Presentation/__solutionName.dot__.Presentation.csproj +11 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.snake__/controllers/__firstScreen.snake___controller.py +17 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.snake__/controllers/__init__.py +5 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.snake__/models/__firstScreen.snake__.py +13 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.snake__/models/__init__.py +5 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.snake__/models/repository.py +17 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.snake__/views/__firstScreen.snake___view.py +17 -0
- package/templates/architectures/mvc-mvvm/files/src/__solutionName.snake__/views/__init__.py +6 -0
- package/templates/architectures/mvc-mvvm/files/src/models/index.ts +4 -0
- package/templates/architectures/mvc-mvvm/files/src/viewmodels/index.ts +12 -0
- package/templates/architectures/mvc-mvvm/files/src/views/index.ts +10 -0
- package/templates/architectures/mvc-mvvm/files/tests/__solutionName.dot__.ArchitectureTests/PresentationBoundaryTests.cs +124 -0
- package/templates/architectures/mvc-mvvm/files/tests/__solutionName.dot__.ArchitectureTests/__solutionName.dot__.ArchitectureTests.csproj +28 -0
- package/templates/architectures/mvc-mvvm/files/tests/test_presentation_boundaries.py +33 -0
- package/templates/architectures/onion/blueprint.yaml +146 -0
- package/templates/architectures/onion/files/.dependency-cruiser.cjs +50 -0
- package/templates/architectures/onion/files/.importlinter +33 -0
- package/templates/architectures/onion/files/Directory.Packages.props +8 -0
- package/templates/architectures/onion/files/__solutionName.dot__.slnx +11 -0
- package/templates/architectures/onion/files/docs/architecture/onion-dotnet.md +39 -0
- package/templates/architectures/onion/files/docs/architecture/onion-go.md +33 -0
- package/templates/architectures/onion/files/docs/architecture/onion-python.md +35 -0
- package/templates/architectures/onion/files/docs/architecture/onion-typescript.md +34 -0
- package/templates/architectures/onion/files/internal/applicationservices/doc.go +4 -0
- package/templates/architectures/onion/files/internal/arch/rings.go +11 -0
- package/templates/architectures/onion/files/internal/arch/rings_test.go +112 -0
- package/templates/architectures/onion/files/internal/domain/doc.go +4 -0
- package/templates/architectures/onion/files/internal/domainservices/doc.go +5 -0
- package/templates/architectures/onion/files/internal/infrastructure/doc.go +5 -0
- package/templates/architectures/onion/files/pyproject.toml +2 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.ApplicationServices/ApplicationServicesAssemblyMarker.cs +4 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.ApplicationServices/__solutionName.dot__.ApplicationServices.csproj +13 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.Domain/DomainAssemblyMarker.cs +4 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.Domain/__solutionName.dot__.Domain.csproj +11 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.DomainServices/DomainServicesAssemblyMarker.cs +4 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.DomainServices/Repositories/.gitkeep +2 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.DomainServices/__solutionName.dot__.DomainServices.csproj +14 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.Infrastructure/InfrastructureAssemblyMarker.cs +4 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.Infrastructure/Repositories/.gitkeep +2 -0
- package/templates/architectures/onion/files/src/__solutionName.dot__.Infrastructure/__solutionName.dot__.Infrastructure.csproj +14 -0
- package/templates/architectures/onion/files/src/__solutionName.snake__/application_services/__init__.py +4 -0
- package/templates/architectures/onion/files/src/__solutionName.snake__/domain/__init__.py +5 -0
- package/templates/architectures/onion/files/src/__solutionName.snake__/domain_services/__init__.py +6 -0
- package/templates/architectures/onion/files/src/__solutionName.snake__/infrastructure/__init__.py +5 -0
- package/templates/architectures/onion/files/src/application-services/index.ts +3 -0
- package/templates/architectures/onion/files/src/domain/index.ts +3 -0
- package/templates/architectures/onion/files/src/domain-services/index.ts +3 -0
- package/templates/architectures/onion/files/src/infrastructure/index.ts +3 -0
- package/templates/architectures/onion/files/tests/__solutionName.dot__.ArchitectureTests/RingDependencyTests.cs +104 -0
- package/templates/architectures/onion/files/tests/__solutionName.dot__.ArchitectureTests/__solutionName.dot__.ArchitectureTests.csproj +31 -0
- package/templates/architectures/pipes-and-filters/blueprint.yaml +104 -0
- package/templates/architectures/pipes-and-filters/files/.importlinter +25 -0
- package/templates/architectures/pipes-and-filters/files/docs/architecture/pipes-and-filters.go.md +72 -0
- package/templates/architectures/pipes-and-filters/files/docs/architecture/pipes-and-filters.node.md +73 -0
- package/templates/architectures/pipes-and-filters/files/docs/architecture/pipes-and-filters.python.md +76 -0
- package/templates/architectures/pipes-and-filters/files/internal/pipeline/boundary_test.go +107 -0
- package/templates/architectures/pipes-and-filters/files/internal/pipeline/config.go +53 -0
- package/templates/architectures/pipes-and-filters/files/internal/pipeline/contract/contract.go +35 -0
- package/templates/architectures/pipes-and-filters/files/internal/pipeline/pipeline.go +39 -0
- package/templates/architectures/pipes-and-filters/files/internal/pipeline/stages/__firstStage.lower__/__firstStage.lower__.go +42 -0
- package/templates/architectures/pipes-and-filters/files/internal/pipeline/stages/__firstStage.lower__/__firstStage.lower___test.go +59 -0
- package/templates/architectures/pipes-and-filters/files/package.json +8 -0
- package/templates/architectures/pipes-and-filters/files/pyproject.toml +2 -0
- package/templates/architectures/pipes-and-filters/files/scripts/check-stage-boundaries.mjs +172 -0
- package/templates/architectures/pipes-and-filters/files/src/__solutionName.snake__/pipeline/__init__.py +16 -0
- package/templates/architectures/pipes-and-filters/files/src/__solutionName.snake__/pipeline/config.py +26 -0
- package/templates/architectures/pipes-and-filters/files/src/__solutionName.snake__/pipeline/contract.py +34 -0
- package/templates/architectures/pipes-and-filters/files/src/__solutionName.snake__/pipeline/pipeline.py +33 -0
- package/templates/architectures/pipes-and-filters/files/src/__solutionName.snake__/pipeline/stages/__firstStage.snake__/__init__.py +3 -0
- package/templates/architectures/pipes-and-filters/files/src/__solutionName.snake__/pipeline/stages/__firstStage.snake__/stage.py +31 -0
- package/templates/architectures/pipes-and-filters/files/src/__solutionName.snake__/pipeline/stages/__init__.py +1 -0
- package/templates/architectures/pipes-and-filters/files/src/pipeline/config.ts +24 -0
- package/templates/architectures/pipes-and-filters/files/src/pipeline/contract.ts +41 -0
- package/templates/architectures/pipes-and-filters/files/src/pipeline/pipeline.ts +37 -0
- package/templates/architectures/pipes-and-filters/files/src/pipeline/stages/__firstStage.kebab__/__firstStage.kebab__.test.ts +32 -0
- package/templates/architectures/pipes-and-filters/files/src/pipeline/stages/__firstStage.kebab__/index.ts +29 -0
- package/templates/architectures/pipes-and-filters/files/tests/architecture/test_stage_boundaries.py +127 -0
- package/templates/architectures/pipes-and-filters/files/tests/pipeline/test___firstStage.snake__.py +32 -0
- package/templates/architectures/rag-hybrid/blueprint.yaml +121 -0
- package/templates/architectures/rag-hybrid/files/.importlinter +42 -0
- package/templates/architectures/rag-hybrid/files/docs/architecture/rag-hybrid.node.md +159 -0
- package/templates/architectures/rag-hybrid/files/docs/architecture/rag-hybrid.python.md +157 -0
- package/templates/architectures/rag-hybrid/files/evals/corpus/chunking.md +20 -0
- package/templates/architectures/rag-hybrid/files/evals/corpus/fusion.md +17 -0
- package/templates/architectures/rag-hybrid/files/evals/corpus/hybrid-retrieval.md +21 -0
- package/templates/architectures/rag-hybrid/files/evals/corpus/reranking.md +17 -0
- package/templates/architectures/rag-hybrid/files/evals/golden/queries.jsonl +5 -0
- package/templates/architectures/rag-hybrid/files/package.json +9 -0
- package/templates/architectures/rag-hybrid/files/pyproject.toml +2 -0
- package/templates/architectures/rag-hybrid/files/scripts/check-retrieval-seam.mjs +156 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/__init__.py +23 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/chunk/__init__.py +57 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/config.py +101 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/contracts.py +58 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/embed/__init__.py +90 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/evaluation/__init__.py +11 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/evaluation/cli.py +47 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/evaluation/harness.py +115 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/evaluation/metrics.py +51 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/generate/__init__.py +85 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/indexing.py +23 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/ingest/__init__.py +45 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/pipeline.py +27 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/rerank/__init__.py +85 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/retrieve/__init__.py +37 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/retrieve/dense.py +25 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/retrieve/fusion.py +30 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/retrieve/keyword.py +45 -0
- package/templates/architectures/rag-hybrid/files/src/__solutionName.snake__/rag/store/__init__.py +87 -0
- package/templates/architectures/rag-hybrid/files/src/rag/chunk/index.ts +56 -0
- package/templates/architectures/rag-hybrid/files/src/rag/config.ts +96 -0
- package/templates/architectures/rag-hybrid/files/src/rag/contracts.ts +50 -0
- package/templates/architectures/rag-hybrid/files/src/rag/embed/index.ts +98 -0
- package/templates/architectures/rag-hybrid/files/src/rag/evaluation/cli.ts +47 -0
- package/templates/architectures/rag-hybrid/files/src/rag/evaluation/harness.ts +101 -0
- package/templates/architectures/rag-hybrid/files/src/rag/evaluation/metrics.ts +40 -0
- package/templates/architectures/rag-hybrid/files/src/rag/generate/index.ts +86 -0
- package/templates/architectures/rag-hybrid/files/src/rag/indexing.ts +21 -0
- package/templates/architectures/rag-hybrid/files/src/rag/ingest/index.ts +58 -0
- package/templates/architectures/rag-hybrid/files/src/rag/pipeline.ts +32 -0
- package/templates/architectures/rag-hybrid/files/src/rag/rerank/index.ts +90 -0
- package/templates/architectures/rag-hybrid/files/src/rag/retrieve/dense.ts +26 -0
- package/templates/architectures/rag-hybrid/files/src/rag/retrieve/fusion.ts +32 -0
- package/templates/architectures/rag-hybrid/files/src/rag/retrieve/index.ts +38 -0
- package/templates/architectures/rag-hybrid/files/src/rag/retrieve/keyword.ts +42 -0
- package/templates/architectures/rag-hybrid/files/src/rag/store/index.ts +108 -0
- package/templates/architectures/rag-hybrid/files/tests/architecture/test_retrieval_seam.py +108 -0
- package/templates/architectures/serverless/blueprint.yaml +139 -0
- package/templates/architectures/serverless/files/.gitignore.serverless +3 -0
- package/templates/architectures/serverless/files/.importlinter +18 -0
- package/templates/architectures/serverless/files/cdk.json +7 -0
- package/templates/architectures/serverless/files/docs/architecture/serverless.node.md +97 -0
- package/templates/architectures/serverless/files/docs/architecture/serverless.python.md +108 -0
- package/templates/architectures/serverless/files/events/__firstHandler.kebab__.json +21 -0
- package/templates/architectures/serverless/files/infra/app.ts +15 -0
- package/templates/architectures/serverless/files/infra/config.ts +22 -0
- package/templates/architectures/serverless/files/infra/stack.ts +45 -0
- package/templates/architectures/serverless/files/package.json +9 -0
- package/templates/architectures/serverless/files/pyproject.toml +2 -0
- package/templates/architectures/serverless/files/scripts/check-handler-boundaries.mjs +144 -0
- package/templates/architectures/serverless/files/scripts/invoke-local.ts +57 -0
- package/templates/architectures/serverless/files/scripts/invoke_local.py +61 -0
- package/templates/architectures/serverless/files/src/__solutionName.snake__/functions/__firstHandler.snake__/__init__.py +1 -0
- package/templates/architectures/serverless/files/src/__solutionName.snake__/functions/__firstHandler.snake__/handler.py +27 -0
- package/templates/architectures/serverless/files/src/__solutionName.snake__/functions/__init__.py +4 -0
- package/templates/architectures/serverless/files/src/__solutionName.snake__/layers/__init__.py +5 -0
- package/templates/architectures/serverless/files/src/__solutionName.snake__/layers/config.py +45 -0
- package/templates/architectures/serverless/files/src/__solutionName.snake__/layers/observability.py +35 -0
- package/templates/architectures/serverless/files/src/functions/__firstHandler.kebab__/handler.ts +26 -0
- package/templates/architectures/serverless/files/src/layers/config/index.ts +31 -0
- package/templates/architectures/serverless/files/src/layers/observability/index.ts +38 -0
- package/templates/architectures/serverless/files/src/requirements.txt +3 -0
- package/templates/architectures/serverless/files/template.yaml +48 -0
- package/templates/architectures/serverless/files/tests/architecture/test_handler_boundaries.py +32 -0
- package/templates/architectures/vertical-slice/blueprint.yaml +124 -0
- package/templates/architectures/vertical-slice/files/.importlinter +18 -0
- package/templates/architectures/vertical-slice/files/Directory.Packages.props +8 -0
- package/templates/architectures/vertical-slice/files/__solutionName.dot__.slnx +5 -0
- package/templates/architectures/vertical-slice/files/docs/architecture/vertical-slice.md +75 -0
- package/templates/architectures/vertical-slice/files/internal/features/__firstSlice.lower__/__firstSlice.lower__.go +2 -0
- package/templates/architectures/vertical-slice/files/internal/features/boundary_test.go +92 -0
- package/templates/architectures/vertical-slice/files/internal/features/doc.go +3 -0
- package/templates/architectures/vertical-slice/files/internal/shared/doc.go +2 -0
- package/templates/architectures/vertical-slice/files/pyproject.toml +2 -0
- package/templates/architectures/vertical-slice/files/scripts/check-slice-boundaries.mjs +118 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.dot__.Api/Common/.gitkeep +0 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.dot__.Api/Features/.gitkeep +0 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.dot__.Api/Features/__firstSlice.pascal__/Slice.cs +15 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.pascal__.Api/Common/.gitkeep +0 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.pascal__.Api/Features/.gitkeep +0 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.pascal__.Api/Features/__firstSlice.pascal__/Slice.cs +15 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.snake__/features/__firstSlice.snake__/__init__.py +1 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.snake__/features/__init__.py +1 -0
- package/templates/architectures/vertical-slice/files/src/__solutionName.snake__/shared/__init__.py +1 -0
- package/templates/architectures/vertical-slice/files/src/features/__firstSlice.kebab__/index.ts +3 -0
- package/templates/architectures/vertical-slice/files/src/shared/.gitkeep +0 -0
- package/templates/architectures/vertical-slice/files/tests/ArchitectureTests/ArchitectureTests.csproj +33 -0
- package/templates/architectures/vertical-slice/files/tests/ArchitectureTests/SliceBoundaryTests.cs +110 -0
- package/templates/architectures/vertical-slice/files/tests/test_architecture.py +32 -0
- package/templates/bases/dotnet-aspire/blueprint.yaml +120 -0
- package/templates/bases/dotnet-aspire/files/Directory.Build.props +11 -0
- package/templates/bases/dotnet-aspire/files/Directory.Packages.props +17 -0
- package/templates/bases/dotnet-aspire/files/README.md +60 -0
- package/templates/bases/dotnet-aspire/files/__solutionName.dot__.slnx +7 -0
- package/templates/bases/dotnet-aspire/files/aspire.config.json +5 -0
- package/templates/bases/dotnet-aspire/files/gitignore +44 -0
- package/templates/bases/dotnet-aspire/files/global.json +6 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.Api/Configuration/ApiOptions.cs +20 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.Api/Program.cs +37 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.Api/Properties/launchSettings.json +23 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.Api/__solutionName.pascal__.Api.csproj +11 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.Api/appsettings.Development.json +8 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.Api/appsettings.json +14 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.AppHost/AppHost.cs +8 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.AppHost/Properties/launchSettings.json +29 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.AppHost/__solutionName.pascal__.AppHost.csproj +11 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.AppHost/appsettings.Development.json +8 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.AppHost/appsettings.json +9 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.ServiceDefaults/Extensions.cs +101 -0
- package/templates/bases/dotnet-aspire/files/src/__solutionName.pascal__.ServiceDefaults/__solutionName.pascal__.ServiceDefaults.csproj +19 -0
- package/templates/bases/dotnet-webapi/blueprint.yaml +112 -0
- package/templates/bases/dotnet-webapi/files/.editorconfig +78 -0
- package/templates/bases/dotnet-webapi/files/Directory.Build.props +28 -0
- package/templates/bases/dotnet-webapi/files/Directory.Packages.props +18 -0
- package/templates/bases/dotnet-webapi/files/README.md +71 -0
- package/templates/bases/dotnet-webapi/files/__solutionName.dot__.slnx +11 -0
- package/templates/bases/dotnet-webapi/files/gitignore +49 -0
- package/templates/bases/dotnet-webapi/files/global.json +7 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/Configuration/ApiOptions.cs +23 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/Configuration/ServiceCollectionExtensions.cs +35 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/Endpoints/GreetingEndpoints.cs +24 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/Endpoints/HealthEndpoints.cs +11 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/Program.cs +23 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/Properties/launchSettings.json +21 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/__solutionName.dot__.Api.csproj +19 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/appsettings.Development.json +8 -0
- package/templates/bases/dotnet-webapi/files/src/__solutionName.dot__.Api/appsettings.json +9 -0
- package/templates/bases/fastapi-service/blueprint.yaml +87 -0
- package/templates/bases/fastapi-service/files/.env.example +10 -0
- package/templates/bases/fastapi-service/files/README.md +42 -0
- package/templates/bases/fastapi-service/files/gitignore +27 -0
- package/templates/bases/fastapi-service/files/pyproject.toml +35 -0
- package/templates/bases/fastapi-service/files/src/__solutionName.snake__/__init__.py +1 -0
- package/templates/bases/fastapi-service/files/src/__solutionName.snake__/api/__init__.py +1 -0
- package/templates/bases/fastapi-service/files/src/__solutionName.snake__/api/routes.py +38 -0
- package/templates/bases/fastapi-service/files/src/__solutionName.snake__/main.py +34 -0
- package/templates/bases/fastapi-service/files/src/__solutionName.snake__/settings.py +30 -0
- package/templates/bases/go-api/blueprint.yaml +58 -0
- package/templates/bases/go-api/files/.env.example +16 -0
- package/templates/bases/go-api/files/README.md +76 -0
- package/templates/bases/go-api/files/cmd/__solutionName.kebab__/main.go +65 -0
- package/templates/bases/go-api/files/gitignore +27 -0
- package/templates/bases/go-api/files/go.mod +5 -0
- package/templates/bases/go-api/files/internal/config/config.go +127 -0
- package/templates/bases/go-api/files/internal/httpapi/greeting.go +25 -0
- package/templates/bases/go-api/files/internal/httpapi/health.go +25 -0
- package/templates/bases/go-api/files/internal/httpapi/respond.go +25 -0
- package/templates/bases/go-api/files/internal/httpapi/router.go +63 -0
- package/templates/bases/hono-api/blueprint.yaml +94 -0
- package/templates/bases/hono-api/files/.env.example +7 -0
- package/templates/bases/hono-api/files/README.md +77 -0
- package/templates/bases/hono-api/files/biome.json +24 -0
- package/templates/bases/hono-api/files/gitignore +16 -0
- package/templates/bases/hono-api/files/package.json +29 -0
- package/templates/bases/hono-api/files/src/app.ts +27 -0
- package/templates/bases/hono-api/files/src/config.ts +27 -0
- package/templates/bases/hono-api/files/src/index.ts +17 -0
- package/templates/bases/hono-api/files/src/routes/greetings.ts +17 -0
- package/templates/bases/hono-api/files/src/routes/health.ts +13 -0
- package/templates/bases/hono-api/files/tsconfig.json +18 -0
- package/templates/bases/nestjs-api/blueprint.yaml +94 -0
- package/templates/bases/nestjs-api/files/.env.example +8 -0
- package/templates/bases/nestjs-api/files/.prettierrc +5 -0
- package/templates/bases/nestjs-api/files/README.md +69 -0
- package/templates/bases/nestjs-api/files/eslint.config.mjs +23 -0
- package/templates/bases/nestjs-api/files/gitignore +11 -0
- package/templates/bases/nestjs-api/files/nest-cli.json +9 -0
- package/templates/bases/nestjs-api/files/package.json +41 -0
- package/templates/bases/nestjs-api/files/src/app.module.ts +16 -0
- package/templates/bases/nestjs-api/files/src/config/app.config.ts +30 -0
- package/templates/bases/nestjs-api/files/src/config/env.validation.ts +15 -0
- package/templates/bases/nestjs-api/files/src/health/health.controller.ts +19 -0
- package/templates/bases/nestjs-api/files/src/health/health.module.ts +6 -0
- package/templates/bases/nestjs-api/files/src/main.ts +25 -0
- package/templates/bases/nestjs-api/files/src/modules/__solutionName.kebab__/__solutionName.kebab__.controller.ts +14 -0
- package/templates/bases/nestjs-api/files/src/modules/__solutionName.kebab__/__solutionName.kebab__.module.ts +11 -0
- package/templates/bases/nestjs-api/files/src/modules/__solutionName.kebab__/__solutionName.kebab__.service.ts +12 -0
- package/templates/bases/nestjs-api/files/src/modules/__solutionName.kebab__/dto/greet-query.dto.ts +10 -0
- package/templates/bases/nestjs-api/files/tsconfig.build.json +4 -0
- package/templates/bases/nestjs-api/files/tsconfig.json +26 -0
- package/templates/bases/nextjs-app/blueprint.yaml +80 -0
- package/templates/bases/nextjs-app/files/.env.example +10 -0
- package/templates/bases/nextjs-app/files/README.md +48 -0
- package/templates/bases/nextjs-app/files/eslint.config.mjs +12 -0
- package/templates/bases/nextjs-app/files/gitignore +32 -0
- package/templates/bases/nextjs-app/files/next.config.ts +8 -0
- package/templates/bases/nextjs-app/files/package.json +30 -0
- package/templates/bases/nextjs-app/files/postcss.config.mjs +7 -0
- package/templates/bases/nextjs-app/files/src/app/api/health/route.ts +21 -0
- package/templates/bases/nextjs-app/files/src/app/globals.css +45 -0
- package/templates/bases/nextjs-app/files/src/app/layout.tsx +28 -0
- package/templates/bases/nextjs-app/files/src/app/page.tsx +39 -0
- package/templates/bases/nextjs-app/files/src/config/env.ts +64 -0
- package/templates/bases/nextjs-app/files/tsconfig.json +35 -0
- package/templates/bases/python-ai-agent/blueprint.yaml +84 -0
- package/templates/bases/python-ai-agent/files/.env.example +29 -0
- package/templates/bases/python-ai-agent/files/README.md +80 -0
- package/templates/bases/python-ai-agent/files/gitignore +21 -0
- package/templates/bases/python-ai-agent/files/pyproject.toml +34 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/__init__.py +1 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/api/__init__.py +1 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/api/routes.py +69 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/config.py +70 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/llm/__init__.py +1 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/llm/anthropic_provider.py +69 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/llm/openai_provider.py +75 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/llm/provider.py +45 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/llm/registry.py +35 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/main.py +33 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/observability/__init__.py +1 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/observability/evals.py +28 -0
- package/templates/bases/python-ai-agent/files/src/__solutionName.snake__/observability/tracing.py +49 -0
- package/templates/bases/react-vite-spa/blueprint.yaml +92 -0
- package/templates/bases/react-vite-spa/files/.env.example +13 -0
- package/templates/bases/react-vite-spa/files/README.md +49 -0
- package/templates/bases/react-vite-spa/files/eslint.config.mjs +26 -0
- package/templates/bases/react-vite-spa/files/gitignore +25 -0
- package/templates/bases/react-vite-spa/files/index.html +13 -0
- package/templates/bases/react-vite-spa/files/package.json +37 -0
- package/templates/bases/react-vite-spa/files/src/api/client.ts +28 -0
- package/templates/bases/react-vite-spa/files/src/api/health.ts +12 -0
- package/templates/bases/react-vite-spa/files/src/app/query-client.ts +12 -0
- package/templates/bases/react-vite-spa/files/src/app/root-layout.tsx +24 -0
- package/templates/bases/react-vite-spa/files/src/app/router.tsx +44 -0
- package/templates/bases/react-vite-spa/files/src/config/env.ts +37 -0
- package/templates/bases/react-vite-spa/files/src/main.tsx +18 -0
- package/templates/bases/react-vite-spa/files/src/pages/home-page.tsx +31 -0
- package/templates/bases/react-vite-spa/files/src/pages/not-found-page.tsx +13 -0
- package/templates/bases/react-vite-spa/files/src/pages/status-page.tsx +37 -0
- package/templates/bases/react-vite-spa/files/src/styles/global.css +169 -0
- package/templates/bases/react-vite-spa/files/src/vite-env.d.ts +15 -0
- package/templates/bases/react-vite-spa/files/tsconfig.app.json +29 -0
- package/templates/bases/react-vite-spa/files/tsconfig.json +4 -0
- package/templates/bases/react-vite-spa/files/tsconfig.node.json +24 -0
- package/templates/bases/react-vite-spa/files/vite.config.ts +25 -0
- package/templates/bases/turborepo-monorepo/blueprint.yaml +84 -0
- package/templates/bases/turborepo-monorepo/files/.env.example +7 -0
- package/templates/bases/turborepo-monorepo/files/.prettierignore +9 -0
- package/templates/bases/turborepo-monorepo/files/.prettierrc.json +5 -0
- package/templates/bases/turborepo-monorepo/files/README.md +55 -0
- package/templates/bases/turborepo-monorepo/files/apps/__appName.kebab__/eslint.config.js +3 -0
- package/templates/bases/turborepo-monorepo/files/apps/__appName.kebab__/package.json +25 -0
- package/templates/bases/turborepo-monorepo/files/apps/__appName.kebab__/src/config.ts +46 -0
- package/templates/bases/turborepo-monorepo/files/apps/__appName.kebab__/src/index.ts +20 -0
- package/templates/bases/turborepo-monorepo/files/apps/__appName.kebab__/src/router.ts +24 -0
- package/templates/bases/turborepo-monorepo/files/apps/__appName.kebab__/tsconfig.json +8 -0
- package/templates/bases/turborepo-monorepo/files/gitignore +17 -0
- package/templates/bases/turborepo-monorepo/files/package.json +25 -0
- package/templates/bases/turborepo-monorepo/files/packages/eslint-config/index.js +21 -0
- package/templates/bases/turborepo-monorepo/files/packages/eslint-config/package.json +21 -0
- package/templates/bases/turborepo-monorepo/files/packages/shared/eslint.config.js +3 -0
- package/templates/bases/turborepo-monorepo/files/packages/shared/package.json +26 -0
- package/templates/bases/turborepo-monorepo/files/packages/shared/src/health.ts +23 -0
- package/templates/bases/turborepo-monorepo/files/packages/shared/src/index.ts +2 -0
- package/templates/bases/turborepo-monorepo/files/packages/shared/tsconfig.json +10 -0
- package/templates/bases/turborepo-monorepo/files/packages/tsconfig/base.json +19 -0
- package/templates/bases/turborepo-monorepo/files/packages/tsconfig/node.json +7 -0
- package/templates/bases/turborepo-monorepo/files/packages/tsconfig/package.json +9 -0
- package/templates/bases/turborepo-monorepo/files/pnpm-workspace.yaml +7 -0
- package/templates/bases/turborepo-monorepo/files/turbo.json +22 -0
- package/templates/layers/api-versioning/blueprint.yaml +264 -0
- package/templates/layers/api-versioning/files/.env.apiversion.example +53 -0
- package/templates/layers/api-versioning/files/__apiVersionContractDir__/README.md +48 -0
- package/templates/layers/api-versioning/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/api-versioning/files/docs/api-versioning.md +100 -0
- package/templates/layers/api-versioning/files/internal/apiversion/apiversion_test.go +202 -0
- package/templates/layers/api-versioning/files/internal/apiversion/config.go +242 -0
- package/templates/layers/api-versioning/files/internal/apiversion/contract.go +280 -0
- package/templates/layers/api-versioning/files/internal/apiversion/headers.go +55 -0
- package/templates/layers/api-versioning/files/internal/apiversion/middleware.go +53 -0
- package/templates/layers/api-versioning/files/internal/apiversion/negotiate.go +107 -0
- package/templates/layers/api-versioning/files/internal/apiversion/snapshot.go +72 -0
- package/templates/layers/api-versioning/files/internal/apiversion/versions.go +72 -0
- package/templates/layers/api-versioning/files/package.json +5 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ApiVersionHeaders.cs +62 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ApiVersionNegotiator.cs +129 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ApiVersionOptions.cs +58 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ApiVersionPolicy.cs +99 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ApiVersioningMiddleware.cs +58 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ApiVersioningServiceCollectionExtensions.cs +18 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ContractDiff.cs +152 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ContractShape.cs +142 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/ContractStore.cs +64 -0
- package/templates/layers/api-versioning/files/src/__solutionName.dot__.ApiVersioning/__solutionName.dot__.ApiVersioning.csproj +17 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/__init__.py +67 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/contract.py +191 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/errors.py +28 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/headers.py +56 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/middleware.py +76 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/negotiate.py +94 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/settings.py +189 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/snapshot.py +74 -0
- package/templates/layers/api-versioning/files/src/__solutionName.snake__/apiversion/versions.py +70 -0
- package/templates/layers/api-versioning/files/src/apiversion/client/pinned-fetch.ts +89 -0
- package/templates/layers/api-versioning/files/src/apiversion/contract/diff.ts +153 -0
- package/templates/layers/api-versioning/files/src/apiversion/contract/node/snapshot.ts +76 -0
- package/templates/layers/api-versioning/files/src/apiversion/contract/shape.ts +94 -0
- package/templates/layers/api-versioning/files/src/apiversion/errors.ts +36 -0
- package/templates/layers/api-versioning/files/src/apiversion/headers.ts +52 -0
- package/templates/layers/api-versioning/files/src/apiversion/index.ts +23 -0
- package/templates/layers/api-versioning/files/src/apiversion/middleware.ts +59 -0
- package/templates/layers/api-versioning/files/src/apiversion/negotiate.ts +113 -0
- package/templates/layers/api-versioning/files/src/apiversion/node/http.ts +50 -0
- package/templates/layers/api-versioning/files/src/apiversion/settings.ts +214 -0
- package/templates/layers/api-versioning/files/src/apiversion/tests/apiversion.spec.ts +162 -0
- package/templates/layers/api-versioning/files/src/apiversion/tests/apiversion.test.ts +167 -0
- package/templates/layers/api-versioning/files/src/apiversion/versions.ts +66 -0
- package/templates/layers/api-versioning/files/tests/test_api_versioning.py +162 -0
- package/templates/layers/audit-log/blueprint.yaml +186 -0
- package/templates/layers/audit-log/files/.env.audit.example +41 -0
- package/templates/layers/audit-log/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/audit-log/files/docs/audit-log.md +195 -0
- package/templates/layers/audit-log/files/internal/audit/audit_test.go +141 -0
- package/templates/layers/audit-log/files/internal/audit/chain.go +91 -0
- package/templates/layers/audit-log/files/internal/audit/config.go +143 -0
- package/templates/layers/audit-log/files/internal/audit/event.go +87 -0
- package/templates/layers/audit-log/files/internal/audit/recorder.go +133 -0
- package/templates/layers/audit-log/files/internal/audit/redact.go +83 -0
- package/templates/layers/audit-log/files/internal/audit/sink.go +196 -0
- package/templates/layers/audit-log/files/internal/audit/verify.go +17 -0
- package/templates/layers/audit-log/files/package.json +5 -0
- package/templates/layers/audit-log/files/pyproject.toml +2 -0
- package/templates/layers/audit-log/files/src/__solutionName.dot__.Auditing/AuditChain.cs +74 -0
- package/templates/layers/audit-log/files/src/__solutionName.dot__.Auditing/AuditEvent.cs +90 -0
- package/templates/layers/audit-log/files/src/__solutionName.dot__.Auditing/AuditOptions.cs +104 -0
- package/templates/layers/audit-log/files/src/__solutionName.dot__.Auditing/AuditRecorder.cs +106 -0
- package/templates/layers/audit-log/files/src/__solutionName.dot__.Auditing/AuditSerialization.cs +116 -0
- package/templates/layers/audit-log/files/src/__solutionName.dot__.Auditing/AuditSinks.cs +165 -0
- package/templates/layers/audit-log/files/src/__solutionName.dot__.Auditing/__solutionName.dot__.Auditing.csproj +17 -0
- package/templates/layers/audit-log/files/src/__solutionName.snake__/audit/chain.py +56 -0
- package/templates/layers/audit-log/files/src/__solutionName.snake__/audit/event.py +118 -0
- package/templates/layers/audit-log/files/src/__solutionName.snake__/audit/recorder.py +118 -0
- package/templates/layers/audit-log/files/src/__solutionName.snake__/audit/redact.py +41 -0
- package/templates/layers/audit-log/files/src/__solutionName.snake__/audit/settings.py +102 -0
- package/templates/layers/audit-log/files/src/__solutionName.snake__/audit/sinks.py +121 -0
- package/templates/layers/audit-log/files/src/__solutionName.snake__/audit/verify.py +14 -0
- package/templates/layers/audit-log/files/src/audit/chain.ts +59 -0
- package/templates/layers/audit-log/files/src/audit/event.ts +73 -0
- package/templates/layers/audit-log/files/src/audit/index.ts +32 -0
- package/templates/layers/audit-log/files/src/audit/recorder.ts +108 -0
- package/templates/layers/audit-log/files/src/audit/redact.ts +54 -0
- package/templates/layers/audit-log/files/src/audit/settings.ts +113 -0
- package/templates/layers/audit-log/files/src/audit/sinks.ts +131 -0
- package/templates/layers/audit-log/files/src/audit/tests/audit.spec.ts +97 -0
- package/templates/layers/audit-log/files/src/audit/tests/audit.test.ts +103 -0
- package/templates/layers/audit-log/files/tests/test_audit_log.py +91 -0
- package/templates/layers/auth-jwt/blueprint.yaml +124 -0
- package/templates/layers/auth-jwt/files/.env.auth.example +17 -0
- package/templates/layers/auth-jwt/files/Directory.Packages.props +5 -0
- package/templates/layers/auth-jwt/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/auth-jwt/files/docs/auth-jwt.md +198 -0
- package/templates/layers/auth-jwt/files/go.mod +2 -0
- package/templates/layers/auth-jwt/files/internal/auth/auth_test.go +167 -0
- package/templates/layers/auth-jwt/files/internal/auth/config.go +108 -0
- package/templates/layers/auth-jwt/files/internal/auth/errors.go +21 -0
- package/templates/layers/auth-jwt/files/internal/auth/http.go +65 -0
- package/templates/layers/auth-jwt/files/internal/auth/password.go +76 -0
- package/templates/layers/auth-jwt/files/internal/auth/service.go +213 -0
- package/templates/layers/auth-jwt/files/internal/auth/store.go +138 -0
- package/templates/layers/auth-jwt/files/internal/auth/token.go +83 -0
- package/templates/layers/auth-jwt/files/package.json +9 -0
- package/templates/layers/auth-jwt/files/pyproject.toml +2 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/AuthException.cs +39 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/AuthOptions.cs +35 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/AuthService.cs +132 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/AuthServiceCollectionExtensions.cs +48 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/JwtTokenService.cs +84 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/PasswordHasher.cs +52 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/Stores.cs +100 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/__solutionName.dot__.Auth.csproj +21 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.dot__.Auth/appsettings.Auth.sample.json +10 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/__init__.py +42 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/config.py +49 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/errors.py +21 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/http.py +36 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/passwords.py +37 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/service.py +139 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/store.py +90 -0
- package/templates/layers/auth-jwt/files/src/__solutionName.snake__/auth/tokens.py +72 -0
- package/templates/layers/auth-jwt/files/src/auth/config.ts +77 -0
- package/templates/layers/auth-jwt/files/src/auth/errors.ts +32 -0
- package/templates/layers/auth-jwt/files/src/auth/http.ts +35 -0
- package/templates/layers/auth-jwt/files/src/auth/index.ts +20 -0
- package/templates/layers/auth-jwt/files/src/auth/password.ts +23 -0
- package/templates/layers/auth-jwt/files/src/auth/random.ts +28 -0
- package/templates/layers/auth-jwt/files/src/auth/service.ts +125 -0
- package/templates/layers/auth-jwt/files/src/auth/store.memory.ts +50 -0
- package/templates/layers/auth-jwt/files/src/auth/store.ts +37 -0
- package/templates/layers/auth-jwt/files/src/auth/tests/auth.spec.ts +98 -0
- package/templates/layers/auth-jwt/files/src/auth/tests/auth.test.ts +102 -0
- package/templates/layers/auth-jwt/files/src/auth/tokens.ts +56 -0
- package/templates/layers/auth-jwt/files/tests/auth/test_auth.py +106 -0
- package/templates/layers/auth-oidc/blueprint.yaml +89 -0
- package/templates/layers/auth-oidc/files/dotnet/.env.oidc.example +14 -0
- package/templates/layers/auth-oidc/files/dotnet/docs/auth-oidc.md +73 -0
- package/templates/layers/auth-oidc/files/dotnet/src/__solutionName.pascal__.Api/Auth/OidcAuthenticationExtensions.cs +65 -0
- package/templates/layers/auth-oidc/files/dotnet/src/__solutionName.pascal__.Api/Auth/OidcOptions.cs +25 -0
- package/templates/layers/auth-oidc/files/dotnet/src/__solutionName.pascal__.Api/Auth/ScopeRequirement.cs +29 -0
- package/templates/layers/auth-oidc/files/node/.env.oidc.example +14 -0
- package/templates/layers/auth-oidc/files/node/docs/auth-oidc.md +66 -0
- package/templates/layers/auth-oidc/files/node/src/auth/auth.config.ts +64 -0
- package/templates/layers/auth-oidc/files/node/src/auth/auth.decorators.ts +19 -0
- package/templates/layers/auth-oidc/files/node/src/auth/auth.guard.ts +61 -0
- package/templates/layers/auth-oidc/files/node/src/auth/auth.module.ts +12 -0
- package/templates/layers/auth-oidc/files/node/src/auth/jwt-verifier.ts +97 -0
- package/templates/layers/auth-oidc/files/package.json +6 -0
- package/templates/layers/auth-oidc/files/pyproject.toml +2 -0
- package/templates/layers/auth-oidc/files/python/.env.oidc.example +14 -0
- package/templates/layers/auth-oidc/files/python/app/auth/dependencies.py +69 -0
- package/templates/layers/auth-oidc/files/python/app/auth/settings.py +32 -0
- package/templates/layers/auth-oidc/files/python/app/auth/verifier.py +57 -0
- package/templates/layers/auth-oidc/files/python/docs/auth-oidc.md +57 -0
- package/templates/layers/auth-oidc/files/python/requirements-auth-oidc.txt +4 -0
- package/templates/layers/auth-oidc/files/typescript/.env.oidc.example +21 -0
- package/templates/layers/auth-oidc/files/typescript/docs/auth-oidc.md +69 -0
- package/templates/layers/auth-oidc/files/typescript/src/app/api/auth/callback/route.ts +43 -0
- package/templates/layers/auth-oidc/files/typescript/src/app/api/auth/login/route.ts +40 -0
- package/templates/layers/auth-oidc/files/typescript/src/app/api/auth/logout/route.ts +27 -0
- package/templates/layers/auth-oidc/files/typescript/src/app/api/auth/me/route.ts +12 -0
- package/templates/layers/auth-oidc/files/typescript/src/lib/auth/config.ts +98 -0
- package/templates/layers/auth-oidc/files/typescript/src/lib/auth/guard.ts +23 -0
- package/templates/layers/auth-oidc/files/typescript/src/lib/auth/oidc.ts +19 -0
- package/templates/layers/auth-oidc/files/typescript/src/lib/auth/session.ts +81 -0
- package/templates/layers/cache-redis/blueprint.yaml +186 -0
- package/templates/layers/cache-redis/files/.env.cache.example +29 -0
- package/templates/layers/cache-redis/files/Directory.Packages.props +5 -0
- package/templates/layers/cache-redis/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/cache-redis/files/docker-compose.redis.yml +33 -0
- package/templates/layers/cache-redis/files/docs/cache/redis.md +113 -0
- package/templates/layers/cache-redis/files/go.mod +1 -0
- package/templates/layers/cache-redis/files/internal/cache/cache.go +127 -0
- package/templates/layers/cache-redis/files/internal/cache/cache_test.go +113 -0
- package/templates/layers/cache-redis/files/internal/cache/config.go +110 -0
- package/templates/layers/cache-redis/files/internal/cache/memory.go +124 -0
- package/templates/layers/cache-redis/files/internal/cache/redis.go +108 -0
- package/templates/layers/cache-redis/files/package.json +5 -0
- package/templates/layers/cache-redis/files/pyproject.toml +2 -0
- package/templates/layers/cache-redis/files/src/__solutionName.dot__.Cache.Redis/CacheKey.cs +44 -0
- package/templates/layers/cache-redis/files/src/__solutionName.dot__.Cache.Redis/CacheOptions.cs +119 -0
- package/templates/layers/cache-redis/files/src/__solutionName.dot__.Cache.Redis/CacheStoreFactory.cs +16 -0
- package/templates/layers/cache-redis/files/src/__solutionName.dot__.Cache.Redis/ICacheStore.cs +37 -0
- package/templates/layers/cache-redis/files/src/__solutionName.dot__.Cache.Redis/MemoryCacheStore.cs +129 -0
- package/templates/layers/cache-redis/files/src/__solutionName.dot__.Cache.Redis/RedisCacheStore.cs +139 -0
- package/templates/layers/cache-redis/files/src/__solutionName.dot__.Cache.Redis/__solutionName.dot__.Cache.Redis.csproj +18 -0
- package/templates/layers/cache-redis/files/src/__solutionName.snake__/cache/api.py +67 -0
- package/templates/layers/cache-redis/files/src/__solutionName.snake__/cache/keys.py +39 -0
- package/templates/layers/cache-redis/files/src/__solutionName.snake__/cache/redis_store.py +85 -0
- package/templates/layers/cache-redis/files/src/__solutionName.snake__/cache/settings.py +82 -0
- package/templates/layers/cache-redis/files/src/__solutionName.snake__/cache/store.py +113 -0
- package/templates/layers/cache-redis/files/src/cache/index.ts +54 -0
- package/templates/layers/cache-redis/files/src/cache/keys.ts +28 -0
- package/templates/layers/cache-redis/files/src/cache/redis.ts +131 -0
- package/templates/layers/cache-redis/files/src/cache/settings.ts +86 -0
- package/templates/layers/cache-redis/files/src/cache/store.ts +98 -0
- package/templates/layers/cache-redis/files/tests/test_cache_redis.py +105 -0
- package/templates/layers/ci-github-actions/blueprint.yaml +174 -0
- package/templates/layers/ci-github-actions/files/.github/actions/dotnet-setup/action.yml +25 -0
- package/templates/layers/ci-github-actions/files/.github/actions/go-setup/action.yml +30 -0
- package/templates/layers/ci-github-actions/files/.github/actions/node-setup/action.yml +58 -0
- package/templates/layers/ci-github-actions/files/.github/actions/python-setup/action.yml +23 -0
- package/templates/layers/ci-github-actions/files/.github/dependabot.yml +13 -0
- package/templates/layers/ci-github-actions/files/.github/scripts/run-package-script.sh +13 -0
- package/templates/layers/ci-github-actions/files/.github/workflows/ci-dotnet.yml +85 -0
- package/templates/layers/ci-github-actions/files/.github/workflows/ci-go.yml +91 -0
- package/templates/layers/ci-github-actions/files/.github/workflows/ci-node.yml +111 -0
- package/templates/layers/ci-github-actions/files/.github/workflows/ci-python.yml +125 -0
- package/templates/layers/ci-github-actions/files/docs/ci-github-actions.md +106 -0
- package/templates/layers/db-core/blueprint.yaml +98 -0
- package/templates/layers/db-core/files/.env.example +18 -0
- package/templates/layers/db-core/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/db-core/files/docs/persistence.md +91 -0
- package/templates/layers/db-core/files/internal/db/config.go +108 -0
- package/templates/layers/db-core/files/internal/db/errors.go +61 -0
- package/templates/layers/db-core/files/internal/db/memory.go +141 -0
- package/templates/layers/db-core/files/internal/db/memory_test.go +195 -0
- package/templates/layers/db-core/files/internal/db/ports.go +76 -0
- package/templates/layers/db-core/files/internal/db/repository.go +134 -0
- package/templates/layers/db-core/files/internal/db/retry.go +30 -0
- package/templates/layers/db-core/files/package.json +5 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/DatabaseException.cs +39 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/DatabaseOptions.cs +65 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/DatabaseRetry.cs +24 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/IRepository.cs +30 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/IUnitOfWork.cs +23 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/InMemory/InMemoryDatabase.cs +188 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/Query.cs +29 -0
- package/templates/layers/db-core/files/src/__solutionName.dot__.Data/__solutionName.dot__.Data.csproj +16 -0
- package/templates/layers/db-core/files/src/__solutionName.snake__/db/api.py +63 -0
- package/templates/layers/db-core/files/src/__solutionName.snake__/db/config.py +79 -0
- package/templates/layers/db-core/files/src/__solutionName.snake__/db/errors.py +47 -0
- package/templates/layers/db-core/files/src/__solutionName.snake__/db/memory.py +143 -0
- package/templates/layers/db-core/files/src/__solutionName.snake__/db/ports.py +80 -0
- package/templates/layers/db-core/files/src/__solutionName.snake__/db/retry.py +25 -0
- package/templates/layers/db-core/files/src/db/config.ts +65 -0
- package/templates/layers/db-core/files/src/db/errors.ts +52 -0
- package/templates/layers/db-core/files/src/db/index.ts +41 -0
- package/templates/layers/db-core/files/src/db/memory.test.ts +107 -0
- package/templates/layers/db-core/files/src/db/memory.ts +182 -0
- package/templates/layers/db-core/files/src/db/ports.ts +58 -0
- package/templates/layers/db-core/files/src/db/retry.ts +20 -0
- package/templates/layers/db-core/files/tests/test_db_core.py +95 -0
- package/templates/layers/db-mongo/blueprint.yaml +157 -0
- package/templates/layers/db-mongo/files/.env.mongo.example +17 -0
- package/templates/layers/db-mongo/files/Directory.Packages.props +7 -0
- package/templates/layers/db-mongo/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/db-mongo/files/docker-compose.mongo.yml +27 -0
- package/templates/layers/db-mongo/files/docs/db-mongo.md +138 -0
- package/templates/layers/db-mongo/files/go.mod +1 -0
- package/templates/layers/db-mongo/files/internal/db/mongodb/client.go +57 -0
- package/templates/layers/db-mongo/files/internal/db/mongodb/config.go +105 -0
- package/templates/layers/db-mongo/files/internal/db/mongodb/indexes.go +42 -0
- package/templates/layers/db-mongo/files/package.json +5 -0
- package/templates/layers/db-mongo/files/pyproject.toml +2 -0
- package/templates/layers/db-mongo/files/requirements-mongo.txt +2 -0
- package/templates/layers/db-mongo/files/src/__solutionName.dot__.Infrastructure.Mongo/MongoContext.cs +21 -0
- package/templates/layers/db-mongo/files/src/__solutionName.dot__.Infrastructure.Mongo/MongoHealthCheck.cs +28 -0
- package/templates/layers/db-mongo/files/src/__solutionName.dot__.Infrastructure.Mongo/MongoIndexes.cs +25 -0
- package/templates/layers/db-mongo/files/src/__solutionName.dot__.Infrastructure.Mongo/MongoOptions.cs +23 -0
- package/templates/layers/db-mongo/files/src/__solutionName.dot__.Infrastructure.Mongo/MongoServiceCollectionExtensions.cs +31 -0
- package/templates/layers/db-mongo/files/src/__solutionName.dot__.Infrastructure.Mongo/__solutionName.dot__.Infrastructure.Mongo.csproj +18 -0
- package/templates/layers/db-mongo/files/src/__solutionName.snake__/db/mongo/client.py +48 -0
- package/templates/layers/db-mongo/files/src/__solutionName.snake__/db/mongo/config.py +66 -0
- package/templates/layers/db-mongo/files/src/__solutionName.snake__/db/mongo/indexes.py +29 -0
- package/templates/layers/db-mongo/files/src/db/mongo/client.rs +37 -0
- package/templates/layers/db-mongo/files/src/db/mongo/client.ts +51 -0
- package/templates/layers/db-mongo/files/src/db/mongo/config.rs +68 -0
- package/templates/layers/db-mongo/files/src/db/mongo/config.ts +58 -0
- package/templates/layers/db-mongo/files/src/db/mongo/index.ts +3 -0
- package/templates/layers/db-mongo/files/src/db/mongo/indexes.rs +26 -0
- package/templates/layers/db-mongo/files/src/db/mongo/indexes.ts +21 -0
- package/templates/layers/db-mongo/files/src/db/mongo/mod.rs +7 -0
- package/templates/layers/db-mongo/files/src/main/java/__solutionName.lower__/db/mongo/MongoClientProvider.java +66 -0
- package/templates/layers/db-mongo/files/src/main/java/__solutionName.lower__/db/mongo/MongoConfig.java +56 -0
- package/templates/layers/db-mongo/files/src/main/java/__solutionName.lower__/db/mongo/MongoIndexes.java +26 -0
- package/templates/layers/db-postgres/blueprint.yaml +130 -0
- package/templates/layers/db-postgres/files/.env.postgres.example +31 -0
- package/templates/layers/db-postgres/files/Directory.Packages.props +5 -0
- package/templates/layers/db-postgres/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/db-postgres/files/docker-compose.postgres.yml +28 -0
- package/templates/layers/db-postgres/files/docs/postgres.md +152 -0
- package/templates/layers/db-postgres/files/go.mod +1 -0
- package/templates/layers/db-postgres/files/internal/db/postgres.go +48 -0
- package/templates/layers/db-postgres/files/internal/db/postgres_config.go +79 -0
- package/templates/layers/db-postgres/files/internal/db/postgres_errors.go +59 -0
- package/templates/layers/db-postgres/files/internal/db/postgres_migrate.go +155 -0
- package/templates/layers/db-postgres/files/migrations/0001_init.sql +9 -0
- package/templates/layers/db-postgres/files/package.json +11 -0
- package/templates/layers/db-postgres/files/pyproject.toml +2 -0
- package/templates/layers/db-postgres/files/src/__solutionName.dot__.Data.Postgres/PostgresErrors.cs +57 -0
- package/templates/layers/db-postgres/files/src/__solutionName.dot__.Data.Postgres/PostgresMigrator.cs +171 -0
- package/templates/layers/db-postgres/files/src/__solutionName.dot__.Data.Postgres/PostgresOptions.cs +92 -0
- package/templates/layers/db-postgres/files/src/__solutionName.dot__.Data.Postgres/__solutionName.dot__.Data.Postgres.csproj +25 -0
- package/templates/layers/db-postgres/files/src/__solutionName.snake__/db/postgres.py +256 -0
- package/templates/layers/db-postgres/files/src/__solutionName.snake__/db/postgres_config.py +81 -0
- package/templates/layers/db-postgres/files/src/__solutionName.snake__/db/postgres_errors.py +48 -0
- package/templates/layers/db-postgres/files/src/__solutionName.snake__/db/postgres_migrate.py +132 -0
- package/templates/layers/db-postgres/files/src/db/postgres/config.ts +86 -0
- package/templates/layers/db-postgres/files/src/db/postgres/database.ts +109 -0
- package/templates/layers/db-postgres/files/src/db/postgres/errors.ts +48 -0
- package/templates/layers/db-postgres/files/src/db/postgres/index.ts +16 -0
- package/templates/layers/db-postgres/files/src/db/postgres/migrate.cli.ts +11 -0
- package/templates/layers/db-postgres/files/src/db/postgres/migrate.ts +134 -0
- package/templates/layers/db-postgres/files/src/db/postgres/repository.ts +159 -0
- package/templates/layers/db-sqlite/blueprint.yaml +147 -0
- package/templates/layers/db-sqlite/files/.env.sqlite.example +20 -0
- package/templates/layers/db-sqlite/files/.gitignore.sqlite +5 -0
- package/templates/layers/db-sqlite/files/Directory.Packages.props +6 -0
- package/templates/layers/db-sqlite/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/db-sqlite/files/docs/db/sqlite.md +91 -0
- package/templates/layers/db-sqlite/files/go.mod +1 -0
- package/templates/layers/db-sqlite/files/internal/db/sqlite/health.go +39 -0
- package/templates/layers/db-sqlite/files/internal/db/sqlite/migrate.go +106 -0
- package/templates/layers/db-sqlite/files/internal/db/sqlite/settings.go +103 -0
- package/templates/layers/db-sqlite/files/internal/db/sqlite/sqlite.go +78 -0
- package/templates/layers/db-sqlite/files/internal/db/sqlite/sqlite_test.go +94 -0
- package/templates/layers/db-sqlite/files/migrations/0001_init.sql +11 -0
- package/templates/layers/db-sqlite/files/package.json +8 -0
- package/templates/layers/db-sqlite/files/pyproject.toml +2 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.dot__.Persistence.Sqlite/SqliteConnectionFactory.cs +67 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.dot__.Persistence.Sqlite/SqliteHealth.cs +37 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.dot__.Persistence.Sqlite/SqliteMigrator.cs +99 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.dot__.Persistence.Sqlite/SqliteOptions.cs +81 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.dot__.Persistence.Sqlite/__solutionName.dot__.Persistence.Sqlite.csproj +18 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.snake__/db/sqlite/connection.py +49 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.snake__/db/sqlite/health.py +36 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.snake__/db/sqlite/migrate.py +58 -0
- package/templates/layers/db-sqlite/files/src/__solutionName.snake__/db/sqlite/settings.py +68 -0
- package/templates/layers/db-sqlite/files/src/db/sqlite/cli.ts +38 -0
- package/templates/layers/db-sqlite/files/src/db/sqlite/client.ts +45 -0
- package/templates/layers/db-sqlite/files/src/db/sqlite/health.ts +30 -0
- package/templates/layers/db-sqlite/files/src/db/sqlite/index.ts +8 -0
- package/templates/layers/db-sqlite/files/src/db/sqlite/migrate.ts +51 -0
- package/templates/layers/db-sqlite/files/src/db/sqlite/settings.ts +75 -0
- package/templates/layers/db-sqlite/files/tests/test_db_sqlite.py +50 -0
- package/templates/layers/devcontainer/blueprint.yaml +130 -0
- package/templates/layers/devcontainer/files/.devcontainer/devcontainer.json +61 -0
- package/templates/layers/devcontainer/files/.devcontainer/post-create.sh +29 -0
- package/templates/layers/devcontainer/files/.devcontainer/setup-dotnet.sh +19 -0
- package/templates/layers/devcontainer/files/.devcontainer/setup-go.sh +13 -0
- package/templates/layers/devcontainer/files/.devcontainer/setup-node.sh +29 -0
- package/templates/layers/devcontainer/files/.devcontainer/setup-python.sh +32 -0
- package/templates/layers/devcontainer/files/docs/devcontainer.md +75 -0
- package/templates/layers/docker/blueprint.yaml +168 -0
- package/templates/layers/docker/files/.dockerignore +80 -0
- package/templates/layers/docker/files/.env.docker.example +17 -0
- package/templates/layers/docker/files/Dockerfile.dotnet +38 -0
- package/templates/layers/docker/files/Dockerfile.go +40 -0
- package/templates/layers/docker/files/Dockerfile.nextjs +42 -0
- package/templates/layers/docker/files/Dockerfile.nodejs +46 -0
- package/templates/layers/docker/files/Dockerfile.python +52 -0
- package/templates/layers/docker/files/Dockerfile.spa +30 -0
- package/templates/layers/docker/files/compose.yaml +35 -0
- package/templates/layers/docker/files/docker/nginx.conf +44 -0
- package/templates/layers/docker/files/docs/docker.md +115 -0
- package/templates/layers/docker/files/next.config.ts +11 -0
- package/templates/layers/docker-compose/blueprint.yaml +118 -0
- package/templates/layers/docker-compose/files/.env.compose.example +66 -0
- package/templates/layers/docker-compose/files/compose/cache-none.yml +3 -0
- package/templates/layers/docker-compose/files/compose/cache-redis.yml +28 -0
- package/templates/layers/docker-compose/files/compose/cache-valkey.yml +27 -0
- package/templates/layers/docker-compose/files/compose/db-mongo.yml +27 -0
- package/templates/layers/docker-compose/files/compose/db-mysql.yml +31 -0
- package/templates/layers/docker-compose/files/compose/db-none.yml +4 -0
- package/templates/layers/docker-compose/files/compose/db-postgres.yml +28 -0
- package/templates/layers/docker-compose/files/compose/queue-kafka.yml +35 -0
- package/templates/layers/docker-compose/files/compose/queue-nats.yml +26 -0
- package/templates/layers/docker-compose/files/compose/queue-none.yml +3 -0
- package/templates/layers/docker-compose/files/compose/queue-rabbitmq.yml +27 -0
- package/templates/layers/docker-compose/files/docker-compose.yml +20 -0
- package/templates/layers/docker-compose/files/docs/local-stack.md +135 -0
- package/templates/layers/evals/blueprint.yaml +211 -0
- package/templates/layers/evals/files/.github/workflows/evals-node.yml +55 -0
- package/templates/layers/evals/files/.github/workflows/evals-python.yml +54 -0
- package/templates/layers/evals/files/docs/evals.md +68 -0
- package/templates/layers/evals/files/evals/README.md +73 -0
- package/templates/layers/evals/files/evals/assertions.py +56 -0
- package/templates/layers/evals/files/evals/assertions.ts +66 -0
- package/templates/layers/evals/files/evals/budget.py +55 -0
- package/templates/layers/evals/files/evals/budget.ts +61 -0
- package/templates/layers/evals/files/evals/cli.ts +76 -0
- package/templates/layers/evals/files/evals/config.py +83 -0
- package/templates/layers/evals/files/evals/config.ts +77 -0
- package/templates/layers/evals/files/evals/dataset.py +90 -0
- package/templates/layers/evals/files/evals/dataset.ts +101 -0
- package/templates/layers/evals/files/evals/datasets/case.schema.json +67 -0
- package/templates/layers/evals/files/evals/datasets/golden.jsonl +4 -0
- package/templates/layers/evals/files/evals/run.py +85 -0
- package/templates/layers/evals/files/evals/runner.py +114 -0
- package/templates/layers/evals/files/evals/runner.ts +125 -0
- package/templates/layers/evals/files/evals/target.ts +95 -0
- package/templates/layers/evals/files/evals/targets.py +103 -0
- package/templates/layers/evals/files/evals/tracing.py +49 -0
- package/templates/layers/evals/files/evals/tracing.ts +31 -0
- package/templates/layers/evals/files/evals/tsconfig.json +15 -0
- package/templates/layers/health-checks/blueprint.yaml +170 -0
- package/templates/layers/health-checks/files/.env.health.example +23 -0
- package/templates/layers/health-checks/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/health-checks/files/docs/health-checks.md +200 -0
- package/templates/layers/health-checks/files/internal/health/config.go +96 -0
- package/templates/layers/health-checks/files/internal/health/health.go +113 -0
- package/templates/layers/health-checks/files/internal/health/health_test.go +102 -0
- package/templates/layers/health-checks/files/internal/health/http.go +56 -0
- package/templates/layers/health-checks/files/internal/health/probes.go +88 -0
- package/templates/layers/health-checks/files/internal/health/runner.go +100 -0
- package/templates/layers/health-checks/files/package.json +5 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/DependencyProbeOptions.cs +26 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/HealthEndpointExtensions.cs +34 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/HealthOptions.cs +25 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/HealthProbeResponder.cs +121 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/HealthServiceCollectionExtensions.cs +51 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/HealthTags.cs +10 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/HttpDependencyHealthCheck.cs +44 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/TcpDependencyHealthCheck.cs +36 -0
- package/templates/layers/health-checks/files/src/__solutionName.dot__.Health/__solutionName.dot__.Health.csproj +15 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/__init__.py +28 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/models.py +48 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/probes.py +82 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/register.py +15 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/registry.py +24 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/router.py +52 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/runner.py +94 -0
- package/templates/layers/health-checks/files/src/__solutionName.snake__/health/settings.py +33 -0
- package/templates/layers/health-checks/files/src/app/health/live/route.ts +11 -0
- package/templates/layers/health-checks/files/src/app/health/ready/route.ts +10 -0
- package/templates/layers/health-checks/files/src/app/health/startup/route.ts +10 -0
- package/templates/layers/health-checks/files/src/health/__tests__/health.test.ts +66 -0
- package/templates/layers/health-checks/files/src/health/config.ts +62 -0
- package/templates/layers/health-checks/files/src/health/handler.ts +50 -0
- package/templates/layers/health-checks/files/src/health/index.ts +20 -0
- package/templates/layers/health-checks/files/src/health/node/http.ts +26 -0
- package/templates/layers/health-checks/files/src/health/node/tcp.ts +36 -0
- package/templates/layers/health-checks/files/src/health/probes.ts +61 -0
- package/templates/layers/health-checks/files/src/health/register.ts +15 -0
- package/templates/layers/health-checks/files/src/health/registry.ts +27 -0
- package/templates/layers/health-checks/files/src/health/runner.ts +76 -0
- package/templates/layers/health-checks/files/src/health/types.ts +39 -0
- package/templates/layers/health-checks/files/tests/__init__.py +1 -0
- package/templates/layers/health-checks/files/tests/test_health.py +51 -0
- package/templates/layers/lint-format/blueprint.yaml +178 -0
- package/templates/layers/lint-format/files/.editorconfig +87 -0
- package/templates/layers/lint-format/files/.golangci.yml +34 -0
- package/templates/layers/lint-format/files/.prettierignore +20 -0
- package/templates/layers/lint-format/files/.prettierrc.json +11 -0
- package/templates/layers/lint-format/files/docs/lint-format.md +111 -0
- package/templates/layers/lint-format/files/eslint.config.mjs +43 -0
- package/templates/layers/lint-format/files/package.json +9 -0
- package/templates/layers/lint-format/files/ruff.toml +25 -0
- package/templates/layers/observability-otel/blueprint.yaml +212 -0
- package/templates/layers/observability-otel/files/.env.otel.example +30 -0
- package/templates/layers/observability-otel/files/Directory.Packages.props +8 -0
- package/templates/layers/observability-otel/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/observability-otel/files/docker-compose.otel.yml +16 -0
- package/templates/layers/observability-otel/files/docs/observability.md +224 -0
- package/templates/layers/observability-otel/files/go.mod +7 -0
- package/templates/layers/observability-otel/files/internal/telemetry/config.go +122 -0
- package/templates/layers/observability-otel/files/internal/telemetry/http.go +33 -0
- package/templates/layers/observability-otel/files/internal/telemetry/logging.go +84 -0
- package/templates/layers/observability-otel/files/internal/telemetry/provider.go +77 -0
- package/templates/layers/observability-otel/files/otel-collector-config.yaml +47 -0
- package/templates/layers/observability-otel/files/package.json +15 -0
- package/templates/layers/observability-otel/files/pyproject.toml +2 -0
- package/templates/layers/observability-otel/files/src/__solutionName.dot__.Observability/ObservabilityExtensions.cs +81 -0
- package/templates/layers/observability-otel/files/src/__solutionName.dot__.Observability/ObservabilityOptions.cs +37 -0
- package/templates/layers/observability-otel/files/src/__solutionName.dot__.Observability/__solutionName.dot__.Observability.csproj +25 -0
- package/templates/layers/observability-otel/files/src/__solutionName.snake__/otel/__init__.py +15 -0
- package/templates/layers/observability-otel/files/src/__solutionName.snake__/otel/config.py +99 -0
- package/templates/layers/observability-otel/files/src/__solutionName.snake__/otel/log.py +86 -0
- package/templates/layers/observability-otel/files/src/__solutionName.snake__/otel/setup.py +124 -0
- package/templates/layers/observability-otel/files/src/instrumentation.ts +9 -0
- package/templates/layers/observability-otel/files/src/otel/config.ts +83 -0
- package/templates/layers/observability-otel/files/src/otel/logger.ts +46 -0
- package/templates/layers/observability-otel/files/src/otel/register.ts +5 -0
- package/templates/layers/observability-otel/files/src/otel/sdk.ts +73 -0
- package/templates/layers/queue-broker/blueprint.yaml +194 -0
- package/templates/layers/queue-broker/files/.env.queue.example +35 -0
- package/templates/layers/queue-broker/files/Directory.Packages.props +7 -0
- package/templates/layers/queue-broker/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/queue-broker/files/cmd/worker/main.go +34 -0
- package/templates/layers/queue-broker/files/docker-compose.queue-rabbitmq.yml +26 -0
- package/templates/layers/queue-broker/files/docker-compose.queue-redis.yml +23 -0
- package/templates/layers/queue-broker/files/docs/queue-asynq.md +71 -0
- package/templates/layers/queue-broker/files/docs/queue-bullmq.md +62 -0
- package/templates/layers/queue-broker/files/docs/queue-celery.md +58 -0
- package/templates/layers/queue-broker/files/docs/queue-masstransit.md +84 -0
- package/templates/layers/queue-broker/files/go.mod +2 -0
- package/templates/layers/queue-broker/files/internal/queue/client.go +57 -0
- package/templates/layers/queue-broker/files/internal/queue/config.go +109 -0
- package/templates/layers/queue-broker/files/internal/queue/config_test.go +38 -0
- package/templates/layers/queue-broker/files/internal/queue/handlers.go +33 -0
- package/templates/layers/queue-broker/files/internal/queue/server.go +29 -0
- package/templates/layers/queue-broker/files/internal/queue/tasks.go +11 -0
- package/templates/layers/queue-broker/files/package.json +6 -0
- package/templates/layers/queue-broker/files/pyproject.toml +2 -0
- package/templates/layers/queue-broker/files/src/__solutionName.dot__.Queue/Consumers/WelcomeEmailRequestedConsumer.cs +24 -0
- package/templates/layers/queue-broker/files/src/__solutionName.dot__.Queue/Contracts/WelcomeEmailRequested.cs +7 -0
- package/templates/layers/queue-broker/files/src/__solutionName.dot__.Queue/IJobPublisher.cs +11 -0
- package/templates/layers/queue-broker/files/src/__solutionName.dot__.Queue/JobPublisher.cs +10 -0
- package/templates/layers/queue-broker/files/src/__solutionName.dot__.Queue/QueueOptions.cs +32 -0
- package/templates/layers/queue-broker/files/src/__solutionName.dot__.Queue/QueueServiceCollectionExtensions.cs +60 -0
- package/templates/layers/queue-broker/files/src/__solutionName.dot__.Queue/__solutionName.dot__.Queue.csproj +21 -0
- package/templates/layers/queue-broker/files/src/__solutionName.snake__/queue/__init__.py +12 -0
- package/templates/layers/queue-broker/files/src/__solutionName.snake__/queue/app.py +35 -0
- package/templates/layers/queue-broker/files/src/__solutionName.snake__/queue/config.py +90 -0
- package/templates/layers/queue-broker/files/src/__solutionName.snake__/queue/producer.py +10 -0
- package/templates/layers/queue-broker/files/src/__solutionName.snake__/queue/tasks.py +31 -0
- package/templates/layers/queue-broker/files/src/queue/config.ts +60 -0
- package/templates/layers/queue-broker/files/src/queue/connection.ts +19 -0
- package/templates/layers/queue-broker/files/src/queue/handlers.ts +22 -0
- package/templates/layers/queue-broker/files/src/queue/index.ts +8 -0
- package/templates/layers/queue-broker/files/src/queue/jobs.ts +15 -0
- package/templates/layers/queue-broker/files/src/queue/producer.ts +39 -0
- package/templates/layers/queue-broker/files/src/queue/worker.cli.ts +32 -0
- package/templates/layers/queue-broker/files/src/queue/worker.ts +28 -0
- package/templates/layers/queue-broker/files/tests/test_queue_config.py +37 -0
- package/templates/layers/release-automation/blueprint.yaml +205 -0
- package/templates/layers/release-automation/files/.changeset/README.md +31 -0
- package/templates/layers/release-automation/files/.changeset/config.json +12 -0
- package/templates/layers/release-automation/files/.githooks/commit-msg +32 -0
- package/templates/layers/release-automation/files/.github/workflows/commit-conventions.yml +45 -0
- package/templates/layers/release-automation/files/.github/workflows/release-changesets.yml +68 -0
- package/templates/layers/release-automation/files/.github/workflows/release-dotnet.yml +90 -0
- package/templates/layers/release-automation/files/.github/workflows/release-go.yml +89 -0
- package/templates/layers/release-automation/files/.github/workflows/release-monorepo.yml +40 -0
- package/templates/layers/release-automation/files/.github/workflows/release-node.yml +85 -0
- package/templates/layers/release-automation/files/.github/workflows/release-python.yml +68 -0
- package/templates/layers/release-automation/files/.release-please-manifest.json +3 -0
- package/templates/layers/release-automation/files/docs/release-automation.md +154 -0
- package/templates/layers/release-automation/files/release-please-config.json +22 -0
- package/templates/layers/security-supply-chain/blueprint.yaml +208 -0
- package/templates/layers/security-supply-chain/files/.githooks/pre-commit +17 -0
- package/templates/layers/security-supply-chain/files/.github/dependabot.yml +30 -0
- package/templates/layers/security-supply-chain/files/.github/workflows/codeql.yml +54 -0
- package/templates/layers/security-supply-chain/files/.github/workflows/dependency-review.yml +35 -0
- package/templates/layers/security-supply-chain/files/.github/workflows/sbom.yml +56 -0
- package/templates/layers/security-supply-chain/files/.github/workflows/scorecard.yml +51 -0
- package/templates/layers/security-supply-chain/files/.github/workflows/secret-scan.yml +62 -0
- package/templates/layers/security-supply-chain/files/.gitleaks.toml +42 -0
- package/templates/layers/security-supply-chain/files/SECURITY.md +36 -0
- package/templates/layers/security-supply-chain/files/docs/security-supply-chain.md +124 -0
- package/templates/layers/security-supply-chain/files/npmrc +13 -0
- package/templates/layers/security-supply-chain/files/renovate.json +26 -0
- package/templates/layers/testing-e2e/blueprint.yaml +199 -0
- package/templates/layers/testing-e2e/files/.env.e2e.example +32 -0
- package/templates/layers/testing-e2e/files/Directory.Packages.props +7 -0
- package/templates/layers/testing-e2e/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/testing-e2e/files/docs/testing-e2e.md +106 -0
- package/templates/layers/testing-e2e/files/e2e/api/contract.spec.ts +37 -0
- package/templates/layers/testing-e2e/files/e2e/api/health.spec.ts +29 -0
- package/templates/layers/testing-e2e/files/e2e/browser/app.spec.ts +27 -0
- package/templates/layers/testing-e2e/files/e2e/browser/navigation.spec.ts +26 -0
- package/templates/layers/testing-e2e/files/e2e/config.ts +85 -0
- package/templates/layers/testing-e2e/files/e2e/support.ts +20 -0
- package/templates/layers/testing-e2e/files/package.json +8 -0
- package/templates/layers/testing-e2e/files/playwright.config.ts +44 -0
- package/templates/layers/testing-e2e/files/test/e2e/config.go +71 -0
- package/templates/layers/testing-e2e/files/test/e2e/contract_test.go +65 -0
- package/templates/layers/testing-e2e/files/test/e2e/health_test.go +71 -0
- package/templates/layers/testing-e2e/files/tests/__solutionName.dot__.E2E/ApiContractTests.cs +51 -0
- package/templates/layers/testing-e2e/files/tests/__solutionName.dot__.E2E/DeploymentFixture.cs +44 -0
- package/templates/layers/testing-e2e/files/tests/__solutionName.dot__.E2E/E2eSettings.cs +26 -0
- package/templates/layers/testing-e2e/files/tests/__solutionName.dot__.E2E/HealthContractTests.cs +42 -0
- package/templates/layers/testing-e2e/files/tests/__solutionName.dot__.E2E/__solutionName.dot__.E2E.csproj +23 -0
- package/templates/layers/testing-e2e/files/tests/e2e/conftest.py +52 -0
- package/templates/layers/testing-e2e/files/tests/e2e/e2e_config.py +47 -0
- package/templates/layers/testing-e2e/files/tests/e2e/test_api_contract.py +35 -0
- package/templates/layers/testing-e2e/files/tests/e2e/test_health_contract.py +28 -0
- package/templates/layers/testing-unit/blueprint.yaml +161 -0
- package/templates/layers/testing-unit/files/.coveragerc +12 -0
- package/templates/layers/testing-unit/files/Directory.Packages.props +9 -0
- package/templates/layers/testing-unit/files/__solutionName.dot__.slnx +5 -0
- package/templates/layers/testing-unit/files/docs/testing.md +90 -0
- package/templates/layers/testing-unit/files/internal/testsupport/clock.go +89 -0
- package/templates/layers/testing-unit/files/internal/testsupport/clock_test.go +132 -0
- package/templates/layers/testing-unit/files/internal/testsupport/recorder.go +41 -0
- package/templates/layers/testing-unit/files/package.json +10 -0
- package/templates/layers/testing-unit/files/pyproject.toml +2 -0
- package/templates/layers/testing-unit/files/pytest.ini +16 -0
- package/templates/layers/testing-unit/files/tests/__solutionName.dot__.Tests/Recorder.cs +66 -0
- package/templates/layers/testing-unit/files/tests/__solutionName.dot__.Tests/RecorderTests.cs +90 -0
- package/templates/layers/testing-unit/files/tests/__solutionName.dot__.Tests/__solutionName.dot__.Tests.csproj +32 -0
- package/templates/layers/testing-unit/files/tests/__solutionName.dot__.Tests/coverlet.runsettings +17 -0
- package/templates/layers/testing-unit/files/tests/conftest.py +17 -0
- package/templates/layers/testing-unit/files/tests/support/clock.ts +81 -0
- package/templates/layers/testing-unit/files/tests/support/index.ts +2 -0
- package/templates/layers/testing-unit/files/tests/support/recorder.ts +21 -0
- package/templates/layers/testing-unit/files/tests/support.py +78 -0
- package/templates/layers/testing-unit/files/tests/support.test.ts +87 -0
- package/templates/layers/testing-unit/files/tests/test_support.py +85 -0
- package/templates/layers/testing-unit/files/vitest.config.ts +52 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Measurement sources
|
|
2
|
+
|
|
3
|
+
A budget is only as real as the thing that measures it. This file covers what each source can tell you, what it cannot, and how much to trust a number from it.
|
|
4
|
+
|
|
5
|
+
**The rule:** every declared budget names its source and its enforcement point. Without both, it is a wish — it cannot be exceeded, so it cannot be enforced, and it will be discovered as broken by a user.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Field data (real users)
|
|
10
|
+
|
|
11
|
+
**What it is:** metrics collected from actual sessions on actual devices and networks.
|
|
12
|
+
|
|
13
|
+
**Tells you:** the truth, at a percentile, across the real distribution of hardware, connections, and usage.
|
|
14
|
+
|
|
15
|
+
**Cannot tell you:** why. It reports that the 95th percentile got worse without pointing at a line of code. It also lags — you learn about a regression after users experience it.
|
|
16
|
+
|
|
17
|
+
**Trust:** highest for *whether* a budget is met. This is the only source that can settle a web-vitals budget.
|
|
18
|
+
|
|
19
|
+
**Watch:** segment by device class, connection, and geography before comparing periods, or a shift in traffic mix reads as a performance change. Sample size matters at the tail — a p99 over a few hundred sessions is noise.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Lab / synthetic runs
|
|
24
|
+
|
|
25
|
+
**What it is:** scripted runs against a controlled environment, usually in CI.
|
|
26
|
+
|
|
27
|
+
**Tells you:** deterministic causes, and regression *direction* between two commits. Provides traces and attribution — which resource, which task, which script.
|
|
28
|
+
|
|
29
|
+
**Cannot tell you:** what real users experience. A lab number is systematically different from a field percentile and is not the budget.
|
|
30
|
+
|
|
31
|
+
**Trust:** high for detecting a regression early, low as a statement about users.
|
|
32
|
+
|
|
33
|
+
**Watch:** run-to-run variance on shared CI runners is often large enough to swamp a real regression. Use multiple runs and a median; treat a single run's delta as a hint, not a result. Keep the environment fixed — a runner-size change invalidates every historical comparison.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Build-time size analysis
|
|
38
|
+
|
|
39
|
+
**What it is:** the bundler's own output — per entry point, per chunk, per module.
|
|
40
|
+
|
|
41
|
+
**Tells you:** exact bytes, exact attribution, deterministically. The best-behaved measurement in this document.
|
|
42
|
+
|
|
43
|
+
**Cannot tell you:** parse or execute cost on a real device, or whether the bytes are on a critical path.
|
|
44
|
+
|
|
45
|
+
**Trust:** very high, and cheap enough to enforce on every change.
|
|
46
|
+
|
|
47
|
+
**Watch:** compare like with like — same build mode, same flags. Report compressed and uncompressed; compression hides parse cost, which is the expensive part on mid-range hardware.
|
|
48
|
+
|
|
49
|
+
**Enforcement:** a size check that fails the build is the single highest-leverage performance control available, because it catches the erosion nobody notices.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Production telemetry (server-side)
|
|
54
|
+
|
|
55
|
+
**What it is:** latency, throughput, and error metrics emitted by the running service.
|
|
56
|
+
|
|
57
|
+
**Tells you:** real p50/p95/p99 under real load, per endpoint, over time.
|
|
58
|
+
|
|
59
|
+
**Cannot tell you:** client-perceived time — it excludes network, and it excludes rendering.
|
|
60
|
+
|
|
61
|
+
**Trust:** highest for backend budgets.
|
|
62
|
+
|
|
63
|
+
**Watch — the two mistakes:**
|
|
64
|
+
|
|
65
|
+
1. **Averaging percentiles.** You cannot mean the p99s of ten instances to get a fleet p99. That number is not the 99th percentile of anything. Aggregate from the underlying histogram, or report per-instance.
|
|
66
|
+
2. **Pre-aggregated buckets.** If your histogram's buckets are coarse near the tail, your p99 is an interpolation with error bars nobody shows you. Check bucket resolution before treating a small p99 delta as real.
|
|
67
|
+
|
|
68
|
+
Also: measurement window length changes the number. A p99 over one minute and a p99 over one day are different statistics.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Distributed traces
|
|
73
|
+
|
|
74
|
+
**What it is:** per-request timing across service boundaries.
|
|
75
|
+
|
|
76
|
+
**Tells you:** *where* the time went — which downstream call, how many were made, what was serial that could be parallel.
|
|
77
|
+
|
|
78
|
+
**Cannot tell you:** aggregate budget compliance, unless sampled well. Head-based sampling at a low rate systematically misses the tail, which is exactly what you are trying to see.
|
|
79
|
+
|
|
80
|
+
**Trust:** high for diagnosis, low for budget verification unless tail-based sampling is in place.
|
|
81
|
+
|
|
82
|
+
**Best use:** answering "why did p99 move" after telemetry says it moved. This is the source that reveals fan-out — the count of downstream calls per request, which is the variable most often unbounded.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Database statistics
|
|
87
|
+
|
|
88
|
+
**What it is:** the database's own query statistics and execution plans.
|
|
89
|
+
|
|
90
|
+
**Tells you:** which query shapes cost the most, rows examined versus returned, whether an index is used.
|
|
91
|
+
|
|
92
|
+
**Cannot tell you:** the impact on any specific endpoint, or behavior under concurrency you have not reproduced.
|
|
93
|
+
|
|
94
|
+
**Trust:** high for query-level facts; a plan from a small dev dataset is not evidence about production.
|
|
95
|
+
|
|
96
|
+
**Watch:** plans change with data volume and statistics freshness. A query that scans acceptably at ten thousand rows may not at ten million, and dev environments almost never have production cardinality.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Local benchmarks / microbenchmarks
|
|
101
|
+
|
|
102
|
+
**Tells you:** relative cost of two implementations of the same thing.
|
|
103
|
+
|
|
104
|
+
**Cannot tell you:** anything about production. The compiler optimizes differently in isolation, caches are warm, there is no contention, and the input is not representative.
|
|
105
|
+
|
|
106
|
+
**Trust:** low for budgets, moderate for a directional comparison you run yourself.
|
|
107
|
+
|
|
108
|
+
**Never** use a microbenchmark result as a budget verdict. It is an argument for a change, not evidence of one.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Reading the diff (no measurement)
|
|
113
|
+
|
|
114
|
+
**Tells you:** that a regression is *likely* — an unbounded query, a new eager import, a loop with a network call.
|
|
115
|
+
|
|
116
|
+
**Cannot tell you:** magnitude. It is a hypothesis.
|
|
117
|
+
|
|
118
|
+
**Trust:** 🔴. Always. Report it as an estimate, name it as an estimate, and ask for a measurement.
|
|
119
|
+
|
|
120
|
+
This is legitimate and useful output when no measurement source exists — "this adds a query inside a loop over an unbounded collection" is worth saying without a number. What is not legitimate is presenting it as a PASS or FAIL against a budget.
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Comparing before and after
|
|
125
|
+
|
|
126
|
+
Most regression reports are wrong because the two numbers are not comparable. Before trusting a delta:
|
|
127
|
+
|
|
128
|
+
- [ ] Same source for both numbers
|
|
129
|
+
- [ ] Same conditions — device class, network, dataset size, concurrency, build mode
|
|
130
|
+
- [ ] Same measurement window and same aggregation method
|
|
131
|
+
- [ ] Enough samples that the delta exceeds this source's normal variance
|
|
132
|
+
- [ ] The "before" is the merge base, not an older release with unrelated changes in it
|
|
133
|
+
- [ ] The change is the only variable — no dependency bump, no runner change, no traffic-mix shift in the same window
|
|
134
|
+
|
|
135
|
+
Any unchecked box downgrades the finding to 🟡 and must be stated in the report.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Enforcement points
|
|
140
|
+
|
|
141
|
+
Where a budget is checked determines whether it survives.
|
|
142
|
+
|
|
143
|
+
| Point | Catches | Cost of failing | Suitable for |
|
|
144
|
+
|---|---|---|---|
|
|
145
|
+
| Pre-commit / local | erosion, immediately | seconds | bundle size, lint-level checks |
|
|
146
|
+
| CI on every change | regressions before merge | minutes | bundle size, lab vitals, benchmark deltas |
|
|
147
|
+
| Pre-deploy gate | regressions before users | a blocked release | load test results, integration latency |
|
|
148
|
+
| Production alert | real degradation | user impact already occurred | field vitals, latency percentiles, saturation |
|
|
149
|
+
| Periodic review | slow drift | nothing is prevented | trend analysis only |
|
|
150
|
+
|
|
151
|
+
**A budget with no automated enforcement point does not hold.** It depends on someone remembering, under deadline, to check a number — and that reliably stops happening within weeks. If a budget cannot be automated today, declare it anyway *and* mark it unenforced, so nobody mistakes it for a control.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Confidence tagging
|
|
156
|
+
|
|
157
|
+
Use these consistently in every report:
|
|
158
|
+
|
|
159
|
+
- 🟢 — measured on both sides, same source, same conditions, variance accounted for
|
|
160
|
+
- 🟡 — measured, but conditions differ or sample size is thin; state which
|
|
161
|
+
- 🔴 — estimated from reading the change; no measurement exists
|
|
162
|
+
|
|
163
|
+
Never upgrade a tag to make a report look decisive. A 🔴 estimate honestly labeled is useful; a 🟢 that was never measured destroys trust in every future check.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
id: perf-budget
|
|
2
|
+
kind: skill
|
|
3
|
+
name: Performance Budget Check
|
|
4
|
+
description: Check a change against budgets declared in project config — web vitals, bundle size, backend latency percentiles — and reject any budget with no measurement source.
|
|
5
|
+
tags: [performance, budgets, web-vitals, latency]
|
|
6
|
+
targets: [claude-code, cursor, github-copilot, windsurf, cline, codex, gemini-cli, agents-md]
|
|
7
|
+
requiresCapability: [instructions]
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-review
|
|
3
|
+
description: "OWASP-oriented security review of a diff. Use when the user says security review, is this safe, check for vulnerabilities, review before merge, did I leak a secret, injection, SSRF, authz — or when a diff touches auth, input handling, file paths, outbound requests, deserialization, or dependencies. Reports findings with severity; never auto-fixes."
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: security
|
|
7
|
+
updated: 2026-07-18
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Security Review
|
|
11
|
+
|
|
12
|
+
You are an application security reviewer. Your goal is a findings report a developer can act on: what, where, why it is exploitable, and how severe — with no false confidence and no silent edits.
|
|
13
|
+
|
|
14
|
+
**You never auto-fix.** A security fix changes a trust decision, and a wrong one creates a worse hole while marking the ticket done. Report; let a human decide.
|
|
15
|
+
|
|
16
|
+
## Before Starting
|
|
17
|
+
|
|
18
|
+
Read `AGENTS.md` for `security[]` (the repo's declared security rules) and `protectedPaths[]`. Then establish the **trust model** for the diff, because almost every finding depends on it:
|
|
19
|
+
|
|
20
|
+
- Where does data enter? Public internet, authenticated user, internal service, operator, or the repo itself?
|
|
21
|
+
- What identity is the code running as, and what can it reach?
|
|
22
|
+
- Which boundary is this code on — edge, service, or storage?
|
|
23
|
+
|
|
24
|
+
If you cannot establish the trust model, say so. "This is safe if `orgId` is server-derived, and a vertical-privilege bug if it comes from the request body" is a legitimate and useful finding.
|
|
25
|
+
|
|
26
|
+
## How This Skill Works
|
|
27
|
+
|
|
28
|
+
**Mode 1 — Review a diff.** Default. Only what the change introduces or touches. Pre-existing issues go in a separate section, unmarked as blocking.
|
|
29
|
+
|
|
30
|
+
**Mode 2 — Review a surface.** A whole area (auth, uploads, the public API). Broader, slower, produces an inventory rather than a verdict.
|
|
31
|
+
|
|
32
|
+
**Mode 3 — Triage a specific worry.** "Is this SSRF?" Answer one question with an exploit path or a clear "no, because".
|
|
33
|
+
|
|
34
|
+
## Pass order
|
|
35
|
+
|
|
36
|
+
Cheapest and highest-yield first. Full per-category grep targets and diff signatures in [references/owasp-checklist.md](references/owasp-checklist.md).
|
|
37
|
+
|
|
38
|
+
1. **Secrets** — anything credential-shaped in the diff or its history. Highest severity, cheapest check. Patterns in [references/secret-patterns.md](references/secret-patterns.md).
|
|
39
|
+
2. **Authorization** — the most common serious finding in real reviews.
|
|
40
|
+
3. **Injection** — every place data crosses into an interpreter.
|
|
41
|
+
4. **Untrusted-input handling** — deserialization, file paths, uploads, redirects, outbound URLs.
|
|
42
|
+
5. **Crypto, sessions, and configuration** — algorithms, token handling, defaults, headers.
|
|
43
|
+
6. **Dependencies** — new or bumped packages.
|
|
44
|
+
7. **Logging and error handling** — what leaks in output, what is missing for detection.
|
|
45
|
+
|
|
46
|
+
## Authn vs authz — keep them distinct
|
|
47
|
+
|
|
48
|
+
The confusion causes real breaches, so name them separately.
|
|
49
|
+
|
|
50
|
+
- **Authentication** — *who are you?* Failures: weak or missing verification, forgeable tokens, unverified signature, algorithm confusion, session fixation.
|
|
51
|
+
- **Authorization** — *are you allowed to do this, to this object?* Failures: missing check, check in the wrong place, client-supplied identity.
|
|
52
|
+
|
|
53
|
+
"The endpoint requires a login" answers authn. It says nothing about whether user A can read user B's record. **Every authenticated endpoint still needs an authorization check**, and object-level checks are the ones most often missing.
|
|
54
|
+
|
|
55
|
+
The four questions for any handler in the diff:
|
|
56
|
+
|
|
57
|
+
1. Is there an authz check at all?
|
|
58
|
+
2. Is it **object-level** — does it verify *this* actor may touch *this* record — or only role-level?
|
|
59
|
+
3. Is the actor identity **server-derived** (from the session/token) or read from a request parameter? Client-supplied identity is the bug.
|
|
60
|
+
4. Is the check enforced **server-side**, on every path to the resource — including bulk endpoints, exports, search, and admin routes?
|
|
61
|
+
|
|
62
|
+
A missing object-level check is high severity by default, even when the id looks unguessable. Unguessable is not a control.
|
|
63
|
+
|
|
64
|
+
## Injection
|
|
65
|
+
|
|
66
|
+
Anywhere a value crosses into an interpreter: SQL, NoSQL query objects, shell, ORM raw fragments, template engines, LDAP, XPath, header values, log lines, HTML.
|
|
67
|
+
|
|
68
|
+
The only reliable question: **is the untrusted value data, or is it becoming code/structure?** Parameterization keeps it data. Escaping is a fallback that depends on getting the context right, and mixed contexts (a value inside a script tag inside HTML) are where escaping fails.
|
|
69
|
+
|
|
70
|
+
Concatenation into a query, command, or template with any untrusted component is a finding. Do not accept "it's validated upstream" without seeing the validation in the diff — and even then, note the coupling.
|
|
71
|
+
|
|
72
|
+
## SSRF and outbound requests
|
|
73
|
+
|
|
74
|
+
Any request whose **destination** is influenced by input. Webhooks, URL previews, importers, PDF renderers, image fetchers, "callback URL" fields.
|
|
75
|
+
|
|
76
|
+
Look for: user-controlled host, scheme, or port; redirect following; DNS names resolving to internal ranges; metadata endpoints; `file://` and other non-HTTP schemes; blocklists (which fail) rather than allowlists (which work). Validating the URL *before* the request but following redirects afterwards is the classic bypass.
|
|
77
|
+
|
|
78
|
+
## Deserialization and dynamic behavior
|
|
79
|
+
|
|
80
|
+
Untrusted input reaching a deserializer that can instantiate arbitrary types, a template compiler, a dynamic import, an expression evaluator, or a regex built from input. Native-object deserialization of untrusted data is high severity on its own, before anyone finds a gadget chain.
|
|
81
|
+
|
|
82
|
+
## Dependencies
|
|
83
|
+
|
|
84
|
+
For each added or bumped package: is it real and correctly spelled (typosquatting), does the lockfile pin it, does it run install-time scripts, is it maintained, does it pull a large transitive tree, and does the version have known advisories. A dependency added to solve a five-line problem is worth flagging on supply-chain grounds alone.
|
|
85
|
+
|
|
86
|
+
## Report format
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
SECURITY REVIEW — <scope>
|
|
90
|
+
|
|
91
|
+
VERDICT: NO FINDINGS | FINDINGS (n) | BLOCKED — insufficient context
|
|
92
|
+
|
|
93
|
+
Trust model assumed: <where input comes from, what identity runs this>
|
|
94
|
+
|
|
95
|
+
FINDINGS
|
|
96
|
+
[F1] CRITICAL | HIGH | MEDIUM | LOW | INFO — <category, e.g. Broken Access Control>
|
|
97
|
+
Where: <file>:<line>
|
|
98
|
+
What: <the specific construct>
|
|
99
|
+
Exploit: <the concrete path an attacker takes — not "could be exploited">
|
|
100
|
+
Depends on: <the assumption that makes this real, if any>
|
|
101
|
+
Fix: <the direction, not a patch>
|
|
102
|
+
Confidence: 🟢 confirmed in the diff | 🟡 likely | 🔴 depends on unverified context
|
|
103
|
+
|
|
104
|
+
PRE-EXISTING (n) — not introduced by this change
|
|
105
|
+
NOT REVIEWED — <what you could not see: runtime config, infra, upstream validation>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Severity:** CRITICAL = unauthenticated remote impact or a live secret · HIGH = authenticated privilege escalation, data access across tenants, injection with real reach · MEDIUM = requires unusual conditions or yields limited data · LOW = defense-in-depth · INFO = worth knowing, not a vulnerability.
|
|
109
|
+
|
|
110
|
+
Rules: **no patches in the report.** Every finding names a concrete exploit path or is downgraded to INFO — "could be dangerous" is noise, and noise is what makes teams stop reading security reports. Always fill **NOT REVIEWED**; an incomplete review presented as complete is the worst output here.
|
|
111
|
+
|
|
112
|
+
## Proactive Triggers
|
|
113
|
+
|
|
114
|
+
- **A diff adds an endpoint, handler, or route** → check for an object-level authz check unasked.
|
|
115
|
+
- **A credential-shaped string appears in any tracked file** → stop and flag immediately; treat as live until proven otherwise, and note that rotation, not deletion, is the fix.
|
|
116
|
+
- **A dependency is added or bumped** → flag for advisory check, install scripts, and lockfile pinning.
|
|
117
|
+
- **Input reaches a query, command, path, template, or outbound URL** → trace it end to end before anything else.
|
|
118
|
+
- **An authz check appears in client code or a UI condition** → flag; client-side authorization is not authorization.
|
|
119
|
+
- **Error handling is added that returns exception detail to the caller** → flag information disclosure.
|
|
120
|
+
- **A crypto primitive, random source, or comparison is used for a security purpose** → check for the non-security variant (fast RNG, non-constant-time compare).
|
|
121
|
+
|
|
122
|
+
## Output Artifacts
|
|
123
|
+
|
|
124
|
+
| When you ask for... | You get... |
|
|
125
|
+
|---|---|
|
|
126
|
+
| "Security review this change" | Findings report with severity, exploit path, confidence, and a NOT REVIEWED section |
|
|
127
|
+
| "Did I leak a secret?" | Secret scan of the diff and its history, with rotation guidance — never just deletion |
|
|
128
|
+
| "Is this endpoint safe?" | Per-handler authn/authz analysis against the four questions |
|
|
129
|
+
| "Review these dependencies" | Per-package risk: advisories, install scripts, pinning, maintenance, transitive weight |
|
|
130
|
+
| "Is this SSRF/injection?" | A ruling with the concrete exploit path, or a specific reason why not |
|
|
131
|
+
|
|
132
|
+
## Communication
|
|
133
|
+
|
|
134
|
+
Bottom line first: verdict and highest severity. Every finding gets What + Why (the exploit path) + How (direction of fix). Tag confidence: 🟢 confirmed in the diff, 🟡 likely, 🔴 depends on context you could not verify. Never say "secure" — say what you reviewed and what you did not.
|
|
135
|
+
|
|
136
|
+
## Related Skills
|
|
137
|
+
|
|
138
|
+
- **test-first**: Use to turn a finding into a regression test — malformed input, authz bypass, injection payload. NOT a substitute for the fix.
|
|
139
|
+
- **architecture-guard**: Use when the fix is "authorize at the boundary" — that is a boundary question. NOT for vulnerability classes.
|
|
140
|
+
- **adr-write**: Use when a security decision constrains future work (where authz lives, which crypto, what the trust boundary is).
|
|
141
|
+
- **spec-driven**: Use when a finding reveals a missing requirement — it goes back through the spec gate, not into the diff.
|
|
142
|
+
- **handoff**: Use to record an unreviewed or accepted-risk diff so the next tool does not assume it was cleared.
|
|
143
|
+
- **onboard**: Use to locate auth, input, and dependency surfaces in an unfamiliar repo before reviewing them.
|
|
144
|
+
- **perf-budget**: Use when a proposed mitigation (extra validation, crypto work) costs measurable latency.
|
|
145
|
+
- Commands: `/review` runs this over the working diff, `/verify` confirms a fix landed, `/adr` records an accepted risk or a trust-boundary decision, `/handoff` carries an open finding forward.
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# OWASP Top 10 → diff-level checks
|
|
2
|
+
|
|
3
|
+
For each category: what it means, what to search for in a changed file, and what makes it a finding rather than a note.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## A01 — Broken Access Control
|
|
8
|
+
|
|
9
|
+
The most frequently exploited category, and the most common serious finding in code review.
|
|
10
|
+
|
|
11
|
+
**Look for in the diff**
|
|
12
|
+
- New route/handler/controller registrations — does each have an authorization check?
|
|
13
|
+
- Identity read from request input: `req.body.userId`, `params.orgId`, a tenant id in a header or query string. **Server-derived identity only.**
|
|
14
|
+
- Object-level checks: does the query filter by the *actor's* scope, or fetch by id and then check nothing?
|
|
15
|
+
- Direct object references — sequential or guessable ids returned or accepted.
|
|
16
|
+
- Bulk and secondary paths: list, search, export, batch, admin, GraphQL resolvers, webhooks. Authz is usually present on `GET /thing/:id` and missing on `POST /things/bulk-export`.
|
|
17
|
+
- Authorization decided in UI code, a client-side route guard, or a hidden form field.
|
|
18
|
+
- CORS changes: wildcard origin, or reflected origin with credentials enabled.
|
|
19
|
+
- Path traversal: user input concatenated into a filesystem path (`..`, absolute paths, null bytes, unicode variants).
|
|
20
|
+
- Ownership transfer: any endpoint where the record's owner field is settable by the caller.
|
|
21
|
+
|
|
22
|
+
**Finding when:** the actor's authority over *this specific object* is not verified server-side on this path. Severity HIGH by default; CRITICAL if unauthenticated or cross-tenant.
|
|
23
|
+
|
|
24
|
+
**Not a finding:** role check present *and* the query is scoped to the actor. An unguessable id with no check **is still a finding** — obscurity is not a control.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## A02 — Cryptographic Failures
|
|
29
|
+
|
|
30
|
+
**Look for**
|
|
31
|
+
- Weak or legacy algorithms: MD5, SHA-1 for signatures, DES/3DES, RC4, ECB mode.
|
|
32
|
+
- Password storage with a general-purpose hash instead of a password KDF; missing per-user salt; a work factor never revisited.
|
|
33
|
+
- Hardcoded keys, IVs, or salts (also A05 and a secret finding).
|
|
34
|
+
- A predictable random source used for tokens, session ids, password resets, or nonces — the non-cryptographic RNG is the tell.
|
|
35
|
+
- Secret comparison with `==` instead of a constant-time compare.
|
|
36
|
+
- TLS verification disabled: `verify=False`, `rejectUnauthorized: false`, custom trust-all callbacks.
|
|
37
|
+
- Sensitive data written to logs, caches, URLs, or client-side storage.
|
|
38
|
+
- Home-rolled crypto of any kind.
|
|
39
|
+
|
|
40
|
+
**Finding when:** confidentiality or integrity depends on the weak construct. Disabled TLS verification is HIGH even in "internal" code — internal is where lateral movement happens.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## A03 — Injection
|
|
45
|
+
|
|
46
|
+
**Look for, per interpreter**
|
|
47
|
+
|
|
48
|
+
| Interpreter | Signature in a diff |
|
|
49
|
+
|---|---|
|
|
50
|
+
| SQL | string concatenation or interpolation into a query; raw/exec escape hatches in an ORM; dynamic `ORDER BY`/table names |
|
|
51
|
+
| NoSQL | request objects passed straight into a query filter (operator injection via `$`-prefixed keys) |
|
|
52
|
+
| Shell | any process spawn with a shell option and an interpolated argument |
|
|
53
|
+
| Template | user data compiled as a template rather than passed as data (server-side template injection) |
|
|
54
|
+
| HTML | raw-HTML sinks: inner-HTML assignment, "dangerously" APIs, unescaped output in a template |
|
|
55
|
+
| LDAP / XPath | filter strings built by concatenation |
|
|
56
|
+
| Headers / logs | CRLF-injectable values written to a header or log line |
|
|
57
|
+
| Regex | a pattern built from user input, or a catastrophic-backtracking pattern applied to user input (ReDoS) |
|
|
58
|
+
|
|
59
|
+
**Finding when:** an untrusted value affects the *structure* of the statement rather than being bound as data. Parameterization ends the finding; manual escaping is a MEDIUM note about fragility even when correct today.
|
|
60
|
+
|
|
61
|
+
**Watch:** ORMs are not automatically safe. Raw fragments, `.where("...")` string forms, and dynamic column names bypass parameterization entirely.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## A04 — Insecure Design
|
|
66
|
+
|
|
67
|
+
Not a code bug — a missing control.
|
|
68
|
+
|
|
69
|
+
**Look for**
|
|
70
|
+
- No rate limit on authentication, password reset, one-time codes, invitations, or anything expensive.
|
|
71
|
+
- Business logic that trusts client-supplied prices, quantities, discounts, or state transitions.
|
|
72
|
+
- Workflows where a step can be skipped by calling the next endpoint directly.
|
|
73
|
+
- Missing idempotency on operations that move money or send messages.
|
|
74
|
+
- Account enumeration through differing responses or timing on login/reset.
|
|
75
|
+
- No lockout, no anomaly signal, no limit on retry loops.
|
|
76
|
+
|
|
77
|
+
**Finding when:** the design permits abuse at scale even with every line implemented correctly. Usually MEDIUM; HIGH when money or account takeover is involved.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## A05 — Security Misconfiguration
|
|
82
|
+
|
|
83
|
+
**Look for**
|
|
84
|
+
- Debug mode, verbose errors, stack traces, or a dev toolbar reachable in a non-dev configuration.
|
|
85
|
+
- Default credentials, sample users, or seed data in a non-dev path.
|
|
86
|
+
- Permissive CORS, missing security headers, cookie flags absent (`HttpOnly`, `Secure`, `SameSite`).
|
|
87
|
+
- Overly broad cloud/service permissions, wildcard resource grants.
|
|
88
|
+
- Directory listing, exposed admin or metrics endpoints, health endpoints leaking versions and config.
|
|
89
|
+
- New config with an *insecure default* — the default is what most deployments will run.
|
|
90
|
+
- Values hardcoded at call sites instead of resolving through the config layer with one typed default.
|
|
91
|
+
|
|
92
|
+
**Finding when:** the insecure state is the default or is reachable in production. A dev-only insecure setting with an enforced guard is INFO.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## A06 — Vulnerable and Outdated Components
|
|
97
|
+
|
|
98
|
+
**Per added or bumped dependency**
|
|
99
|
+
- Known advisories for the exact version.
|
|
100
|
+
- Name correctness — typosquatting relies on a plausible misspelling.
|
|
101
|
+
- Lockfile updated and the version pinned; a floating range means the reviewed version is not the deployed one.
|
|
102
|
+
- Install-time scripts (post-install hooks) — arbitrary code at install time, including in CI.
|
|
103
|
+
- Maintenance signal: last release, single maintainer, recent ownership change.
|
|
104
|
+
- Transitive weight — a large tree for a small need is a supply-chain finding in itself.
|
|
105
|
+
- Vendored or copied code with no upgrade path.
|
|
106
|
+
|
|
107
|
+
**Finding when:** a known advisory affects the used version (severity follows the advisory), the package is unpinned, or install scripts run untrusted code. Severity MEDIUM to CRITICAL.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## A07 — Identification and Authentication Failures
|
|
112
|
+
|
|
113
|
+
**Look for**
|
|
114
|
+
- Token validation that skips signature verification, accepts `alg: none`, or allows algorithm substitution.
|
|
115
|
+
- Tokens that never expire, or expiry checked client-side.
|
|
116
|
+
- Session id not rotated after login (fixation) or not invalidated at logout / password change.
|
|
117
|
+
- Password reset tokens that are long-lived, reusable, guessable, or not bound to the user.
|
|
118
|
+
- Credentials in a URL or query string (they land in logs and referrers).
|
|
119
|
+
- Multi-factor bypass paths: a "remember device" flow, a backup code path, or an API route skipping the second factor.
|
|
120
|
+
- Hand-rolled authentication where a vetted mechanism exists.
|
|
121
|
+
|
|
122
|
+
**Finding when:** identity can be forged, replayed, or extended past its intended lifetime. Usually HIGH or CRITICAL.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## A08 — Software and Data Integrity Failures
|
|
127
|
+
|
|
128
|
+
**Look for**
|
|
129
|
+
- **Deserialization of untrusted data** into native objects — the language's own object deserializer, unsafe YAML loaders, unrestricted type resolution in a JSON binder. HIGH on its own.
|
|
130
|
+
- Dynamic code paths driven by input: eval, dynamic import of an input-derived path, template compilation, expression evaluation.
|
|
131
|
+
- Unverified update, plugin, or model downloads — no signature, no checksum.
|
|
132
|
+
- CI/CD changes: a new step running an unpinned action or script, a secret exposed to a fork-triggered workflow, a cache poisoned across branches.
|
|
133
|
+
- Auto-merge or auto-deploy triggered by an untrusted event.
|
|
134
|
+
|
|
135
|
+
**Finding when:** untrusted data can influence what code runs. This is the category that turns into remote code execution.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## A09 — Security Logging and Monitoring Failures
|
|
140
|
+
|
|
141
|
+
Two directions — both matter.
|
|
142
|
+
|
|
143
|
+
**Missing:** no log on authentication failure, authorization denial, privilege change, password/email change, admin action, or bulk export. Without these, a breach is undetectable and unreconstructable.
|
|
144
|
+
|
|
145
|
+
**Excessive:** logging passwords, tokens, keys, full request bodies, personal data, or full card/account numbers. Logs are widely readable and widely retained — a secret in a log is a leaked secret.
|
|
146
|
+
|
|
147
|
+
Also: log injection (unsanitized newlines in a log line), and error responses returning stack traces or internal identifiers to the caller.
|
|
148
|
+
|
|
149
|
+
**Finding when:** a security-relevant event is unlogged (MEDIUM) or a secret/PII is logged (HIGH).
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## A10 — Server-Side Request Forgery
|
|
154
|
+
|
|
155
|
+
**Look for**
|
|
156
|
+
- Any outbound request whose host, scheme, or port derives from input — webhooks, callbacks, link previews, importers, avatar-from-URL, PDF/HTML renderers, health checkers.
|
|
157
|
+
- Redirect following after validation — validate-then-follow is the standard bypass.
|
|
158
|
+
- Blocklist-based filtering (fails: decimal IPs, IPv6-mapped, DNS names resolving to private ranges, DNS rebinding).
|
|
159
|
+
- Non-HTTP schemes accepted: `file://`, `gopher://`, `dict://`.
|
|
160
|
+
- No egress restriction, so cloud metadata endpoints and internal services are reachable.
|
|
161
|
+
- The response body returned to the caller — that turns blind SSRF into a read primitive.
|
|
162
|
+
|
|
163
|
+
**Finding when:** the destination is influenced by input without an **allowlist** and redirects are followed. HIGH in a cloud environment where a metadata endpoint is reachable.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Cross-cutting: trace the input
|
|
168
|
+
|
|
169
|
+
The single most productive technique. For each untrusted value in the diff:
|
|
170
|
+
|
|
171
|
+
1. **Source** — where it enters (request body, query, header, cookie, file, queue message, third-party response, environment).
|
|
172
|
+
2. **Transformations** — validated? normalized? decoded? Decoding *after* validation defeats the validation.
|
|
173
|
+
3. **Sinks** — every place it lands: query, command, path, template, outbound URL, deserializer, log, response.
|
|
174
|
+
4. **Boundary** — was it authorized before reaching the sink?
|
|
175
|
+
|
|
176
|
+
A finding is a source reaching a dangerous sink without an adequate control in between. Write the path out in the report — that is the "Exploit" line, and it is what makes the finding credible.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Downgrade honestly
|
|
181
|
+
|
|
182
|
+
| Situation | Report as |
|
|
183
|
+
|---|---|
|
|
184
|
+
| Exploit path is concrete and visible in the diff | Full severity, 🟢 |
|
|
185
|
+
| Exploit depends on an assumption you could not verify | Full severity, 🔴, with the assumption stated |
|
|
186
|
+
| Control exists but is fragile (manual escaping, blocklist) | MEDIUM, note the fragility |
|
|
187
|
+
| Defense-in-depth gap with no exploit path | LOW or INFO |
|
|
188
|
+
| "This pattern is often dangerous" with no path here | INFO, or leave it out |
|
|
189
|
+
|
|
190
|
+
Inflated findings are how teams learn to ignore security reports. Every HIGH must survive the question "how exactly?".
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Secret patterns
|
|
2
|
+
|
|
3
|
+
The cheapest, highest-severity check. Run it first, over the diff **and** the branch's history — a secret removed in a later commit is still in the history and still compromised.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Shapes to look for
|
|
8
|
+
|
|
9
|
+
**Prefixed tokens.** Many providers use a recognizable prefix followed by a long random body. Any identifier-looking string with a short alphabetic prefix, a separator, and 20+ characters of high-entropy body deserves a look — cloud keys, API keys, personal access tokens, and bot tokens nearly all follow this shape.
|
|
10
|
+
|
|
11
|
+
**PEM blocks.** `-----BEGIN` followed by anything containing `PRIVATE KEY`. Never a false positive worth ignoring. RSA, EC, OPENSSH, PGP — all of them.
|
|
12
|
+
|
|
13
|
+
**Connection strings.** A URI with credentials inline: `scheme://user:password@host`. Covers databases, message brokers, caches, and SMTP. Search for `://` followed by a colon-separated pair before an `@`.
|
|
14
|
+
|
|
15
|
+
**JWTs.** Three base64url segments separated by dots, starting with the encoded header. A signed token in source is a credential; decode the payload to see whether it is long-lived before deciding severity.
|
|
16
|
+
|
|
17
|
+
**Cloud access keys.** Fixed-length uppercase alphanumeric identifiers paired with a longer base64-ish secret, often on adjacent lines. The pair is the tell — an id alone is usually not sensitive; the secret beside it is.
|
|
18
|
+
|
|
19
|
+
**Generic high-entropy assignments.** A variable whose name contains any of `secret`, `token`, `password`, `passwd`, `pwd`, `apikey`, `api_key`, `access_key`, `private_key`, `client_secret`, `auth`, `credential`, `bearer`, `signing_key`, `encryption_key`, `salt`, `session_key` — assigned a literal string of meaningful length.
|
|
20
|
+
|
|
21
|
+
**Base64 blobs.** Long base64 in a config or source file. Decode before dismissing; encoded is not encrypted.
|
|
22
|
+
|
|
23
|
+
**Webhook and signing URLs.** Endpoint URLs containing a long opaque path segment are credentials — anyone with the URL can post.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Where to look, beyond source files
|
|
28
|
+
|
|
29
|
+
| Location | Why it is missed |
|
|
30
|
+
|---|---|
|
|
31
|
+
| Test fixtures and mock data | "It's just a test key" — often it is not |
|
|
32
|
+
| Example env files | Real values pasted over placeholders |
|
|
33
|
+
| CI/CD workflow files | Secrets inlined instead of referenced |
|
|
34
|
+
| Container and orchestration manifests | Env values baked into images |
|
|
35
|
+
| Infrastructure-as-code | Provider credentials, DB passwords |
|
|
36
|
+
| Lockfiles and package manifests | Registry auth tokens in URLs |
|
|
37
|
+
| Notebooks and their saved outputs | Output cells retain printed credentials |
|
|
38
|
+
| Documentation, READMEs, comments | Working examples with working keys |
|
|
39
|
+
| Commit messages | Pasted into the message rather than the file |
|
|
40
|
+
| Build scripts and Makefiles | Hardcoded deploy credentials |
|
|
41
|
+
| Debug logs committed as artifacts | Full request bodies with auth headers |
|
|
42
|
+
| Minified or bundled front-end output | Server-side keys inlined into a client bundle |
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Triage: is it live?
|
|
47
|
+
|
|
48
|
+
Not every match is an incident. Decide in this order:
|
|
49
|
+
|
|
50
|
+
| Signal | Verdict |
|
|
51
|
+
|---|---|
|
|
52
|
+
| Obvious placeholder (`xxx`, `changeme`, `your-key-here`, `<REDACTED>`, all zeros) | Not a finding |
|
|
53
|
+
| Documented example value from the provider's docs | Not a finding; note the risk of copy-paste |
|
|
54
|
+
| Localhost/test-container credentials in a test fixture | LOW — flag the pattern, not the value |
|
|
55
|
+
| Real-looking, in any tracked file, provider unknown | **Treat as live** — HIGH, verify with the owner |
|
|
56
|
+
| Real-looking, matches a known provider format | **CRITICAL** |
|
|
57
|
+
| Present anywhere in the branch's history, even if removed | Same severity as if present now |
|
|
58
|
+
|
|
59
|
+
Bias toward flagging. A false positive costs a minute; a missed live key costs an incident.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Reporting a secret
|
|
64
|
+
|
|
65
|
+
Report the **location and type**, never the value. Do not paste the secret into the report, the commit message, an issue, or a chat.
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
[F1] CRITICAL — Hardcoded credential
|
|
69
|
+
Where: config/database.ts:14
|
|
70
|
+
What: connection string with inline password
|
|
71
|
+
Status: appears live (non-placeholder, matches provider format)
|
|
72
|
+
Action: 1. ROTATE the credential now — it is compromised
|
|
73
|
+
2. Remove from code; resolve through the config layer
|
|
74
|
+
3. Purge from history, or accept that it stays exposed
|
|
75
|
+
4. Check access logs for use of this credential
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**The order matters and it is not negotiable: rotate first.** Deleting the line does not un-leak anything — the value exists in the history, in every clone, in CI caches, and in any fork. Until it is rotated, it is a live credential in an unknown number of places.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## The fix direction
|
|
83
|
+
|
|
84
|
+
Removal is not the fix. The fix is:
|
|
85
|
+
|
|
86
|
+
1. **Rotate** — invalidate the exposed value at the provider.
|
|
87
|
+
2. **Externalize** — the value resolves through the config layer, from the environment or a secret manager, with one typed default (and the default is never a real credential).
|
|
88
|
+
3. **Prevent** — add the path to ignore rules; add a pre-commit secret scan if the repo supports hooks.
|
|
89
|
+
4. **Purge** — history rewrite if the repo's exposure warrants it. Coordinate; it invalidates every existing clone.
|
|
90
|
+
5. **Audit** — check whether the credential was used by anyone else while exposed.
|
|
91
|
+
|
|
92
|
+
Never propose "move it to a different file in the repo". Committed is committed.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Cases people get wrong
|
|
97
|
+
|
|
98
|
+
**"It's only in a private repo."** Private repos get forked, cloned to laptops, mirrored into CI caches, and made public by accident. Private is not a control.
|
|
99
|
+
|
|
100
|
+
**"It's a test key."** Test keys often have real rate limits, real billing, or real data. And test keys get promoted to production values by whoever copies the file next.
|
|
101
|
+
|
|
102
|
+
**"It's encrypted."** Check what decrypts it. If the decryption key is in the same repo, nothing is encrypted.
|
|
103
|
+
|
|
104
|
+
**"It's base64."** Encoding is not encryption. Decode it and re-triage.
|
|
105
|
+
|
|
106
|
+
**"It's in the client bundle anyway, so it's public."** True for publishable keys, and a serious finding for anything else. Determine which kind it is — a server-side key inlined into a front-end bundle is CRITICAL.
|
|
107
|
+
|
|
108
|
+
**"We removed it in the next commit."** The history has it. Rotate.
|
|
109
|
+
|
|
110
|
+
**"It's expired."** Verify that. Many tokens outlive their assumed lifetime, and some providers never expire them.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
id: security-review
|
|
2
|
+
kind: skill
|
|
3
|
+
name: Security Review
|
|
4
|
+
description: OWASP-oriented review of a diff — injection, authz, secrets, SSRF, deserialization, dependency risk. Reports findings with severity; never auto-fixes.
|
|
5
|
+
tags: [security, review, owasp, diff]
|
|
6
|
+
targets: [claude-code, cursor, github-copilot, windsurf, cline, codex, gemini-cli, agents-md]
|
|
7
|
+
requiresCapability: [instructions]
|