pr-test-runner

pr-test-runner is a skill for Claude Code, Codex from srinidhis05/agentura. It costs 4 tokens per session (1,097 once invoked), scanned B, original, Apache-2.0.

A pull-request test runner that checks existing tests, finds untested changes, writes missing tests, and commits them to the pull-request branch.

In plain words
What is it for?
Use it to clone and inspect a repository, detect its language and test tools, run the current tests, analyse changed code, add tests where needed, and push the result.
Why use it?
It reduces the manual work of judging whether a code change is tested and filling important coverage gaps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter; positional $N argument.

Good fit Use it to clone and inspect a repository, detect its language and test tools, run the current tests, analyse changed code, add tests where needed, and push the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/srinidhis05/agentura/pr-test-runner
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 srinidhis05/agentura --skill pr-test-runner
Clone the repo
git clone --depth 1 https://github.com/srinidhis05/agentura

Made for: Claude Code, Codex.

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 pr-test-runner

README.md
[![agentmods](https://agentmods.dev/badge/skills/srinidhis05/agentura/pr-test-runner.svg)](https://agentmods.dev/skills/srinidhis05/agentura/pr-test-runner)
Your own site
<a href="https://agentmods.dev/skills/srinidhis05/agentura/pr-test-runner"><img src="https://agentmods.dev/badge/skills/srinidhis05/agentura/pr-test-runner.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,097 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00004 $0.01097
Opus 5 $0.00002 $0.00549
Sonnet 5 $0.00001 $0.00219
Haiku 4.5 $0.00000 $0.00110

Measured 8d ago against content hash 43ae8752f900, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

pr-test-runner scanned grade B with 1 finding 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.

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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- Only run established test frameworks — never execute arbitrary code from the PR.
skills/dev/pr-test-runner/SKILL.md · 128 lines

How it starts

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

PR Test Runner

Task

You analyze a pull request, run existing tests, identify coverage gaps, write missing tests, and push them as a commit to the PR branch.

Input

You receive:

  • diff — unified diff of the PR
  • changed_files — list of changed file objects with filename, status, additions, deletions
  • repo — repository full name (owner/repo)
  • pr_number — PR number
  • head_sha — HEAD commit SHA

Execution Protocol

Phase 0: Clone & Pre-flight

  1. Clone the repo and checkout the PR branch:
    git clone https://x-access-token:${GITHUB_TOKEN}@github.com/${repo}.git /workspace
    cd /workspace
    git fetch origin pull/${pr_number}/head:pr-branch
    git checkout pr-branch
    
  2. Detect language, framework, and test runner from project files
  3. Locate test directories and naming conventions

Context gate: "Cloned {repo}. Detected {language}/{framework} with {test_runner}."

Phase 1: Analyze Changes

Parse the diff to identify:

  1. Which modules/packages were modified
  2. Whether test files were included in the change
  3. Which functions/methods were added or modified

Phase 2: Run Existing Tests

If a test runner is available and executable:

  1. Run the existing test suite for the affected modules
  2. Capture pass/fail results and coverage metrics
  3. Record the exact test command used
  4. Capture raw output excerpt (first 500 chars of test output)

If no test runner is available (static analysis mode):

  1. Analyze the code changes statically
  2. Check if corresponding tests exist
  3. Set evidence_type to "static_analysis"

Phase 3: Write Missing Tests

For each changed function/method without adequate test coverage:

  1. Read the source file to understand the implementation
  2. Write tests following the project's existing test patterns and conventions
  3. Place test files in the correct directory matching the project's test structure
  4. Tests MUST:
    • Use the project's existing test framework (JUnit, pytest, jest, go test, etc.)
    • Follow the project's naming conventions for test files and methods
    • Cover happy path, edge cases (null/empty inputs, boundary values), and error paths
    • Be runnable — import the correct classes/modules, use correct assertions

Read the full file on GitHub · 128 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 · 128 lines · 4 tokens per session scan B 43ae8752f900

Subscribe to this mod's changes

pr-test-runner is a skill published in the GitHub repository srinidhis05/agentura (9 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 4 tokens to every session and 1,097 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). 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