/gaia-config-stack
user-facingWhat it does
/gaia-config-stack edits the stacks section of .gaia/config/project-config.yaml. The stacks section defines the technology stacks in your project with their languages and file path patterns. Review skills use this to determine which stack applies to the changed files. The editor preserves all YAML comments and formatting outside the edited section. Every edit goes through a diff preview and confirmation gate before writing.
When to use it
- You need to add, remove, or modify entries in the
stacksconfiguration section. - You set up a new project and need to configure the
stackssection.
Prerequisites
- project-config.yaml must exist. Run
/gaia-initto create one if missing.
How to invoke
/gaia-config-stack
What it does step by step
- Locate project-config.yaml Resolves the configuration file path.
- Extract the stacks section Reads the current stacks block. If the section is missing, offers to scaffold a default.
- Present edit menu Shows the current stacks configuration and an operation menu (add, remove, edit, view, exit).
- Apply operation Collects the new values and validates them. Each stack entry requires a name, language, and paths (glob patterns).
- Diff preview and confirmation Shows a unified diff of what will change. You must confirm before anything is written.
- Write back Writes only the modified section, preserving all other content byte-for-byte.
- Suggest validation Recommends running
/gaia-config-validateto confirm the file still passes schema validation.
Inputs
| Input | Source | Description |
|---|---|---|
| Project configuration | .gaia/config/project-config.yaml | The file containing the stacks section. |
Outputs
| Output | Location | Description |
|---|---|---|
| Updated stacks section | .gaia/config/project-config.yaml | The modified stacks configuration. |
Example session
> /gaia-config-stack
Current stacks configuration:
api:
language: typescript
path: packages/api
framework: express
Operations: [s] set key [r] remove key [v] view [x] exit
> s
Key: web.language
Value: typescript
Diff preview:
stacks:
api:
language: typescript
path: packages/api
framework: express
+ web:
+ language: typescript
Apply this edit? [y/n]
> y
Stacks section updated. Run /gaia-config-validate to verify.
What to run next
/gaia-config-validate-- validate the modified configuration file./gaia-config-show stacks-- view the section after editing.
Troubleshooting
stacks section not found
The section does not exist in your config file. The command offers to scaffold a default:
stacks:
- name: app
language: typescript
paths: ["src/**"]Edit cancelled
You chose not to apply the edit. The file remains unchanged.