testing-strategy
Use when a code change needs a testing approach chosen or revised, or when writing or changing nontrivial tests whose falsifiability, boundary, doubles, or…
Skill by HMBSbige
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/hmbsbige-testing-strategy
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: documents, design, testing, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/testing-strategy
What's inside
- Skill name
testing-strategy- Description
- Use when a code change needs a testing approach chosen or revised, or when writing or changing nontrivial tests whose falsifiability, boundary, doubles, or regression value needs review, especially for bug fixes lacking regression coverage, stable APIs suited to test-first work, legacy code needing characterization, prototypes or UI/configuration/integration work needing acceptance-style validation, or repositories with explicit strict TDD rules. Choose from contract stability, available test seams, and risk; for strategy-only requests, recommend evidence without implementing changes; skip trivial edits whose required checks are already obvious.
- License
- MIT
- Instructions
- 40 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Testing Strategy Choose the testing approach that produces useful evidence without turning one methodology into a ritual. ## Select the approach - **Bug fix:** Prefer a focused regression test that reproduces the symptom before the fix when practical. For intermittent, environmental, or external failures, use the most reliable controlled reproduction instead. - **Stable API or well-defined behavior:** When an executable test is the cheapest clear expression of the contract, prefer test-first development at the narrowest stable public boundary. Otherwise implement first and verify afterward. - **Legacy or poorly understood code:** Characterize only behavior that should remain stable around the change. Treat current output as a drift baseline, not a correctness oracle; do not lock in a reported or known defect. For a bug fix, assert the intended behavior separately. - **Exploratory prototype or unsettled interface:** Allow a time-boxed implementation spike. Before retaining, merging, or shipping it, identify the behavior that is now contractual and add the smallest durable checks; otherwise keep it explicitly non-production or discard it. - **UI, visual output, configuration, generated artifacts, migrations, or external integrations:** Use the strongest fitting evidence, such as rendering, screenshots, schema validation, builds, integration environments, logs, or focused manual acceptance. Automate checks that will remain valuable. - **Strict TDD repository:** Follow its documented red-green-refactor rules and commands. Do not infer strict TDD from this skill alone. ## Apply the strategy 1. Identify the observable behavior, risk, stable test seam, and existing repository commands. 2. Establish the pre-change signal appropriate to the selected strategy: a failing regression, a test-first example, a characterization baseline, or an acceptance criterion. 3. When implementation is requested and authorized, implement the smallest coherent change. Keep unrelated cleanup outside the behavior-changing step. 4. For implementation work, run the focused check, then expand to related module or integration checks in proportion to coupling and risk. For strategy-only or review requests, do not implement changes. Return the recommended approach, evidence, scope, and any validation that would remain before completion. When implementation already exists in a dirty worktree, preserve it and apply the selected strategy to the current change. Add a regression or characterization test only when it is the fitting durable signal; otherwise use the selected acceptance, rendering, integration, configuration, or controlled-reproduction evidence. If proving the historical failure is valuable, use an isolated base revision or another non-destructive method; otherwise state that the pre-fix failure was not independently demonstrated. ## Keep tests useful - Before retaining a test, name a realistic production defect it would catch. If none can be named, redesign or remove it. For high-risk behavior, confirm falsifiability with a pre-fix run, targeted revert, or mutation that fails for the intended reason when practical. - Test externally observable behavior at stable boundaries; do not impose one test per method. - Test behavior, not source presence or change alone. Exact text is a valid assertion only when it is part of the external contract; otherwise execute the script, configuration, generated artifact, or agent-facing instruction and assert outputs, side effects, schema, exit status, or consumer behavior. Do not assert constants or private structure merely to detect edits. - Test this code's boundary contract, not the framework's mechanics. Characterize an upstream assumption only when the implementation materially depends on it. - Use real collaborators when inexpensive and deterministic. Use narrow doubles at slow, nondeterministic, destructive, or external boundaries. - Avoid assertions that only prove mock choreography or private implementation details. - Reuse existing test frameworks and seams. Do not add a new framework, harness, public API, or dependency-injection layer solely to test one change unless recurring risk justifies its maintenance. - Derive expected outcomes from requirements, a real reproduction, a specification, or an independent oracle rather than the implementation under test. Review snapshots instead of accepting updates mechanically. - Do not absorb unrelated baseline failures, warnings, or test debt into the task. Report them separately unless they block trustworthy validation. - Do not default to the full repository suite when focused and relevant module checks are sufficient. Run broader gates when repository policy, shared infrastructure, coupling, or release risk warrants them. At completion, bind each material claim to evidence from the current relevant state, reuse current evidence when that state is unchanged, and state which checks were not run. Use `verification-before-completion` when it is available; otherwise apply these rules directly.
From HMBSbige/skills, MIT.
More from HMBSbige/skills
- 0.587score
code-review
HMBSbige
Review the current diff, or a PR number/branch/path target, for correctness bugs (plus reuse/simplification/efficiency cleanups where the model's review…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
dotnet-cpu-hot-paths
HMBSbige
Use when implementing, optimizing, or reviewing performance-critical C#/.NET scalar or SIMD hot paths whose throughput depends on RyuJIT code generation
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
wsl-pwsh
HMBSbige
在 Windows 的 pwsh 中调用 WSL 程序,或执行需要 Bash 管道、变量、重定向或多行脚本的 WSL 命令时
SkillAFreshness: A★ 1Claude Code +9 - 0.541score
csharp-style
HMBSbige
Use when writing, editing, reviewing, or refactoring C#/.NET code
SkillBFreshness: B★ 1Claude Code +9 - 0.497score
verification-before-completion
HMBSbige
Use immediately before claiming that implementation, a bug fix, refactor, review remediation, build, test state, or generated artifact is complete, correct…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
systematic-debugging
HMBSbige
Use when diagnosing a bug, test or build failure, performance regression, intermittent fault, or other unexpected technical behavior.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
git-conventions
HMBSbige
Use when creating, editing, reviewing, or suggesting Git commit messages
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 24, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/HMBSbige/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from HMBSbige
- 0.587score
code-review
HMBSbige
Review the current diff, or a PR number/branch/path target, for correctness bugs (plus reuse/simplification/efficiency cleanups where the model's review…
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
dotnet-cpu-hot-paths
HMBSbige
Use when implementing, optimizing, or reviewing performance-critical C#/.NET scalar or SIMD hot paths whose throughput depends on RyuJIT code generation
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
wsl-pwsh
HMBSbige
在 Windows 的 pwsh 中调用 WSL 程序,或执行需要 Bash 管道、变量、重定向或多行脚本的 WSL 命令时
SkillAFreshness: A★ 1Claude Code +9 - 0.541score
csharp-style
HMBSbige
Use when writing, editing, reviewing, or refactoring C#/.NET code
SkillBFreshness: B★ 1Claude Code +9 - 0.497score
verification-before-completion
HMBSbige
Use immediately before claiming that implementation, a bug fix, refactor, review remediation, build, test state, or generated artifact is complete, correct…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
systematic-debugging
HMBSbige
Use when diagnosing a bug, test or build failure, performance regression, intermittent fault, or other unexpected technical behavior.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
testing-strategy skill. Agent Mart. https://agentmart.dev/skills/hmbsbige-testing-strategy (last updated 2026-10-24)