Skip to content
Back to skills

Skill Test

ASecurity

Validate skill files for structural compliance and behavioral correctness. Four modes: static (structure/parity), spec (instruction reasoning), category (rubric), audit (coverage report).

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
testinggotestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Negentropy-Laby/Constitution-Driven-Development --skill skill-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/negentropy-laby-skill-test/badge)](https://www.skillsdirectory.com/skills/negentropy-laby-skill-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-test
description: "Validate skill files for structural compliance and behavioral correctness. Four modes: static (structure/parity), spec (instruction reasoning), category (rubric), audit (coverage report)."
argument-hint: "static [skill-name | all] | spec [skill-name] | category [skill-name | all] | audit"
user-invocable: true
allowed-tools: Read, Glob, Grep, Write
---
Read and apply `docs/COLLABORATIVE-DESIGN-PRINCIPLE.md`,
`standards/evidence-lifecycle.md` and `standards/notes-adr-sync.md` for scoped
authority, exact evidence and decision ownership. Existing named authority
continues; analysis is read-only and report-only excludes input/index/state writes.


## User Guide

- When to use: Validate skill files for structural compliance and behavioral correctness. Four modes: static (structure/parity), spec (instruction reasoning), category (rubric), audit (coverage report).
- Inputs: Command arguments: `/skill-test static [skill-name | all] | spec [skill-name] | category [skill-name | all] | audit`; project artifacts referenced below; user decisions and approvals before writes.
- Outputs: Conversational static/spec/category/audit findings; covered optional
  result writes use existing T3 paths/fallback. Coverage index is a distinct effect.
- Memory-bank writes: Only when Memory Bank is initialized and each named write effect is covered: T3 test evidence under `memory_bank/t3_archive/skill_testing/`.
- Next steps: Follow the workflow hand-off or next-step guidance below; recommendations do not auto-run and require explicit user command/approval.

## Phase 0: Domain Routing

Determine the target skill's advertised domain capability before testing.
`[Both]` below describes an artifact supporting both domains, not a project-domain
enum. Project routing uses the concrete Game or Product scope, or unresolved
Unknown, under `standards/technical-preferences.md`.
- **[Game]** verify game examples, player/gameplay/engine language, playtest references, and game CDD paths remain valid.
- **[Product]** verify product examples, API/CLI/web/data language, product-concept paths, stack references, and product evidence paths remain valid.
- **[Both]** check that dual-domain skills preserve both branches and do not hide game-only content from game workflows.

A passing skill test must not require deleting game-specific examples.
# Skill Test

Validates `skills/*/SKILL.md` files for structural compliance and
behavioral correctness. No external dependencies — runs entirely within the
existing skill/hook/template architecture.

**Four modes:**

| Mode | Command | Purpose | Token Cost |
|------|---------|---------|------------|
| `static` | `/skill-test static [name\|all]` | Structural/parity review — current 8 checks per skill | Low (~1k/skill) |
| `spec` | `/skill-test spec [name]` | Behavioral verifier — evaluates assertions in test spec | Medium (~5k/skill) |
| `category` | `/skill-test category [name\|all]` | Category rubric — checks skill against its category-specific metrics | Low (~2k/skill) |
| `audit` | `/skill-test audit` | Coverage report — skills, agent specs, last test dates | Low (~3k total) |

---

## Phase 1: Parse Arguments

Determine mode from the first argument:

- `static [name]` → run 8 structural/parity checks on one skill
- `static all` → run 8 structural/parity checks on all skills (Glob `skills/*/SKILL.md`)
- `spec [name]` → read skill + test spec, evaluate assertions
- `category [name]` → run category-specific rubric from `skill_testing/quality-rubric.md`
- `category all` → run category rubric for every skill that has a `category:` in catalog
- `audit` (or no argument) → read catalog, list all skills and agents, show coverage

No argument selects `audit`. Unrecognized modes or missing required names for
`static`/`spec`/`category` output usage and stop; do not reject the legal no-argument audit.

---

## Phase 2A: Static Mode — Structural Linter

For each skill being tested, read its `SKILL.md` fully and run all 8 checks:

### Check 1 — Required Frontmatter Fields
The file must contain all of these in the YAML frontmatter block:
- `name:`
- `description:`
- `argument-hint:`
- `user-invocable:`
- `allowed-tools:`

**FAIL** if any are absent.

### Check 2 — Multiple Phases
The skill must have ≥2 numbered phase headings. Look for patterns like:
- `## Phase N` or `## Phase N:`
- `## N.` (numbered top-level sections)
- At least 2 distinct `##` headings if phases aren't explicitly numbered

**FAIL** if fewer than 2 phase-like headings are found.

### Check 3 — Verdict Keywords
The skill must contain at least one of: `PASS`, `FAIL`, `CONCERNS`, `APPROVED`,
`BLOCKED`, `COMPLETE`, `INCOMPLETE`, `READY`, `COMPLIANT`, `NON-COMPLIANT`

**FAIL** if none are present.

### Check 4 — Collaborative Protocol Language

Evaluate actual actions and shared-owner application. Write-capable skills must
reuse covered named paths/effects, show concrete scope before new authority and
exclude inputs/index/state from report-only. Review-only invokes no write
entrypoint. A valid shared-contract reference with consistent behavior can PASS
without repeated per-file questions. Magic phrase/nearby keyword presence cannot
overcome conflicting writes; FAIL for a real authority gap. Read-only behavior is
N/A for write authority rather than WARN solely for absent permission wording.

### Check 5 — Next-Step Handoff
The skill must end with a recommended next action or follow-up path. Look for:
- A final section mentioning another skill (e.g., `/story-done`, `/gate-check`)
- "Recommended next" or "next step" phrasing
- A "Follow-Up" or "After this" section

**WARN** if absent.

### Check 6 — Fork Context Complexity
If frontmatter contains `context: fork`, the skill should have ≥5 phase headings
(`##` level or numbered Phase N headers). Fork context is for complex multi-phase
skills; simple skills should not use it.

**WARN** if `context: fork` is set but fewer than 5 phases found.

### Check 7 — Argument Hint Plausibility
`argument-hint` must be non-empty. If the skill body mentions multiple modes
(e.g., "Mode A | Mode B"), the hint should reflect them. Cross-reference the
hint against the first phase's "Parse Arguments" section.

**WARN** if hint is `""` or if documented modes don't match hint.

### Check 8 — Dual-Domain Parity

Read the entire skill and applicable referenced owner bodies. Determine actual
advertised scope, domain routing and capabilities, then reason through Game and
Product fixtures for its job: context, substantive actions/output and handoff.
Required Product behavior must not route through engine/player/playtest-only
instructions; Game examples and applicable Game behavior remain preserved.
Game-only skills justify their scope rather than invent Product features.
Meaningful guidance in the first 50 lines is valid; line position, two keyword
hits, total line counts or quoting the last line do not prove full reading.
Disclose inaccessible/omitted bodies and leave affected checks incomplete.
PASS needs actual supported behavior; WARN/PARTIAL identifies ambiguity, FAIL
identifies a specific contradictory/missing required behavior.

---

### Static Mode Output Format

For a single skill:
```
=== Skill Static Check: /[name] ===

Check 1 — Frontmatter Fields:    PASS
Check 2 — Multiple Phases:       PASS (7 phases found)
Check 3 — Verdict Keywords:      PASS (PASS, FAIL, CONCERNS)
Check 4 — Collaborative Protocol: PASS (actual scoped actions verified)
Check 5 — Next-Step Handoff:     WARN (no follow-up section found)
Check 6 — Fork Context Complexity: PASS (8 phases, context: fork set)
Check 7 — Argument Hint:         PASS
Check 8 — Dual-Domain Parity:     PASS (both actual branches evaluated)

Verdict: WARNINGS (1 warning, 0 failures)
Recommended: Add a "Follow-Up Actions" section at the end of the skill.
```

For `static all`, produce a summary table then list any non-compliant skills:
```
=== Skill Static Check: All [actual enumerated count] Skills ===

Skill                  | Result       | Issues
-----------------------|--------------|-------
gate-check             | COMPLIANT    |
design-review          | COMPLIANT    |
story-readiness        | WARNINGS     | Check 5: no handoff
...

Summary: 48 COMPLIANT, 3 WARNINGS, 1 NON-COMPLIANT
Aggregate Verdict: N WARNINGS / N FAILURES
```

### Static Mode Optional Evidence Write

Static mode displays findings by default. Reuse existing named report/index scope;
if preservation is requested without coverage, show actual effects then ask:

"May I write this static check to
`memory_bank/t3_archive/skill_testing/results/static/skill-test-static-[name|all]-[YYYY-MM-DD].md`
and update `memory_bank/t3_archive/skill_testing/coverage-index.yaml`?"

If yes:
- Write the static result file under `memory_bank/t3_archive/skill_testing/results/static/`
- Update each affected skill entry in `coverage-index.yaml`:
  - `last_static: [date]`
  - `last_static_result: PASS|WARN|FAIL`
  - `latest_result_path: memory_bank/t3_archive/skill_testing/results/static/skill-test-static-[name|all]-[YYYY-MM-DD].md`

---

## Phase 2B: Spec Mode — Behavioral Verifier

### Step 1 — Locate Files

Find skill at `skills/[name]/SKILL.md`.
Look up the spec path from `skill_testing/catalog.yaml`
— use the `spec:` field for the matching skill entry.

If either is missing:
- Missing skill: "Skill '[name]' not found in `skills/`."
- Missing spec path in catalog: "No spec path set for '[name]' in catalog.yaml."
- Spec file not found at path: "Spec file missing at [path]. Run `/skill-test audit`
  to see coverage gaps."

### Step 2 — Read Both Files

Read the skill file and test spec file completely.

### Step 3 — Evaluate Assertions

For each **Test Case** in the spec:

1. Read the **Fixture** description (assumed state of project files)
2. Read the **Expected behavior** steps
3. Read each **Assertion** checkbox

For each assertion, evaluate whether the skill's written instructions, if
followed correctly given the fixture state, would satisfy it. This is an
instruction-reasoning check, not fixture/runtime execution.

Mark each assertion:
- **PASS** — skill instructions clearly satisfy this assertion
- **PARTIAL** — skill instructions partially address it, but with ambiguity
- **FAIL** — skill instructions would NOT satisfy this assertion given the fixture

For **Protocol Compliance** assertions (always present):
- Check actual named scope/authority and shared-contract application before writes
- Check whether the skill presents findings before requesting approval
- Check whether the skill ends with a recommended next step
- Check whether the skill avoids auto-creating files without approval

### Step 4 — Build Report

```
=== Skill Spec Test: /[name] ===
Date: [date]
Spec: skill_testing/specs/skills/[category]/[name].md

Case 1: [Happy Path — name]
  Fixture: [summary]
  Assertions:
    [PASS] [assertion text]
    [FAIL] [assertion text]
       Reason: The skill's Phase 3 says "..." but the fixture state means "..."
  Case Verdict: FAIL

Case 2: [Edge Case — name]
  ...
  Case Verdict: PASS

Protocol Compliance:
  [PASS] Applies actual scoped authority before file writes
  [PASS] Presents findings before asking approval
  [WARN] No explicit next-step handoff at end

Overall Verdict: FAIL (1 case failed, 1 warning)
```

### Step 4b — Dual-Domain Spec Assertions

For a spec covering a dual-domain skill, read substantive bodies/configuration,
the actual job, selected scope and inputs for each advertised branch:
- Game fixture: actual Game concept or configured legacy Game evidence plus its
  gameplay/engine task and owning CDD/Story; preserve applicable examples and paths.
- Product fixture: actual Product contract or configured legacy Product evidence
  (including populated aliases without a concept) plus its actual API/CLI/data/
  auth/workflow job and owning inputs; use applicable Product behavior and paths.
- Absent concepts, copied placeholders and conflicting bodies do not establish a
  domain. Mixed/conflicting scope needs a concrete Game or Product selection
  before dependent routing; neutral analysis continues without an invented Both
  project route or completion claim.

Reasoning through a fixture is not fixture execution. Record which assertions
were reasoned about and which supported behaviors were actually run; disclose
unexecuted/inaccessible cases and do not infer runtime qualification.

Mark semantic assertions:
- **PASS** — both advertised branches satisfy the evaluated assertions for their
  actual scope; execution and qualification are reported separately.
- **PARTIAL** — required body/scope evidence or applicable behavior is incomplete.
- **FAIL** — actual Product scope is routed through Game-only behavior, or a
  Product change removes required Game behavior.

### Step 5 — Offer to Write Results

Reuse exact named report/index authority; only missing/new effects ask:
"May I write these results to
`memory_bank/t3_archive/skill_testing/results/spec/skill-test-spec-[name]-[YYYY-MM-DD].md`
and update `memory_bank/t3_archive/skill_testing/coverage-index.yaml`?"

If yes:
- Write the result file to `memory_bank/t3_archive/skill_testing/results/spec/`
- Update the skill's entry in `memory_bank/t3_archive/skill_testing/coverage-index.yaml`:
  - `last_spec: [date]`
  - `last_spec_result: PASS|PARTIAL|FAIL`
  - `latest_result_path: memory_bank/t3_archive/skill_testing/results/spec/skill-test-spec-[name]-[YYYY-MM-DD].md`

---

## Phase 2C: Category Mode — Rubric Evaluation

### Step 1 — Locate Skill and Category

Find skill at `skills/[name]/SKILL.md`.
Look up `category:` field in `skill_testing/catalog.yaml`.

If skill not found: "Skill '[name]' not found."
If no `category:` field: "No category assigned for '[name]' in catalog.yaml.
Report the absent registration; do not modify catalog as a testing side effect."

For `category all`: collect all skills with a `category:` field and process each.
`category: utility` skills are evaluated against U1 (static checks pass) and U2
(gate mode correct if applicable) only — skip to the static mode for U1.

### Step 2 — Read Rubric Section

Read `skill_testing/quality-rubric.md`.
Extract the section matching the skill's category (e.g., `### gate`, `### team`).

### Step 3 — Read Skill

Read the skill's `SKILL.md` fully.

### Step 4 — Evaluate Rubric Metrics

For each metric in the category's rubric table:
1. Check whether the skill's written instructions clearly satisfy the criterion
2. Mark PASS, FAIL, or WARN
3. For FAIL/WARN, identify the exact gap in the skill text (quote the relevant section
   or note its absence)

### Step 5 — Output Report

```
=== Skill Category Check: /[name] ([category]) ===

Metric G1 — Review mode read:      PASS
Metric G2 — Full mode directors:   FAIL
  Gap: Phase 3 spawns only CD-PHASE-GATE; TD-PHASE-GATE, PR-PHASE-GATE, AD-PHASE-GATE absent
Metric G3 — Lean mode: PHASE-GATE only: PASS
Metric G4 — Solo mode: no directors:    PASS
Metric G5 — No auto-advance:       PASS

Verdict: FAIL (1 failure, 0 warnings)
Fix: Add TD-PHASE-GATE, PR-PHASE-GATE, and AD-PHASE-GATE to the full-mode director
     panel in Phase 3.
```

### Step 6 — Offer to Write Results

Reuse exact named report/index authority; only missing/new effects ask:
"May I write this category check to
`memory_bank/t3_archive/skill_testing/results/category/skill-test-category-[name]-[YYYY-MM-DD].md`
and update `memory_bank/t3_archive/skill_testing/coverage-index.yaml`
(`last_category`, `last_category_result`, `latest_result_path`) for [name]?"

---

## Phase 2D: Audit Mode — Coverage Report

### Step 1 — Read Catalog

Read `skill_testing/catalog.yaml` for the registry and
`memory_bank/t3_archive/skill_testing/coverage-index.yaml` for test history.
A missing canonical catalog is an affected coverage gap. Optional project history
absence stays unknown and uses established report/conversation fallback; do not
initialize Memory Bank or copy specs as a test side effect.

### Step 2 — Enumerate All Skills and Agents

Glob `skills/*/SKILL.md` to get the complete list of skills.
Extract skill name from each path (directory name).

Enumerate actual canonical `agents/*.md` as well as catalog `agents:` entries;
report missing/uncataloged definitions instead of treating catalog count as reality.

### Step 3 — Build Skill Coverage Table

For each skill:
- Check if a spec file exists (use the `spec:` path from catalog, or glob `skill_testing/specs/skills/*/[name].md`)
- Look up `last_static`, `last_static_result`, `last_spec`, `last_spec_result`,
  `last_category`, `last_category_result`, and `latest_result_path` from
  `coverage-index.yaml` (or mark as "never" / "—" if not in coverage)
- Look up `category` from catalog
- Priority comes from catalog `priority:` field (critical/high/medium/low)

### Step 3b — Build Agent Coverage Table

For each agent in catalog's `agents:` section:
- Check if a spec file exists (use the `spec:` path from catalog, or glob `skill_testing/specs/agents/*/[name].md`)
- Look up `last_spec`, `last_spec_result`, and `latest_result_path` from
  `coverage-index.yaml`
- Look up `tier` from catalog

### Step 4 — Output Report

```
=== Skill Test Coverage Audit ===
Date: [date]

SKILLS ([actual total])
Specs present: [count/actual total] | Untested/unknown history: [actual counts]

Skill                  | Cat      | Has Spec | Last Static | S.Result | Last Cat | D.Result | Priority
-----------------------|----------|----------|-------------|----------|----------|----------|----------
gate-check             | gate     | YES      | never       | —        | never    | —        | critical
design-review          | review   | YES      | never       | —        | never    | —        | critical
...

AGENTS ([actual total])
Agent specs present: [count/actual total]

Agent                  | Category   | Has Spec | Last Spec   | Result
-----------------------|------------|----------|-------------|--------
creative-director      | director   | YES      | never       | —
technical-director     | director   | YES      | never       | —
...

Top 5 Priority Gaps (skills with no spec, critical/high priority):
(none if all specs are written)

Spec presence coverage: [actual present/actual total] with explicit denominator;
behavior/runtime qualification and test history remain separate.
```

Legacy report-format illustration only: this fixture declares 74 source skills
and 74 spec files, with no execution records. Its 100% means declared spec
inventory, not executed test coverage, semantic correctness or runtime
qualification. The legacy "Never" labels mean no recorded runs in this fixture;
absence of a record does not prove a run never occurred. Do not copy these
literals as current totals: enumerate actual definitions/specs and read raw
records for the live report, disclosing absent history as unknown.

```text
ILLUSTRATIVE FIXTURE — declared source and spec inventory only
SKILLS (74 total)
Specs written: 74 (100%)
Never static tested: 74
Never category tested: 74
Skill coverage: 74/74 specs
```

Audit mode is read-only by default.

Optional write: reuse the named new-report scope, otherwise ask after findings
"May I write this audit report to
`memory_bank/t3_archive/skill_testing/results/audit/skill-test-audit-[YYYY-MM-DD].md`?"
Write only within exact report authority; approval of this report excludes index/state.

Offer: "Would you like to run `/skill-test static all` to check structural
compliance across all skills? `/skill-test category all` to run category rubric
checks? Or `/skill-test spec [name]` to run a specific behavioral test?"

---

## Phase 3: Recommended Next Steps

After any mode completes, offer contextual follow-up:

- After `static [name]`: "Run `/skill-test spec [name]` to validate behavioral
  correctness if a test spec exists."
- After `static all` with failures: "Address NON-COMPLIANT skills first. Run
  `/skill-test static [name]` individually for detailed remediation guidance."
- After `spec [name]` PASS: "Update `memory_bank/t3_archive/skill_testing/coverage-index.yaml`
  to record this pass date. Consider running `/skill-test audit` to find the next spec gap."
- After `spec [name]` FAIL: "Review the failing assertions and update the skill
  or the test spec to resolve the mismatch."
- After `audit`: "Start with the critical-priority gaps. Use the spec template at
  `skill_testing/templates/skill-test-spec.md` to create new specs."

Select host/model validation under `standards/evidence-lifecycle.md`, section "Validation scope and model-based evaluation". Static/spec reasoning is a distinct claim from model-behavior evaluation and host integration execution.

## Evidence write boundary

All four analyses invoke no write entrypoint. For the optional paths above,
reuse named report/index authority; ask only for missing/new effects after the
findings. Report-only writes its new result, never coverage/input/state. If
Memory Bank is absent, use the established assigned report/conversation fallback.
Bind exact canonical skill/spec/catalog/rubric and required indirect owner bytes
under `standards/evidence-lifecycle.md`; retain originals and historical revisions.
The T2 testing mount references `skill_testing/`; never copy a second testing tree.
Structural CLI checks differ from this eight-check semantic review, spec/category
reasoning, actual fixture execution and independent verification. Disclose which
occurred; no test verdict grants acceptance, publication or Story/stage completion.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.