/dev10x-coding:py-testfrom dev10x-coding
Runs pytest with coverage enforcement, verifying 100% coverage for new code. Reports pass/fail status and coverage percentage, with full output only on failures.
Ships in dev10x-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the test suite and verify all tests pass with 100% coverage for new code. Reports concise summaries — detailed output only on failures.
Preferred — MCP tool (works in every session, including
worktrees where pytest is not on PATH and the Bash hook blocks
every direct invocation form, GH-238):
mcp__plugin_dev10x_cli__run_tests()
Pass extra pytest args via the args parameter, e.g.
args=["src/dev10x/runner/"] or args=["-k", "name"]. The tool
returns a structured payload: returncode, summary, passed,
failed, skipped, coverage_percent, failed_tests,
missing_coverage, extras, retried_with_extras, launcher,
uv_error, stdout, stderr. The subprocess is launched from the
MCP server so the PreToolUse hook does not apply.
The tool resolves the project's dependency extra itself
(GH-1198). It reads [project.optional-dependencies] from
pyproject.toml and adds the group that declares pytest, so a suite
whose test dependencies live under a dev extra runs green without
anyone typing --extra dev. extras reports what it applied. When
resolution finds nothing and the run dies at collection on a
ModuleNotFoundError, it retries once with --extra dev and sets
retried_with_extras — read that as a signal the project's extras
are named unusually, not as a normal outcome. The retry only fires
when the project actually declares a dev extra.
A pyproject.toml with no [project] table (GH-1730) — poetry,
or a tool-config-only file — is not something uv run can resolve.
The tool runs .venv/bin/python -m pytest when that virtualenv
exists (launcher: "venv"), and otherwise returns an error with
verdict: "no_project_table" naming the fix. When uv itself fails
(an undefined extra, a Python it cannot download) its error: line
is in uv_error.
Before this, the sanctioned wrapper could not run such a suite at
all, so the agent fell back to the raw command the routing table
forbids — and kept using it for every iteration of the fix-test
loop. If you find yourself reaching for a raw pytest because
the wrapper failed on a missing import — or timed out — that is a
bug in the wrapper: file it rather than working around it.
The default timeout is the transport ceiling (GH-1331).
run_tests() defaults timeout to MAX_TOOL_CALL_SECONDS (1080s)
— the largest value the MCP transport is clamped to anyway
(GH-1288) — so omitting the parameter already asks for the most
the wrapper can serve. A run that still times out at that ceiling
means the full suite genuinely needs longer than one tool call can
give it: narrow with args=["-k", "name"] / a path, or split the
suite across calls. On timeout the payload carries verdict,
elapsed, timeout_clamped, and whatever stdout/stderr pytest
produced before the cut-off, so a slow-but-green run is
distinguishable from a hang.
Fallback — Bash (only when the MCP server is unavailable):
pytest --cov --cov-report=term-missing
Inside a worktree (.git is a file, not a directory), prefix
with uv run, and add the extra that carries the test
dependencies if the project declares one:
uv run --extra dev pytest --cov --cov-report=term-missing
Extract:
If all tests pass:
Tests: 150 passed
Coverage: 100%
If tests fail:
Tests: 148 passed, 2 failed
Failed tests:
1. test_calculate_total - AssertionError: expected 100, got 99
2. test_validate_input - ValueError: invalid input
Coverage: 98% (missing: src/service.py:45-48)
If coverage is below 100% for files changed in the current branch, the branch introduced the regression. Report the failure and fix the gap — do not ask the user whether to proceed with coverage below 100%.
-v flag for verbose output when debuggingWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-codingOther plugins' skills for the same job
40 skills in this plugin
/ci-reviewdev10x-coding:ci-reviewUse when a change to a Claude CI review prompt, args file, reviewer agent or CLI pin needs checking before it merges — so you read what the CI code review and PR hygiene check would post on a real PR, with nothing reaching GitHub unless you choose, after reading the report, to share it as one marked replica comment. TRIGGER when: "what would the CI review say", replaying the Claude CI review locally, verifying a review prompt or model change on a PR. DO NOT TRIGGER when: self-reviewing a branch with no PR (use dev10x-coding:review), or reviewing someone's PR and posting (use dev10x-coding:gh-pr-review).
/fanoutdev10x-coding:fanoutProcess multiple independent work items as a worktree-isolated swarm — each item runs the full dev10x-coding:work-on lifecycle inside its own background Agent with isolation="worktree" (under Herdr, its own Herdr workspace and agent). Honors dependencies, minimizes conflicts, auto-advances by default. TRIGGER when: 2+ independent work items need parallel processing (PRs, issues, tickets). DO NOT TRIGGER when: single task or sequential dependency chain (use dev10x-coding:work-on); already running as a swarm child (see recursive-fanout guard).