terramate-best-practices
Original:🇺🇸 English
Translated
Terramate CLI, Cloud, and Catalyst best practices and usage guides. This skill should be used when working with Terramate stacks, orchestration, code generation, Cloud integration, or Catalyst components and bundles.
11installs
Added on
NPX Install
npx skill4agent add terramate-io/agent-skills terramate-best-practicesTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Terramate Best Practices
Comprehensive guide for Terramate CLI, Cloud, and Catalyst, maintained by Terramate. Contains best practices and usage patterns for stack management, orchestration, code generation, Cloud integration, and Catalyst components/bundles.
When to Apply
Reference these guidelines when:
- Creating and organizing Terramate stacks
- Orchestrating commands across multiple stacks
- Using code generation to keep configurations DRY
- Integrating with Terramate Cloud for observability
- Creating Catalyst components and bundles
- Setting up CI/CD workflows with Terramate
- Managing stack dependencies and execution order
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | CLI Fundamentals | CRITICAL | |
| 2 | CLI Orchestration | HIGH | |
| 3 | CLI Code Generation | HIGH | |
| 4 | CLI Configuration | MEDIUM-HIGH | |
| 5 | Terramate Cloud | MEDIUM-HIGH | |
| 6 | Terramate Catalyst | MEDIUM | |
| 7 | CI/CD Integration | MEDIUM | |
| 8 | Advanced Patterns | LOW-MEDIUM | |
Quick Reference
1. CLI Fundamentals (CRITICAL)
- - Organize stacks with clear directory structure
cli-stack-structure - - Configure stacks with proper stack blocks
cli-stack-config - - Use metadata for stack identification and filtering
cli-stack-metadata
2. CLI Orchestration (HIGH)
- - Run commands across stacks efficiently
cli-orchestration-run - - Use change detection to limit execution scope
cli-orchestration-change-detection - - Leverage parallel execution for independent stacks
cli-orchestration-parallel - - Manage stack dependencies and execution order
cli-orchestration-dependencies
3. CLI Code Generation (HIGH)
- - Use generate_hcl for DRY Terraform code
cli-codegen-hcl - - Use generate_file for file generation patterns
cli-codegen-file - - Generate provider configurations dynamically
cli-codegen-provider
4. CLI Configuration (MEDIUM-HIGH)
- - Use globals for shared configuration across stacks
cli-config-globals - - Use lets for stack-local computed values
cli-config-lets - - Leverage metadata for stack information
cli-config-metadata
5. Terramate Cloud (MEDIUM-HIGH)
- - Set up Cloud connection and authentication
cloud-integration - - Configure drift detection and reconciliation
cloud-drift-management - - Use Cloud dashboard for stack visibility
cloud-observability
6. Terramate Catalyst (MEDIUM)
- - Create reusable component blueprints
catalyst-components - - Define bundles for component composition
catalyst-bundles - - Instantiate bundles correctly
catalyst-instantiation
7. CI/CD Integration (MEDIUM)
- - Set up GitHub Actions workflows
cicd-github-actions - - Create preview workflows for PRs
cicd-preview-workflows - - Configure deployment automation
cicd-deployment-workflows
8. Advanced Patterns (LOW-MEDIUM)
- - Create complex multi-step workflows
advanced-workflows - - Advanced code generation techniques
advanced-codegen-patterns
How to Use
Read individual rule files for detailed explanations and code examples:
rules/cli-stack-structure.md
rules/cli-orchestration-run.md
rules/cli-codegen-hcl.md
rules/cloud-integration.md
rules/catalyst-components.mdEach rule file contains:
- Brief explanation of why it matters
- Incorrect/anti-pattern example with explanation
- Correct/best practice example with explanation
- Additional context and references
Full Compiled Document
For the complete guide with all rules expanded:
AGENTS.md