Use when a handwritten resource that users already have becomes generated code (tools/iac-codegen existing-resource mode). Record a baseline first, then compare. Do NOT use for a new resource.
68
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Trigger: A released resource moves to tools/iac-codegen, and its users must see no change.
Recipe:
internal/provider/global_router_baseline_*_test.go. The harness needs only the resource name. Record the raw request bodies, not parsed ones: alertUniqueIds: {} and {"value": []} parse alike but are different requests. Plan the applied config again after each refresh (RefreshPlan) to catch perpetual diffs.TestGlobalRouterFakeMatchesRecordedBackend). A fake that is built from notes hides real behavior: the first comparison found 7 differences.behavior-overrides.yaml in the output directory: one line per released field behavior. Run tfgen check --overrides. Add PINNED-SDK lines for facts the pinned SDK lacks. When the API holds a value in a one-property object and the released schema shows the plain value ({"query": {"value": "x"}} as query = "x"), list the component in unwrap. Read the handwritten expand and flatten for each one-property object first: many stay objects, and one component can collapse in one place only (an unwrap: true or unwrap: false field line).api.operations. Then run tfgen generate --resource <Name> --out <dir> with no operation flags. The diff must be empty, including ExactlyOneOf and other schema validators.x-coralogix-presence: true; then the generator stops, so ask for the annotation or probe a read and write a line. A new enum value stops the generator until it is in values or rejected.acceptance.yaml next to the overrides (prerequisite HCL, real values, skip, minimal, upgradeFrom) and run tfgen generate. Keep the hand test until the generated one has passed on a tenant.Why: Terraform plan modifiers, defaults, and null/empty reads decide whether an upgrade is silent. A schema dump and a second plan after apply catch what a compile cannot.
coralogix/terraform-provider-coralogix
8110e9e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.