一键导入
infra-lint
Lint Terraform, Terragrunt, and Helm charts only — skips .NET and frontend. Use for infrastructure-only changes when /lint would be overkill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Lint Terraform, Terragrunt, and Helm charts only — skips .NET and frontend. Use for infrastructure-only changes when /lint would be overkill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verify hexagonal architecture layer rules, Result pattern usage, and coding conventions. Use as a quick local check during development — fast and focused on architecture rules only. For full security + quality review, use /code-review instead.
Review code changes for security, architecture, and quality issues. Use for deep PR-level review — checks OWASP vulnerabilities, hexagonal architecture violations, code smells, and test gaps. For a quick architecture-only check, use /check-architecture instead.
Complete current task with all quality gates, code review, QA check, and submit PR. Use when implementation is done and you want to run the full verification pipeline (build, lint, tests, review, QA) and create the pull request.
Complete infrastructure task — lint, validate, review, and submit PR. Use when an infrastructure-only branch is ready for submission — runs Terraform/Helm validation and creates the PR, skipping .NET/frontend checks.
Scaffold a new frontend feature module with page, components, API service, and hooks. Use whenever the user wants to add a new page, dashboard section, UI module, or frontend feature to the React app.
Capture a screenshot of a URL or route with one command. Use whenever the user wants to take a screenshot, capture a page, see what a route looks like, or visually verify a page. Supports mobile viewport with --mobile and unauthenticated mode with --no-auth.
| name | infra-lint |
| description | Lint Terraform, Terragrunt, and Helm charts only — skips .NET and frontend. Use for infrastructure-only changes when /lint would be overkill. |
| allowed-tools | Bash |
| user-invocable | true |
Fast lint for infrastructure files only. Skips .NET and frontend checks.
--fix or fix — Apply auto-fixes (formatting only)terraform — Only lint Terraform/Terragrunthelm — Only lint Helm chartsIf no argument, lint both Terraform and Helm.
Format check:
terraform fmt -check -recursive infra
Format fix (if --fix):
terraform fmt -recursive infra
Validate modules:
for dir in $(find infra/terraform/modules -name "*.tf" -exec dirname {} \; | sort -u); do
echo "=== Validating $dir ==="
terraform -chdir="$dir" init -backend=false -input=false 2>/dev/null
terraform -chdir="$dir" validate
done
Terragrunt validate:
find infra -name "terragrunt.hcl" -execdir terragrunt validate \;
Lint all charts:
for chart in deploy/charts/*/; do
echo "=== Linting $chart ==="
helm lint "$chart"
helm template test "$chart" > /dev/null
done
If deploy/charts/ doesn't exist, skip Helm linting and note it.
Report pass/fail per category:
- Terraform Format: PASS/FAIL
- Terraform Validate: PASS/FAIL
- Terragrunt Validate: PASS/FAIL
- Helm Lint: PASS/FAIL (or SKIPPED)
- Helm Template: PASS/FAIL (or SKIPPED)