test-first-mentor

test-first-mentor is a skill for Claude Code, Codex from mohitmishra786/anti-vibe-skills. It costs 75 tokens per session (1,263 once invoked), scanned A, original, MIT.

A test-first coaching guide that makes you describe observable results and test cases before discussing how to build something. It never writes the tests or code for you.

In plain words
What is it for?
Use it when planning a feature or behavior change and you want to define what should happen before coding. It guides you through deciding the expected outcomes yourself.
Why use it?
It prevents implementation decisions from coming before a clear definition of success. This helps avoid postponing testing until after the feature is built.

Skill for Claude CodeCodex

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

Good fit Use it when planning a feature or behavior change and you want to define what should happen before coding. It guides you through deciding the expected outcomes yourself.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/anti-vibe-skills/test-first-mentor
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 mohitmishra786/anti-vibe-skills --skill test-first-mentor
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/anti-vibe-skills

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-first-mentor

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/anti-vibe-skills/test-first-mentor/github.svg)](https://agentmods.dev/skills/mohitmishra786/anti-vibe-skills/test-first-mentor)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/anti-vibe-skills/test-first-mentor"><img src="https://agentmods.dev/badge/skills/mohitmishra786/anti-vibe-skills/test-first-mentor/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 test-first-mentor

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/anti-vibe-skills/test-first-mentor"><img src="https://agentmods.dev/badge/skills/mohitmishra786/anti-vibe-skills/test-first-mentor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,263 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.00075 $0.01263
Opus 5 $0.00037 $0.00632
Sonnet 5 $0.00015 $0.00253
Haiku 4.5 $0.00007 $0.00126

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

Security

Grade A, and why

test-first-mentor 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 12d 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.

skills/core-inversions/test-first-mentor/SKILL.md · 108 lines

How it starts

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

test-first-mentor

Purpose

Refuse to discuss implementation details until the human has fully described what success looks like in observable, testable terms — guide the human to define test cases before touching code, never write tests or test code for them.

Hard Refusals

  • Never discuss implementation until Gate 3 is cleared — not patterns, not libraries, not structure. Implementation talk before test definition is the failure mode this skill exists to prevent.
  • Never write test code — not even a test skeleton, not even a describe/it block.
  • Never suggest specific test cases — asking "have you thought about the null case?" is a hint that removes the discovery work.
  • Never accept "I'll write tests after" as a valid response. The skill's contract requires tests-first; redirect without exception.
  • Never confirm that a proposed test is sufficient — that judgment belongs to the human.

Triggers

  • "I'm going to implement [feature]"
  • "I want to add [behavior] to my code"
  • "How should I build [thing]?"
  • "Let me start coding and I'll test it later"
  • Any implementation discussion before test cases are defined

Workflow

1. Block the implementation path

When the human expresses intent to implement, do not engage with implementation details. Ask instead:

AI Asks Purpose
"Before we talk about how to build it — what does it look like when it's working correctly?" Redirects from how to what
"If you ran a test right now and it passed, what would that test have verified?" Forces test-first framing
"How will you know, with certainty, that this works?" Makes the acceptance criteria concrete

Gate 1: Human has described at least one observable outcome that defines success.

Memory note: Record the success description in SKILL_MEMORY.md.

2. Make the success criteria testable

Help the human translate their description of success into specific, verifiable assertions — without writing the assertions for them.

Read the full file on GitHub · 108 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. 12d ago First seen · 108 lines · 75 tokens per session scan A d6ff960466a8

Subscribe to this mod's changes

test-first-mentor is a skill published in the GitHub repository mohitmishra786/anti-vibe-skills (5 stars, last pushed 6mo ago), licensed MIT. It adds 75 tokens to every session and 1,263 once invoked, about $0.0004 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

sparc-methodology

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration.

ruvnet/RuView · 29 tokens

software-code-refactoring

Improve production code quality while preserving all existing test behavior. Commonly used for the Refactor phase of TDD red-green-refactor, but applicable to any codebase with tests. Use when production code works but needs cleanup — reducing duplication, improving naming, simplifying complexity, aligning with…

stencila/stencila · 102 tokens

refactoring-workflow

Improve the structure of existing code without changing its behaviour, in small verified steps under a green test suite. Use when the user asks to refactor, clean up, restructure or simplify code, wants to reduce duplication or coupling, is preparing a codebase for a feature it cannot currently accommodate, or when…

personamanagmentlayer/pcl · 83 tokens

deep-plan

Creates detailed, sectionized, TDD-oriented implementation plans through research, stakeholder interviews, and multi-LLM review. Use when planning features that need thorough pre-implementation analysis.

piercelamb/deep-plan · 39 tokens

forward-derivation

Derive BDD scenarios and TDD test skeletons from approved SDD specifications. ATDD acceptance test tables are optional output for specialized needs. Use when: spec is approved, starting BDD/TDD implementation, generating test structures. Keywords: forward derivation, spec to test, BDD generation, TDD skeleton, test…

ValorVie/custom-skills · 91 tokens

bdd-assistant

A guide to Behavior-Driven Development, or BDD, a way to describe software behavior with examples in plain language before building it. It uses Given-When-Then scenarios and Gherkin, a structured format for those examples.

ValorVie/custom-skills · 76 tokens