Skip to content
Agentmart
Submit a tool
This entry duplicates adding-tests, which is the one we list in search.

adding-tests

Load this skill when you add a test, including modifying a test to fit an added function.

Skill by liangmiQwQ

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/liangmiqwq-adding-tests-3dfe36

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Load this skill when you add a test, including modifying a test to fit an added function. Do not load this skill when you are deleting tests or modifying a test to fit a deleted feature.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
adding-tests
Description
Load this skill when you add a test, including modifying a test to fit an added function. Do not load this skill when you are deleting tests or modifying a test to fit a deleted feature.
License
MIT
Instructions
43 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • bug-fix.md · branches/
  • new-feature.md · branches/

SKILL.md (first lines)

# Adding Tests

## Core Principle

**One test is usually enough. Only add multiple tests if the bug manifests differently under multiple conditions.**

**Test behavior, not implementation. Validate outcomes, not code paths.**

A test's value is measured by:

1. Does it fail when user-facing behavior breaks?
2. Does it stay green when internals are refactored?
3. Does it catch the real issue it was written for?

## Routing

Identify your context, then read the corresponding file:

| Context     | When to use                                        | Reference                 |
| ----------- | -------------------------------------------------- | ------------------------- |
| Bug fix     | Fixing a reported issue, adding a regression guard | `branches/bug-fix.md`     |
| New feature | Adding new behavior, validating a spec             | `branches/new-feature.md` |

## Universal Rules

These apply regardless of context:

- **Prefer integration tests** — they catch real bugs; unit tests rarely do for most projects
- **Mock as little as possible** — use real deps, temp dirs, test guards
- **One behavior per test** — don't combine multiple assertions for unrelated behaviors
- **Test the public surface** — never modify production code (add params, expose internals) to make a test work

Read the relevant branch file for context-specific guidance.

## Transparent Response

For the every test you added, you should mention and explain what is used for in the final response that displays to the users.

Use `list` and `table` markdown grammar and explain the exact role clearly. Sometimes, one test function or one fixture includes more than one purpose or item, you are still required to describe them. You are allowed to use nested `list` (no more than 2 layers)

That means, every test you added will be shown to the users, you should control the number of tests at a reasonable count otherwise you might annoy users.

From liangmiQwQ/skills, MIT.

More from liangmiQwQ/skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 7, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from liangmiQwQ

Cite this page

adding-tests skill. Agent Mart. https://agentmart.dev/skills/liangmiqwq-adding-tests-3dfe36 (last updated 2026-10-24)