gaps
Gaps — judge a change against its ticket, read-only: what it meets, misses, gets wrong, adds unasked, and leaves to a sibling ticket. Fires on a dirty tree, a branch, commit or tag, or a PR, and on any ask whether a change does what its ticket asks.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- gaps
- description
- Gaps — judge a change against its ticket, read-only: what it meets, misses, gets wrong, adds unasked, and leaves to a sibling ticket. Fires on a dirty tree, a branch, commit or tag, or a PR, and on any ask whether a change does what its ticket asks.
- argument-hint
- [#N ticket] [<fixed-point> | PR #N/URL]
02 资源文件 1
- 参考文档REPORT.md755 B
03 SKILL.md 正文
Gaps
Judge a change against the ticket it answers, and report. You are a reporter: every finding stays a finding for the human, and the code stays as it is.
1. Pin the diff
Pick the origin of the diff.
- PR (a URL, or a number that
gh pr viewresolves to a PR) →gh pr diff <N>, plusgh pr view <N> --json title,body,commitsfor the body and the commits. - Fixed point (a commit, branch or tag) →
git diff <fixed-point>...HEAD(three-dot, against the merge-base), plusgit log <fixed-point>..HEAD --oneline. Confirm the ref resolves (git rev-parse). - Dirty tree, nothing else given →
git diff HEAD, plusgit statusfor the untracked files the diff misses. - Clean tree, nothing given → ask which change to judge, and stop.
Confirm the diff is not empty.
2. Fetch the ticket and its owners
The issue tracker convention should already be in your context — run
/setup-skills if not. Find the ticket in this order:
- The ticket reference in the argument.
- References in the PR body or the commit messages (
#123,Closes #45). - Nothing found → ask which ticket the change answers, and stop.
Fetch it with its full body and comments. When it is a ticket cut from a spec, also read the spec and list its other tickets with their state. Together they give each spec requirement an owner: this ticket owns its acceptance criteria, and each sibling owns the requirements it carries. A requirement that an open sibling owns is deferred — planned for that ticket, so it is not a gap in this one.
3. Judge
Judge the diff against the requirements this ticket owns. Give each one a status: met; missing or partial; wrong (it looks implemented, but the implementation looks wrong). Then list:
- unasked — behavior in the diff that no requirement of this ticket asks for, including code an open sibling owns;
- deferred — each spec requirement an open sibling owns, with that sibling;
- unowned — spec requirements no ticket owns;
- ambiguous — requirements that can be read another way, with that reading.
Quote the spec line for each finding, and give file:line for each one the diff
touches. Done when every requirement has a status and every finding carries its
quote.
4. Report
Report as REPORT.md defines it.
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
walkthrough
Build a throwaway HTML reading guide for a set of changes (dirty tree, local commits, or a PR): what it means for users and for the system, then an ordered walk through the code with links that open each file in the IDE. Orients the human; leaves every quality call to them.
teach
Teach the user a new skill or concept, within this workspace.
suggest-reviewers
Suggest GitHub reviewers for the current branch's Pull Request by ranking the people who actually own and recently touched the changed files (git history + CODEOWNERS). Use when the user asks who should review this PR/branch or wants reviewer suggestions. Also invoked as the final step of the github-pr skill.
setup-skills
Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's issue tracker (GitHub, GitLab, ClickUp, or local markdown), domain doc layout, and error tracking. Run as a first-time bootstrap for a repo, or if engineering skills appear to be missing context about the issue tracker, domain docs, or error tracker.