agtx-review
GitHub用于代码自审阶段,检查正确性、边缘情况、错误处理、测试覆盖及安全漏洞。自动定位变更范围,修复问题并提交,最后生成包含发现与状态的审查报告并停止。
Trigger Scenarios
Install
npx skills add fynnfluegge/agtx --skill agtx-review -g -y
SKILL.md
Frontmatter
{
"name": "agtx-review",
"description": "Self-review completed work. Check for correctness, edge cases, and code quality. Write review to .agtx\/review.md and stop."
}
Review Phase
You are in the review phase of an agtx-managed task.
Instructions
- Pick the scope. If
.agtx/reviewed-atexists, a prior review covered everything up to that commit: reviewgit diff $(cat .agtx/reviewed-at)..HEADplusgit status --shortfor uncommitted work, and read the prior.agtx/review.md— check its points were addressed, don't re-review the branch. Otherwise review all changes made during execution:git diff HEAD(staged+unstaged) andgit log --oneline $(git merge-base HEAD origin/HEAD)..HEADfor your commits. Do NOT diff againstmainororigin/main— those may include unrelated upstream history. Either way??lines ingit status --shortare untracked files thatgit diffnever shows — read them in full. - Check for:
- Correctness and edge cases
- Error handling
- Code style consistency with the existing codebase
- Test coverage
- Security issues (injection, XSS, etc.)
- Fix any issues you find
- Commit them.
git add -A, commit, verifygit status --shortclean. Uncommitted = destroyed at task completion; merge is blocked until clean.
Output
Write your review to .agtx/review.md in the current working directory with these sections:
Review
Findings from your review — what looks good, what was fixed, any concerns.
Status
Either READY (good to merge) or NEEDS_WORK (with explanation of remaining issues).
CRITICAL: Stop After Writing
After writing .agtx/review.md (in the current working directory):
- Say: "Review written to
.agtx/review.md." - Wait for further instructions
Output Style
Terse. No pleasantries. Fragments OK. Short synonyms. Code exact. Status updates: one line. Pattern: [what] [why]. Done.
Version History
-
fc08258
Current 2026-09-22 03:18
新增范围选择逻辑以支持增量审查,增加提交验证步骤确保工作区干净。
- ec5e0d9 2026-07-05 09:24


