test-project

test-project is a command for Claude Code from davistroy/claude-marketplace. It costs 31 tokens per session (3,609 once invoked), scanned A, original, MIT.

A project-wide test command that checks coverage, runs the test suite, fixes failures, and opens a pull request. A pull request is a proposed code change submitted for review before merging.

In plain words
What is it for?
Use it to check or raise test coverage, run all configured tests, repair failures, and create a pull request. You can set the coverage target and optionally allow automatic merging.
Why use it?
It brings testing, failure fixing, documentation cleanup, and delivery into one repeatable workflow. It can also leave the pull request open so someone can review it before merging.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Part of the personal-plugin plugin — 29 skills, 23 commands, 10 agents, 2 hooks shipped together

Good fit Use it to check or raise test coverage, run all configured tests, repair failures, and create a pull request. You can set the coverage target and optionally allow automatic merging.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/davistroy/claude-marketplace/test-project
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.

Clone the repo
git clone --depth 1 https://github.com/davistroy/claude-marketplace

Made for: Claude Code.

Or install personal-plugin, the plugin that ships this one along with the rest of its 29 skills, 23 commands, 10 agents, 2 hooks.

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 test-project

README.md
[![agentmods](https://agentmods.dev/badge/commands/davistroy/claude-marketplace/test-project/github.svg)](https://agentmods.dev/commands/davistroy/claude-marketplace/test-project)
Your own site
<a href="https://agentmods.dev/commands/davistroy/claude-marketplace/test-project"><img src="https://agentmods.dev/badge/commands/davistroy/claude-marketplace/test-project/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-project

Your own site · 80×15
<a href="https://agentmods.dev/commands/davistroy/claude-marketplace/test-project"><img src="https://agentmods.dev/badge/commands/davistroy/claude-marketplace/test-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,609 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.00031 $0.03609
Opus 5 $0.00015 $0.01804
Sonnet 5 $0.00006 $0.00722
Haiku 4.5 $0.00003 $0.00361

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

Security

Grade A, and why

test-project 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 5d 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.

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/personal-plugin/commands/test-project.md · 470 lines

How it starts

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

Fully Test Project Command

Execute a comprehensive test-fix-ship workflow that ensures high test coverage, passes all tests, and ships the changes via a PR.

Overview

This command implements an iterative test-driven workflow:

  1. Verify/achieve target coverage (default 90%)
  2. Run ALL tests using parallel sub-agents
  3. Fix any failures and repeat until all pass
  4. Update documentation, clean up, create PR
  5. Merge only if --auto-merge flag is provided; otherwise leave PR open for review

Input Validation

Required Arguments:

  • None (operates on the current project)

Optional Arguments:

  • --coverage <n> - Target coverage percentage (default: 90). Example: --coverage 80
  • --auto-merge - Automatically merge the PR after creation. Without this flag, the PR is created but left open for review.

Usage:

/test-project
/test-project --coverage 80
/test-project --auto-merge
/test-project --coverage 85 --auto-merge

Before proceeding, verify:

  • This is a git repository with test infrastructure present
  • GitHub CLI (gh) is installed and authenticated (run gh auth status)
  • A test framework is configured (check for test config files and test files)
  • The project has a package manager or build tool installed

If any of these prerequisites are missing, inform the user what needs to be set up before running this command.

Instructions

Execute the phases below in sequence. Each phase builds on the previous.

Phase 0: Scope Confirmation Gate

Before making any changes, gather and present the following to the user:

  1. Test frameworks detected - which test runner(s) and coverage tool(s) are present
  2. Current coverage - run coverage analysis and report the baseline percentage (if measurable)
  3. Files that will be modified - list source and test directories that are in scope
  4. Target coverage - the target percentage (from --coverage flag or default 90%)
  5. Auto-merge status - whether --auto-merge was specified

Read the full file on GitHub · 470 lines

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. 5d ago First seen · 470 lines · 31 tokens per session scan A aa3a0ab8377e

Subscribe to this mod's changes

test-project is a command published in the GitHub repository davistroy/claude-marketplace (5 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 3,609 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-09-04.