TDD/BDD testing principles. An agent skill from TheBeardedBearSAS/claude-craft.

MITAuto-check passedTesting & QA

Install Testing

skills CLI
$ npx skills add TheBeardedBearSAS/claude-craft --skill testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TheBeardedBearSAS/claude-craft testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/testing .claude/skills/testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
testing
GitHub stars
107
Token cost
~887 tokens
SKILL.md length
164 words
Files
3
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

TDD/BDD testing principles. An agent skill from TheBeardedBearSAS/claude-craft.

  • Reviewing test coverage
  • SKILL.md covers Principes fondamentaux, Outils recommandés 2026 and Stratégies 2026
  • Calls npx
  • Setting up testing

What it does

Testing is an agent skill from TheBeardedBearSAS/claude-craft. TDD/BDD testing principles. Use when writing tests, reviewing test coverage, setting up testing, or discussing test strategy and test architecture.

Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `REFERENCE.md`).

It sits in Testing & QA, covering Test coverage, Test-driven development and Unit testing. It works with Vitest and Playwright. The repository describes itself as: Supercharge Claude Code with Expert Knowledge A comprehensive framework for AI-assisted development. Install standardized rules, agents, and commands for your projects across… The licence is MIT.

When your agent uses it

  • Reviewing test coverage
  • Setting up testing
  • Discussing test strategy and test architecture

Example prompts

  • “/testing”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 99c1ee3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • vitest.dev
    • pestphp.com
    • stryker-mutator.io
    • fast-check.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Testing loads about 887 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 164 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~887

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TheBeardedBearSAS/claude-craft at commit 99c1ee3, republished under its MIT licence (© TheBeardedBearSAS). 164 words, ~887 tokens.

Download SKILL.mdSave it as .claude/skills/testing/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
testing
description
TDD/BDD testing principles. Use when writing tests, reviewing test coverage, setting up testing, or discussing test strategy and test architecture.
context
fork files: ["**/tests/**", "**/test/**", "**/__tests__/**", "**/spec/**", "*.test.*", "*.spec.*", "*Test*.*", "*_test.*"]

Testing - Principes TDD/BDD (2026)

Principes universels de testing pour toutes les technologies du framework Claude-Craft.

Principes fondamentaux

  • TDD Cycle: RED → GREEN → REFACTOR
  • Couverture cible: >= 80%
  • Pyramide: Unit (70%) > Integration (20%) > E2E (10%)
  • Pattern: Arrange-Act-Assert (AAA)
  • Nommage: Tests descriptifs expliquant le comportement

Outils recommandés 2026

StackUnit/ComposantsE2E/BrowserMutation Testing
JS/TS/ReactVitest 4.1+ (Browser Mode stable)PlaywrightStryker
PHP/Laravel/SymfonyPest 4.5+ (PHPUnit 12, Browser Testing)Playwright via PestInfection
Pythonpytest 8.x + Ruff 0.8+PlaywrightMutmut
Flutterflutter_test + bloc_test 10+Patrol 3.13+built-in
React NativeRNTL + JestDetox/MaestroStryker

Sources : Vitest 4, Pest 4, Stryker Mutator

Stratégies 2026

Vitest 4 — Browser Mode stable

Abandonner JSDOM lourd. Chromium/Firefox/WebKit natifs.

typescript
// vitest.config.ts
export default defineConfig({
  test: {
    browser: {
      enabled: true,
      name: 'chromium', // ou 'firefox', 'webkit'
      provider: 'playwright',
    },
  },
});

Source : Vitest Browser Mode

Mutation Testing — "Coverage ment, mutation scores disent la vérité"

Tester la qualité des tests. Mutation score >= 80%.

bash
# Stryker (JS/TS/C#)
npx stryker run

# Infection (PHP)
vendor/bin/infection --min-msi=80

# Mutmut (Python)
mutmut run

Source : Stryker Mutator

Property-based Testing

Générer des tests à partir de propriétés invariantes.

typescript
// fast-check (JS/TS)
import fc from 'fast-check';

test('sorting preserves all elements', () => {
  fc.assert(
    fc.property(fc.array(fc.integer()), (arr) => {
      const sorted = [...arr].sort();
      return sorted.length === arr.length;
    })
  );
});

Source : fast-check

Pest 4 — Browser Testing intégré
php
// Pest 4.5+ avec Playwright natif
test('user can login', function () {
    $this->browse(function (Browser $browser) {
        $browser->visit('/login')
            ->type('email', 'alice@example.com')
            ->type('password', 'secret')
            ->press('Login')
            ->assertPathIs('/dashboard');
    });
});

Source : Pest 4 Browser Testing

Vitest Workspaces — Monorepos
typescript
// vitest.workspace.ts
export default defineWorkspace([
  'packages/*/vitest.config.ts', // Unit tests
  {
    test: {
      browser: { enabled: true, name: 'chromium' },
      include: ['e2e/**/*.test.ts'],
    },
  }, // Browser tests
]);

Source : Vitest Workspaces


Voir @.claude/references/base/testing.md pour documentation complète.

© TheBeardedBearSAS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in .claude/skills/testing of TheBeardedBearSAS/claude-craft.

  • SKILL.md
  • README.md
  • REFERENCE.md

Open the folder on GitHubat commit 99c1ee3

Compare with similar skills

Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Testing this skillTheBeardedBearSAS/claude-craft107—~887Automated safety check: PassMIT
Web Testing with Playwright and Vitestwithkynam/vibecode-pro-max-kit1.1k—~892Automated safety check: PassApache-2.0
Dotnet Testingnovotnyllc/dotnet-artisan233—~972Automated safety check: PassMIT
Senior QAalirezarezvani/claude-skills28k1 repos~2.1kAutomated safety check: PassMIT
Sanity Visual Regressionsanity-io/sanity6.4k—~3.4kAutomated safety check: PassMIT
Vue Testing Best PracticesJetBrains/skills3637 repos~563Automated safety check: PassMIT

