--- name: ck-ccs description: Delegate tasks with intelligent AI profile selection and prompt enhancement. Use for offloading tasks, routing to specialized models, auto-enhancing prompts, and running long-context or reasoning-heavy delegations. --- # CCS — Intelligent Task Delegation Delegates tasks to optimal AI profiles with automatic prompt enhancement. ## When to Use - Offloading a task to a specialized model or profile - Running long-context analysis (full architecture review) - Reasoning-heavy tasks that benefit from extended thinking - Auto-enhancing a prompt before execution ## Don't Use When - Task is quick enough to handle inline - No CCS CLI or config is available (`~/.ccs/config.json`) ## Usage ``` ck-ccs "refactor auth.js to use async/await" # Simple task ck-ccs "analyze entire architecture" # Long-context task ck-ccs "think about caching strategy" # Reasoning task ck-ccs --glm "add tests for UserService" # Force specific profile ck-ccs "/cook create landing page" # Nested command ``` ## Execution 1. Parse the task description from user input 2. Read `~/.ccs/config.json` to identify available profiles 3. Select optimal profile based on task characteristics: - Long context → context-optimized profile - Reasoning → thinking-enabled profile - General → default profile 4. Enhance the prompt with full context and details 5. Execute delegation via CCS CLI ## Profile Selection Heuristics | Task Type | Profile | |-----------|---------| | Large codebase analysis | Long-context (kimi/glm) | | Architectural reasoning | Thinking-enabled | | Simple refactoring | Default/fast | | Forced override | `--glm` or `--kimi` flag | ## Notes - Prompt enhancement is automatic — the task description is expanded with relevant context before execution - Results are returned to the main conversation - Use `ck-ccs:continue` to resume the last delegation session