Agent Skills
› authgear/authgear-server
› update-vettedpositions
update-vettedpositions
GitHub用于处理 Go 代码分析中因行号漂移导致的 .vettedpositions 文件更新。自动识别无害的行号变化并修正文件,保留新警告以便报告,确保静态分析结果准确。
Trigger Scenarios
Go 代码重构导致行号移动
goanalysis 输出位置漂移
Install
npx skills add authgear/authgear-server --skill update-vettedpositions -g -y
SKILL.md
Frontmatter
{
"name": "update-vettedpositions",
"description": "Update .vettedpositions after harmless line-number moves in goanalysis output.",
"argument-hint": "<changed files or analysis output>"
}
Use this skill only for line-number drift in vetted positions.
Workflow
- Run
go run ./devtools/goanalysis ./cmd/... ./pkg/.... - For each reported item, check whether it is only a line-number move with no semantic change.
- If it is a line-number move, update
.vettedpositionsto remove the old position and add the new one. - If it is a genuinely new warning, stop and report it instead of updating
.vettedpositions. - Re-run
go run ./devtools/goanalysis ./cmd/... ./pkg/.... - Run
make sort-vettedpositions. - 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.
Version History
- 2dd6d88 Current 2026-07-24 16:31


