ccc-loop

A guide for CC Commander, a collection of skills for Claude Code. It helps choose between different kinds of repeated work, such as goal-based tasks, timed loops, and scheduled tasks.

In plain words
What is it for?
Use it to learn how CC Commander handles loops, goals, schedules, verification, and saved state.
Why use it?
It helps you select a suitable way to run recurring or ongoing agent work and decide when that work is finished.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kevinzai/commander/ccc-loop
Any agent
npx skills add KevinZai/commander --skill ccc-loop
Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.02743
Opus 5 $0.00022 $0.01372
Sonnet 5 $0.00009 $0.00549
Haiku 4.5 $0.00004 $0.00274

Measured 2d ago against content hash 1214fc3459fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ccc-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commander/cowork-plugin-codex/skills/ccc-loop/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

$ccc-loop — Loop Integration Guide

Claude Code has four loop primitives, not one. This skill is the entry point for all of them — pick the right primitive before you reach for /loop by habit.

The 4 loop types

Type Trigger Stop criteria CC Commander primitive Best for
Turn-based A user prompt Claude judges "done" itself Just run the skill directly; encode your manual verification steps as a SKILL.md so Claude can self-check Short one-off tasks
Goal-based A manual prompt, real-time Goal achieved OR max turns reached — an evaluator model checks your condition each time Claude tries to stop /goal Tasks with a verifiable exit criterion (test count, score threshold, build passing)
Time-based An interval You cancel it, or the work completes (PR merged, queue empty) /loop (local) + /schedule (cloud) Recurring work, polling external systems
Proactive An event or schedule, no human in real time Each task exits on its own goal; the routine runs until you turn it off /schedule (heartbeat) + /goal (define done) + dynamic Workflow (orchestrate) + auto mode (no confirmation stops) Recurring streams of well-defined work — bug triage, migrations, dependency upgrades

Deterministic, quantitative checks beat vague ones for every type above — "tests pass" and "score ≥ 90" are checkable; "looks good" is not.

Should this be a loop? (gate before you build one)

All four must be true, or the loop costs more than it returns:

  1. Recurs at least weekly — a one-time job is better served by one good prompt.
  2. Verification is automated — a test suite, type checker, linter, or build that can fail the work without a human in the room. No automated check means you're back to reading every diff — the exact job the loop was supposed to remove.
  3. Your token budget absorbs the waste — loops re-read context, retry, explore. That burns tokens whether the run ships anything or not.
  4. The agent has real tools — logs, a reproduction environment, the ability to run what it writes and see what breaks. Without that, the loop iterates blind.

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 165 lines · 43 tokens per session scan A 1214fc3459fd

Subscribe to this mod's changes

ccc-loop is a skill published in the GitHub repository KevinZai/commander (6 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 2,743 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agile-product-owner

../../../product-team/agile-product-owner/skills/agile-product-owner/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

rulesync

Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.

dyoshikawa/rulesync · 64 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens

backend-builder

Используй только внутри активного Codex Project Autopilot-проекта по утверждённому плану; не включай для обычных backend-задач вне автопилота.

hashgraph-online/awesome-codex-plugins · 43 tokens

loongsuite-pilot-insight

基于 LoongSuite Pilot / AI Coding Agent 日志生成事件洞察、组织洞察、数据质量、研发效能和 AI Native 使用类 SLS 报表时使用;包含 AI Coding 事件表语义,以及团队报表可选的部门维表、deptuser 组织关系、指标口径和公共 CTE,通常与 sls-dashboard-builder 一起使用。.

alibaba/loongsuite-pilot · 91 tokens