Skill Eval
Evaluate individual skills through deterministic checks, QOO build-time scoring, and runtime operable assessment. Produces a severity-graded report per skill with per-axis QOO bands.
This skill is the sole authority for skill-level evaluation.
agentfs-eval evaluates workspace health and does NOT inspect
skill internals.
Prerequisites
bash,grep,find,wcshellcheck(optional — S05 skipped if absent)yq,jq(required for Build QOO scoring)- LLM required only for S23–S26 rubric checks
- SDM endpoint at localhost:9000 (required for Build QOO and Runtime CECX scoring — skipped if unavailable; unavailable as of 2026-11-18, so those stages report SKIPPED)
Stage names: Static Checks (S01–S26), Build QOO, Runtime CECX.
“Tier” is reserved for model tiers T1–T4 (model-tier: frontmatter).
Rules
Do NOT fabricate evaluation scores or dimension results. Every
score MUST come from gather-skill-state.sh evidence and
sdm-evaluate.sh output. If SDM is unavailable, report dimensions
as N/A — do not estimate or guess scores.
Do NOT overwrite existing scores.yaml sections owned by other
skills. Preserve quality and observable when writing operable.
Quick Dispatch
| User says | Run |
|---|---|
| “check skill <name>” | Static Checks only. Run skill-check.sh. Stop after reporting. |
| “eval skill <name>” | Full eval. Execute ALL steps in the Full Eval Sequence below. |
| “assess skill <name>” | Comprehensive assessment. Execute ALL steps in the Assess Sequence below. |
| “check all skills” | List skills → ask human permission → run Static Checks against each → summary. |
ROUTING STOP: Find your match above, then jump to that section. Do NOT read past the matched section. Do NOT run the Full Eval Sequence unless the match says “Full eval”.
Modes
Mode 1: Single Skill — Static Checks Only (check skill)
- Resolve skill path — check USER (
~/.agents/skills/<name>/) then PROJECT (./.agents/skills/<name>/). - Run deterministic checks:
bash ~/.agents/skills/skill-eval/scripts/skill-check.sh <path-to-skill-dir> - Run LLM rubric checks (S23–S26) by reading each rubric YAML
in
~/.agents/skills/skill-eval/rubrics/and applying it to the skill content. - Present report.
END OF TIER 0 ONLY. Stop here.
Mode 2: All Skills — Static Checks Only (check all skills)
- List all skills at the target scope (USER or PROJECT).
- Present the list and ask for human confirmation before proceeding.
- On approval, run Mode 1 against each skill.
- Produce summary report with per-skill pass/warn/fail counts.
END OF ALL SKILLS MODE. Stop here.
Full Eval Sequence (eval skill)
Execute ALL steps in order. Do NOT skip steps. Do NOT jump to a later step because it seems more relevant to the conversation.
Step 1 — Resolve Skill
Resolve the skill path. Check USER scope first (~/.agents/skills/<name>/),
then PROJECT scope (./.agents/skills/<name>/).
Verify SKILL.md exists. If absent, report and stop.
Set SKILL_DIR to the resolved absolute path.
Step 2 — Static Checks: Deterministic Checks (S01–S22)
Run the deterministic check script:
bash ~/.agents/skills/skill-eval/scripts/skill-check.sh "$SKILL_DIR"
Record pass/fail/warn/skip counts. Continue to Step 3.
Step 3 — Static Checks: LLM Rubric Checks (S23–S26)
For each rubric YAML file in ~/.agents/skills/skill-eval/rubrics/:
- Read the rubric file.
- Read the target content from
$SKILL_DIR/SKILL.md. - Apply the
prompt_templatefrom the rubric, substituting the skill content into the placeholder. - Answer the closed-ended question — select ONLY from the enumerated choices.
- Record the answer.
The LLM acts as a CLASSIFIER, not a judge. Answer only the specific question asked. Do not provide open-ended commentary.
Continue to Step 4.
Step 4 — Build QOO: Gather Structural Facts
Run the gather-state script to produce deterministic facts:
bash ~/.agents/scripts/gather-skill-state.sh "$SKILL_DIR" > /tmp/skill-eval-evidence.txt
Read the output file. It contains pre-computed metrics for all QOO dimensions. Continue to Step 5.
Step 5 — Build QOO: BMBT Build-time Operable Score
Run SDM evaluation against the operable schema using build-time dimensions:
bash ~/.agents/scripts/sdm-evaluate.sh "$SKILL_DIR" \
~/.agents/skills/schemas/operable.yaml \
--evidence /tmp/skill-eval-evidence.txt \
--phase build
If the output contains "band": "SDM_UNAVAILABLE", use the T4
fallback (report only). Answer each dimensions[].question as a
classifier against the same evidence file. Report the answers labelled
“T4-fallback (
Extract the build-phase dimensions from the SDM JSON output:
has_bones, has_muscle, has_brain, has_harness.
Record each dimension’s score, pass/fail, and confidence. Continue to Step 6.
Step 6 — Build QOO: Quality + Observable Read
6a. Read existing scores:
If $SKILL_DIR/scores.yaml exists, read the quality and
observable sections. Report these scores in the final report
as “Quality (from skill-gen)” and “Observable (from skill-gen)”.
6b. Compute fresh Quality + Observable for comparison:
Run SDM evaluation against Quality and Observable schemas:
bash ~/.agents/scripts/sdm-evaluate.sh "$SKILL_DIR" \
~/.agents/skills/schemas/quality.yaml \
--evidence /tmp/skill-eval-evidence.txt
bash ~/.agents/scripts/sdm-evaluate.sh "$SKILL_DIR" \
~/.agents/skills/schemas/observable.yaml \
--evidence /tmp/skill-eval-evidence.txt
Report these scores as “Quality (fresh)” and “Observable (fresh)”
in the final report. If SDM is unavailable, apply the Step 5 T4
fallback and label them “T4-fallback (
Continue to Step 7.
Step 7 — Runtime CECX: CECX Runtime Operable Score
Search for the latest execution trace for this skill:
LATEST_TRACE=$(ls -t ~/.agents/.traces/${SKILL_NAME}*.jsonl 2>/dev/null | head -1)
If no trace exists: Report “⚠️ No execution traces found. CECX runtime score: N/A. Run the skill to generate traces.” Skip to Step 8.
If a trace exists: Run SDM evaluation:
bash ~/.agents/scripts/sdm-evaluate.sh "$LATEST_TRACE" \
~/.agents/skills/schemas/operable.yaml
Extract the runtime-phase dimensions from the SDM JSON output:
step_completion, no_fabrication, minimal_inference_hops,
token_efficiency, correct_sequence, scope_resolution,
no_improvised_recovery.
Record each dimension’s score, pass/fail, and confidence. Continue to Step 8.
Step 8 — Persist Operable Scores
Update the skill’s scores file:
$SKILL_DIR/scores.yaml
Read the existing file if present. Update these sections from Steps 5 and 7:
operable.build.dimensions— copy each build-phase dimension’s score, pass, and confidence from Step 5.operable.runtime.dimensions— copy each runtime-phase dimension’s score, pass, and confidence from Step 7. If Step 7 was N/A, setoperable.runtimetonullwith a note: “No execution traces available.”operable.build.aggregate_scoreandband— from SDM JSON root.operable.runtime.aggregate_scoreandband— from SDM JSON root (or null if N/A).operable.runtime.model— extract from the trace init record or from the user’s stated model. CECX scores are model-dependent. Record which model produced the trace.operable.runtime.trace— the trace filename used.operable.evaluated— current timestamp.-
history— append a new entry with date, typeoperable, score (build aggregate), band, and a one-line note. qoo-qualified— compute deterministically from all available scores in the file. Formula applies uniformly:qoo-qualified = observable.band ∈ {Tunable, Operable} AND operable.build.band ∈ {Tunable, Operable}Quality is informational — scored but not gated. Persist
model_tierandqualification_rule: build+observable. If any required axis has not been evaluated yet (section missing), setqoo-qualified: false. Runtime CECX is exempt — it is model-dependent and does not gate qualification. Do NOT set this field based on judgment. Compute it from the band values only.
Do NOT overwrite the entire file. Preserve the quality and
observable sections (owned by skill-gen), the skill,
and version fields, and existing history entries.
Immediately run post-write.sh after writing:
bash ~/.agents/skills/agentfs-setup/scripts/post-write.sh \
"$SKILL_DIR/scores.yaml" "skill-eval: operable scores updated"
Do NOT respond to the user until the command completes.
Step 9 — Consolidated Report
Produce a single report covering all tiers:
## Skill Eval Report: <skill-name>
Date: YYYY-MM-DD HH:MM
Version: <metadata.version>
Path: <skill-dir>
### Static Checks — Deterministic (S01–S22)
Pass: N | Fail: N | Warn: N | Skip: N
<details for failures and warnings>
### Static Checks — LLM Rubric (S23–S26)
<per-rubric pass/fail/N/A>
### Build QOO — Build-time Operable (BMBT)
| Dimension | Score | Pass | Confidence |
|-----------|:-----:|:----:|:----------:|
| has_bones | ... | ... | ... |
| has_muscle | ... | ... | ... |
| has_brain | ... | ... | ... |
| has_harness | ... | ... | ... |
Aggregate: <score> | Band: <band>
### Build QOO — Quality (MCACS) — read-only
<existing scores from scores.yaml or fresh SDM scores>
### Build QOO — Observable — read-only
<existing scores from scores.yaml or fresh SDM scores>
### Runtime CECX — Runtime Operable (CECX)
<per-dimension scores or "N/A — no traces">
Aggregate: <score> | Band: <band>
### QOO Summary
| Axis | Score | Band | Source |
|------|:-----:|------|--------|
| Quality | ... | ... | skill-gen / fresh |
| Observable | ... | ... | skill-gen / fresh |
| Operable (build) | ... | ... | skill-eval |
| Operable (runtime) | ... | ... | skill-eval / N/A |
Assess Sequence (assess skill)
Comprehensive assessment that chains Score Skill (Quality + Observable) with Full Eval (Static Checks + BMBT + CECX) into a single pass. Evidence is gathered once and reused across all SDM calls.
Execute ALL steps in order. Do NOT skip steps.
Step 1 — Resolve Skill
Same as Full Eval Step 1. Resolve the skill path. Check USER scope
first (~/.agents/skills/<name>/), then PROJECT scope
(./.agents/skills/<name>/).
Verify SKILL.md exists. If absent, report and stop.
Set SKILL_DIR to the resolved absolute path.
Step 2 — Gather Evidence (once)
bash ~/.agents/scripts/gather-skill-state.sh "$SKILL_DIR" > /tmp/skill-assess-evidence.txt
Read the output. This evidence file is reused by all subsequent SDM calls. Do NOT re-run gather-skill-state.sh.
Step 3 — Score: Quality (MCACS)
bash ~/.agents/scripts/sdm-evaluate.sh "$SKILL_DIR" \
~/.agents/skills/schemas/quality.yaml \
--evidence /tmp/skill-assess-evidence.txt
Record the JSON output.
Step 4 — Score: Observable
bash ~/.agents/scripts/sdm-evaluate.sh "$SKILL_DIR" \
~/.agents/skills/schemas/observable.yaml \
--evidence /tmp/skill-assess-evidence.txt
Record the JSON output.
Step 5 — Persist Quality + Observable
Update $SKILL_DIR/scores.yaml with the quality: and observable:
sections from Steps 3 and 4. Follow the same structure and rules as
Score Skill mode in skill-gen (Step 5 of that mode).
Do NOT overwrite operable: — that section is owned by skill-eval.
Preserve existing operable: and history: entries.
Append a history entry with type quality+observable.
Immediately run post-write.sh after writing.
Step 6 — Static Checks: Deterministic Checks
bash ~/.agents/skills/skill-eval/scripts/skill-check.sh "$SKILL_DIR"
Record pass/fail/warn/skip counts.
Step 7 — Static Checks: LLM Rubric Checks (S23–S26)
Same as Full Eval Step 3. For each rubric YAML in
~/.agents/skills/skill-eval/rubrics/, apply the rubric
as a classifier against $SKILL_DIR/SKILL.md.
Step 8 — BMBT Build-time Operable
bash ~/.agents/scripts/sdm-evaluate.sh "$SKILL_DIR" \
~/.agents/skills/schemas/operable.yaml \
--evidence /tmp/skill-assess-evidence.txt \
--phase build
Record the build-phase dimensions.
Step 9 — CECX Runtime Operable
Search for the latest execution trace:
LATEST_TRACE=$(ls -t ~/.agents/.traces/${SKILL_NAME}*.jsonl 2>/dev/null | head -1)
If no trace exists, report N/A and skip to Step 10.
If a trace exists:
bash ~/.agents/scripts/sdm-evaluate.sh "$LATEST_TRACE" \
~/.agents/skills/schemas/operable.yaml
Record the runtime-phase dimensions.
Step 10 — Persist Operable + Compute Qualification
Update $SKILL_DIR/scores.yaml with operable.build and
operable.runtime from Steps 8 and 9. Same rules as Full Eval
Step 8.
Compute qoo-qualified deterministically:
qoo-qualified = O ∈ {Tunable,Operable} AND B ∈ {Tunable,Operable}
Quality is informational — scored but not gated.
Persist model_tier and qualification_rule: build+observable.
Runtime CECX is exempt. Append a history entry with type assess.
Immediately run post-write.sh after writing.
Step 11 — Combined Report
Produce a single report covering all axes:
## Skill Assessment: <skill-name>
Date: YYYY-MM-DD HH:MM
Version: <metadata.version>
Path: <skill-dir>
### Static Checks — Deterministic (S01–S22)
Pass: N | Fail: N | Warn: N | Skip: N
<details for failures and warnings>
### Static Checks — LLM Rubric (S23–S26)
<per-rubric pass/fail>
### QOO Scores
| Axis | Score | Band | Dims |
|------|:-----:|------|------|
| Quality (MCACS) | ... | ... | N/N pass |
| Observable | ... | ... | N/N pass |
| Operable (build) | ... | ... | N/N pass |
| Operable (runtime) | ... | ... | N/N pass or N/A |
qoo-qualified: true/false
### Quality Dimensions
<per-dimension table>
### Observable Dimensions
<per-dimension table>
### Build Dimensions (BMBT)
<per-dimension table>
### Runtime Dimensions (CECX)
<per-dimension table or "N/A — no traces">
### Improvement Priorities
<top 3 failing dimensions with suggested fixes>
Checks
Deterministic Checks (S01–S22)
Run via scripts/skill-check.sh. No LLM required.
| ID | P | Check | Severity | Method |
|---|---|---|---|---|
| S01 | 1 | Frontmatter has name, description, metadata.version (quoted semver), metadata.tags (non-empty), user-invocable |
🔴 | YAML parse |
| S02 | 1 | name matches parent directory name |
🔴 | String compare |
| S03 | 1 | Signal phrases are 2–4 words each | 🟡 | Word count |
| S04 | 1 | Opening paragraph after # Title heading |
🟡 | Line scan |
| S05 | 1 | Shellcheck passes on .sh scripts |
🟡 | shellcheck |
| S06 | 1 | Consistent values across scripts and SKILL.md (ports, hostnames) | 🟡 | Cross-reference |
| S07 | 2 | Referenced commands exist | 🟡 | command -v |
| S08 | 2 | Referenced file paths exist | 🔴 | Filesystem check |
| S09 | 2 | Supporting Files section matches actual directory contents | 🟡 | Dir listing diff |
| S10 | 2 | No references to deleted/renamed files | 🔴 | Path check |
| S11 | 3 | CHANGELOG.md exists; latest version matches metadata.version |
🟡 | Version compare |
| S12 | 3 | Markdown well-formed (unclosed code blocks, broken tables) | 🟢 | Syntax scan |
| S13 | 4 | Specification section exists with IDs | 🟡 | Section scan |
| S14 | 4 | Tests section exists with testcases mapped to spec IDs | 🟡 | Section scan |
| S15 | 5 | No hardcoded secrets/API keys in scripts | 🔴 | Regex patterns |
| S16 | 5 | No eval/source of untrusted input in scripts |
🔴 | Grep scan |
| S17 | 6 | SKILL.md line count; warn if >300 | 🟡 | wc -l |
| S18 | 6 | ## References section if references/ dir exists |
🟡 | Dir + heading check |
| S19 | 7 | Scripts use semantic exit codes (0/1/2/3) | 🟡 | Parse exit statements |
| S20 | 7 | Error Handling table exists | 🟡 | Section scan |
| S21 | 7 | Troubleshooting table exists | 🟡 | Section scan |
| S22 | 7 | Privilege gates use exit 3 | 🟡 | Grep sudo + exit code |
LLM Rubric Checks (S23–S26)
Rubric YAMLs in rubrics/. Require LLM classification.
| ID | P | Check | Method |
|---|---|---|---|
| S23 | 1 | Operations as prose that should be scripts | LLM per code block |
| S24 | 3 | Duplicate/conflicting procedures | LLM across sections |
| S25 | 5 | Prompt injection patterns in SKILL.md | LLM classification |
| S26 | 1 | Steps follow logical sequence | LLM classification |
Severity Levels
| Icon | Level | Meaning |
|---|---|---|
| 🔴 | Critical | Skill will malfunction |
| 🟡 | Warning | Skill works but violates a principle |
| 🟢 | Info | Improvement suggestion |
QOO Axis Ownership
scores.yaml section |
Written by | Signal |
|---|---|---|
quality: (MCACS) |
skill-gen |
hey score skill |
observable: |
skill-gen |
hey score skill |
operable.build: (BMBT) |
skill-eval |
hey eval skill |
operable.runtime: (CECX) |
skill-eval |
hey eval skill |
history: |
Both (append-only) | Either |
skill-eval computes Quality and Observable fresh for the report
but does NOT persist them. Those sections are owned by skill-gen.
QOO Band Thresholds
| Band | Score Range |
|---|---|
| Redesign | 0–39 |
| Re-engineer | 40–59 |
| Tunable | 60–79 |
| Operable | 80–100 |
Companion Skills
skill-gen— Creates and upgrades skills. Ownsqualityandobservablesections inscores.yaml.agentfs-eval— Evaluates workspace health. Does NOT inspect skill internals — that responsibility belongs toskill-eval.skill-check— Alias.skill-check.shis the Static Checks deterministic engine used by this skill.
Supporting Files
scripts/skill-check.sh— Static Checks deterministic checks (S01–S22)rubrics/prose-to-script.yaml— S23 rubricrubrics/duplicate-procedures.yaml— S24 rubricrubrics/prompt-injection.yaml— S25 rubricrubrics/logical-sequence.yaml— S26 rubric
Changelog
See CHANGELOG.md for version history.