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.

majiayu000 Updated 567 repo stars

File contents

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.

majiayu000/claude-skill-registry-data/tree/main/analysis/git-historian commit a3f44b7dd9

Frequently asked questions

npx skillmds@latest add majiayu000/git-historian