/cco-templates
Manage context templates for common task types
$ npx -y skills add egorfedorov/claude-context-optimizer --skill cco-templates --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/cco-templates
Context preview
The summary Claude sees to decide when to auto-load this skill.
Manage context templates for common task types
SKILL.md
cco-templates.SKILL.mdname: cco-templates
description: Manage context templates for common task types
license: MIT
argument-hint: "[list | create <name> | apply <name> | delete <name>]"
allowed-tools: [Bash, Read, Write, Glob]
Context Templates
Context templates are pre-defined sets of files to read for common task types, saving time and tokens by loading only what's needed.
Templates are stored in `~/.claude-context-optimizer/templates/`.
Parse $ARGUMENTS:
`list` (or no arguments)
Show all available templates:
ls ~/.claude-context-optimizer/templates/*.json 2>/dev/null
For each template, show its name, description, and file list.
`create <name>`
Help the user create a new template. Ask them: 1. What type of task is this for? (e.g., "bug-fix", "new-feature", "refactor", "review") 2. Which files/patterns should be pre-loaded?
Also suggest files based on historical tracking data:
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js suggest "$(pwd)"Save the template as `~/.claude-context-optimizer/templates/<name>.json` with format:
{
"name": "template-name",
"description": "What this template is for",
"files": ["relative/path/to/file1", "relative/path/to/file2"],
"patterns": ["**/*.config.*", "src/core/**"],
"preCommands": ["git status", "git log --oneline -5"]
}`apply <name>`
Read the template and execute: 1. Run any `preCommands` 2. Read the listed files 3. Search for the listed patterns using Glob
This gives Claude exactly the right context for the task type.
`delete <name>`
Delete the template file and confirm.
Read more
name: cco-templates description: Manage context templates for common task types license: MIT argument-hint: "[list | create <name> | apply <name> | delete <name>]" allowed-tools: [Bash, Read, Write, Glob]
Context Templates
Context templates are pre-defined sets of files to read for common task types, saving time and tokens by loading only what's needed.
Templates are stored in `~/.claude-context-optimizer/templates/`.
Parse $ARGUMENTS:
`list` (or no arguments)
Show all available templates:
ls ~/.claude-context-optimizer/templates/*.json 2>/dev/null
For each template, show its name, description, and file list.
`create <name>`
Help the user create a new template. Ask them: 1. What type of task is this for? (e.g., "bug-fix", "new-feature", "refactor", "review") 2. Which files/patterns should be pre-loaded?
Also suggest files based on historical tracking data:
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js suggest "$(pwd)"Save the template as `~/.claude-context-optimizer/templates/<name>.json` with format:
{
"name": "template-name",
"description": "What this template is for",
"files": ["relative/path/to/file1", "relative/path/to/file2"],
"patterns": ["**/*.config.*", "src/core/**"],
"preCommands": ["git status", "git log --oneline -5"]
}`apply <name>`
Read the template and execute: 1. Run any `preCommands` 2. Read the listed files 3. Search for the listed patterns using Glob
This gives Claude exactly the right context for the task type.
`delete <name>`
Delete the template file and confirm.
Claude Code plugin that tracks token usage, identifies wasted context, and saves 30-50% on API costs. Heatmaps, ROI reports, budget alerts, efficiency scores, git-aware suggestions — all local, zero config.
Repo: egorfedorov/claude-context-optimizer
Other skills on claude-context-optimizer.
- /cco-anatomy
Generate a compact project map so Claude understands the codebase without opening every file
Open skill - /cco-budget
Configure token budget limits, auto-compact settings, and view current budget status (model-aware — Opus 4.8 default, full 1M context at standard price)
Open skill - /cco-claudemd
Analyze CLAUDE.md files for token bloat and suggest optimizations
Open skill - /cco-clean
Clean up old tracking data and reset statistics
Open skill - /cco-coach
Analyze the user's last prompt for clarity, scope and specificity — give a quality score and concrete suggestions to make the next prompt produce better results
Open skill - /cco-digest
Show weekly/daily efficiency digest with score and trends
Open skill

