run-tests

run-tests is a skill for Claude Code, Codex from noahlz/claude-plugins. It costs 20 tokens per session (1,169 once invoked), scanned A, original, MIT.

A workflow for running a project's test suite, examining failures, and suggesting fixes with help from separate agents. A test suite is the collection of automated checks for a project.

In plain words
What is it for?
Use it when asked to run tests or build and test a project. It first determines the project's test commands from its files and instructions, then records and analyzes the results.
Why use it?
It provides a defined way to verify changes and investigate failures without repeatedly rerunning commands just to inspect their output.

Skill for Claude CodeCodex

Part of the dev-workflow plugin — 10 skills, 4 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/noahlz/claude-plugins/run-tests
Any agent
npx skills add noahlz/claude-plugins --skill run-tests
Clone the repo
git clone --depth 1 https://github.com/noahlz/claude-plugins

Made for: Claude Code, Codex.

Or install dev-workflow, the plugin that ships this one along with the rest of its 10 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for run-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/noahlz/claude-plugins/run-tests.svg)](https://agentmods.dev/skills/noahlz/claude-plugins/run-tests)
Your own site
<a href="https://agentmods.dev/skills/noahlz/claude-plugins/run-tests"><img src="https://agentmods.dev/badge/skills/noahlz/claude-plugins/run-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,169 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.01169
Opus 5 $0.00010 $0.00584
Sonnet 5 $0.00004 $0.00234
Haiku 4.5 $0.00002 $0.00117

Measured 4d ago against content hash 24cc2624375e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

run-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/parse-build-errors.js, scripts/parse-test-failures.js, scripts/run-command.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dev-workflow/skills/run-tests/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Activate this skill when:

  • You say or think phrases like
    • "Running tests to verify changes"
    • "Now I should run tests to verify my changes"
  • The user requests test execution, using phrases like:
    • "test"
    • "run tests"
    • "test the changes"
    • "build and test"

IMPORTANT: Follow the workflow steps EXACTLY as written.


Skill Context

SKILL_BASE_DIR: ${CLAUDE_SKILL_DIR}

VERSION CHECK: If SKILL_BASE_DIR above shows literal ${CLAUDE_SKILL_DIR} instead of a real path, halt: "This skill requires Claude Code 2.1.69 or higher."

Node.js Check: !node "${CLAUDE_SKILL_DIR}/../../lib/check-node-version.js"

HALT if Node.js Check shows ERROR.


Skill Workflow Instructions

Workflow Rules

MANDATORY:

  • ⛔ NEVER run test or build commands directly — use run-command.js for ALL execution
  • ⛔ NEVER re-run tests to inspect output — Read the output file instead
  • ⛔ ALL diagnostic information comes from files, never from re-execution
  • Use memory to recall test commands for this project

1. Determine How to Build and Test

Check memory, CLAUDE.md, and project files (package.json, pom.xml, go.mod, Cargo.toml, Makefile, etc.) to determine:

  • The test command to run
  • Whether a separate build step is required (most projects don't need one)
  • The output format (TAP, pytest, go, jest, etc.)

Quiet/silent flags: Use --silent, --quiet, or equivalent when the build tool writes structured results to files (e.g., Maven surefire XML reports, TAP reporters, Jest JSON output). Omit quiet flags when the tool's console output is the only source of test results.

If uncertain: Use AskUserQuestion. Save the answer to memory.

2. Build (if needed)

Most projects don't need a separate build step. Skip this step unless you have determined one is required.

Run build command:

node "<SKILL_BASE_DIR>/scripts/run-command.js" --cmd "<build command>" --out dist/build.log

Parse the JSON output. If exitCode is non-zero: → DELEGATE_TO: references/extract-build-errors.md ⛔ READ FILE AND FOLLOW INSTRUCTIONS, THEN RETURN HERE → Show analysis, ask user: "Enter plan mode to implement fixes?"

  • Yes → use EnterPlanMode with analysis context
  • No → exit workflow

Read the full file on GitHub · 139 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 139 lines · 20 tokens per session scan A 24cc2624375e

Subscribe to this mod's changes

run-tests is a skill published in the GitHub repository noahlz/claude-plugins (5 stars, last pushed 2d ago), licensed MIT. It adds 20 tokens to every session and 1,169 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens