skillcheck
CI for Hermes agent skills. Hermes learns skills as it works; nothing checks
that a new or edited skill still does what the old one did. skillcheck closes
that loop:
- Watch - plugin hooks (
pre_tool_call/post_tool_callon
skill_manageand on file writes into the skills directory, plus the
on_skill_lifecyclehook) notice supported in-band skill edits and
snapshot the previous revision when one exists (a create has no prior
state; out-of-band edits are detected by revision hash at run time,
without a snapshot). Watching never blocks or modifies a write. - Pin -
skillcheck_generatedrafts synthetic regression cases from the
skill's own definition: a brief, self-contained fixture data, deterministic
checks (contains/not_contains/regex), and an optional LLM-judge
rubric for what can't be checked deterministically. Cases are drafts until
you review them (skillcheck_cases). - Test -
skillcheck_runre-runs the cases against the skill's current
on-disk revision. Each case executes in a fresh child session launched
through Hermes's public Subagent Lifecycle API withallowed_toolsets=()
(no file, shell, browser or network tools) and fixtures inlined in the
prompt, so tests cannot touch real state. - Decide - every run reports GREEN / REGRESSION / FIRST-RUN /
INCONCLUSIVE against the promoted baseline, with per-case evidence.
/skillcheck promoteaccepts a run as the new baseline (refuses runs with
inconclusive cases)./skillcheck revertrestores the last pre-write
snapshot - manually, and only after snapshotting the current state so the
revert is itself reversible. Promote and revert are user-invoked only
(slash command or CLI); they are not registered as model tools.
A REGRESSION verdict requires a promoted baseline: the case passed then and
fails now. The plugin never calls anything a regression on first sight, never
blocks a write, and never rewrites a skill on its own.
Usage
In a session: /skillcheck status, /skillcheck generate <name>,
/skillcheck cases <name>, /skillcheck run <name>,
/skillcheck promote <name>, /skillcheck revert <name>.
Ask the agent and it can use the four registered tools (skillcheck_status,
skillcheck_generate, skillcheck_cases, skillcheck_run). Promote and
revert are NOT model tools - only you can run them, via the slash command or
the CLI.
From the shell: hermes skillcheck status, hermes skillcheck cases <name>,
hermes skillcheck promote <name>, hermes skillcheck revert <name>.
Honest limits
- Child sessions share the real environment; safety comes from narrowed
toolsets plus inline synthetic fixtures, not a sandbox. - Subagent launch works only inside an active agent turn, so runs are
on-demand (slash command / tool), not a background daemon. - Terminal results are bounded (~32k chars, no transcripts) - cases assert on
the final deliverable, not intermediate steps. - Hooks are fail-open by platform contract; skillcheck observes, it does not
gate synchronously. - Judged checks are labeled JUDGE in every report and an unavailable judge is
INCONCLUSIVE, never a pass. - Snapshots are taken only for writes the plugin observes (skill_manage /
write_file / patch through the Hermes tool pipeline, or the
on_skill_lifecycle hook). Edits made outside Hermes (an editor, sed, git)
are still DETECTED at the next run (the revision hash changes, so a
REGRESSION verdict still fires) but there is no pre-write snapshot for
skillcheck_revertto restore; it reports that honestly instead of
guessing. - Skill names are validated everywhere (every tool and hook) against
Hermes's skill-name rule - letters, digits,.,_,-; no separators,
no.., no leading dot - and must resolve strictly inside the skills
directory. Revert deletes and writes only inside that validated folder,
skips dotfiles (they are never snapshotted), refuses symlink escapes, and
restores bytes exactly, so non-UTF-8 files survive a round trip. - Generated cases are drafts for human review. Cases whose "fixtures" look
like a filename instead of inline data are flagged at generation, in
skillcheck_cases, and in every run report (child sessions cannot open
files). Review/repair drafts before promoting a baseline. - The LLM judge needs a capable model: judge no-verdict is always
INCONCLUSIVE (never a pass), and small free-tier models may fail as
judges while their deterministic contains/regex checks work fine. - A wait timeout stops skillcheck waiting, then requests cancellation of the
child session via the lifecycle API so a timed-out case does not keep
working in the background; the cancel outcome (accepted or refused, e.g.
when the run finished concurrently) is reported in the case detail.
Development
uv run --with pytest python -m pytest tests/ -q
Run this from a checkout whose directory is named skillcheck (the default
clone name): the repo root carries the plugin's __init__.py, and pytest's
default import mode needs the root directory name to be a valid Python
identifier.
Admission check (same one the catalog CI runs):
hermes plugins validate /path/to/skillcheck
README from the reviewed commit 501cc11; it updates when the author re-pins.

neta-gym