agentleFS
LingXi-OrgLingXi-Org/LingxiSkills/skills/skill-eval-harness/SKILL.md

skill-eval-harness

Skill0 starsChanged 4 months agoMITView on GitHub

Evaluate Lingxi teaching Skills and their run artifacts across component contracts, execution trajectories, pedagogical safety/quality, and learner outcomes. Use when a Skill is added or revised, when a regression suite must be run, or when raw task/result/trace/outcome JSON needs a deterministic report; do not use it in the learner's runtime path.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this development-time Skill to turn raw evaluation cases into a comparable, traceable report.

    line 33
  2. Very specific:

    Read references/skill-eval-run.schema.json and references/rubric.md for the case shape and layer rules.

    line 45
  3. Distinctive:

    Run the deterministic helper:

    line 47
  4. Very specific:

    Use validator values for the bundled contracts (adaptive-pedagogy-result.v2, learner-state-reflector-result.v1, quiz-generation-result.v1, …

    line 74
  5. Distinctive:

    Keep expected answers outside learner-facing text and do not pass the intended fix to a forward test agent.

    line 84
  6. Very specific:

    Treat learner-state-reflector, visual generation, quiz generation, and remedial artifacts as sidecars unless the case explicitly tests …

    line 86
  7. Very specific:

    Keep expected answers outside the learner-facing paths used by leakage checks.

    line 90
  8. Distinctive:

    Never mutate the tested Skill or learner data.

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Teaching Skill Evaluation

Use this development-time Skill to turn raw evaluation cases into a comparable, traceable report. It evaluates an existing Skill's contract and observed artifacts; it does not generate teaching responses, replace a deterministic grader, or write learner state.

Evaluation workflow

  1. Build a skill-eval-run.v1 JSON file. Keep the learner task and raw output in each case; put expected answers, forbidden strings, thresholds, and rubric-only labels in expectations, not in the learner prompt.
  2. Include an execution trajectory whenever latency, blocking, handoffs, repeated questions, or sidecar behavior matters. Include an outcome when an independent transfer or post-test is available. Missing layers are reported as not_observed, not silently treated as success.
  3. Read references/skill-eval-run.schema.json and references/rubric.md for the case shape and layer rules. Use the smallest raw artifact that still preserves evidence IDs and timing.
  4. Run the deterministic helper:

    python scripts/evaluate.py validate-run <run.json>
    python scripts/evaluate.py evaluate <run.json> --output <report.json>
    python scripts/run_suite.py <repository-root> --output <suite-report.json>

    Individual reports follow references/skill-eval-report.schema.json; repository-wide suite reports follow references/skill-eval-suite-report.schema.json.

  5. Review every failing finding and the observed coverage. Set expectations.required_layers for layers that a case must observe; a missing required layer fails the case. A Skill passes only when the component layer has no errors and every layer required by the case expectations passes. Do not hide missing learner outcomes behind a high component score.

Four evaluation layers

  • component — frontmatter, execution metadata, required output fields, known result contracts, and artifact shape.
  • trajectory — one learner-facing writer, no accidental handoff loop, no repeated prompt without new evidence, sidecars not blocking the response, and latency/token/hop budgets.
  • pedagogy — answer leakage, evidence grounding, hint/reveal limits, question-value discipline, and usable fallback for non-blocking visual work.
  • learner_outcome — independent transfer, score change when a threshold is supplied, verification debt discharge, and evidence traceability.

Use validator values for the bundled contracts (adaptive-pedagogy-result.v2, learner-state-reflector-result.v1, quiz-generation-result.v1, curriculum-graph-builder-result.v1, formative-assessor-result.v1, retrieval-practice-builder-result.v1, lesson-intro-html.v1, html) or provide required_output_keys for another Skill. The harness performs deterministic checks only; judgments such as whether a misconception interpretation is pedagogically sound still require human review or a separately specified judge.

Evaluation boundaries

  • Keep expected answers outside learner-facing text and do not pass the intended fix to a forward test agent.
  • Treat learner-state-reflector, visual generation, quiz generation, and remedial artifacts as sidecars unless the case explicitly tests their standalone artifact contract.
  • Enforce learner_facing_writer_count <= 1 for a learner turn.
  • Report latency and token measurements supplied by the host; never invent measurements.
  • Keep expected answers outside the learner-facing paths used by leakage checks. For retrieval tasks, inspect public_task, never the internal grading_key.
  • For lesson-intro-html.v1, check the shared visual contract as well as basic HTML shape: tokenized palette, 680-wide SVG, figure caption, dark/print modes, no gradients/shadows, and restrained typography.
  • Never mutate the tested Skill or learner data. Write only the requested report file.

Result contract

Return skill-eval-report.v1 JSON with per-case findings, four layer scores, observed coverage, thresholds, and a concise overall status. Preserve case IDs, evidence IDs, and raw metric values so a failing report can be traced back to the source artifact.

run_suite.py discovers checked-in skills/*/assets/eval-run.json files, evaluates each suite, and returns skill-eval-suite-report.v1. It is intended for development and CI, never for student runtime.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.