sharp-testing

sharp-testing is a skill for Claude Code, Codex from paleo/alignfirst. It costs 42 tokens per session (855 once invoked), scanned A, original, CC0-1.0.

A set of rules for writing automated tests that protect meaningful behavior instead of merely tracking code changes or implementation details.

In plain words
What is it for?
Use it when adding features, fixing bugs, refactoring, or changing tests to decide which cases deserve permanent coverage and how to test them.
Why use it?
It helps avoid redundant, fragile tests and discourages treating code coverage as the goal. It also requires expected results to come from requirements rather than from the code being tested.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding features, fixing bugs, refactoring, or changing tests to decide which cases deserve permanent coverage and how to test them.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/paleo/alignfirst/sharp-testing"><img src="https://agentmods.dev/badge/skills/paleo/alignfirst/sharp-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 855 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.00042 $0.00855
Opus 5.5 $0.00017 $0.00342
Sonnet 5.5 $0.00008 $0.00171
Haiku 4.5 $0.00004 $0.00085

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

Security

Grade A, and why

sharp-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 3d 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.

.agents/skills/sharp-testing/SKILL.md · 73 lines

How it starts

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

Sharp Testing

A test earns its place by detecting a plausible mistake that no other check detects. The default for a change is no new test.

When a test is justified

A permanent test answers: which plausible mistake would it catch, which existing check would miss it, and why would the mistake matter. Name the incorrect behavior and its consequence; that the code could change is no answer. Inspect the relevant tests first, and extend one when it can cover the missing case.

New functions, branches, files, and uncovered lines call for no test by themselves. Coverage locates gaps; it never justifies a test. Getters, pass-through code, constructors, type-level guarantees, and framework behavior need no test. A change with no new test is valid when existing protection suffices.

Expected values

Expected values come from the requirement: the domain rule, the specification, the compatibility obligation. The implementation shows what the code does, never what it should do.

An expectation generated with the code under test, or copied from its output into a snapshot, fails only when the code changes. That is a change detector, not a guard. Validate a captured output against the requirement before adopting it as a fixture or a snapshot.

What to assert

Assert behavior: computed results, selected data, state changes, emitted events, access controls. Leave incidental fields, helper calls and internal ordering unconstrained. A behavior-preserving refactor leaves assertions intact.

Exact representations require an executable or machine-readable contract. Name its consumer or compatibility obligation. Public visibility alone establishes neither.

An interaction is asserted only when the interaction is the contract, such as sending a notification exactly once.

A rejection test exercises the intended guard. Failing earlier for an unrelated reason proves nothing.

One behavior per test, named after the behavior.

Presentation belongs to the product

Code and templates own wording and presentation. Never assert authored copy: labels, help, diagnostics, documentation.

Read the full file on GitHub · 73 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. 3d ago Changed · -1 lines · +6 tokens per session 5f7cdcf1c6ce
  2. 1mo ago First seen · 74 lines · 36 tokens per session scan A 125e4c381979

Subscribe to this mod's changes

sharp-testing is a skill published in the GitHub repository paleo/alignfirst (91 stars, last pushed today), licensed CC0-1.0. It adds 42 tokens to every session and 855 once invoked, about $0.0002 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-10-26.

Related

sharp-testing compared with skills from other repositories

sharp-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sharp-testingpaleo/alignfirstSkill91todayCC0-1.0A42Claude Code, Codex
google-tag-managerVKirill/claude-lane-stackSkill1252d agoMITA134Claude Code
planowainlewis/youtube-tutorialsSkill4242mo agoMITA48Claude Code, Codex
ai-news-researchowainlewis/youtube-tutorialsSkill4242mo agoMITA0Claude Code, Codex
youtube-descriptionowainlewis/youtube-tutorialsSkill4242mo agoMITA0Claude Code, Codex
linkedin-postowainlewis/youtube-tutorialsSkill4242mo agoMITA0Claude Code, Codex
code-reviewowainlewis/youtube-tutorialsSkill4242mo agoMITA33Claude Code, Codex