ct-adr-recorder
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
CLEO session grading and A/B behavioral analysis with token tracking. Evaluates agent session quality via a 5-dimension rubric (S1 session discipline, S2 discovery efficiency, S3 task hygiene, S4 error protocol, S5 progressive disclosure). Supports three modes: (1) scenario —
$ npx -y skills add kryptobaseddev/cleo --skill ct-grade --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ct-gradeContext preview
The summary Claude sees to decide when to auto-load this skill.
CLEO session grading and A/B behavioral analysis with token tracking. Evaluates agent session quality via a 5-dimension rubric (S1 session discipline, S2 discovery efficiency, S3 task hygiene, S4 error protocol, S5 progressive disclosure). Supports three modes: (1) scenario —
name: ct-grade description: >- CLEO session grading and A/B behavioral analysis with token tracking. Evaluates agent session quality via a 5-dimension rubric (S1 session discipline, S2 discovery efficiency, S3 task hygiene, S4 error protocol, S5 progressive disclosure). Supports three modes: (1) scenario — run playbook scenarios S1-S5 via CLI; (2) ab — blind A/B comparison of different CLI configurations for same domain operations with token cost measurement; (3) blind — spawn two agents with different configurations, blind-comparator picks winner, analyzer produces recommendation. Use when grading agent sessions, running grade playbook scenarios, comparing behavioral differences, measuring token usage across configurations, or performing multi-run blind A/B evaluation with statistical analysis and comparative report. Triggers on: grade session, evaluate agent behavior, A/B test CLEO configurations, run grade scenario, token usage analysis, behavioral rubric, protocol compliance scoring. version: 2.1.1 argument-hint: "[mode=scenario|ab|blind] [scenario=s1-s5|all] [runs=N] [session-id=<id>]" allowed-tools: ["Bash(python *)", "Bash(cleo-dev *)", "Bash(cleo *)", "Bash(kill *)", "Bash(lsof *)", "Agent", "Read", "Write", "Glob"] protocol: null dependencies: [] sharedResources: [] compatibility: - claude-code - cursor - windsurf - gemini-cli license: MIT metadata: version: 2.1.1 tier: internal install: internal lastReviewed: 2026-09-28 stability: stable
Session grading evaluates agent behavioral patterns against the CLEO protocol. It reads the audit log for a completed session and applies a 5-dimension rubric to produce a score (0-100), letter grade (A-F), and diagnostic flags.
Use grading when you need to:
Grading requires audit data. Sessions must be started with the `--grade` flag to enable audit log capture.
# Start a session with grading enabled ct session start --scope epic:T001 --name "Feature work" --grade # The --grade flag enables detailed audit logging # All CLI operations are recorded for later analysis
The grading rubric evaluates 5 behavioral scenarios that map to protocol compliance:
Tests whether the agent checks existing sessions and tasks before starting work. Evaluates `session.list` and `tasks.find` calls at session start.
Tests whether task creation follows protocol: descriptions provided, parent existence verified before subtask creation, no duplicate tasks.
Tests whether the agent handles errors correctly: follows up `E_NOT_FOUND` with recovery lookups (`tasks.find`), avoids duplicate creates after failures.
Tests session discipline end-to-end: session listed before task ops, session properly ended, CLI usage patterns.
Tests progressive disclosure: use of `admin.help` or skill lookups, use of progressive disclosure for programmatic access.
# Grade a specific session ct grade <sessionId> # List all past grade results ct grade --list
Each dimension scores 0-20 points, totaling 0-100.
| Points | Criteria | |--------|----------| | 10 | `session.list` called before first task operation | | 10 | `session.end` called when work is complete |
**What it measures**: Does the agent check existing sessions before starting, and properly close sessions when done?
| Points | Criteria | |--------|----------| | 0-15 | `find:list` ratio >= 80% earns full 15; scales linearly below | | 5 | `tasks.show` used for detail retrieval |
**What it measures**: Does the agent prefer `tasks.find` (low context cost) over `tasks.list` (high context cost) for discovery?
Starts at 20 and deducts for violations:
| Deduction | Violation | |-----------|-----------| | -5 each | `tasks.add` without a description | | -3 | Subtasks created without `tasks.find {exact:true}` parent check |
**What it measures**: Does the agent create well-formed tasks with descriptions and verify parents before creating subtasks?
Starts at 20 and deducts for violations:
| Deduction | Violation | |-----------|-----------| | -5 each | `E_NOT_FOUND` error not followed by recovery lookup within 5 ops | | -5 | Duplicate task creates detected (same title in session) |
**What it measures**: Does the agent recover gracefully from errors and avoid creating duplicate tasks?
| Points | Criteria | |--------|----------| | 10 | `admin.help` or skill lookup calls made | | 10 | Progressive disclosure used for programmatic access |
**What it measures**: Does the agent use progressive disclosure (help/skills) for efficient protocol access?
| Grade | Score Range | Meaning | |-------|-----------|---------| | **A** | 90-100 | Excellent protocol adherence. Agent follows all best practices. | | **B** | 75-89 | Good. Minor gaps in one or two dimensions. | | **C** | 60-74 | Acceptable. Several protocol violations need attention. | | **D** | 45-59 | Below expectations. Significant anti-patterns present. | | **F** | 0-44 | Failing. Major protocol violations across multiple dimensions. |
The grade result includes:
Every developer who has ever returned to a project after weeks away and found only ruins knows the wound CLEO was built to heal. The agents are powerful. But power without memory is chaos. Brilliance without continuity is waste.
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
Builds and publishes artifacts to registries (npm, PyPI, cargo, docker, GitHub releases, generic tarballs) following the…
CLEO task management protocol - session, task, and workflow guidance. Use when managing tasks, sessions, or multi-agent workflows…
Orient in an unfamiliar or large codebase with CLEO's code-intelligence graph (cleo nexus) and project map (cleo map). Use before…
Runs structured multi-agent voting for decision tasks with confidence scores, conflict detection, and HITL escalation when the…
Guided workflow for multi-agent consensus contributions. Use when user says "/contribution", "contribution protocol", "submit…