write-tests

write-tests is a skill for Claude Code, Codex from Anyesh/skillprobe. It costs 41 tokens per session (2,448 once invoked), scanned A, original, MIT.

A testing guide for Skillprobe, a tool that checks how language-model skills behave and when they activate. It creates YAML files describing these tests.

In plain words
What is it for?
It helps test a skill's responses and check that it activates for relevant prompts while staying inactive for unrelated ones.
Why use it?
It removes the need to design Skillprobe test files from scratch or guess whether a skill responds to the right requests.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is skill: ./skills/commit.

Good fit It helps test a skill's responses and check that it activates for relevant prompts while staying inactive for unrelated ones.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Anyesh/skillprobe
agentmods
npx agentmods add skills/anyesh/skillprobe/write-tests

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 write-tests

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/anyesh/skillprobe/write-tests"><img src="https://agentmods.dev/badge/skills/anyesh/skillprobe/write-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,448 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.00041 $0.02448
Opus 5.5 $0.00016 $0.00979
Sonnet 5.5 $0.00008 $0.00490
Haiku 4.5 $0.00004 $0.00245

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

Security

Grade A, and why

write-tests 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 3mo 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/write-tests/SKILL.md · 249 lines

How it starts

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

Writing skillprobe Tests

Generate YAML test files for skillprobe. Always read the skill content first before writing tests.

When asked to write tests for a skill, generate BOTH files unless the user asks for only one:

  1. A behavioral test file (for skillprobe run)
  2. An activation test file (for skillprobe activation)

Behavioral Tests (for skillprobe run)

Test what the model DOES when the skill is loaded.

harness: claude-code    # or cursor
model: claude-haiku-4-5-20251001
timeout: 120
skill: ./path/to/skill  # directory with SKILL.md, or a .md file

scenarios:
  - name: "descriptive name"
    steps:
      - prompt: "what the user would type"
        assert:
          - type: contains
            value: "expected text"

Activation Tests (for skillprobe activation)

Test whether the skill LOADS for relevant prompts and stays quiet for irrelevant ones. This is a separate YAML format from behavioral tests.

harness: claude-code
model: claude-haiku-4-5-20251001
timeout: 60
skill: ./path/to/skill

activation:
  skill_name: my-skill
  should_activate:
    - "prompt that should trigger this skill"
    - "another relevant prompt"
  should_not_activate:
    - "completely unrelated prompt"
    - "another unrelated prompt"

The activation key replaces scenarios. These are two different file formats loaded by different commands (skillprobe run vs skillprobe activation). Never put both keys in the same file. skillprobe will either ignore one silently or fail to parse the file.

Bad:

skill: ./skills/commit
activation:
  skill_name: commit
  should_activate:
    - "commit my changes"
scenarios:
  - name: "commit happens"
    steps:
      - prompt: "commit"
        assert:
          - type: contains
            value: "commit"

Pick one format per file.

Testing skill combinations

Some tests need to load more than one skill at a time, either because you are probing interactions between skills or because the scenario legitimately needs both. Use a skills: list at the suite level instead of the singular skill::

Read the full file on GitHub · 249 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. 3mo ago First seen · 249 lines · 41 tokens per session scan A 6a952c166072

Subscribe to this mod's changes

write-tests is a skill published in the GitHub repository Anyesh/skillprobe (8 stars, last pushed 7mo ago), licensed MIT. It adds 41 tokens to every session and 2,448 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-08-31.

Related

write-tests compared with skills from other repositories

write-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-testsAnyesh/skillprobeSkill87mo agoMITA41Claude Code, Codex
top-designwondelai/skillsSkill2.8kyesterdayMITA113Claude Code, Codex
harness-auditwondelai/skillsSkill2.8kyesterdayMITA181Claude Code
crossing-the-chasmwondelai/skillsSkill2.8kyesterdayMITA139Claude Code
design-everyday-thingswondelai/skillsSkill2.8kyesterdayMITA132Claude Code
hooked-uxwondelai/skillsSkill2.8kyesterdayMITA109Claude Code
traction-eoswondelai/skillsSkill2.8kyesterdayMITA147Claude Code, Codex