Store
Claude skill Code

Unit test coach

A test plan for your code (normal cases, edge cases, errors) with two complete example tests in Vitest, Jest, pytest or JUnit; you write the rest and the skill reviews them.

Real example

Taken from the skill's “Example” section (in French: the skill answers in your language).

Claude · skill tests-unitaires-coach
Voici ma fonction Python, aide-moi à la tester : `def diviser(a, b): return a / b`.

`

Framework détecté

Python → pytest.

Plan de tests — diviser

# · Cas · Type · Entrée · Résultat attendu

1 · Division normale · Nominal · (10, 2) · 5.0

2 · Division par zéro · Erreur · (10, 0) · lève ZeroDivisionError

2 tests prêts à copier

def test_diviser_cas_nominal():

assert diviser(10, 2) == 5.0

def test_diviser_par_zero_leve_une_erreur():

import pytest

with pytest.raises(ZeroDivisionError):

diviser(10, 0)

`

…

Install in two minutes

  1. 1

    claude.ai or Claude Desktop

    Settings, capabilities (skills) section, then import the .zip file.

  2. 2

    Claude Code

    Unzip the folder into ~/.claude/skills/: the /tests-unitaires-coach command appears.

  3. 3

    Ask as usual

    Claude triggers the skill on its own when your request matches.

The skill helps you learn and produce your own work; it never writes graded work for you. Check your school's rules on AI use.

In the same field

Join GetPack

Already have an account? Sign in