Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

fix(quality): report the 5,000-token skill budget as advisory (#272)

Narendran Raghavanffbbd6b72f94
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5677b55c..6f960f18 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -310,6 +310,12 @@ All notable changes to SkillEvaluator are documented in this file.
`quality-check` before any report was written. The schema check reports the
malformed `metadata`, and the quality score counts `metadata.author` and
`metadata.tags` as missing, as it already did for other non-mapping values.
+- A `SKILL.md` over the recommended 5,000-token budget now gets a MEDIUM
+ `quality_efficiency` finding instead of a HIGH one. The HIGH finding failed
+ the quality check, and with it `validate`, `tier1`, and `quality-check`, even
+ when the quality score met `--min-score`. The 15-point Efficiency deduction is
+ unchanged, so a large skill still fails when its score falls below the
+ minimum.
## 0.6.0 - 2026-10-20
diff --git a/docs/tier1-validation.mdx b/docs/tier1-validation.mdx
index c54ff073..3f87c80a 100644
--- a/docs/tier1-validation.mdx
+++ b/docs/tier1-validation.mdx
@@ -235,6 +235,8 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice
| Reliability | 25% | Error handling, prerequisites, limitations, troubleshooting, and implementation safeguards |
| Efficiency | 15% | Token budget, body length, repetition, instruction clarity, and reference use |
+ The 5,000-token budget for `SKILL.md` is a recommendation, not a hard limit. A larger `SKILL.md` gets a MEDIUM `quality_efficiency` finding and a 15-point Efficiency deduction. The finding does not fail the check by itself, but the deduction can still take the score below `--min-score`.
+
Grades are A for scores of at least 90, B for at least 80, C for at least 70, D for at least 60, and F below 60. The default `--min-score` is 70. Passing requires the score to reach that minimum and no HIGH or CRITICAL quality findings under the active policy.
The minimum score is an independent gate. Policy severity overrides cannot
diff --git a/src/skillevaluator/validators/quality_score.py b/src/skillevaluator/validators/quality_score.py
index 09061c2e..fdc3833f 100644
--- a/src/skillevaluator/validators/quality_score.py
+++ b/src/skillevaluator/validators/quality_score.py
@@ -757,10 +757,12 @@ class QualityScoreValidator(ValidatorBase):
if inst_start > 3:
qs.instructions_tokens = len(content[inst_start:]) // 4
+ # The token budget is a recommendation: exceeding it is advisory (MEDIUM),
+ # and the deduction still counts toward the --min-score gate.
if qs.total_tokens > QUALITY_RECOMMENDED_MAX_TOKENS:
dim.deduct(
15,
- "error",
+ "warning",
(
f"Large skill ({qs.total_tokens} tokens, recommended max <{QUALITY_RECOMMENDED_MAX_TOKENS}). "
f"Per agentskills.io, SKILL.md should be concise (~500 lines) — "
diff --git a/tests/validators/test_quality_score.py b/tests/validators/test_quality_score.py
index 780e6694..c1470bea 100644
--- a/tests/validators/test_quality_score.py
+++ b/tests/validators/test_quality_score.py
@@ -581,8 +581,8 @@ class TestQualityScoreValidator:
"README.md" in finding.message and "references" in finding.message.lower() for finding in result.findings
)
- def test_large_skill_is_high_severity(self, tmp_path):
- """Large skills (>5000 tokens) should produce HIGH severity findings."""
+ def test_large_skill_is_advisory(self, tmp_path):
+ """The recommended 5000-token maximum is advisory, not a blocking finding."""
from skillevaluator.models.result import Severity
skill_dir = tmp_path / "large-skill"
@@ -604,11 +604,13 @@ class TestQualityScoreValidator:
f for f in result.findings if "Large skill" in f.message or "large skill" in f.message.lower()
]
assert len(large_findings) >= 1, "Expected a finding about large skill size"
- assert large_findings[0].severity == Severity.HIGH
+ assert large_findings[0].severity == Severity.MEDIUM
assert "recommended max <5000" in large_findings[0].message
assert "long or unfocused top-level descriptions" in large_findings[0].message
assert "Keep required sections concise" in large_findings[0].suggestion
assert "references/" in large_findings[0].suggestion
+ assert result.passed, result.errors
+ assert not result.gate_failures
def test_above_6000_tokens_uses_same_5000_recommendation(self, tmp_path):
"""Skills above 6000 tokens should still use the single >5000 recommendation."""
@@ -631,7 +633,7 @@ class TestQualityScoreValidator:
result = v.validate(skill_dir)
large_findings = [f for f in result.findings if "large skill" in f.message.lower()]
assert len(large_findings) >= 1, "Expected a finding about large skill size"
- assert large_findings[0].severity == Severity.HIGH
+ assert large_findings[0].severity == Severity.MEDIUM
assert "recommended max <5000" in large_findings[0].message
assert "recommend <6000" not in large_findings[0].message
assert "Very large skill" not in large_findings[0].message