Skip to content

/cco-task

Organize work by task and track tokens/cost per task — start a task, list tasks, or mark the active one done. Pairs with /cco-pack to load minimal context per task.

shell
$ npx -y skills add egorfedorov/claude-context-optimizer --skill cco-task --agent claude-code

How 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-task
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Organize work by task and track tokens/cost per task — start a task, list tasks, or mark the active one done. Pairs with /cco-pack to load minimal context per task.

SKILL.md

cco-task.SKILL.md
name: cco-task
description: Organize work by task and track tokens/cost per task — start a task, list tasks, or mark the active one done. Pairs with /cco-pack to load minimal context per task.
license: MIT
argument-hint: "[add \"<name>\" | list | done [note]]"
allowed-tools: [Bash]

Tasks — per-task context & cost

A task is a named unit of work. While a task is active, the tokens the session spends are attributed to it, so the Control Center (`/cco`) can show cost **per task**, not just per session. This is how the optimizer helps you *distribute work by task* while keeping token spend visible and low.

Commands

Parse the user's argument and run the matching command (working directory scopes the tasks to the current project):

**Start / switch task** (also closes the previous active task):

node ${CLAUDE_PLUGIN_ROOT}/src/tasks.js add "<task name>"

After starting, suggest packing the minimal context for it: `/cco-pack "<task name>"`.

**List tasks** (newest first, with per-task tokens + $):

node ${CLAUDE_PLUGIN_ROOT}/src/tasks.js list

**Complete the active task**:

node ${CLAUDE_PLUGIN_ROOT}/src/tasks.js done

Flow to recommend

1. `/cco-task add "implement X"` — start the task 2. `/cco-pack "implement X"` — load only the files that task needs 3. work… 4. `/cco` — see budget, savings, and this task's cost 5. `/cco-task done` — freeze the task's token/$ total

Only one task is active per project at a time; starting a new one finalizes the previous task's cost automatically.

Read more
Read it on GitHub ↗
Ships withclaude-context-optimizer

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.

Get the whole plugin, auto-invoked
Stats
85
Stars
0
Views
10
Forks
Active
Maintenance
JavaScript
Language
MIT
License
20d ago
Last commit
4mo ago
Created

Repo: egorfedorov/claude-context-optimizer