sync-ai
Give your AI coding assistants up-to-date deploy-stack context after project settings change, so they generate correct Terraform and deployment instructions instead of hallucinating them.
What it does
Section titled “What it does”- Prompts you to choose which AI assistants to configure, then writes the matching rule files with your project’s region (from
regioninterraform/main.tf) and container port (fromcontainerPortinterraform/main.tf). - Writes a full rule file for Cursor (
.cursor/rules/deploy-stack.mdc), Roo (.roo/rules/deploy-stack.md), Trae (.trae/rules/project_rules.md), and Continue (.prompts/deploy-stack.prompt); injects a managed block into the existing config for Windsurf (.windsurfrules), Copilot (.github/copilot-instructions.md), Claude (CLAUDE.md), Goose (.goosehints), and Aider (.aider.conf.yml). - Exits without writing anything when no assistants are selected.
- Emits a
sync_ai_executedtelemetry event listing the selected assistants.
npx deploy-stack sync-aiThis command accepts no CLI flags. Assistant selection is interactive.