ccs-delegation

Delegate deterministic tasks to the CCS CLI with auto-profile selection.

2.8k|256|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/kaitranntt/ccs --skill ccs-delegation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ccs-delegation
Source: https://github.com/kaitranntt/ccs/tree/main/.claude/skills/ccs-delegation
Command: npx skills add https://github.com/kaitranntt/ccs --skill ccs-delegation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers often hit usage limits on powerful AI models for simple, repetitive tasks, leading to interruptions and increased costs. This Skill intelligently delegates these mechanical tasks to more cost-effective models, ensuring continuous productivity and significant token savings.

Core Features & Use Cases

  • Cost-Optimized Delegation: Automatically routes simple, deterministic tasks (like refactoring, adding tests, or fixing typos) to cheaper models (GLM, Kimi), reducing token expenditure by up to 81%.
  • Flow State Preservation: Keeps your primary Claude session focused on complex problem-solving and design, preventing context loss from mundane tasks.
  • Parallel Productivity: Enables concurrent workflows, allowing you to use a premium model for strategic planning while a cost-optimized model handles code execution in parallel.
  • Use Case: While designing a new API with Claude Pro, delegate "add unit tests for the authentication module" to GLM using /ccs:glm "add unit tests for the authentication module" to save costs and maintain your main session's context.

Quick Start

Delegate the task of refactoring auth.js to use async/await to the GLM model.

Frequently Asked Questions about ccs-delegation

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

FAQPage Schema
How do I delegate simple coding tasks to cheaper AI models while keeping my main session focused?

Delegation routes deterministic tasks like typo fixes, refactoring, and test additions to cost-effective models (GLM, Kimi) via the CCS CLI. This preserves your primary Claude session for complex problem-solving while reducing token costs by up to 81% on mechanical work.

Can I use Claude with cheaper models for different parts of my workflow?

Yes. Run parallel workflows by delegating specific tasks to GLM or Kimi using ccs {profile} while maintaining your Claude Pro session for strategic design. The Skill auto-selects the appropriate profile from ~/.ccs/config.json based on task complexity.

What types of tasks should I delegate to save the most on AI costs?

Delegate well-defined, deterministic tasks: unit test generation, code refactoring, documentation updates, typo corrections, and codebase analysis. These mechanical tasks cost significantly less on GLM and Kimi while freeing premium model capacity for design and reasoning work.

How do I set up task delegation with auto-profile selection?

Configure ~/.ccs/config.json with your model profiles, then delegate using ccs {profile} -p task or ccs {profile}:continue syntax. The Skill automatically selects the cost-optimized profile and reports execution metrics including cost, duration, session ID, and exit code.

What information do I get after delegating a task?

Delegation returns detailed results: token cost, execution duration, session ID for tracking, and exit code. This transparency helps you measure savings and verify task completion across your multi-model workflow.