skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
egorfedorov/claude-context-optimizer182 installs

cco-templates

Manage context templates for common task types

How do I install this agent skill?

npx skills add https://github.com/egorfedorov/claude-context-optimizer --skill cco-templates
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubwarn

    This skill allows managing 'context templates' that include lists of files and shell commands. The main security concern is that the 'apply' function executes arbitrary shell commands defined in these template files, which could lead to unauthorized command execution if a user is tricked into creating or using a malicious template.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

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: Glob ~/.claude-context-optimizer/templates/*.json. 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

Save (the user approves the write) 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.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/egorfedorov/claude-context-optimizer/cco-templates">View cco-templates on skillZs</a>