一键导入
git-context-recovery
Use when user references previous work phases, tasks, or discussions from prior sessions not present in current conversation context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when user references previous work phases, tasks, or discussions from prior sessions not present in current conversation context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when deciding how to manage, audit, sync, enable, disable, or troubleshoot skills and agents with the skillshare CLI across Claude Code, Codex, Gemini, OpenCode, Kiro, Goose, Pi, Antigravity, or project-local .skillshare setups. Especially use for questions about global vs project mode, disabled-by-default policies, .skillignore/.agentignore, target drift, broken symlinks, duplicate skills, sync dry-runs, or whether to use skillshare versus a runtime-native tool such as Codex skill-manager.
Use when creating git commits or reviewing commit messages. Ensures messages follow the Conventional Commits specification v1.0.0, which enables automated changelogs and semantic versioning. Invoked when the user wants to commit changes, craft a commit message, or validate an existing one.
Use when designing or reviewing Python classes, deciding where logic belongs, or recognizing antipatterns like helper classes, utility bags, and god objects.
Use when crafting prompts that require factual accuracy, working with long documents, generating claims that need verification, or when outputs must be auditable and grounded in source material
Use when transitioning between work sessions and wanting to pick up where the previous session left off.
Use when: tracking work, adding todos, filing bugs, managing tasks/issues, checking what to work on, planning epics, deferring work, pre-PR checks, or any mention of bd/beads. Covers the full bd CLI.
| name | git-context-recovery |
| description | Use when user references previous work phases, tasks, or discussions from prior sessions not present in current conversation context. |
This skill automatically searches git history to recover context when you reference previous work that isn't in the current session memory.
This skill detects when you reference previous work context:
Trigger phrases:
What it does: Instead of asking you to clarify or searching in wrong places, Claude will immediately:
Before this skill:
With this skill:
When triggered, Claude follows this search priority:
# Check last 10 commits
git log --oneline -10
# Read latest commit message in detail
git show HEAD
# If commit references the topic, show full commit
git show <relevant-commit-hash>
What to look for:
git status
git diff # Unstaged changes
git diff --staged # Staged changes
git diff HEAD~3..HEAD --stat # Recent file changes
# Check CLAUDE.md "Pending Work" section
# Check latest task folder
# Check /docs/, /refs/ directories
# Read task-metadata.md if exists
Why fourth: Session-specific context for multi-day work. Captures informal decisions not in commits.
ls -lt .claude-sessions/ | head -3
# Read most recent session note
What to look for:
grep -rn "TODO\|FIXME\|Phase\|Step" <relevant-files>
"I checked git history (last 10 commits), recent changes, and project docs but couldn't find context for [X]. Could you clarify what you're referring to?"
User: "Phases 1-2 complete, 3-4 TBD"
Claude (with this skill):
# Immediately runs:
git log --oneline -5
# Sees: "4fb223a WIP: Add bidirectional MIDI..."
git show 4fb223a
# Finds commit message:
# "Phase 1 & 2 Complete:
# - IOPort support with graceful fallback
# - Grouping infrastructure
# Remaining:
# - Phase 3: Rewrite print_message()
# - Phase 4: Add CLI flags"
Claude responds: "Found context in commit 4fb223a:
Ready to start Phase 3. Should I proceed with rewriting print_message()?"
When user references previous work context that isn't in current session memory:
Recognize trigger phrases or situations where user expects Claude to know something from prior work.
# Read recent commits
git log --oneline -10
# Show latest commit in detail
git show HEAD
# If user mentioned specific topic/phase, search commit messages
git log --all --grep="Phase\|TODO\|WIP" --oneline -20
# See what files changed recently
git diff HEAD~5..HEAD --stat
# Read actual changes in relevant files
git diff HEAD~5..HEAD <file>
ls -lt .claude-sessions/ | head -3
# Read most recent session note
/tasks/, /docs/, /refs/ directories for latest worktask-metadata.md if exists# Search for phase markers, TODOs in code
grep -rn "Phase\|TODO\|FIXME\|Step" <relevant-files>
State what you searched and what you didn't find:
"I checked:
Couldn't find context for '[user's reference]'. Could you clarify what work you're referring to?"
Token efficiency:
User experience:
Code quality:
For users:
For Claude:
~/.claude/conventions/context-recovery.md - Full search priority protocol~/.claude/conventions/session-notes.md - Session note structure for multi-day work~/.claude/conventions/task-workflow.md - Task organization patternsThis skill makes git history a first-class context source alongside project documentation.