git-context
Skill127 starsChanged 26 days agoMITView on GitHub
Search git history for context — commit messages, blame, related changes, impact analysis
1 other project uses a version of this.
Adopted by
Most recently taken up by
- timmo001/skillstheir own version, first seen Nov 7, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- timmo001/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wiki/AGENTS.mdAGENTS.md
- wiki/CLAUDE.mdCLAUDE.md
- accountable-engineeringSkill
- adrSkill
- babysit-prSkill
- blindspot-passSkill
- capability-experimentsSkill
- codemapSkill
- code-quality-reviewSkill
- code-reviewSkill
- commit-atomicSkill
- context-discoverySkill
- diagnosing-bugsSkill
- doc-searchSkill
- docs-updateSkill
- draft-pull-requestSkill
- handoffsSkill
- implementation-loggerSkill
- implement-specSkill
- llm-wikiSkill
- orchestrating-fusionSkill
- pickupSkill
- plannotator-setup-goalSkill
- portless-localSkill
- prdSkill
- pr-reviewSkill
- prSkill
- qmd-knowledgeSkill
- quiz-meSkill
- ralphSkill
- retroSkill
- security-auditSkill
- slopSkill
- spec-interviewSkill
- tddSkill
- tmuxSkill
- visual-prSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Distinctive: line 106
Before implementing a change, check:
- Distinctive: line 139
Commit messages matter: Write clear messages — they become the primary documentation
- Very specific: line 143
Use
--allfor complete picture: Default git log only shows current branch history - Very specific: line 147
Use before /blindspots to gather initial context
- Very specific: line 148
Use during context-discovery for deep git history analysis
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Context
When to Use
Use this skill when:
- Understanding why code was written a certain way
- Finding related changes across the codebase
- Tracing the evolution of a feature or pattern
- Identifying who has expertise in a module
- Finding past bug fixes or regressions in an area
What It Does
Searches git history to build context about the codebase, using a combination of native git commands and the sem MCP tool for deeper analysis. Helps answer "why was this done this way?" and "what changed recently in this area?"
How to Execute
Find Recent Changes to a Module
# Recent commits touching this area
git log --oneline --all -20 -- path/to/module/
# Who works on this area most
git shortlog -sn -- path/to/module/
# When a specific function was introduced
git log -S "functionName" --oneline -- path/to/module/Trace a Function's History
# When was this function introduced?
git log -S "export function calculateTotal" --oneline
# Who has modified it?
git blame path/to/file.ts -L 10,30
# What was the commit message?
git show <commit-hash> --no-patchFind Related Changes
# Files changed together in the same commits
git log --all --name-only -- path/to/changed/file.ts | head -20
# Find commits that reference a ticket or pattern
git log --all --grep="fix|bug|hotfix" --oneline -20Using sem for Deeper Analysis
# Entity-level blame (function level)
sem blame path/to/file.ts --function processOrder
# Impact analysis
sem impact path/to/file.ts --function processOrder
# Compare branches at function level
sem diff main..HEAD -- path/to/file.tsCross-Session Context
# Search past agent sessions about this module
ctx search "this module" path/to/module/
# Find past discussions about related changes
ctx search "bug fix" path/to/module/Decision Tree
┌────────────────────────────┬────────────────────────┐
│ Need this │ Use this │
├────────────────────────────┼────────────────────────┤
│ What changed recently │ git log -20 -- path/ │
│ Who works on this module │ git shortlog -sn path/ │
│ Why was this line added │ git blame path/to/file │
│ When was function added │ git log -S "funcName" │
│ What else changed together │ git log --name-only │
│ Impact of changing X │ sem impact path/func │
│ Past agent work on this │ ctx search "topic" │
└────────────────────────────┴────────────────────────┘Common Patterns
Pre-Implementation Check
Before implementing a change, check:
# 1. Recent changes to affected modules
git log --oneline --all -10 -- src/feature/
# 2. Who has expertise
git shortlog -sn -- src/feature/ | head -5
# 3. Related commits (ticket/branch references)
git log --all --grep="feature-name" --oneline
# 4. Past bugs in this area
git log --all --grep="bug|fix|error" --oneline -10 -- src/feature/Post-Change Verification
After implementing, verify:
# 1. What did I change?
git diff --stat
# 2. Are there unrelated changes?
git diff --cached --name-only
# 3. Did I miss anything?
git diff HEAD --name-only # Unstaged changesTips
- Commit messages matter: Write clear messages — they become the primary documentation
- Use
git log -Sovergrepfor history:grepscans the working tree;git log -Sscans history - Combine with
ctx: Past agent sessions often contain context that git history doesn't - Be specific with paths:
git log -- path/filters to relevant commits, reducing noise - Use
--allfor complete picture: Defaultgit logonly shows current branch history
Integration with Other Skills
- Use before
/blindspotsto gather initial context - Use during
context-discoveryfor deep git history analysis - Log surprising git history findings in
implementation-logger
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

