egorfedorov

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.

egorfedorov 124 10 Actualitzat fa 4 mesos
GitHub

Instal·la

npx skillscat add egorfedorov/claude-context-optimizer/cco-task

Instal·la des del registre de SkillsCat.

SKILL.md

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.