/leyline:evaluation-frameworkfrom leyline
Provides weighted scoring, rubrics, and threshold-based decision patterns for quality gates and evaluating tool calls or dispatches by expected gain and cost.
Ships in leyline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A generic framework for weighted scoring and threshold-based decision making. Provides reusable patterns for evaluating any artifact against configurable criteria with consistent scoring methodology.
This framework abstracts the common pattern of: define criteria → assign weights → score against criteria → apply thresholds → make decisions.
criteria:
- name: criterion_name
weight: 0.30 # 30% of total score
description: What this measures
scoring_guide:
90-100: Exceptional
70-89: Strong
50-69: Acceptable
30-49: Weak
0-29: Poor
Verification: Run the command with --help flag to verify availability.
scores = {
"criterion_1": 85, # Out of 100
"criterion_2": 92,
"criterion_3": 78,
}
Verification: Run the command with --help flag to verify availability.
total = sum(score * weights[criterion] for criterion, score in scores.items())
# Example: (85 × 0.30) + (92 × 0.40) + (78 × 0.30) = 85.5
Verification: Run the command with --help flag to verify availability.
thresholds:
80-100: Accept with priority
60-79: Accept with conditions
40-59: Review required
20-39: Reject with feedback
0-19: Reject
A score that gates a decision becomes the target. Agent output drifts
from a visible proxy as the work grows, and standard maintainability
metrics explain little of why agent code is harder to extend
(docs/knowledge-corpus/decoherence.md). Pair each gating score with
one check the score does not include: a held-out test, a run on real
input, or a reviewer reading the output.
Verification: Run the command with --help flag to verify availability.
criteria:
correctness: {weight: 0.40, description: Does code work as intended?}
maintainability: {weight: 0.25, description: Is it readable?}
performance: {weight: 0.20, description: Meets performance needs?}
testing: {weight: 0.15, description: Tests detailed?}
thresholds:
85-100: Approve immediately
70-84: Approve with minor feedback
50-69: Request changes
0-49: Reject, major issues
Verification: Run pytest -v to verify tests pass.
**Verification:** Run the command with `--help` flag to verify availability.
1. Review artifact against each criterion
2. Assign 0-100 score for each criterion
3. Calculate: total = Σ(score × weight)
4. Compare total to thresholds
5. Take action based on threshold range
Verification: Run the command with --help flag to verify availability.
Quality Gates: Code review, PR approval, release readiness Content Evaluation: Document quality, knowledge intake, skill assessment Resource Allocation: Backlog prioritization, investment decisions, triage
# In your skill's frontmatter
dependencies: [leyline:evaluation-framework]
Verification: Run the command with --help flag to verify availability.
Then customize the framework for your domain:
modules/scoring-patterns.md for detailed methodologymodules/decision-thresholds.md for threshold designmodules/utility.md when deciding whether to
dispatch an agent, make a tool call, or stop. It scores each action as
gain minus weighted cost, uncertainty, and redundancy, and links its
component modules (state-builder, gain, step-cost, uncertainty,
redundancy, action-selector, integration)README.md (opens in a new tab)modules/action-selector.md (opens in a new tab)modules/decision-thresholds.md (opens in a new tab)modules/evaluation-rubric.md (opens in a new tab)modules/gain.md (opens in a new tab)modules/integration.md (opens in a new tab)modules/multi-metric-evaluation-methodology.md (opens in a new tab)modules/quality-metrics.md (opens in a new tab)modules/redundancy.md (opens in a new tab)modules/scoring-patterns.md (opens in a new tab)modules/state-builder.md (opens in a new tab)modules/step-cost.md (opens in a new tab)modules/uncertainty.md (opens in a new tab)modules/utility.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
evaluation, scoring, decision-framework, quality-gates, rubrics
19 skills in this plugin
/additive-bias-defenseInverts burden of proof for code additions. Use when reviewing PRs, planning refactors, or running unbloat to challenge every addition's necessity./authentication-patternsProvides auth patterns for API keys, OAuth, and token management. Use when implementing or reviewing service authentication and credential handling./content-sanitizationProvides sanitization guidelines for external content in skills and hooks. Use when loading GitHub Issues, PRs, WebFetch results, or any untrusted input./damage-controlRecovers broken agent state via crash recovery, context overflow, and merge conflict protocols. Use when an agent session fails or a worktree is corrupted./decision-journalDecision journal (tradeoffs, lessons learned), deferred-capture contract ([Deferred] issues, CLI args, source labels), storage templates. Use to log a lesson./document-conversionConverts documents and URLs to markdown via tiered fallback (MCP markitdown, native tools, user notice). Use when a skill must ingest PDF, DOCX, or URL content.npx claudepluginhub athola/claude-night-market --plugin leylineOther plugins' skills for the same job