dhpk-git-history-investigationlisted
Install: claude install-skill hmj1026/dhpk
# Git Investigate Skill
## When NOT to Use
- Code review (use codex-review)
- Feature development (use `dhpk-adaptive-dev-workflow` in feature mode)
- Just want to read code (use Read directly)
## Command
```bash
/dhpk:dhpk-git-history-investigation src/service/xxx.ts:123 # Specific line
/dhpk:dhpk-git-history-investigation processToken # Function name
/dhpk:dhpk-git-history-investigation "error message" # Keyword
```
## Workflow
```
Locate code -> git blame -> find commit -> trace history -> analyze changes -> report
```
## Investigation Framework
| Question | Method |
| ------------------ | ----------------------------- |
| Who wrote it? | `git blame` |
| When was it changed?| `git log --follow` |
| Why was it changed?| commit message + PR |
| What was missed? | `git diff` compare original vs problematic version |
## Common Patterns
| Pattern | Symptom | Root Cause |
| ------------------ | -------------------- | ----------------------------- |
| Type removed | Enum value deleted | Assumed no longer needed |
| Condition simplified| If conditions reduced| Missed during refactoring |
| Rename | Partially unchanged | Incomplete search-and-replace |
| Boundary ignored | Only handles main flow| Edge cases not considered |
## Output
```markdown
## Git Investigation Report
- **Target*