adding-tests
Load this skill when you add a test, including modifying a test to fit an added function.
Skill by liangmiQwQ
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.
About
Use cases: testing
Reviews
Write a reviewNo 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
- 0.592score
antfu-design
antfu
Use when building or restyling devtools-style Vue 3 UIs with @antfu/design — wiring the composable UnoCSS preset, using the semantic token vocabulary…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
antfu-issue-triage
Anthony Fu
Triage open issues and PRs of the current GitHub repo - find already-fixed, duplicate, and spam items, suggest labels, gauge demand from reactions and…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
finding-on-github
liangmiQwQ
If you are now working with an open source project while I'm not a maintainer or author Load this skill when I ask things like `is there a bug?` and when you…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
code-style
liangmiQwQ
You are required to load this before writing code.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
self-review
liangmiQwQ
Load this skill when you are required to handling Codex's review suggestion on GitHub (`@codex review`).
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
precise-minor-adjustment
liangmiQwQ
Load this skill when you are modifying existing code, or doing small patch and adjustment.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
creating-projects
liangmiQwQ
Load this skill when you are required to create projects.
SkillAFreshness: A★ 1Claude Code +9 - 0.579score
choosing-tools
liangmiQwQ
Routes to the right tool/library choices based on project type (web, JS CLI, JS library, Rust).
SkillAFreshness: A★ 1Claude Code +9 - 0.544score
adding-tests
liangmiQwQ
Load this skill when you add a test, including modifying a test to fit an added function.
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
creating-pr
liangmiQwQ
Load this skill before creating, drafting, modifying, or submitting PR on GitHub
SkillBFreshness: B★ 1Claude Code +9 - 0.426score
designing-ui
liangmiQwQ
As long as you are doing UI / style-related work, you should load this skill
SkillDFreshness: D★ 1Claude Code +9
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
- Repository
- github.com/liangmiQwQ/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from liangmiQwQ
- 0.587score
code-style
liangmiQwQ
You are required to load this before writing code.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
finding-on-github
liangmiQwQ
If you are now working with an open source project while I'm not a maintainer or author Load this skill when I ask things like `is there a bug?` and when you…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
creating-projects
liangmiQwQ
Load this skill when you are required to create projects.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
precise-minor-adjustment
liangmiQwQ
Load this skill when you are modifying existing code, or doing small patch and adjustment.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
self-review
liangmiQwQ
Load this skill when you are required to handling Codex's review suggestion on GitHub (`@codex review`).
SkillAFreshness: A★ 1Claude Code +9 - 0.579score
choosing-tools
liangmiQwQ
Routes to the right tool/library choices based on project type (web, JS CLI, JS library, Rust).
SkillAFreshness: A★ 1Claude Code +9
Cite this page
adding-tests skill. Agent Mart. https://agentmart.dev/skills/liangmiqwq-adding-tests-3dfe36 (last updated 2026-10-24)