run-tests

run-tests is a skill for Claude Code from JSchOBL/agentic-ai-learning-journey. It costs 43 tokens per session (532 once invoked), scanned A, original, MIT.

A testing tool for Python projects that runs the pytest test suite and reports passes, failures, skips, coverage, and untested code.

In plain words
What is it for?
Use it when you want to run tests, check coverage, or verify a change.
Why use it?
It gives an honest check that changes have not broken the project and shows which parts still lack tests. It reports failures instead of silently fixing them.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when you want to run tests, check coverage, or verify a change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jschobl/agentic-ai-learning-journey/run-tests
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.

Any agent
npx skills add JSchOBL/agentic-ai-learning-journey --skill run-tests
Clone the repo
git clone --depth 1 https://github.com/JSchOBL/agentic-ai-learning-journey

Made for: Claude Code.

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/jschobl/agentic-ai-learning-journey/run-tests.svg)](https://agentmods.dev/skills/jschobl/agentic-ai-learning-journey/run-tests)
Your own site
<a href="https://agentmods.dev/skills/jschobl/agentic-ai-learning-journey/run-tests"><img src="https://agentmods.dev/badge/skills/jschobl/agentic-ai-learning-journey/run-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00043 $0.00532
Opus 5 $0.00022 $0.00266
Sonnet 5 $0.00009 $0.00106
Haiku 4.5 $0.00004 $0.00053

Measured 8d ago against content hash e744e16c654d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (coverage_summary.py), 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.

samples/skills/run-tests/SKILL.md · 61 lines

How it starts

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

Run Tests

Run the project's test suite and report results honestly, including failures.

Steps

  1. Determine scope from the request:

    • A specific file was mentioned → run just that file
    • "the tests" or no scope → the whole suite
    • "coverage" mentioned → include the coverage flags in step 3
  2. Verify pytest is available:

    python -m pytest --version
    

    If missing, tell the user to run pip install pytest pytest-cov and stop.

  3. Run:

    python -m pytest <scope> -v --tb=short
    

    With coverage:

    python -m pytest <scope> --cov=src --cov-report=term-missing --cov-report=json
    

    For a threshold summary, run coverage_summary.py from this skill directory against the generated coverage.json.

  4. Report:

    • Pass / fail / skip counts, separately
    • For each failure: the test name, the assertion that failed, the file and line
    • Coverage percentage and which files fall below 80%, if coverage was run
  5. If tests failed, do not fix them unless asked. Report first — the user may want to see the failure before it disappears.

Interpreting failures

Read the actual assertion before theorising. Common patterns, in rough order of frequency:

  • Import errors — a dependency is missing, or the package isn't installed in editable mode. Check that before assuming the test is wrong.
  • Fixture errors — the fixture is out of scope or missing from conftest.py.
  • Assertion failures — a genuine behavioural difference. Report expected and actual verbatim; do not summarize them.
  • Collection errors — a syntax error in the test file. Not a test failure at all.

Constraints

  • Never modify a test to make it pass. If a test looks wrong, say so and explain why, then let the user decide.
  • Never report success when tests were skipped. Skipped is not passed. Report the skip count separately and say why they skipped.
  • Run the full suite before calling a change safe. A passing subset proves nothing about the rest.

Read the full file on GitHub · 61 lines

Files

What ships with it

1 file 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. 8d ago First seen · 61 lines · 43 tokens per session scan A e744e16c654d

Subscribe to this mod's changes

run-tests is a skill published in the GitHub repository JSchOBL/agentic-ai-learning-journey (3 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 532 once invoked, about $0.0002 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

tools-unity-test-framework

Unity Test Framework patterns for EditMode and PlayMode tests including async testing, mocking, and test organization.

IdoCohen560/claude-unity-game-studio · 27 tokens

plan-qa

Post-implementation QA planning — independent of /review (the developer chooses whether to run them sequentially or in parallel), only when the change has a running surface worth driving. Interviews the developer to turn the specs and the diff into an executable QA specification (specs/qa/QA- - .md) that /execute-qa…

foyzulkarim/skills · 110 tokens

execute-qa

Executes a QA specification (specs/qa/QA- - .md) written by /plan-qa: drives every step with the plan's drivers, verifies each Expected line mechanically ([assert]) or by evidence-backed judgment against the plan's written criterion ([judge]), pauses at named operator handoffs, and writes the results artifact…

foyzulkarim/skills · 106 tokens

generate-tasks

Phase 3 of 5 — slices the ARCH doc into verification-ready task specs (tdd/test-after/ui/checklist), emitted as a separate TASKS- - .md file alongside ARCH for the implement skill. Use only when the user asks to run Phase 3 or generate tasks from an ARCH doc — never trigger automatically.

foyzulkarim/skills · 74 tokens

mvp-readiness

Runs a structured MVP quality-gate audit covering stability, security, logging, docs, and implementation integrity. Reports pass/fail with evidence.

RealDougEubanks/ClaudeMarketplace · 33 tokens

requirements-generator

Generates structured requirements documents with functional and non-functional requirements, Gherkin acceptance criteria, edge cases, and out-of-scope items.

RealDougEubanks/ClaudeMarketplace · 31 tokens