JerryBalmer1

build-and-verify

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.

JerryBalmer1 0 Updated 4w ago
GitHub

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

  1. Read CLAUDE.md and the ## Unreleased section of CHANGELOG.md (note it in the report if there is none). Then open only the files the task names, plus the files those point to.
  2. 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, the GNUmakefile targets of the same name run the same commands.
  3. Run in this order and stop at the first failure:
    1. Invoke-Build Build
    2. Invoke-Build Lint (go vet, golangci-lint v2 pinned, gofmt check)
    3. Invoke-Build Test
    4. Invoke-Build TestAcc (needs Docker and an EE image; report NOT RUN when either is missing)
  4. If schema descriptions, examples or doc templates changed: Invoke-Build Docs. It regenerates docs/ and .claude/skills/ansible-provider/SKILL.md; stage both.
  5. 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).