ccs-delegation

Delegates deterministic coding tasks to cost-optimized models via the CCS CLI.

2|3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/spideynolove/claude-dotfiles --skill ccs-delegation-spideynolove
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ccs-delegation
Source: https://github.com/spideynolove/claude-dotfiles/tree/main/.opencode-global/skills/ccs-delegation
Command: npx skills add https://github.com/spideynolove/claude-dotfiles --skill ccs-delegation-spideynolove

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Running every coding task through a premium model wastes budget on simple work like typo fixes, unit tests, and small refactors. This Skill automatically routes deterministic tasks to cheaper alternative models through the CCS CLI while keeping complex work in the main session. ## Core Features & Use Cases - Automatic Profile Selection: Parses the task for keywords (reasoning, long-context, cost-optimized) and picks the best profile (glm, kimi, or custom) from ~/.ccs/config.json. - Session Continuation: Supports follow-up delegations via ccs {profile}:continue, reading the last session from ~/.ccs/delegation-sessions.json. - Prompt Enhancement: Enriches delegated tasks with file context, expected behavior, and success criteria before execution. - Use Case: Say "use ccs to add unit tests for UserService" and the Skill auto-selects the glm profile, builds an enhanced prompt, runs ccs glm -p "...", and reports cost, duration, and exit code. ## Quick Start Ask the agent to use ccs to fix the typos in README.md and it will auto-select a profile and delegate the task.

Frequently Asked Questions about ccs-delegation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate a coding task to a cheaper model with CCS?

Phrase the request as "use ccs to [task]" and the Skill auto-selects a profile from ~/.ccs/config.json, enhances the prompt with file context, and runs `ccs {profile} -p "task"`. Force a specific profile with a flag like "use ccs --glm to add unit tests".

How does CCS profile auto-selection work?

The task string is scanned with regex patterns: reasoning keywords (think, analyze, debug) prefer kimi, long-context keywords (architecture, entire codebase) prefer kimi, and simple keywords (typo, test, fix) prefer low-cost glm. Profiles are classified by name pattern and filtered accordingly.

How do I continue a previous CCS delegation session?

Use "use ccs:continue [follow-up]". The Skill reads ~/.ccs/delegation-sessions.json, finds the most recent session's profile, and runs `ccs {profile}:continue -p "follow-up"`. You can switch profiles with a --{profile} flag.

What tasks should not be delegated through CCS?

Keep architecture and design decisions, security-critical code, complex debugging, performance optimization, and breaking changes or migrations in the main session. CCS delegation is intended for deterministic, well-scoped tasks with no discussion needed.

Why does CCS delegation fail with a configuration error?

Delegation fails if ~/.ccs/config.json is missing or contains no profiles. Run `ccs doctor` to set up the configuration, then verify that at least one profile is defined before delegating tasks.