Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
fa6ed5d
feat(harness): measure a skill with the skills installed beside it
chrisknvidia Nov 13, 2026
6d4ee7b
feat(harness): flag SKILL.md and files over harness delivery limits
chrisknvidia Nov 13, 2026
2d4f358
feat(harness): flag placeholders other harnesses pass through literally
chrisknvidia Nov 13, 2026
0d86c59
feat(harness): flag invocation fields each harness ignores
chrisknvidia Nov 13, 2026
03b5a47
fix(harness): don't flag disable-model-invocation as ignored when Cod…
chrisknvidia Nov 13, 2026
fbb88ef
fix(harness): drop the pointer to a CC-ALLOWED-TOOLS-HEADLESS rule th…
chrisknvidia Nov 13, 2026
99428bc
fix(harness): tell prices from positional arguments in $N detection
chrisknvidia Nov 13, 2026
a12392e
fix(harness): skip unreadable and binary resources, measure symlinked…
chrisknvidia Nov 13, 2026
8981375
fix(harness): keep each skills folder its own catalog and follow syml…
chrisknvidia Nov 13, 2026
9009157
fix(harness): report the Copilot CLI and OpenCode reload notes
chrisknvidia Nov 13, 2026
09b1489
docs(harness): keep the Accordion closing tag on its own line
chrisknvidia Nov 13, 2026
364ae9e
Merge branch 'feat/christopherk/harness-06-skills-folder' into feat/c…
chrisknvidia Nov 13, 2026
5147151
Merge branch 'feat/christopherk/harness-07-delivery-limits' into feat…
chrisknvidia Nov 13, 2026
ca3a80a
Merge branch 'feat/christopherk/harness-08-placeholders' into feat/ch…
chrisknvidia Nov 13, 2026
c2a8d08
Merge branch 'main' into feat/christopherk/harness-09-invocation-fields
chrisknvidia Nov 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ All notable changes to SkillEvaluator are documented in this file.
comment helpers, and needs no Pages configuration or history branch. Future
generated bundles include the template; archived bundles and the released
onboarding CLI retain their existing hosted publisher setup.
- `harness` rules for invocation fields: `disable-model-invocation`, Codex's
`agents/openai.yaml` policy, `allowed-tools`, Claude Code-only fields and Hermes
project trust. Tier 1 `schema` now reports fields outside the agentskills.io
spec (LOW).
- `harness` rules for placeholders: price-like `$N` text that Claude Code and
OpenCode replace with arguments (with line numbers), and `$ARGUMENTS` and
`${CLAUDE_SKILL_DIR}`, which only Claude Code substitutes.
- `harness` rules for delivery limits: Claude Code's body cap, OpenCode's
51,200-byte / 2,000-line reads and long lines, OpenClaw's whole-read and
weighted result caps, Hermes's 100,000-character `skill_view` budget and Codex's
~10K-token shell-output cut. Tier 1 `schema` now reports `SKILL.md` size tiers
(32 KiB LOW, 50 KiB MEDIUM, 256,000 bytes HIGH).
- The `harness` check measures a skill together with the skills installed beside
it: list budgets (scaled by the context window), duplicate names and which copy
each harness uses, and OpenClaw's prompt cap and compact list. A `catalog` line
in the panel names the folder measured.
- `harness` rules for where `SKILL.md` lives: casing, nested manifests, symlinked
manifests and resources, OpenClaw symlink escapes, Codex scan depth, and files
Hermes leaves out of its file list. Tier 1 `schema` now reports a symlinked or
Expand Down
10 changes: 10 additions & 0 deletions docs/tier1-validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice
- A duplicate frontmatter key is HIGH (`duplicate_key`; several harnesses drop the skill), and a UTF-8 BOM is MEDIUM (`manifest_bom`).
- A description within 1,024 characters but over 1,024 UTF-16 units is MEDIUM (`description_utf16_length`), and no "Use when ..." trigger in the first 60 characters is LOW (`description_trigger`).
- A symlinked `SKILL.md` (`manifest_symlink`) or a `SKILL.md` nested inside the skill (`nested_manifest`) is MEDIUM.
- `manifest_size` is LOW above 32 KiB, MEDIUM above 50 KiB and HIGH above 256,000 bytes.
- Fields outside the spec are LOW (`unknown_field`).
- `metadata.author` is optional under the `default` profile. Use `Name <email@host>` to include a contact address, or a person, team, or organization name such as `NVIDIA cuOpt Team` or `Jane Doe (@jdoe)`. A value that is malformed or unsafe is a HIGH `author_format` finding: a bare email or an email outside `Name <email@host>`, stray angle brackets, control, private-use, or bidirectional formatting characters (joiners such as ZWNJ and ZWJ, which Persian, Arabic and Devanagari names need, are accepted), no letters or digits, or more than 256 characters. A bare address counts even when its domain has no dot (`root@buildhost`), while a social handle such as `Jane Doe (@jdoe)` does not. The `registry` profile requires the `Name <email@host>` form.
- `metadata.id` is an optional stable skill ID. When present it must be an exact 1–64 character lowercase ASCII slug (`^[a-z0-9]+(-[a-z0-9]+)*$`, no surrounding whitespace); it may differ from `name`. A collection run reports an ID that more than one discovered skill declares; `validate` on a catalog also lists these in `catalog-summary.json` under `metadata_id_conflicts`. Under `registry` a shared ID blocks: the run exits nonzero, and each sharing skill's entry is `"passed": false` with the conflict repeated under `catalog_findings` and counted in its `severity_counts`. A catalog validates each skill on its own, so that skill's own report was written before the catalog-wide check ran and keeps its single-skill verdict, which the entry carries alongside as `report_verdict` beside `report_scope: "single_skill"`. Uniqueness is checked only across the skills validated together, never against a registry, and a single-skill run does not claim it. The ID does not change local catalog identity, which stays keyed by content type and relative path.
- `metadata.domain` accepts one category string or a list of them, such as `domain: [backend, ai-ml]`. Values are trimmed and deduplicated in order; a blank or null scalar means no domain. A list with more than 16 entries, or a non-string, blank, or over-128-character entry, is a HIGH `Field 'metadata.domain'` finding. The 128-character limit also applies to a single string.
Expand All @@ -282,6 +284,14 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice
Description rules: missing or empty descriptions, Claude Code and Codex listing cuts, Copilot CLI's 1,024 UTF-16 unit limit, quotes escaped in the Copilot CLI and OpenClaw lists, and Hermes's 60-character listing. `-v` also shows the description each harness puts in the model's skill list.

