dos-class-cycle

dos-class-cycle is a skill for Claude Code, Codex from anthony-chaudhary/dos-kernel. It costs 52 tokens per session (1,376 once invoked), scanned A, original, MIT.

A workspace tool that moves plans between declared lifecycle states, such as active, done, or parked. It checks each possible move, gets an approval decision, applies approved changes, and records the cycle.

In plain words
What is it for?
Use it to regularly review plans, find eligible state changes, approve or defer them, update plan metadata, and log what happened.
Why use it?
It keeps plan labels aligned with reality while requiring a separate decision before changing them. A dry-run option lets you preview the results first.

Skill for Claude CodeCodex

Part of the dos-kernel plugin — 18 skills, 3 hooks, 1 MCP server shipped together

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/anthony-chaudhary/dos-kernel/dos-class-cycle
Any agent
npx skills add anthony-chaudhary/dos-kernel --skill dos-class-cycle
Clone the repo
git clone --depth 1 https://github.com/anthony-chaudhary/dos-kernel

Made for: Claude Code, Codex.

Or install dos-kernel, the plugin that ships this one along with the rest of its 18 skills, 3 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dos-class-cycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-class-cycle.svg)](https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-class-cycle)
Your own site
<a href="https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-class-cycle"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-class-cycle.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,376 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.1 $0.00052 $0.01376
Opus 5 $0.00026 $0.00688
Sonnet 5 $0.00010 $0.00275
Haiku 4.5 $0.00005 $0.00138

Measured 5d ago against content hash 1573ee653491, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

dos-class-cycle 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 5d 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.

claude-plugin/skills/dos-class-cycle/SKILL.md · 108 lines

How it starts

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

dos-class-cycle — the judge-gated plan-lifecycle tick

Garden the portfolio, but never alone. A plan's class (active / done / parked / …) should track reality — a done plan should not sit "active," a long-idle one should park. /dos-class-cycle runs ONE tick of that gardening: it evaluates the declared triggers, asks a JUDGE-rung adjudicator (advisory, fail-to-abstain) to approve each candidate transition, applies only the gated ones, and logs the cycle. The class set, the legal transitions, and the failsafes are declared data ([lifecycle]) — a 2-class repo and a richly- classed one run the identical mechanism.

The shape: read the declared lifecycle → evaluate triggers → build candidates (deterministic order) → judge each → enact gated transitions → log. The cycle is domain-free mechanism; the taxonomy is [lifecycle] policy; the judge content is a host dos.judges driver.

Inputs

  • --dry-run (optional) — evaluate + judge but enact nothing (a preview cycle).

Step 0 — Read the declared lifecycle + the layout

dos doctor --workspace . --json

Read lifecycle — the declared classes, transitions (each {from, to, trigger, auto}), veto_class, max_transitions_per_cycle, and per_plan_cooldown_hours — and paths (the plan + run dirs). Use these; never hardcode a class name, a trigger, or a cap. A repo that declared only active/done cycles with those two; a repo with a richer taxonomy declares more.

Step 1 — Evaluate each declared trigger → candidate transitions

For each declared transition, evaluate its trigger against the portfolio (the plan-meta classes, the run-archive history, git). A trigger that fires on a plan proposes that plan for that from→to transition. Build the candidate list in a DETERMINISTIC order (plan id ascending) so a replay is byte-stable.

Skip a plan that is:

  • in the veto_class (never auto-transitioned — a human moves it by hand), or
  • transitioned within per_plan_cooldown_hours (the per-plan cooldown), or
  • already past max_transitions_per_cycle candidates this tick (the cap).

Read the full file on GitHub · 108 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. 5d ago First seen · 108 lines · 52 tokens per session scan A 1573ee653491

Subscribe to this mod's changes

dos-class-cycle is a skill published in the GitHub repository anthony-chaudhary/dos-kernel (19 stars, last pushed 11d ago), licensed MIT. It adds 52 tokens to every session and 1,376 once invoked, about $0.0003 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-30.