Skip to main content

/ipa.author.stack

Create or update IPA stack skills, CloudFormation templates, and pattern definitions. Supports single-service prepare stacks, multi-service tier stacks, and pattern-only definitions.

Invocation

/ipa.author.stack

Parameters

/ipa.author.stack gathers all parameters interactively through a requirements phase. No arguments are passed at invocation.

InputDescription
Architecture overviewHigh-level description of the stack's purpose and AWS services
Stack typeSingle-service (prepare) or multi-service (tier)
AWS servicesServices to include in the CloudFormation template
ParametersStack parameters with types, defaults, and validation
Feature flagsOptional boolean parameters that toggle resource creation
OutputsStack outputs with export names
CapabilitiesCloudFormation capabilities required (e.g., CAPABILITY_NAMED_IAM)
Build requirementsContainer or asset build steps
Security postureSecurity configuration and findings
Lifecycleprepare or deploy
DependenciesOther stacks this stack depends on or provides outputs to
Config overridesParameter overrides for pattern composition
Post-deploy stepsOperations to run after stack deployment

What It Does

The skill executes five phases:

Phase 1 — Gather Requirements

Collects the architecture overview, stack selection, AWS services, parameters, feature flags, outputs, capabilities, build requirements, security posture, lifecycle, dependencies, config overrides, and post-deploy steps through interactive prompts.

Phase 2 — Create CloudFormation Template

Generates a YAML CloudFormation template at infra/cfn/{service}/{service}.yml. Validates the template with aws cloudformation validate-template.

Phase 3 — Create Stack Skill Files

Creates three files in .claude/skills/ipa.stack.{service}/:

FilePurpose
SKILL.mdStack skill definition with frontmatter, parameters, outputs, wiring, and lifecycle
SECURITY.mdSecurity findings and dispositions
TROUBLESHOOT.mdCommon deployment errors and resolutions

Phase 4 — Create Pattern Definition

Creates two files in .claude/skills/ipa.compose/patterns/{name}/:

FilePurpose
PATTERN.mdStack sequence, wiring, teardown sequence, known deferrals, post-deploy
ARCHITECTURE.mdArchitecture diagram and resource descriptions

Phase 5 — Validate

Checks stack-to-SKILL.md consistency, CloudFormation contract compliance, and pattern integrity.

Authoring Modes

ModeWhen to Use
Combined (default)Creating a new tier stack with a pattern definition
Single-serviceCreating a one-AWS-service prepare stack (ECR, Cognito, SNS, RDS, SES)
Pattern-onlyCreating a pattern definition for existing stacks
UpdateModifying existing stack skill files or patterns

Outputs

ArtifactPathDescription
CloudFormation templateinfra/cfn/{service}/{service}.ymlInfrastructure template
Stack skill.claude/skills/ipa.stack.{service}/SKILL.mdSkill definition
Security doc.claude/skills/ipa.stack.{service}/SECURITY.mdSecurity findings
Troubleshooting doc.claude/skills/ipa.stack.{service}/TROUBLESHOOT.mdError resolution guide
Pattern definition.claude/skills/ipa.compose/patterns/{name}/PATTERN.mdCompose pattern
Architecture doc.claude/skills/ipa.compose/patterns/{name}/ARCHITECTURE.mdArchitecture reference

Examples

Create a new tier stack with pattern:

/ipa.author.stack

Describe a notification service using SNS and Lambda. The skill creates the CloudFormation template, stack skill files, and a pattern definition.

Add a single-service prepare stack:

/ipa.author.stack

Describe an RDS database as a single-service prepare stack. The skill creates the template and stack skill without a pattern definition.

  • /ipa.compose — Consumes the stack skills and patterns created by this skill
  • /ipa.deploy — Deploys stacks defined by authored skills