Smart Context Pack
SkillFiles & storageBuild an optimal context pack for the user's task, ranked file list with offset/limit suggestions, based on git state, mentioned paths, and historical patterns
Use Smart Context Pack in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Smart Context Pack and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Smart Context Pack skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by egorfedorov/claude-context-optimizer in skills/cco-pack/SKILL.md and read by Ahel’s review.
When the user runs /cco-pack or asks "what files do I need for X", build a curated, token-budget-aware list of files to load instead of guessing or reading the whole repo.
How to use
node ${CLAUDE_PLUGIN_ROOT}/src/smart-pack.js "the task description"
Or for the current git state without a description:
node ${CLAUDE_PLUGIN_ROOT}/src/smart-pack.js
Or to feed it back into automation as JSON:
node ${CLAUDE_PLUGIN_ROOT}/src/smart-pack.js --json "..."
How it ranks files
Priority order:
- Mentioned in prompt — explicit file paths or recognisable names → relevance 100
- Modified in git working tree → 85
- Historically useful in this project (high confidence, edited often) → up to 70
- Keyword match against the task → up to 70
For each file the pack also suggests offset / limit — pointing at the structurally relevant section based on file landmarks (function/class declarations near task keywords).
Token budget awareness
Pack stops adding files once it would exceed 25% of the user's effective context budget. The budget itself respects the configured model (e.g. the full 1M window for opus-5.5 — 1M is standard on Opus, no premium tier).
Presentation
After running, present the list to the user and offer to:
- Read the top N files with the suggested offset/limit
- Save the set as a template (
/cco-templates create <name>) - Drop low-relevance items if they want a tighter pack
Signals
- GitHub stars
- 114
- Forks
- 9
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
cco-pack- Source
- github.com/egorfedorov/claude-context-optimizer
github.com/egorfedorov/claude-context-optimizer
Related picks
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · wshobson
The pick for JavaScriptpptx
Skill · anthropics
More in Files & storagedocx
Skill · anthropics
More in Files & storageresearch
Skill · mattpocock
More in Files & storageto-tickets
Skill · mattpocock
More in Files & storage