Analyzes git repo in current directory to suggest context files: branch status, modified files, git diff-related tests/configs, and historical patterns. Prompts user to load.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-context-optimizer:cco-gitThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze the current git state and suggest which files Claude should read for the current task.
Analyze the current git state and suggest which files Claude should read for the current task.
Run:
node ${CLAUDE_PLUGIN_ROOT}/src/git-context.js
Present the results:
Do NOT auto-read files. Only suggest and let the user decide.
npx claudepluginhub egorfedorov/claude-context-optimizerGuides Git workflows in Claude Code: detects repo state, crafts conventional commits, creates PRs via GitHub CLI, manages branches, resolves merge conflicts.
Ranks files by relevance to the user's task — based on git state, mentioned paths, and historical patterns — with token-budget-aware offset/limit suggestions.
Groups related file changes, auto-generates branch names and commits, then offers streamlined push and PR creation.