skills/improving-testing/SKILL.md
Produces practical, risk-based testing guidance and minimal test plans for features or changes. Use when user asks what to test, how to pick test cases (boundaries, permissions, state machines), how to improve weak tests, or to review existing tests. Covers equivalence partitions, boundary values, decision tables, and state transitions.
npx skillsauth add lucianghinda/agentic-skills improving-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use when user asks:
If unknown, assume and state assumptions.
Pick the primary goal:
List 3 to 7 risks. Prefer:
Pick the technique that matches the problem:
For each rule, include:
Write each test idea as:
For each case, define representative data:
Check each test for:
Never weaken assertions just to make the test pass. Fix the code or redesign the test.
Start with risk. Test what could hurt users, money, or trust.
Write the test idea before the test code. A sentence like: "If X, then Y, because Z risk."
Always include: positive, negative, edge. Do not stop at happy path.
Use partitions and boundaries. Pick one representative per group, then test edges.
When conditions combine, use a decision table. Map the combinations, then pick the smallest set that covers the rules.
When behavior changes by state, test transitions. Test one allowed and one forbidden transition.
One test, one point. Split mixed tests.
Name tests by behavior. Use "when ... it ..." naming.
Assert outcomes, not steps. Prefer results and side effects over internal calls.
Keep tests deterministic. Avoid time, randomness, network calls, and order dependence.
Regularly check gaps and redundancy. Add missing tests for risky rules. Remove duplicates that prove the same thing.
Rules applied:
Mini test plan:
Smallest useful set of cases: | Input | Expected | Type | |-------|----------|------| | age 18 | accepted | positive | | age 17 | rejected | negative | | age missing | rejected | edge |
Review notes: Assert the validation error, not a generic success response.
Rules applied:
Mini test plan:
Smallest useful set of cases: | Actor | Action | Expected | Type | |-------|--------|----------|------| | admin | delete | allowed | positive | | non-admin | delete | forbidden | negative | | unauthenticated | delete | forbidden | edge |
Review notes: Assert status and side effect (record removed), not internal method calls.
Rules applied:
Mini test plan:
Smallest useful set of cases: | Member | Cart | Promo | Expected | Type | |--------|------|-------|----------|------| | yes | 100 | - | discount | positive | | yes | 99 | - | no discount | edge | | no | 20 | valid | discount | positive | | no | 200 | invalid | no discount | negative |
Review notes: Assert final price, not intermediate flags.
Rules applied:
Mini test plan:
Smallest useful set of cases: | From State | Action | Expected | Type | |------------|--------|----------|------| | issued | pay | allowed | positive | | draft | pay | forbidden | negative | | paid | pay again | forbidden | edge |
Review notes: Assert final state and single payment record.
When user reports a failure, produce a bug report:
Title: [Brief description]
Environment: [OS, browser, version]
Preconditions: [Required state before reproducing]
Steps to reproduce:
1. ...
2. ...
Expected result: [What should happen]
Actual result: [What actually happened]
Severity: [Critical/High/Medium/Low]
Notes / logs: [Relevant error messages or logs]
documentation
Write GitHub Pull Request descriptions from branch commits. Use when user asks to write a PR description, create a PR summary, or document changes for a pull request. Analyzes git commits and diffs to produce structured PR documentation.
testing
Generate high-quality git commit messages following Conventional Commits and Chris Beams' Seven Rules. Infers WHY from context and provides clear guidance on structure, scope, and body content.
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
testing
Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).