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_IACAutocloudformationFixed value, not prompted

What It Does

  1. First-time initialization — Presents a single batched prompt 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).

  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.

  3. Security chain — On first run, if the security stack has not been provisioned, automatically chains to /ipa.security after .env is written.

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 proceeds to /ipa.security.

Update an existing configuration:

/ipa.init

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

  • /ipa.security — Automatically invoked after first-time initialization
  • /ipa.compose — Reads .env variables written by this skill