# Git Historian

> Search codebase and git history for keywords. Use when investigating code changes, finding where features were added, or tracking down when bugs were introduced.

- Skill: `majiayu000/git-historian` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/git-historian`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/git-historian/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/git-historian

---


Search the codebase and git history for the specified keywords.

Arguments: $ARGUMENTS

This command searches both:
1. Working tree files (current code state)
2. Git history (last 10 commits' diffs)

Usage examples:
- `/git-historian LED strip`
- `/git-historian "error handling" config`
- `/git-historian memory leak --paths src tests`

Extract the keywords from the arguments and call the git_historian MCP tool with those keywords.
If `--paths` is specified, extract the paths that follow it and pass them as the paths parameter.
Otherwise, pass an empty paths array to search the entire repository.

Present the results in a clear, readable format showing both current code locations and historical context.

