shipyard-testing

shipyard-testing is a skill for Claude Code from lgbarn/shipyard. It costs 95 tokens per session (2,666 once invoked), scanned A, original, MIT.

A guide to writing dependable software tests that check what users can observe rather than internal implementation details.

In plain words
What is it for?
It helps design test boundaries, choose between unit, integration, and end-to-end tests, and work with mocks, stubs, and fakes.
Why use it?
It reduces brittle tests that fail during harmless refactoring and helps avoid flaky, over-mocked test suites.

Skill for Claude Code

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

Part of the shipyard plugin — 25 skills, 25 commands, 20 agents, 6 hooks shipped together

Good fit It helps design test boundaries, choose between unit, integration, and end-to-end tests, and work with mocks, stubs, and fakes.

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

Made for: Claude Code.

Or install shipyard, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 20 agents, 6 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 shipyard-testing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lgbarn/shipyard/shipyard-testing"><img src="https://agentmods.dev/badge/skills/lgbarn/shipyard/shipyard-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,666 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 6
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.00095 $0.02666
Opus 5.5 $0.00038 $0.01066
Sonnet 5.5 $0.00019 $0.00533
Haiku 4.5 $0.00010 $0.00267

Measured 1mo ago against content hash 0a96888b8086, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shipyard-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 1mo 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/shipyard/skills/shipyard-testing/SKILL.md · 320 lines

How it starts

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

Writing Effective Tests

When This Skill Activates

  • Writing or modifying test files (*.test.*, *.spec.*, *_test.go, test_*.py)
  • Setting up test infrastructure or test utilities
  • Debugging flaky, brittle, or slow tests
  • Deciding between unit, integration, and E2E tests
  • Choosing when and how to use mocks, stubs, or fakes

Natural Language Triggers

  • "add tests", "test coverage", "testing strategy", "write tests for", "how should I test"

Overview

Test behaviors through public APIs. Verify state, not interactions.

Core principle: If refactoring breaks your tests but not your users, your tests are wrong.

Relationship to TDD: The shipyard:shipyard-tdd skill covers WHEN to write tests (test-first, red-green-refactor). This skill covers HOW to write tests that are effective, maintainable, and trustworthy.

The Iron Law

TEST BEHAVIORS, NOT IMPLEMENTATIONS

A test should break only when the system's observable behavior changes -- never because of refactoring, renaming internals, or restructuring code.

No exceptions:

  • Don't test private methods
  • Don't assert on internal state
  • Don't verify method call sequences
  • Don't couple tests to data structures users never see

Test Structure (AAA)

Every test follows Arrange-Act-Assert:

Arrange -- Set up preconditions and inputs
Act     -- Execute the behavior under test
Assert  -- Verify the expected outcome

Separate the three sections with blank lines. One Act per test. One logical assertion per test.

# Act
result = check_access(user, resource="premium-content")

# Assert
assert result.denied is True
assert result.reason == "subscription expired"
Clear name, tests one behavior, obvious structure.
</example>

Read the full file on GitHub · 320 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. 1mo ago Changed · +8 tokens per session 0a96888b8086
  2. 2mo ago First seen · 320 lines · 87 tokens per session scan A 96b1b0046fb5

Subscribe to this mod's changes

shipyard-testing is a skill published in the GitHub repository lgbarn/shipyard (67 stars, last pushed 1mo ago), licensed MIT. It adds 95 tokens to every session and 2,666 once invoked, about $0.0004 per session on Opus 5.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-03.

Related

shipyard-testing compared with skills from other repositories

shipyard-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shipyard-testinglgbarn/shipyardSkill671mo agoMITA95Claude Code
gate-wiringObsidian-Owl/specwrightSkill97mo agoMITA40Claude Code
sw-designObsidian-Owl/specwrightSkill97mo agoMITA29Claude Code
sw-reviewObsidian-Owl/specwrightSkill97mo agoMITA30Claude Code
gate-semanticObsidian-Owl/specwrightSkill97mo agoMITA42Claude Code
sw-auditObsidian-Owl/specwrightSkill97mo agoMITA36Claude Code
critical-code-reviewerposit-dev/skillsSkill57618d agoMITA67Claude Code