Skip to content
Agent Orchestration
Skill

/testing

Use when implementing any feature or bugfix, before writing implementation code

From plugin
superlite
24912 skills8 agents19 commands6 hooks

Claude Code

$ npx -y skills add iha2/superlite --skill testing --agent claude-code

SKILL.md

testing.SKILL.md
name: testing
description: Use when implementing any feature or bugfix, before writing implementation code

Testing

Write the test first. Watch it fail. Write the minimum code to pass. No production code without a failing test that demands it.

If you wrote code before the test, delete it and restart from the test. Do not keep it as "reference".

Cycle

1. **Red.** Write one small test for one behavior: a clear name, real code (mocks only when unavoidable), exact expected values. Run only that test. Confirm it fails for the right reason (the feature is missing, not a typo or import error). A test that passes immediately proves nothing: fix the test. 2. **Green.** Write the simplest code that passes. No extra features, no refactoring of other code. Run the focused tests (the new test plus the tests in the same file or module). Confirm green and no new failures there. 3. **Refactor.** Remove duplication, improve names, keep tests green. Skip if nothing needs it. 4. Repeat for the next behavior.

Scope of runs

  • Run only focused tests inside a task: the new test, then its file or module.
  • Do not run the full suite inside a task. Shipping runs the finish test run; inside a task use `bash <skill-dir>/../swarm/scripts/superlite-cli run_tests --affected --files <touched files> --background`, then `--wait --run <id>` with the id from its `wait:` line, never a bare `--wait` (`--fast PATHS` is the manual fallback). When working inline, run `--affected` once at the end and read its one-line summary.

Bugfixes

Reproduce the bug as a failing test first, see it fail, then fix. The test is the regression guard. Use `superlite:diagnosis` to find the root cause before writing the fix.

Good tests

  • One behavior per test; "and" in the name means split it.
  • Assert observable behavior, not implementation details.
  • Cover the contract's edge cases: empty input, errors, boundaries.

Exceptions

Throwaway prototypes, generated code and pure configuration need no test-first. If unsure whether it applies, it does.

Red flags: stop and restart from the test

  • Code written before the test.
  • The test passed on its first run.
  • "I'll add tests after", "too simple to test", "just this once".
  • Several behaviors implemented before any test ran.

Done checklist

  • Every new function or behavior has a test that you saw fail first.
  • Each failed for the expected reason, and the minimal code made it pass.
  • Focused tests are green, output clean.
  • Edge cases and errors covered.

Cannot check every box: say which and why. Then see `superlite:proof`.

Read more
@iha2
Ships withsuperlite

A fast software factory workflow for Claude Code: one approval gate, parallel waves, routed models

24912 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
249
Star history of iha2/superlite on GitHub, a chart by star-history.com

Other skills on superlite.

diagnosis

diagnosis

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

@iha2@iha2Install Skill
drafting

drafting

Use when you have an approved design or requirements for a multi-step task and need an implementation plan, before touching code.

@iha2@iha2Install Skill
feature-prototype

feature-prototype

Use in feature mode after the feature plan is approved, to cut the smallest runnable container of an existing app for the…

@iha2@iha2Install Skill
inventing

inventing

Use when the user asks to build a feature or component, add functionality, or change behavior, before any implementation code is…

@iha2@iha2Install Skill
mvp-prototype

mvp-prototype

Use in MVP mode (/superlite:mvp), after the .mvp.md feature plan is written, to make the one-file clickable prototype, check it,…

@iha2@iha2Install Skill
proof

proof

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs

@iha2@iha2Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

clawdis2w393k
@steipete@steipeteInstall Skill
computer-use

computer-use

Drives the GUI of a visible local app window through `orca computer`: accessibility tree, clicks, typing, menus, dialogs, and…

orca2w111k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2w109k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about testing.

Which coding agents can use testing?
testing installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.