brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
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
Claude Code
$ npx -y skills add kaitranntt/ccs --skill ccs-delegation --agent claude-code
Codex
$ npx skills add kaitranntt/ccs --skill ccs-delegation -a codex -y
Cursor
$ npx skills add kaitranntt/ccs --skill ccs-delegation -a cursor -y
Gemini CLI
$ npx skills add kaitranntt/ccs --skill ccs-delegation -a gemini-cli -y
GitHub Copilot
$ npx skills add kaitranntt/ccs --skill ccs-delegation -a github-copilot -y
OpenCode
$ npx skills add kaitranntt/ccs --skill ccs-delegation -a opencode -y
Windsurf
$ npx skills add kaitranntt/ccs --skill ccs-delegation -a windsurf -y
name: ccs-delegation
description: >-
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.
version: 3.0.0Delegate deterministic tasks to cost-optimized models via CCS CLI.
Execute tasks via alternative models using:
**Profile Selection:**
Users trigger delegation naturally:
**Examples:**
**For `/ccs [task]`:**
1. **Parse override flag**
2. **Discover profiles**
3. **Analyze task requirements**
4. **Select profile**
5. **Enhance prompt**
6. **Execute delegation**
7. **Report results**
**For `/ccs:continue [follow-up]`:**
1. **Detect profile**
2. **Parse override flag**
3. **Enhance prompt**
4. **Execute continuation**
5. **Report results**
**Delegate 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**:
Switch between Claude accounts, Gemini, Copilot, OpenRouter (300+ models) via CLIProxyAPI OAuth proxy. Visual dashboard, remote proxy support, WebSearch fallback. Zero-config to production-ready.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.