← Back to list

decision-archaeology
by ntsk
⚡
⭐ 3🍴 2📅 Jan 24, 2026
SKILL.md
name: decision-archaeology description: Investigate why code was written a certain way. Use when tracing decision history through git blame, commit logs, PRs, and issues to understand the reasoning behind code changes. allowed-tools:
- Bash(git log:*)
- Bash(git show:*)
- Bash(git blame:*)
- Bash(git diff:*)
- Bash(gh pr list:*)
- Bash(gh pr view:*)
- Bash(gh issue list:*)
- Bash(gh issue view:*)
- Bash(gh search:*)
- Bash(gh api:*)
- Read
- Grep
- Glob
Decision Archaeology Skill
Rules
Read-only operations only.
For gh api: GET requests only. No -X POST/PUT/PATCH/DELETE or -f/-F flags.
Workflow
- Identify code - Target file, lines, or function
- Find commit -
git blame→ introducing commit - Trace PR/Issue - Check commit message for
#123references - Summarize rationale - Output findings
For detailed commands: See references/commands.md
Key Commands
git blame -L <start>,<end> <file> # Find who changed lines
git log -S "code" --oneline # Find when code was added
gh pr list --search "<sha>" --state all # Find PR for commit
Output Format
## Decision Archaeology Report
### Target
- File: [path/to/file]
- Lines: [XX-YY]
### Timeline
#### [Date] Commit: [short-sha]
- Author: [name]
- Message: [commit message]
- PR: #[number] [title]
- Related Issue: #[number]
### Decision Rationale
[Summary of why, based on PR discussions, issue context, commit messages]
### Key References
- PR #[number]: [URL]
- Issue #[number]: [URL]
- Commit: [sha]
Tips
- Start with
git blameto find introducing commit - Check commit message for
#123references - PR descriptions and review comments contain the "why"
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon


