cco-templates
Original:🇺🇸 English
Translated
Manage context templates for common task types
13installs
Added on
NPX Install
npx skill4agent add egorfedorov/claude-context-optimizer cco-templatesTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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)
listShow all available templates:
bash
ls ~/.claude-context-optimizer/templates/*.json 2>/dev/nullFor each template, show its name, description, and file list.
create <name>
create <name>Help the user create a new template. Ask them:
- What type of task is this for? (e.g., "bug-fix", "new-feature", "refactor", "review")
- Which files/patterns should be pre-loaded?
Also suggest files based on historical tracking data:
bash
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js suggest "$(pwd)"Save the template as with format:
~/.claude-context-optimizer/templates/<name>.jsonjson
{
"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>
apply <name>Read the template and execute:
- Run any
preCommands - Read the listed files
- Search for the listed patterns using Glob
This gives Claude exactly the right context for the task type.
delete <name>
delete <name>Delete the template file and confirm.