egorfedorov/claude-context-optimizer

cco-templates

Manage context templates for common task types

First seen Mar 23, 2026

Installation

$ npx skills add egorfedorov/claude-context-optimizer --skill cco-templates

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from egorfedorov/claude-context-optimizer · top by installs.

npx skills add egorfedorov/claude-context-optimizer

Browse all from egorfedorov/claude-context-optimizer

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 107
License LICENSE
Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseMIT
Allowed toolsBash, Read, Write, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,587 B
  • docs SUMMARY.md 67 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 167 installs

SKILL.md

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.