name: cdk-blueprint-workflow description: Use this skill when implementing or modifying AWS CDK constructs/examples in this repository, especially for spec-driven changes requiring requirements, design, tasks, test updates, and safe handoff.
CDK Blueprint Workflow
Purpose
Provide a concise, repeatable workflow for construct/example changes using .codex as canonical execution guidance and .kiro as deep-dive support. Supports decision-first (user alignment) or direct spec authoring.
When to Use
- User asks for feature work in
use-cases/orexamples/. - User asks for architecture-aligned changes with tests/docs.
- Work is too large for a one-shot patch.
Execution Flow
Classify work:
- construct (
use-cases/**) - example (
examples/**) - other (docs/tooling)
- construct (
Read canonical instructions in this order:
.codex/AGENTS.md.codex/scope/use-cases.mdif construct work, or.codex/scope/examples.mdif example work.codex/context/project-overview.md.codex/guides/construct-vs-example.md.codex/workflows/spec-driven.md
Read task-specific canonical guides:
.codex/guides/coding-standards.md- construct work:
.codex/guides/construct-development.md,.codex/guides/testing.md - example work:
.codex/guides/example-development.md,.codex/guides/deployment-operations.md - document-processing/agents work:
.codex/guides/document-processing-and-agents.md
Pull deep-dive context from
.kiro/steering/**only where needed for complex architecture/troubleshooting/pattern tradeoffs.For medium/large work, use spec workflow (see
.codex/workflows/spec-driven.md):- Decision-first (default/required): Create
_decisions-requirements.md, get user answers, generaterequirements.md; repeat for design and tasks. Use templates under.codex/specs/templates/. - Direct (exception-only): Create
requirements.md,design.md,tasks.mdfrom templates under.codex/specs/<slug>/only when direct-path exception criteria are satisfied and recorded in handoff.
- Decision-first (default/required): Create
Implement in smallest safe increments.
Validate:
npm run buildnpm run eslint- targeted tests for touched area
- broader tests when risk is cross-cutting
Handoff: changed files, behavior impact, test evidence, residual risks.
Guardrails
- Preserve backward compatibility unless explicitly requested otherwise.
- Avoid unrelated refactors.
- Keep IAM permissions minimal and explicit.
- Preserve security defaults and observability behavior.
- Address CDK Nag findings or document suppressions.
- Use Projen-backed repository scripts for build/lint/test workflows.
- Keep Codex specs under
.codex/specs/**only; never under.kiro/specs/**. - Treat
.kiro/steering/**as deep-dive support, not canonical authority.