craft-testing

craft-testing is a skill for Claude Code from gul-labs/craftsman-marketplace. It costs 162 tokens per session (3,396 once invoked), scanned A, original, MIT.

A software-testing review standard for choosing and designing automated unit, integration, and end-to-end tests.

In plain words
What is it for?
Use it to plan tests, review existing coverage, investigate flaky tests, choose test levels, set mocking boundaries, create deterministic test data, and define merge checks.
Why use it?
It helps replace unreliable or superficial tests with a smaller trusted suite that catches important regressions and behaves consistently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the craftsman plugin — 12 skills shipped together

Good fit Use it to plan tests, review existing coverage, investigate flaky tests, choose test levels, set mocking boundaries, create deterministic test data, and define merge checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gul-labs/craftsman-marketplace/craft-testing
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 gul-labs/craftsman-marketplace --skill craft-testing
Clone the repo
git clone --depth 1 https://github.com/gul-labs/craftsman-marketplace

Made for: Claude Code.

Or install craftsman, the plugin that ships this one along with the rest of its 12 skills.

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 craft-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-testing/github.svg)](https://agentmods.dev/skills/gul-labs/craftsman-marketplace/craft-testing)
Your own site
<a href="https://agentmods.dev/skills/gul-labs/craftsman-marketplace/craft-testing"><img src="https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-testing/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 craft-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/gul-labs/craftsman-marketplace/craft-testing"><img src="https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,396 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.00162 $0.03396
Opus 5 $0.00081 $0.01698
Sonnet 5 $0.00032 $0.00679
Haiku 4.5 $0.00016 $0.00340

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

Security

Grade A, and why

craft-testing 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.

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/craftsman/skills/craft-testing/SKILL.md · 210 lines

How it starts

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

Testing Craft

This skill encodes one engineer's standard for testing software so the suite is actually trusted — fast, deterministic, and catching real regressions rather than decorating the coverage badge. The method and opinions live here; the project specifics (test runner, framework, what's already covered) live in the target repo — always discover them, never assume or hardcode.

The persona this serves usually arrives at one of two extremes: no tests at all, or a pile of AI-generated tests that don't test anything — they assert that a mock was called, pin implementation details, or cover trivial getters to hit a number while the payment path has zero coverage. Both feel like "we have testing." Neither catches the bug that takes the app down. The job is to move them to a small set of tests they can trust, on the paths that actually matter.

Operating principle — discover before you build

Different repos already have different pieces in place. Before adding anything, map what exists so you extend rather than duplicate or fight it:

  • package.json / lockfile → test runner (vitest, jest, playwright, @testing-library/*, pytest), test/test:e2e/coverage scripts, and whether tests even run. Coverage tooling or a configured percentage is context, not proof that the tests are adequate.
  • Test config (vitest.config.*, jest.config.*, playwright.config.*, pytest.ini, conftest.py) → environment, setup files, coverage thresholds already set.
  • Existing tests (*.test.*, *.spec.*, __tests__/, e2e/, tests/) → conventions, what's covered, and the quality of what's there (real assertions vs. tautologies — read a few).
  • Read CI config files (package.json scripts, .github/workflows) — read-only context for understanding which suites currently gate a merge; wiring changes → craft-infra.

State what you found — including "the tests that exist don't assert anything real" — then propose the smallest set of additions that closes the gap on the paths that matter.

Read the full file on GitHub · 210 lines

Files

What ships with it

5 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 Changed · +9 lines 1854263c41d3
  2. 11d ago First seen · 201 lines · 162 tokens per session scan A dc5fbedc93b1

Subscribe to this mod's changes

craft-testing is a skill published in the GitHub repository gul-labs/craftsman-marketplace (1 stars, last pushed 4d ago), licensed MIT. It adds 162 tokens to every session and 3,396 once invoked, about $0.0008 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

test-implement

Implements React/TypeScript unit, integration, and browser E2E tests with the repository's configured runner, mocks, setup, and browser harness. Use when creating or completing frontend tests and generated test skeletons.

shinpr/claude-code-workflows · 48 tokens

test-strategy-document

Create a production-ready Testing Strategy and QA Execution Plan. Covers testing levels (unit, integration, E2E, performance), mocking boundaries, test environment matrix, code coverage thresholds, and automated CI pipeline runsheets. Use when establishing a QA framework for a new system or feature set.

fattain-naime/engineering-docs · 62 tokens

test-audit

Batch audit of test files against Q1-Q25 quality gates and AP1-AP32 anti-patterns. Detects orphan tests, phantom mocks, untested public methods. Tiered output (A/B/C/D) with critical gate enforcement and optional post-audit fix workflow. Flags: zuvo:test-audit all | [path] | [file] | --deep | --quick | --include-e2e |…

greglas75/zuvo · 100 tokens

test-selection

Use this skill when someone describes a specific code path, feature, or bug and asks what kind of test to write for it — or when an audit or strategy engagement surfaces a testing gap and needs a recommendation for where to start. Trigger on "what test should I write for this", "unit or integration test for X", "our…

EmanueleMinotto/minottobot · 108 tokens

seams

Use when you want to unit-test logic but can't without a database, network, clock, or a pile of mocks — or when a function fetches, computes, branches on policy, and writes all in one breath. Splits the decision (pure logic) from the action (I/O and side effects) along the natural seam, so the logic becomes testable…

mikestangdevs/craft-skills · 137 tokens

pwp-test

Testing strategy and implementation protocol — structured quality assurance that catches real bugs. Use this skill whenever the user asks to write tests, add test coverage, set up a testing strategy, or asks 'how should I test this'. Also use when they say 'add tests', 'write tests for this', 'test coverage', 'what…

shandar/pwp-plugin · 104 tokens