CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

generator-key-needs-golden

Use when adding a generator key or branch in tools/iac-codegen. Cover it with a golden fixture. Do NOT use for a resource-only override line.

74

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

A new generator key needs a golden

Trigger: A new key or branch in tools/iac-codegen (a field line, an enum line, or a convert or schema branch).

Fix: Add or extend a fixture under internal/generator/testdata. customthing covers custom methods, root and nested requestValue, readNullAs, string readEmptyAs, requireOne, readRejected, unwrap, and a missing enum that reads as the field's string default. Run go test ./internal/generator -run TestGoldenOutput<Name> -update and commit the golden. A second run without -update must pass.

Why: A key that only a resource's generated files show can change without a test noticing.

Repository

coralogix/terraform-provider-coralogix

Path

.claude/skills/generator-key-needs-golden/SKILL.md

Last updated
First committed

Is this your skill?

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.