Awesome-omni-skill context-curation
Analyzes staged git changes and evaluates agentic context files (Claude, Codex, Cursor, etc.) to suggest additions or removals. Use after staging changes before committing.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ai-agents/context-curation" ~/.claude/skills/diegosouzapw-awesome-omni-skill-context-curation && rm -rf "$T"
manifest:
skills/ai-agents/context-curation/SKILL.mdsource content
Context Curation
Analyze staged git changes and evaluate whether agentic context files need to be updated to reflect those changes.
When to Use This Skill
- After staging changes, before committing
- When introducing new patterns, conventions, or APIs
- When deprecating or removing significant functionality
- When refactoring code that may invalidate existing context documentation
- Periodically to audit context file freshness
Supported Context File Locations
This skill scans for agentic context files across multiple platforms:
| Platform | Locations |
|---|---|
| Claude Code | , |
| Codex | , |
| Cursor | , |
| Aider | , |
| GitHub Copilot | , |
| Generic | , , |
| Project docs | , (architecture sections) |
Analysis Workflow
Step 1: Inspect Staged Changes
Run
git diff --staged to understand what's being committed:
- New files and their purposes
- Modified functions, classes, or modules
- Deleted code and removed dependencies
- Changed APIs, interfaces, or contracts
Step 2: Scan Existing Context Files
Locate all agentic context files in the repository and extract:
- Documented patterns and conventions
- Architecture decisions and rationale
- API references and usage examples
- Project-specific rules and guidelines
Step 3: Compare and Analyze
Cross-reference staged changes against existing context:
- New patterns: Code introduces conventions not yet documented
- API changes: Public interfaces modified or extended
- Deprecated code: Removed functionality still referenced in context
- Stale references: Context mentions files, functions, or patterns that no longer exist
Step 4: Generate Recommendations
Produce actionable suggestions with clear rationale.
Output Format
Additions Needed
For each suggested addition:
## ADD: [Brief description] **Context file**: [path to file that should be updated] **Rationale**: [Why this should be documented] **Suggested content**: [Proposed text to add] **Evidence from staged changes**: - [file:line] - [relevant code snippet or change]
Removals Needed
For each suggested removal:
## REMOVE: [Brief description] **Context file**: [path to file containing outdated content] **Current content**: [text that should be removed or updated] **Rationale**: [Why this is now stale] **Evidence from staged changes**: - [file] - [deleted or changed code that invalidates this]
No Changes Needed
If context files are already aligned with staged changes:
## Context files are up to date Reviewed [N] context files against staged changes. No updates recommended.
Instructions
- First, run
to get an overview of staged changesgit diff --staged --stat - Run
to examine the actual changes in detailgit diff --staged - Search for all supported context file locations listed above
- Read each context file found
- Analyze whether staged changes introduce patterns, APIs, or conventions that should be documented
- Analyze whether staged changes remove or deprecate anything referenced in context files
- Present findings using the output format above
- If no context files exist, suggest creating one appropriate for the project