Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Auto-activate CCS CLI delegation for deterministic tasks. Parses user input, auto-selects optimal profile (glm/kimi/custom) from ~/.ccs/config.json, enhances prompts with context, executes via `ccs {profile} -p "task"` or `ccs {profile}:continue`, and reports results. Triggers on "use ccs [task]" patterns, typo/test/refactor keywords. Excludes complex architecture, security-critical code, performance optimization, breaking changes.
.claude/skills/kaitranntt-ccs-delegation/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 42% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 751% | 0% |
Delegate deterministic tasks to cost-optimized models via CCS CLI.
Execute tasks via alternative models using:
ccs {profile} -p "task"ccs {profile}:continue -p "follow-up"Profile Selection:
~/.ccs/config.json via task analysis--{profile} flag forces specific profileUsers trigger delegation naturally:
Examples:
For /ccs [task]:
--(\w+)profile = match[1], remove flag from task, skip to step 5~/.ccs/config.json using Read toolObject.keys(config.profiles) → availableProfiles[]/(think|analyze|reason|debug|investigate|evaluate)/i → needsReasoning = true/(architecture|entire|all files|codebase|analyze all)/i → needsLongContext = true/(typo|test|refactor|update|fix)/i → preferCostOptimized = trueavailableProfiles: classify by name pattern (see Profile Characteristic Inference table)needsReasoning: filter profiles where reasoning=true → prefer kimineedsLongContext: filter profiles where context=long → prefer kimicost=low → prefer glmselectedProfile = filteredProfiles[0]filteredProfiles.length === 0: fallback to glm if exists, else first available/cook, /commit)ccs {selectedProfile} -p "$enhancedPrompt" via Bash toolFor /ccs:continue [follow-up]:
~/.ccs/delegation-sessions.json using Read tool--(\w+)profile = match[1], remove flag from follow-up, log profile switchccs {profile}:continue -p "$enhancedPrompt" via Bash toolDelegate when:
Keep in main when:
Task Analysis Keywords (scan task string with regex):
| Pattern | Variable | Example | |---------|----------|---------| | /(think\|analyze\|reason\|debug\|investigate\|evaluate)/i | needsReasoning = true | "think about caching" | | /(architecture\|entire\|all files\|codebase\|analyze all)/i | needsLongContext = true | "analyze all files" | | /(typo\|test\|refactor\|update\|fix)/i | preferCostOptimized = true | "fix typo in README" |
Profile Characteristic Inference (classify by name pattern):
| Profile Pattern | Cost | Context | Reasoning | |----------------|------|---------|-----------| | /^glm/i | low | standard | false | | /^kimi/i | medium | long | true | | /^claude/i | high | standard | false | | others | low | standard | false |
Selection Algorithm (apply filters sequentially):
profiles = Object.keys(config.profiles)
classified = profiles.map(p => ({name: p, ...inferCharacteristics(p)}))
if (needsReasoning):
filtered = classified.filter(p => p.reasoning === true).sort(['kimi'])
else if (needsLongContext):
filtered = classified.filter(p => p.context === 'long').sort(['kimi'])
else:
filtered = classified.filter(p => p.cost === 'low').sort(['glm', ...])
selected = filtered[0] || profiles.find(p => p === 'glm') || profiles[0]
if (!selected): throw Error("No profiles configured")
log("Selected {selected} (reason: {reasoning|long-context|cost-optimized})")Override Logic:
/--(\w+)/. If match: profile = match[1], remove from task, skip selectionGood candidates:
→ Auto-selects: glm (simple task)
→ Auto-selects: kimi (long-context)
→ Auto-selects: kimi (reasoning)
→ Forces: glm (override)
Bad candidates (keep in main):
Commands:
/ccs "task" - Intelligent delegation (auto-select profile)/ccs --{profile} "task" - Force specific profile/ccs:continue "follow-up" - Continue last session (auto-detect profile)/ccs:continue --{profile} "follow-up" - Continue with profile switchAgent via Bash:
ccs {auto-selected} -p "task"ccs {detected}:continue -p "follow-up"Template: CLAUDE.md.template - Copy to user's CLAUDE.md for auto-delegation config Troubleshooting: references/troubleshooting.md
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 5,076 | 35,034 | +590% | 1 | 1 | 0% | 301 | 2,208 | +634% | 0 | 0 | — |
case-02 | fail→fail | 7,065 | 5,549 | -21% | 1 | 1 | 0% | 1,118 | 2,127 | +90% | 0 | 0 | — |
case-03 | fail→fail | 5,191 | 5,863 | +13% | 1 | 1 | 0% | 860 | 2,151 | +150% | 0 | 0 | — |
case-04 | pass→pass | 10,815 | 2,587 | -76% | 1 | 1 | 0% | 1,951 | 2,303 | +18% | 0 | 0 | — |
case-05 | fail→pass | 10,313 | 3,128 | -70% | 1 | 1 | 0% | 1,691 | 2,407 | +42% | 0 | 0 | — |
case-06 | fail→pass | 11,678 | 2,362 | -80% | 1 | 1 | 0% | 2,065 | 2,267 | +10% | 0 | 0 | — |
case-07 | fail→pass | 14,862 | 3,573 | -76% | 1 | 1 | 0% | 2,233 | 2,366 | +6% | 0 | 0 | — |
case-08 | fail→fail | 13,447 | 5,712 | -58% | 1 | 1 | 0% | 2,259 | 2,108 | -7% | 0 | 0 | — |
case-09 | fail→fail | 9,706 | 5,808 | -40% | 1 | 1 | 0% | 2,098 | 2,180 | +4% | 0 | 0 | — |
case-10 | pass→fail | 9,847 | 7,646 | -22% | 1 | 1 | 0% | 1,513 | 2,246 | +48% | 0 | 0 | — |
case-11 | fail→fail | 5,563 | 4,742 | -15% | 1 | 1 | 0% | 961 | 2,043 | +113% | 0 | 0 | — |
case-12 | fail→fail | 7,491 | 6,235 | -17% | 1 | 1 | 0% | 1,289 | 2,376 | +84% | 0 | 0 | — |
case-13 | fail→pass | 12,472 | 3,442 | -72% | 1 | 1 | 0% | 2,444 | 2,384 | -2% | 0 | 0 | — |
case-14 | fail→fail | 4,836 | 2,979 | -38% | 1 | 1 | 0% | 845 | 2,192 | +159% | 0 | 0 | — |
case-15 | pass→fail | 7,272 | 6,113 | -16% | 1 | 1 | 0% | 1,319 | 2,245 | +70% | 0 | 0 | — |
case-16 | fail→pass | 1,791 | 3,478 | +94% | 1 | 1 | 0% | 303 | 2,580 | +751% | 0 | 0 | — |
case-22 | fail→fail | 9,078 | 4,958 | -45% | 1 | 1 | 0% | 1,661 | 2,094 | +26% | 0 | 0 | — |
case-17 | fail→pass | 11,908 | 2,776 | -77% | 1 | 1 | 0% | 1,849 | 2,320 | +25% | 0 | 0 | — |
case-18 | fail→pass | 8,500 | 6,264 | -26% | 1 | 1 | 0% | 1,617 | 3,026 | +87% | 0 | 0 | — |
case-19 | fail→fail | 8,984 | 13,446 | +50% | 1 | 1 | 0% | 972 | 2,157 | +122% | 0 | 0 | — |
case-20 | fail→pass | 10,067 | 3,851 | -62% | 1 | 1 | 0% | 1,763 | 2,551 | +45% | 0 | 0 | — |
case-21 | fail→pass | 12,047 | 2,275 | -81% | 1 | 1 | 0% | 2,370 | 2,177 | -8% | 0 | 0 | — |
case-23 | fail→fail | 23,406 | 4,073 | -83% | 1 | 1 | 0% | 4,366 | 2,100 | -52% | 0 | 0 | — |
case-24 | pass→pass | 6,015 | 4,009 | -33% | 1 | 1 | 0% | 1,065 | 2,708 | +154% | 0 | 0 | — |
case-25 | pass→pass | 8,406 | 1,833 | -78% | 1 | 1 | 0% | 1,467 | 2,163 | +47% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted, and 14 counted toward the lift figure. The other 11 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +28 percentage points is the difference between those two pass rates over the 14 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.