一键导入
verify-and-fix
Run formatting, linters, unit tests, and build checks, then fix violations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run formatting, linters, unit tests, and build checks, then fix violations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Accountability for identifying deprecated Lightdash API usage in the provider by comparing code patterns against the official OpenAPI specification. Use when tasked to audit the codebase for technical debt or outdated API dependencies.
Guide the execution of Lightdash Terraform provider acceptance tests, ensuring correct environment setup and targeted test execution.
Implement verified Lightdash API clients with documentation research and live schema verification.
Research and investigate Lightdash API endpoints to understand request/response schemas and behavior.
Implement Terraform Resources and Data Sources in `internal/provider` with comprehensive testing.
Comprehensive security review of the Terraform provider codebase using gosec, trunk, osv-scanner, and trivy.
基于 SOC 职业分类
| name | verify-and-fix |
| description | Run formatting, linters, unit tests, and build checks, then fix violations. |
Automate the process of ensuring code quality, functional correctness, and buildability within the Terraform Provider Lightdash project. This skill provides a comprehensive local verification loop using trunk, make, and pre-commit.
make testacc or any command that sets TF_ACC=1. This skill is intended for fast, local feedback loops (linting, building, unit testing) and should not interact with live infrastructure.Start by ensuring consistent code formatting across the repository.
trunk fmt --allExecute the project's linting suite to identify violations.
make linttrunk check --all and pre-commit run --all-files.Execute the project's unit tests to ensure functional correctness.
make testgo test on the internal packages without setting TF_ACC.If linter violations are detected, attempt to resolve them automatically.
make lint reports fixable issues.trunk check --all --fixEnsure the project compiles successfully and passes security/deadcode checks.
make buildgen-docs, go-tidy, gosec, deadcode, and finally go build.If issues remain after automated attempts, proceed with manual intervention.
trunk check, make test, or make build.Edit tool to address the root causes of the violations in the source code.make lint returns no errors.make test returns no failures.make build completes successfully.trunk check --all.trunk fmt --all (Success).make lint (Success).make test (Fails in internal/lightdash/api/utils_test.go).internal/lightdash/api/utils.go to fix the logic.make test. (Success).make build. (Success).