AGENT SKILL
aky-review-staged-commit
Review staged changes; commit if no issues.
- License 许可
- CC0-1.0
- 最近更新
- 2026-10-23
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- aky-review-staged-commit
- description
- Review staged changes; commit if no issues.
02 资源文件 1
- 脚本scripts/review_diff.py8.0 KB
03 SKILL.md 正文
Review staged changes and commit
- Run
scripts/review_diff.pyto get the staged file list and a diff dump path. Skipgit status.- If it reports no staged changes, tell the user and stop.
- stdout lists each file with its status and line range (
L<start>-<end>) in the diff file, for quick navigation. - Diff file format (one section per changed file, separated by a blank line):
- Header line: file path
- Two-char line prefix:
+plus a space = added line,-plus a space = removed line, two spaces = unchanged context renamed from <old path>marks a rename (may have no further content if nothing else changed)binary filemarks a binary file with no content shown...marks a gap where unchanged lines were omitted between two changed regions
- Read the diff file and review it for issues.
- Do not fix problems — only report them.
- Do not run tsc / lint / test; they should have passed already.
- If issues found: report them in the user's language, then stop. Do not commit.
- If no issues: commit the staged changes.
- Commit exactly the files that are already staged. Never
git adda file that wasn't staged, never unstage, and never usegit commit -a. - Message: Conventional Commits format, one line, no body.
- When staged changes span multiple unrelated edits, find their common intent (e.g. "improve code quality" / "fix minor issues" / "clean up config") — do not enumerate which functions or variables changed.
- Commit exactly the files that are already staged. Never
- If a git hook blocks the commit with biome errors: run
./node_modules/.bin/biome check --fix --unsafe, re-stage, then retry the commit once.
04 同仓库更多 Skills
local-worker
用户手动触发
★ 0
local-plan-writing
当写计划文档时使用
★ 0
local-master
用户手动触发
★ 0
aky-review-resolve
Analyze unresolved GitHub PR review comments; fix and resolve after confirmation.
★ 0
aky-model-routing
Decompose a request and route each subtask to the cheapest capable model tier.
★ 0
local-worker
暂无简介
★ 0