Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Morrison-Lab/ai-config --skill check-history명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | check-history |
| description | Check closed PR history for issue. |
| user-invocable | false |
| allowed-tools | ["Bash","Read"] |
Before implementing changes for an issue or MR, review the repository's merge history to understand what decisions were made previously and why.
Before reviewing past history, confirm the issue still needs a new PR. Two checks (skipping them wastes a whole issue-pick):
Already resolved on main? An issue can go stale — fixed incidentally by
a later change (e.g. a dependency bump). Re-read the issue body against current
main before implementing.
gh issue view <N> --json state,title,body | cat # VIEW_ISSUE — also: is it already closed?
Existing open PR for it? Search open PRs for one that already addresses the issue, so you don't open a second, parallel PR for the same work.
gh pr list --state open --json number,title,headRefName,body \
--jq '.[] | select(((.body // "") | test("#<N>\\b")) or (.title | test("#<N>\\b"))) | "#\(.number) \(.title) [\(.headRefName)]"' # LIST_PRS
On a long-lived or foundational issue, the issue text AND any design-doc status header can lag the code by several PRs. A mature feature (a phased effort, or anything with a dedicated design doc) may be partly or mostly implemented even when the issue reads as unstarted. The work can land across sibling PRs that never updated this issue or that header. Before scoping new code, verify the actual implementation state against the code: read the key source files implementing the feature and the test files, not just the issue body. (Seen on sparta: issue #164 / #240 read as "phase 4b not done", but the core feature was already fully implemented and tested across sibling PRs — nearly rebuilt already-completed work. The right move was to audit, correct the stale issue/doc status, and pick the genuine next slice.)
If an open PR already covers it, drive that PR to clean instead of
re-implementing (ask before pushing to a branch you didn't create). If main
already satisfies the issue, stand it down and report — don't open a no-op PR.
When the issue is only partly done, don't rebuild the done part: audit it,
correct the stale issue/doc status, and scope only the genuine remaining slice.
Check the issue for an already-open PR. Before writing any code, look at
the issue itself for an open PR that already addresses it (one whose body
says Closes #<N>). A parallel session — or an issues-sweep run on another
machine — may already be on it; building anyway produces a duplicate PR.
GitHub:
gh pr list --state open --limit 100 --json number,title,body \
--jq '.[] | select((.body // "") | test("(Closes|Fixes|Resolves) #<N>\\b"; "i")) | "#\(.number) \(.title)"' # LIST_PRS
GitLab:
glab mr list --state opened --per-page=50 --output json 2>/dev/null \
| jq -r '.[] | select((.description // "") | test("(Closes|Fixes|Resolves) #<N>\\b"; "i")) | "!\(.iid) \(.title)"'
If an open PR already covers the issue, review or extend it instead of opening a competing one. This catches in-flight work; the merged/closed history below catches settled decisions.
List recent merged MRs touching the same area:
GitHub:
gh pr list --state merged --limit 20 --json number,title,headRefName | cat # LIST_PRS
GitLab:
glab mr list --merged --per-page=20 2>&1 | cat
Identify relevant MRs — look for titles/branches that relate to the files or subsystem you're about to modify.
Read their descriptions for rationale:
GitHub:
gh pr view <N> --json body --jq '.body' | cat # VIEW_PR
GitLab:
glab mr view <N> 2>&1 | cat
Check for contradictions — if a prior MR/PR explicitly chose approach A and you're about to implement approach B, understand A was chosen. Common patterns:
Report a brief summary to the user:
If a conflict is found, surface it before writing code — don't implement first and discover the regression later.
Document the relationship in your commit message or MR/PR description: