Skip to content
Back to skills

Cco Templates

ASecurity

Manage context templates for common task types

  • 113 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
toolsbashnodegit

Security analysis

A100/100

Scanned September 30, 2026

npx -y skills add egorfedorov/claude-context-optimizer --skill cco-templates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cco Templates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cco Templates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/egorfedorov-cco-templates/badge)](https://www.skillsdirectory.com/skills/egorfedorov-cco-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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(node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js:*)"
  - Read
  - 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: 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:
```bash
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:
```json
{
  "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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.