Skip to main content

/ipa-init

Interactively configure a project's .env file with the IPA-managed variables required by all downstream skills.

Invocation

/ipa-init

Parameters

/ipa-init prompts for all parameters interactively. No arguments are passed at invocation.

VariableRequiredDefaultDescription
AWS_PROFILENo(skipped)AWS CLI named profile. Omitted from .env if skipped.
AWS_REGIONYesus-east-1AWS deployment region
AWS_ACCOUNT_IDYes(auto-detected)12-digit account ID, detected via aws sts get-caller-identity
APP_NAMESPACEYesapp1-12 character project prefix (lowercase alphanumeric)
APP_ENVYesdevEnvironment label (dev, stage, prod)
APP_CODE_AGENTAutoclaude-codeFixed value, not prompted
APP_IACYescloudformationIaC tool: cloudformation or terraform

What It Does

  1. First-time initialization — Presents a single batched prompt (5 questions) for all configurable variables with sensible defaults. Validates each input against strict regex patterns. Writes the .env file and generates a .env.example template (never committed to version control). The APP_IAC choice determines whether downstream skills generate CloudFormation or Terraform Makefile targets.

  2. Re-initialization — Detects an existing .env file and enters selective-update mode. Displays current values and prompts only for variables the user wants to change. Warns before overwriting existing values.

Next step: After /ipa-init completes, run /ipa-compose.

Outputs

ArtifactPathDescription
Environment file.envProject configuration consumed by all IPA skills
Example template.env.exampleSanitized template showing required variables

Examples

Initialize a new project:

/ipa-init

Respond to the prompts with your AWS profile, region, namespace (myapp), and environment (dev). The skill writes .env and directs you to run /ipa-compose.

Update an existing configuration:

/ipa-init

The skill detects the existing .env, displays current values, and prompts for changes.

  • /ipa-compose — Next step after initialization; reads .env variables written by this skill
  • /ipa-security — Embedded in /ipa-compose on first run; also usable standalone