test-before-ship

test-before-ship is a skill for Claude Code, Codex from aiming-lab/MetaClaw. It costs 40 tokens per session (195 once invoked), scanned A, original, MIT.

A development rule that requires tests to be written or updated before a feature or bug fix is considered complete. It explains when to use unit, integration, and end-to-end tests and what good tests should cover.

In plain words
What is it for?
It is for implementing features, fixing bugs, choosing suitable test levels, and checking both expected and error cases before shipping.
Why use it?
It helps detect broken behavior and ensures bug fixes include a test that prevents the same problem from returning.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for implementing features, fixing bugs, choosing suitable test levels, and checking both expected and error cases before shipping.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiming-lab/metaclaw/test-before-ship
About the project

MetaClaw is an AI-agent system that learns from conversations and evolves its behavior over time. It provides memory and learning modes for users who want an agent that adapts across interactions, with support for multiple claw-based agent projects.

aiming-lab/MetaClaw · 3,495 stars · on GitHub · arxiv.org

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 aiming-lab/MetaClaw --skill test-before-ship
Clone the repo
git clone --depth 1 https://github.com/aiming-lab/MetaClaw

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 test-before-ship

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiming-lab/metaclaw/test-before-ship.svg)](https://agentmods.dev/skills/aiming-lab/metaclaw/test-before-ship)
Your own site
<a href="https://agentmods.dev/skills/aiming-lab/metaclaw/test-before-ship"><img src="https://agentmods.dev/badge/skills/aiming-lab/metaclaw/test-before-ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 195 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 pass 7 Sept 2026
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.00040 $0.00195
Opus 5 $0.00020 $0.00097
Sonnet 5 $0.00008 $0.00039
Haiku 4.5 $0.00004 $0.00019

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

Security

Grade A, and why

test-before-ship 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 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.

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.

memory_data/skills/test-before-ship/SKILL.md · 24 lines

What it actually says

Test Before Ship

Test pyramid:

  • Unit tests for pure functions and business logic (fast, many).
  • Integration tests for service interactions and DB queries (medium).
  • End-to-end tests for critical user journeys (slow, few).

Test quality checklist:

  • Does the test actually fail when the code is broken?
  • Does it cover the happy path AND the most likely error cases?
  • Is the test name descriptive enough to diagnose a failure from the name alone?

For bug fixes: add a regression test that reproduces the bug before fixing it.

Anti-patterns:

  • Tests that only test the mock, not the real behavior.
  • Skipping tests because "it probably works".
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 · 24 lines · 40 tokens per session scan A 64f7ecddfe11

Subscribe to this mod's changes

test-before-ship is a skill published in the GitHub repository aiming-lab/MetaClaw (3,495 stars, last pushed 3mo ago), licensed MIT. It adds 40 tokens to every session and 195 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-08-30.

Related

Other skills, from other repositories

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

spytensor/openmozi · 35 tokens

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

fix-failing-tests

Diagnose a failing test in the googleapis/mcp-toolbox repo and land a fix by reasoning from the actual error: read the failure, reproduce it, shrink it until the cause is forced into the open, then fix the cause. Use this whenever a test or CI job is red, a build breaks after a change, many packages fail at once, or a…

googleapis/mcp-toolbox · 87 tokens

tool-abuse-detection

Detect tool misuse and unexpected code execution via dialogue testing. Use when the agent exposes file, code-execution, or network tools.

Tencent/AI-Infra-Guard · 32 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

llama-factory

Expert guidance for fine-tuning LLMs with LLaMA-Factory - WebUI no-code, 100+ models, 2/3/4/5/6/8-bit QLoRA, multimodal support.

davila7/claude-code-templates · 51 tokens