cc-skill
A Claude Code plugin for evaluating, enhancing, and measuring SKILL.md files against 17 skill-authoring patterns.
Built on ideas from Bilgin Ibryam's "9 Principles That Separate Useful Skills from Markdown Essays" and Anthropic's "Demystifying Evals for AI Agents".
What You Get
Three commands:
/skill:check scores a SKILL.md against authoring best practices and tests whether its description triggers correctly
/skill:enhance rewrites the skill to fill in missing patterns, preserving your original intent and voice
/skill:measure runs the full baseline-enhance-reeval loop in a single command and produces a comparison report
How They Relate
┌─────────────┐
│ skill:check │ Read-only evaluation
└──────┬──────┘
│ identifies gaps
v
┌───────────────┐
│ skill:enhance │ Rewrites weak patterns
└──────┬────────┘
│ improves skill
v
┌───────────────┐
│ skill:measure │ Orchestrates the full loop
└──────┬────────┘
│ invokes
┌────────────┼────────────┐
v v v
/eval-run skill:enhance /eval-run
(baseline) (enhanced)
│ │
└────────┬────────────────┘
v
compare-runs.sh
(delta report)
skill:check and skill:enhance work standalone. skill:measure orchestrates the end-to-end measurement workflow by combining them with the agent-eval-harness plugin.
Installation
Register the skill/ directory as a plugin in your Claude Code settings.
If you also have the prompt plugin installed, both check and enhance pick it up at runtime for deeper prompt-pattern analysis. Without it, everything works fine on its own.
Usage
# Check a skill file
/skill:check path/to/SKILL.md
# Enhance a weak skill
/skill:enhance path/to/SKILL.md
# Full measure-enhance-measure loop (requires agent-eval-harness)
/skill:measure path/to/SKILL.md
# Standalone comparison of any two eval runs
skill/scripts/compare-runs.sh <baseline-run-dir> <enhanced-run-dir>
The 17 Patterns
| Category | Patterns |
|---|
| Discovery | Activation Metadata, Exclusion Clause |
| Context Economy | Context Budget, Progressive Disclosure |
| Instruction Calibration | Control Tuning, Explain-the-Why, Template Scaffold, In-Skill Examples, Known Gotchas |
| Workflow Control | Execution Checklist, Self-Correcting Loop, Plan-Validate-Execute |
| Executable Code | Utility Bundle |
| Meta | Autonomy Calibration |
| Workflow Quality | Process over Prose, Anticipate the Excuse, Stay in Scope |
Each pattern gets one of four statuses:
| Status | Meaning |
|---|
| strong | Pattern meets quality criteria |
| present | Detectable but has quality issues |
| absent | Not found in the skill |
| N/A | Does not apply to this skill type |
How the Checker Works
The checker reads the SKILL.md and inspects its parent directory (scripts, referenced files, sibling .md files). For each pattern, it applies detection signals and quality criteria from the knowledge file. The output includes an activation test that predicts which user requests would (and wouldn't) trigger the skill.
How the Enhancer Works
The enhancer runs the same evaluation, then rewrites the skill to address absent and weak patterns. It prioritizes absent patterns first, then strengthens present-but-weak ones. If the skill needs splitting (Progressive Disclosure), it proposes new files for your approval before creating them. If every applicable pattern is already strong, it tells you so and leaves the skill alone.
Measuring Skill Improvement
/skill:measure automates the measure-enhance-measure cycle that would otherwise require 4 manual steps across two plugins. It runs entirely within a single Claude Code session (no nested claude -p sessions).
Prerequisites
You need two plugins installed:
- cc-skill (this plugin) for
/skill:check, /skill:enhance, and /skill:measure
- agent-eval-harness for
/eval-run, /eval-analyze, and /eval-dataset
Your target skill also needs eval infrastructure set up. If you haven't done this yet, run /eval-analyze on the SKILL.md to generate eval.yaml, then /eval-dataset to create test cases.
What /skill:measure Does