agentleFS
Hook12aaaHook12aaa/skill-cheat/skills/skill-stress-test/SKILL.md

skill-stress-test

Skill0 starsChanged 41 days agoMITView on GitHub

Stress-tests any connected Claude Code plugin. Trigger /skill-stress-test whenever the user says "stress-test this plugin", "validate the skills in <path>", "QA the channelle-test plugin", "run the harness against runbug", or "find blind spots in my plugin". Walks every SKILL.md in the target plugin, runs the voice-review lint engine, and emits a graded report with one of VALIDATION_CLEAN, PLUGIN_DRIFT, VALIDATION_INCONCLUSIVE, or BLOCKED_NO_TARGET as the headline verdict.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never write a report without a verified target manifest.

    line 10
  2. Very specific:

    Never mutate the target plugin during a static run.

    line 14
  3. Very specific:

    Run the static layer on each enumerated SKILL.md.

    line 54
  4. Distinctive:

    Write the report and print the verdict.

    line 57
  5. Very specific:

    Run bash scripts/connect-plugin.sh --plugin <path> or, without --plugin, from a directory containing .claude-plugin/plugin.json.

    line 63
  6. Very specific:

    BEFORE running any layer: "Did connect-plugin.sh return a resolved manifest?"

    line 87
  7. Very specific:

    BEFORE writing report.json: "Does the report match references/report-schema.json?"

    line 88
  8. Very specific:

    BEFORE printing the headline verdict: "Did every enumerated SKILL.md produce a sub-verdict?"

    line 89
  9. Very specific:

    BEFORE emitting VALIDATION_CLEAN: "Did the static layer return ACCEPT for every skill?"

    line 90
  10. Distinctive:

    Connect before validating: No target, no run.

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- design-region-clean-of-hard-gates -->

skill-stress-test

<HARD-GATE> Never write a report without a verified target manifest. STOP and resolve --plugin first. </HARD-GATE><HARD-GATE> Never mutate the target plugin during a static run. STOP if any layer attempts a write outside `.skill-cheat-qa/`. </HARD-GATE>

Anti-Pattern

"I can skip the static layer for a simple plugin" — simple plugins are where unexamined lint failures hide longest. Every connected plugin gets the static layer regardless of size.

Core Principle

Validate every SKILL.md against the same contract that authored it.

Process Flow

digraph skill_stress_test {
    rankdir=TB;
    "Receive --plugin or cwd" [shape=box];
    "Resolve target" [shape=diamond];
    "BLOCKED_NO_TARGET" [shape=doublecircle];
    "Enumerate skills" [shape=box];
    "Run Layer 1: static" [shape=box];
    "Aggregate findings" [shape=box];
    "Resolve headline verdict" [shape=box];
    "Write report.json" [shape=box];
    "Print VERDICT" [shape=doublecircle];
    "Receive --plugin or cwd" -> "Resolve target";
    "Resolve target" -> "BLOCKED_NO_TARGET" [label="missing"];
    "Resolve target" -> "Enumerate skills" [label="resolved"];
    "Enumerate skills" -> "Run Layer 1: static";
    "Run Layer 1: static" -> "Aggregate findings";
    "Aggregate findings" -> "Resolve headline verdict";
    "Resolve headline verdict" -> "Write report.json";
    "Write report.json" -> "Print VERDICT";
}

Checklist

  1. Resolve the target plugin from --plugin or cwd.
  2. Enumerate every skills/*/SKILL.md in the target.
  3. Run the static layer on each enumerated SKILL.md.
  4. Aggregate per-skill findings into a layer-level sub-verdict.
  5. Resolve the headline verdict by precedence.
  6. Write the report and print the verdict.

Step Details

1. Resolve the target plugin from --plugin or cwd

Run bash scripts/connect-plugin.sh --plugin <path> or, without --plugin, from a directory containing .claude-plugin/plugin.json. The script emits a normalized manifest JSON to stdout or exits non-zero with BLOCKED_NO_TARGET.

2. Enumerate every skills/*/SKILL.md in the target

The orchestrator reads the manifest and globs <target>/skills/*/SKILL.md. Empty enumeration is not a failure; it is a VALIDATION_INCONCLUSIVE with reason: "no skills found".

3. Run the static layer on each enumerated SKILL.md

bash scripts/layer-static.sh --target <path> fans skill-voice-review/scripts/lint.sh across every enumerated SKILL.md and emits a single JSON object with per-skill findings.

4. Aggregate per-skill findings into a layer-level sub-verdict

The layer's sub-verdict is the worst of all per-skill verdicts: REJECT_CRITICAL > REJECT_IMPORTANT > ACCEPT_WITH_MINOR > ACCEPT.

5. Resolve the headline verdict by precedence

node scripts/verdict-resolver.js consumes the layer sub-verdicts and emits the headline. Precedence: BLOCKED_NO_TARGET > VALIDATION_INCONCLUSIVE > PLUGIN_DRIFT > VALIDATION_CLEAN. (Plan 4 adds HARNESS_GAP above PLUGIN_DRIFT.)

6. Write the report and print the verdict

node scripts/report-writer.js writes <target>/.skill-cheat-qa/runs/<run-id>/report.json. The Bottom Line bash reads that file and prints VERDICT: <headline>.

Gate Functions

  • BEFORE running any layer: "Did connect-plugin.sh return a resolved manifest?"
  • BEFORE writing report.json: "Does the report match references/report-schema.json?"
  • BEFORE printing the headline verdict: "Did every enumerated SKILL.md produce a sub-verdict?"
  • BEFORE emitting VALIDATION_CLEAN: "Did the static layer return ACCEPT for every skill?"

Rationalization Table

You think...Reality
"Skip the static layer for a simple plugin"Run every layer regardless. Simple plugins fail silently the longest.
"Accept ACCEPT_WITH_MINOR as clean"Treat ACCEPT_WITH_MINOR as PLUGIN_DRIFT. Minor findings are still drift the author owns.
"Print the verdict before writing the report"Write the report first. The report is the audit trail; the verdict is its summary.

Red Flags

  • "Just lint the obvious skills"
  • "Skip writing the report; the verdict is enough"
  • "ACCEPT_WITH_MINOR is basically clean"
  • "Layer 1 alone is the full validation"

Key Principles

  • Connect before validating. No target, no run.
  • Worst skill wins the layer. Aggregation by maximum severity.
  • Write the report before the verdict. Audit trail first.

The Bottom Line

#!/usr/bin/env bash
set -euo pipefail
target="${1:-$PWD}"
run_id="$(date -u +%Y-%m-%dT%H-%M-%S)-$(openssl rand -hex 4)"
report_dir="${target}/.skill-cheat-qa/runs/${run_id}"
mkdir -p "$report_dir"
manifest="$(bash skills/skill-stress-test/scripts/connect-plugin.sh --plugin "$target")" \
  || { echo "VERDICT: BLOCKED_NO_TARGET"; exit 1; }
echo "$manifest" > "${report_dir}/manifest.json"
static_findings="$(bash skills/skill-stress-test/scripts/layer-static.sh --target "$target")"
echo "$static_findings" > "${report_dir}/static-findings.json"
node skills/skill-stress-test/scripts/report-writer.js \
  --manifest "${report_dir}/manifest.json" \
  --static "${report_dir}/static-findings.json" \
  --output "${report_dir}/report.json"
verdict="$(node skills/skill-stress-test/scripts/verdict-resolver.js --report "${report_dir}/report.json")"
echo "VERDICT: ${verdict}"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.