About cco-git
cco-git analyzes the current Git state and suggests files Claude may need for a task. It considers modified files, related tests and configs, and historically useful files, leaving the choice to the user.
Key features
- 01Shows the current branch and modified files
- 02Suggests files based on Git diffs
- 03Includes related tests and configs
- 04Surfaces historically useful files
- 05Asks before loading suggested files
Use cases
- 01Choose relevant files for a coding task
- 02Find tests and configs related to current changes
- 03Review suggestions without automatically reading files
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ egorfedorov/ claude-context-optimizer --skill cco-gitAfter installing, type/cco-gitin Claude Code to confirm it loaded.
Details
From the project READMEGit-Aware Context Suggestions
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:
- Current branch and modified files
- Suggested files based on git diff (modified + related test files + configs)
- Historical patterns — files that were frequently useful in this project
- Ask the user if they want to load any of the suggested files
Do NOT auto-read files. Only suggest and let the user decide.
Comments
Markdown supported