Location rules: `SKILL.md` casing, nested manifests, symlinked manifests and resources, OpenClaw symlink escapes, Codex scan depth, and files Hermes leaves out of its file list (outside `references/`, `templates/`, `assets/` and `scripts/`).

The check measures the skill together with the skills installed next to it. A single skill under a harness root such as `.claude/skills` is counted with everything in that folder; a folder of skills is its own catalog. That drives the list-budget rules (Claude Code and Codex ~8,000 description chars, Copilot 32 full descriptions, OpenClaw 150 skills or 18,000 chars) and a duplicate-name rule per harness that says which copy wins. A `catalog` line in the panel names the folder.

Delivery rules: Claude Code's body cap, OpenCode's 51,200-byte / 2,000-line reads and lines over 2,000 characters, OpenClaw's whole-or-nothing read against its result caps, Hermes's 100,000-character `skill_view` budget, and Codex's ~10K-token cut when the model reads `SKILL.md` through the shell.

Placeholder rules: `$ARGUMENTS` and `${CLAUDE_SKILL_DIR}` are substituted only by Claude Code, and price-like `$N` text is replaced with arguments by Claude Code and OpenCode.

Invocation rules: `disable-model-invocation` (ignored by Codex, Hermes and OpenCode), Codex's `agents/openai.yaml` implicit-invocation policy (Codex only), `allowed-tools`, Claude Code-only fields, and Hermes project trust.
</Accordion>

<Accordion title="security — vulnerability scanning">
Expand Down
8 changes: 8 additions & 0 deletions src/skillevaluator/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@
# Skill manifest file name variants (case-insensitive search)
SKILL_MANIFEST_VARIANTS = ("SKILL.md", "skill.md")

# Top-level SKILL.md frontmatter fields defined by the agentskills.io spec.
SPEC_SKILL_FIELDS = frozenset({"name", "description", "license", "compatibility", "metadata", "allowed-tools"})

# SKILL.md size thresholds (bytes) where common agent harnesses start cutting,
# refusing, or skipping the file: 16,000-64,000 character whole-file reads,
# 50 KiB tool-output truncation, and a 256,000-byte discovery cap.
SKILL_MD_SIZE_THRESHOLDS = ((256_000, "high"), (50 * 1024, "medium"), (32 * 1024, "low"))

# Some harnesses show only the first ~60 characters of each description in
# their skill list, so the "when to use" trigger should appear within it.
DESCRIPTION_TRIGGER_WINDOW = 60
Expand Down
2 changes: 2 additions & 0 deletions src/skillevaluator/harness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from skillevaluator.harness.overlay import (
HARNESS_STATUSES,
Catalog,
HarnessResult,
evaluate_harnesses,
evaluate_profile,
Expand All @@ -22,6 +23,7 @@

__all__ = [
"HARNESS_STATUSES",
"Catalog",
"HarnessResult",
"evaluate_harnesses",
"evaluate_profile",
Expand Down
Loading
Loading