majiayu000/claude-skill-registry-data/tests-are-code

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Tainted

Author "majiayu000" has blocked skill(s)

Use when writing, reviewing, or deleting tests. Tests get the same care as production code. Fast, independent, repeatable, self-validating, written at the same time as the change. One concept per test. Delete tests that guard deleted behavior.

Install

npx vskill@latest install majiayu000/claude-skill-registry-data/tests-are-code

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/tests-are-code.

Tests are code

Dirty tests are worse than no tests. They rot, someone deletes them, and then everyone's afraid to change anything. Clean tests let you refactor without fear, and that's what makes every other rule in this stack possible.

FIRST

  • Fast. Runs in seconds. A slow test doesn't get run, and a test that doesn't get run doesn't exist.
  • Independent. No test depends on another having run. Any order, any subset, same result.
  • Repeatable. Same result every run, on every machine, with no network and no clock. A flaky test is a broken test.
  • Self-validating. Pass or fail, no human reading output to decide.
  • Timely. Written with the change, not after. For a bug, before the fix, so you watch it go red then green.

One concept per test

A test checks one thing and its name says what. If the name has "and" in it, it's two tests. When it fails, the name alone should tell you what broke.

What isn't coverage

  • A pile of smoke tests. "It doesn't crash" is not a test of behavior.
  • Tests that guard deleted features. When the behavior goes, its tests go with it. Tests protecting how an old implementation worked inside protect nothing.
  • Tests that mirror the code. If the test restates the implementation line by line, changing the code means changing the test the same way, and the test caught nothing.

Fast tier and full tier

Every project splits tests into what runs in seconds and what takes the long wall. The fast tier runs before and inside the review loop. The full tier runs once at the end. Which tests go where is the only per-project decision.

The test

Would you be comfortable refactoring this module with only these tests to catch you? If not, the tests aren't done.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
23
Repository forks
8
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/majiayu000/claude-skill-registry-data/tests-are-code/badge)](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/tests-are-code)

Something wrong with this skill or its page? Tell us.