Build, lint and test a change through the repo's Invoke-Build tasks before staging it. Use for any code, test or docs change, and whenever asked to build, test or verify.
Install
npx skillscat add jerrybalmer1/terraform-provider-ansible/build-and-verify Install via the SkillsCat registry.
SKILL.md
When to use
Before staging any change, and whenever asked to build, test, verify or "run the checks".
Steps
- Read
CLAUDE.mdand the## Unreleasedsection ofCHANGELOG.md(note it in the report if there is none). Then open only the files the task names, plus the files those point to. - When an Invoke-Build task exists for a job, run the task, never the raw command.
Invoke-Build ?lists the tasks. If no task fits, or a task lacks a switch you need, report it under "Tooling gaps" instead of working around it. Where make is installed, theGNUmakefiletargets of the same name run the same commands. - Run in this order and stop at the first failure:
Invoke-Build BuildInvoke-Build Lint(go vet, golangci-lint v2 pinned, gofmt check)Invoke-Build TestInvoke-Build TestAcc(needs Docker and an EE image; report NOT RUN when either is missing)
- If schema descriptions, examples or doc templates changed:
Invoke-Build Docs. It regeneratesdocs/and.claude/skills/ansible-provider/SKILL.md; stage both. - Stage the changed files by name (
git add <paths>). Never commit, push or tag.
Stop and ask when
- A task fails twice, even after a fix.
- The fix would touch files the prompt did not name.
- A step needs a live environment that isn't available. Report the step as not run; never mark it passed.
- Anything would be deleted.
Report
Use the report-template skill. Under "Checks run", list every task from step 3 with PASS, FAIL or NOT RUN (and why).