地形原则
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 运维部署
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Terraform Principles
Use this skill as standing guidance for this domain. Apply the checklist first; read the detailed reference only when the task is substantial, risky, unfamiliar, or review-oriented.
## Operating Rules
- Prefer the repository's existing conventions, toolchain, and CI commands over generic defaults.
- Make the smallest coherent change that satisfies the request while preserving behavior.
- Treat tests, linting, dependency hygiene, and security review as part of completion.
- If a principle conflicts with higher-priority repository instructions or an explicit user request, follow the higher-priority instruction and call out the tradeoff.
## Core Checklist
- Use modules to create reusable boundaries, but keep module interfaces small and explicit.
- Store state remotely with encryption and locking; restrict state access because state can contain secrets.
- Pin Terraform/OpenTofu and provider versions; commit lock files where applicable.
- Keep variables typed, outputs intentional, and sensitive values marked `sensitive = true`.
- Prefer data sources and locals over hardcoded environment-specific values.
- Review plans in CI and separate plan from apply with approval for production.
- Apply least-privilege IAM and policy-as-code checks for sensitive infrastructure.
- Support OpenTofu deliberately when the project has chosen it; do not mix CLIs accidentally.
## Validation
Run applicable checks when they exist in the project; if a tool is missing, report that it was skipped.
- `terraform fmt -recursive` or `tofu fmt -recursive`
- `terraform validate` or `tofu validate`
- `tflint --recursive` when configured
- `trivy config .`, Checkov, Conftest, or the project's policy scanner for risky infrastructure
## Detailed Reference
For the complete principle set with examples and edge cases, read [references/principles.md](references/principles.md) when deeper guidance is useful.
---
> Source: [asciifylabs/asciify-skills](https://github.com/asciifylabs/asciify-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->
章节与文件索引
按说明文件中的顺序排列。
操作规则
核心清单
验证
详细参考
文件/命令 -> sensitive = true · terraform fmt -recursive · tofu fmt -recursive · terraform validate · tofu validate · tflint --recursive · trivy config .
内容校验值 -> 3326c1a641ef
当前原文的自动摘译,尚未人工审校。
操作规则
与通用默认值相比,更喜欢存储库的现有约定、工具链和 CI 命令。做出最小的一致改变来满足要求,同时保留行为。将测试、linting、依赖性卫生和安全审查视为完成的一部分。如果某个原则与较高优先级的存储库指令或明确的用户请求相冲突,请遵循较高优先级的指令并进行权衡。
核心清单
使用模块创建可重用的边界,但保持模块接口小而明确。通过加密和锁定远程存储状态;限制状态访问,因为状态可以包含秘密。固定 Terraform/OpenTofu 和提供商版本;在适用的情况下提交锁定文件。保持变量类型,有意输出,敏感值标记为
sensitive = true。优先选择数据源和局部变量而不是硬编码的特定于环境的值。验证
当项目中存在适用的检查时,运行它们;如果缺少某个工具,请报告它已被跳过。
terraform fmt -recursive或tofu fmt -recursiveterraform validate或tofu validatetflint --recursive(配置时)trivy config .、Checkov、Conftest 或项目的风险基础设施策略扫描器详细参考
有关包含示例和边缘情况的完整原则集,请在需要更深入的指导时阅读引用/principles.md。来源:asciifylabs/asciify-skills — 由 TomeVault 分发。