OpenParable
Skip to content
← Back to skills

Update Vettedpositions

Development
update-vettedpositions

Update Vettedpositions is an Agent Skill for development published in the authgear/authgear-server repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Update .vettedpositions after harmless line-number moves in goanalysis output.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/authgear/authgear-server/blob/HEAD/.claude/skills/update-vettedpositions/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/update-vettedpositions, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Use this skill only for line-number drift in vetted positions.

Workflow

  1. Run go run ./devtools/goanalysis ./cmd/... ./pkg/....
  2. For each reported item, check whether it is only a line-number move with no semantic change.
  3. If it is a line-number move, update .vettedpositions to remove the old position and add the new one.
  4. If it is a genuinely new warning, stop and report it instead of updating .vettedpositions.
  5. Re-run go run ./devtools/goanalysis ./cmd/... ./pkg/....
  6. Run make sort-vettedpositions.
  7. Commit the change with the message Update .vettedpositions for changed line numbers.

Notes

  • Do not add new vetted positions for new issues.
  • Keep the file sorted by using the repo target, not by hand.