Similar skills

  • Web Testing with Playwright and Vitest

    withkynam/vibecode-pro-max-kit

    Covers web testing from unit to E2E, load, visual, accessibility and security checks, with Playwright, Vitest and k6 guides plus a Playwright setup script.

    1.1k GitHub stars~892 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Dotnet Testing

    novotnyllc/dotnet-artisan

    Defines .NET test strategy and implementation patterns across xUnit v3 (Facts, Theories, fixtures, IAsyncLifetime), integration testing (WebApplicationFactory, Testcontainers), Aspire testing…

    233 GitHub stars~972 tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Senior QA

    alirezarezvani/claude-skills

    Generates unit tests, integration tests, and E2E tests for React/Next.js applications.

    28k GitHub starsUsed in 1 repo~2.1k tokens
    Testing & QAAuto-check passed
  • Sanity Visual Regression

    sanity-io/sanity

    Official

    Add, review, and maintain Chromatic visual regression coverage in the Sanity monorepo via dev/storybook stories, the vitest browser-mode suite, and Playwright e2e snapshots.

    6.4k GitHub stars~3.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Official

    A skill your agent uses for Vue.js testing. An agent skill from JetBrains/skills.

    363 GitHub starsUsed in 7 repos~563 tokens
    Testing & QAAuto-check passed
  • Front End Testing

    citypaul/.dotfiles

    Behavior-driven UI testing patterns across Vitest Browser Mode, Playwright E2E evidence boundaries, and DOM Testing Library.

    739 GitHub stars~6.2k tokensUpdated 4 days ago
    Testing & QAAuto-check passed

More from TheBeardedBearSAS/claude-craft

All 12 skills in this repo
  • Architect

    TheBeardedBearSAS/claude-craft

    Phase d'architecture systématique AVANT le code (TDD). An agent skill from TheBeardedBearSAS/claude-craft.

    107 GitHub stars~1.2k tokensUpdated 23 days ago
    Auto-check passed
  • Async

    TheBeardedBearSAS/claude-craft

    Architecture async-first avec messaging et queues (Symfony Messenger, Laravel Queue, Ecotone).

    107 GitHub stars~741 tokensUpdated 23 days ago
    Auto-check passed
  • Atomic Tasks

    TheBeardedBearSAS/claude-craft

    Pattern GSD (Get Shit Done) - découper en tâches atomiques avec contextes subagent frais pour combattre le context rot.

    107 GitHub stars~1.1k tokensUpdated 23 days ago
    Auto-check passed
  • Cqrs

    TheBeardedBearSAS/claude-craft

    CQRS - Command Query Responsibility Segregation. An agent skill from TheBeardedBearSAS/claude-craft.

    107 GitHub stars~833 tokensUpdated 23 days ago
    Auto-check passed
  • Design Md Convention

    TheBeardedBearSAS/claude-craft

    Convention DESIGN.md pour design systems AI-friendly. An agent skill from TheBeardedBearSAS/claude-craft.

    107 GitHub stars~1.1k tokensUpdated 23 days ago
    Auto-check passed
  • Docker Hadolint

    TheBeardedBearSAS/claude-craft

    Docker & Hadolint validation (2026). An agent skill from TheBeardedBearSAS/claude-craft.

    107 GitHub stars~498 tokensUpdated 23 days ago
    Auto-check passed

Categories

Questions about Testing

What does Testing do?

TDD/BDD testing principles. An agent skill from TheBeardedBearSAS/claude-craft. Testing is an agent skill from TheBeardedBearSAS/claude-craft. TDD/BDD testing principles.

When should I use Testing?

Testing fits situations like: reviewing test coverage; setting up testing; discussing test strategy and test architecture.

How do I install Testing in Claude Code?

Run `npx skills add TheBeardedBearSAS/claude-craft --skill testing -a claude-code`. Or copy the skill folder (.claude/skills/testing in TheBeardedBearSAS/claude-craft) into .claude/skills/testing in your project. Claude Code loads it when a task matches its description.

How do I install Testing in Codex?

Run `npx skills add TheBeardedBearSAS/claude-craft --skill testing -a codex`. Or copy the skill folder (.claude/skills/testing in TheBeardedBearSAS/claude-craft) into .agents/skills/testing in your project. Codex loads it when a task matches its description.

Can I use Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TheBeardedBearSAS/claude-craft --skill testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/testing, .gemini/skills/testing, .github/skills/testing and .opencode/skills/testing in your project.

What does Testing need to run?

Going by SKILL.md and its folder, Testing needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Testing access the network?

SKILL.md names 4 domains. As links in the text: vitest.dev, pestphp.com, stryker-mutator.io and fast-check.dev. This is read from the text; nothing was executed.

Is Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Testing use?

Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Testing use?

About 887 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Testing?

Skills that share tags, products or a category with Testing: Web Testing with Playwright and Vitest (withkynam/vibecode-pro-max-kit, 1.1k stars), Dotnet Testing (novotnyllc/dotnet-artisan, 233 stars), Senior QA (alirezarezvani/claude-skills, 28k stars) and Sanity Visual Regression (sanity-io/sanity, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Testing?

TheBeardedBearSAS (a GitHub organization) maintains it in TheBeardedBearSAS/claude-craft, which has 107 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on September 14, 2026.

Source: TheBeardedBearSAS/claude-craft on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.