red-green-refactor
Use before changing code to fix a bug or add behavior, in any language, even when the user just says "fix it" or pastes a one-line function: reproduce the problem with a failing test first, watch it fail for the right reason, make the smallest change that passes, refactor, and show the test output before saying it is fixed or works.
Install red-green-refactor
npx skills add testland/qa --skill red-green-refactor -a claude-codeInstalls into .claude/skills/ in your project. Add -g to install it for all your projects, in ~/.claude/skills/.
SKILL.md
Shown as published, under the repository's MIT license.
---
name: red-green-refactor
description: "Use before changing code to fix a bug or add behavior, in any language, even when the user just says \"fix it\" or pastes a one-line function: reproduce the problem with a failing test first, watch it fail for the right reason, make the smallest change that passes, refactor, and show the test output before saying it is fixed or works."
---# red-green-refactor
## Overview
Test-driven development (TDD) writes the test before the code, one small
behavior at a time. Martin Fowler's short form of the loop
([fowler-tdd][fowler]):
1. "Write a test for the next bit of functionality you want to add."
2. "Write the functional code until the test passes."
3. "Refactor both new and old code to make it well structured."
Kent Beck's [Canon TDD][canon] adds the step most people skip: start
from a written **list** of test scenarios and turn "exactly one item on
the list into an actual, concrete, runnable test" at a time.
For a coding agent, the loop is also the proof that a change works.
Anthropic's [Claude Code best practices][cc-bp] put it as "Give Claude a
check it can run" and "Have Claude show evidence rather than asserting
success: the test output". A test that was seen failing and then seen
passing is that evidence. A test written after the code and only ever
seen passing is not: it may pass for the wrong reason.
[fowler]: https://martinfowler.com/bliki/TestDrivenDevelopment.html
[canon]: https://tidyfirst.substack.com/p/canon-tdd
[cc-bp]: https://www.anthropic.com/engineering/claude-code-best-practices
## When to use
- Adding a function, endpoint, rule or option that has observable
behavior.
- Fixing a bug: reproduce it as a failing test first (Step 6).
- Changing code that other code depends on, where "it still works"
needs proof.
- Any time you are about to write "done", "fixed" or "this should work".
Not a fit: throwaway spikes (delete them, then test-drive the real
code), pure layout or styling (use a visual check), or a project with no
way to run tests yet. In that last case, set up the runner first and say
so; don't skip the loop silently.
Neighbors: `test-case-ideation-from-story` (qa-process) and
`boundary-value-generator` (qa-test-data) help fill the test list in
Step 2; the per-language unit-test skills (`python-unit-tests`,
`js-unit-tests`, `jvm-unit-tests`, `go-unit-tests`, `dotnet-unit-tests`)
cover the frameworks themselves; `test-code-conventions` (qa-test-review) reviews
finished tests. This skill owns the order of work and the evidence.
## Step 1 - Find the test command and run the suite once
Before changing anything, find how this project runs tests (README,
`package.json` scripts, `pyproject.toml`, `Makefile`, CI workflow) and
run the existing suite. Write down the result.
This baseline matters later: if three tests were already red before you
started, they are not yours, and you must not "fix" them by editing them
to pass. Say they were red at the start.
Commands to run **one** test, which the loop below uses constantly:
| Stack | Run one file or test | Source |
|---|---|---|
| pytest | `pytest tests/test_mod.py::test_func` | [pytest usage][pytest-usage] |
| Vitest | `npx vitest run foobar -t "name pattern"` | [vitest cli][vitest-cli] |
| Jest | `npx jest path/to/my-test.js -t "name pattern"` | [jest cli][jest-cli] |
| Go | `go test ./pkg/... -run 'TestParse$' -count=1` | `go help testflag`; [go test][go-test] |
| Maven Surefire | `mvn -Dtest=TestCircle#mytest test` | [surefire single test][surefire] |
| Gradle | `./gradlew test --tests SomeTestClass.someSpecificMethod` | [gradle testing][gradle] |
| .NET | `dotnet test --filter "FullyQualifiedName~MyTestsClass"` | [dotnet filter][dotnet] |
| Rust | `cargo test name_filter` | [cargo test][cargo] |
Per [go test][go-test], "The idiomatic way to disable test caching
explicitly is to use -count=1", which matters when you need to see a
test actually run red.
[pytest-usage]: https://docs.pytest.org/en/stable/how-to/usage.html
[vitest-cli]: https://vitest.dev/guide/cli.html
[jest-cli]: https://jestjs.io/docs/cli
[go-test]: https://pkg.go.dev/cmd/go#hdr-Test_packages
[surefire]: https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html
[gradle]: https://docs.gradle.org/current/userguide/java_testing.html
[dotnet]: https://learn.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests
[cargo]: https://doc.rust-lang.org/cargo/commands/cargo-test.html
## Step 2 - Write the test list
Per [Canon TDD][canon], step 1 is "Write a list of the test scenarios
you want to cover". Write it in plain words, in your reply or a scratch
note, before any test code:
```text
parse_duration
- [ ] "90s" -> 90 seconds
- [ ] "1h30m" -> 5400 seconds (units combine)
- [ ] "" -> ValueError
- [ ] "5x" (unknown unit) -> ValueError naming the unit
- [ ] "-5m" -> ValueError (negative not allowed per spec)
```
Include the error cases and edges the request implies, not only the
happy path. Do not turn the whole list into test code now: Canon TDD
calls converting "all the items on the Test List into concrete tests"
up front a mistake, because the first passing test usually changes what
the rest should look like.
## Step 3 - Red: one test, run it, read the failure
Turn exactly one item into a test. Run **only that test** (Step 1
table) and read the output before writing any production code.
The test must fail, and fail for the right reason:
| What the run shows | Right red? | Next move |
|---|---|---|
| Assertion fails: expected `5400`, got `90`, or the function raises the wrong error | Yes | Go to Step 4. |
| `ImportError` / `cannot find module` / `undefined: ParseDuration` for the new function | Yes, for a brand-new function | Add an empty stub (raise "not implemented" or return a wrong value), re-run, and confirm the failure is now an assertion. |
| Syntax error, typo in a fixture name, wrong file path, test not collected ("no tests ran") | No | Fix the test until it runs and fails on its assertion. |
| The test **passes** | No | The behavior already exists or the test doesn't check it. Read the test again, tighten the assertion, or drop the item. |
A test you never saw fail proves nothing. If you only see it pass after
the change, you can't tell a real fix from an assertion that can't fail.
## Step 4 - Green: smallest change, then the whole suite
Change production code until the one test passes. Per Canon TDD:
"Change the code to make the test (& all previous tests) pass (adding
items to the list as you discover them)".
1. Re-run the single test. It must pass.
2. Run the **whole** suite. Everything that was green in Step 1 must
still be green.
3. New ideas that came up ("what about `1H` in capitals?") go on the
list, not into this step.
Rules while going green:
- Don't edit the test to match what the code returns. Canon TDD names
"copying actual, computed values & pasting them into the expected
values of the test" as a mistake. If the test itself was wrong,
say so and fix it as a separate, stated decision.
- Don't delete or loosen an assertion to get green. Canon TDD: "Make it
pass for real."
- Don't mock the unit under test, and don't special-case the test's
input (`if s == "1h30m": return 5400`). The next list item would
expose it, but the reviewer reading your diff sees a fake.
## Step 5 - Refactor while green
With every test green, improve names, remove duplication, extract
helpers, in both the new code and the code around it ([fowler-tdd][fowler]:
"Refactor both new and old code"). Fowler: "The most common way that I
hear to screw up TDD is neglecting the third step."
Run the whole suite after the refactor. Two limits from Canon TDD:
don't mix "refactoring into making the test pass", and don't refactor
"further than necessary for this session".
Then tick the item and go back to Step 3 with the next one, until the
list is empty.
## Step 6 - Bug fix: reproduce first
For a reported bug, the first test is the reproduction:
1. Write a test at the lowest level that shows the bug: the function,
not the whole HTTP stack, unless the bug only exists in the stack.
2. Run it and confirm it fails **with the reported symptom** (same wrong
value, same exception). A failure for any other reason means you
haven't reproduced the bug yet.
3. Fix the code. Re-run: the reproduction passes, the suite stays green.
4. Keep the test, named after the behavior (`test_rounds_half_up_for_eur`),
not the ticket alone, so it guards against the bug coming back.
The Claude Code best practices give the same order for symptoms: "write
a failing test that reproduces the issue, then fix it" ([cc-bp][cc-bp]).
## Step 7 - Prove it before calling it done
Finish with evidence, not adjectives. The final message states:
```markdown
**Tests**
- Red: `pytest tests/test_duration.py::test_combined_units` failed with
`AssertionError: assert 90 == 5400` before the change.
- Green: same test passes after the change.
- Suite: `pytest` -> 47 passed (was 42 passed before; 5 new tests).
- Not verified: behavior on Windows paths (no Windows runner here).
```
- Quote the actual command and the actual counts from the run.
- List what was **not** run or not verifiable. "Should work" is not a
result.
- If tests could not be run at all (missing dependency, no database),
say exactly that and what the user must run, instead of reporting
success.
- Tests that were red before you started (Step 1) are reported as such,
not hidden and not "fixed" by editing them.
## Worked example
Request: "Add `parse_duration` to `timeutil.py` that accepts strings
like `90s`, `5m`, `1h30m` and returns seconds."
1. Step 1: `pytest` -> `12 passed`. Baseline recorded.
2. Step 2: test list as in the example above (5 items, two of them
error cases).
3. Red: `test_seconds_only` asserts `parse_duration("90s") == 90`.
`pytest tests/test_timeutil.py::test_seconds_only` ->
`ImportError: cannot import name 'parse_duration'`. A stub
`def parse_duration(s): raise NotImplementedError` turns it into a
real failure: `NotImplementedError`.
4. Green: parse `(\d+)([hms])` pairs and sum them. Single test passes;
`pytest` -> `13 passed`.
5. Next item `test_combined_units` (`"1h30m" == 5400`) already passes,
because the regex loop handled it. Per Step 3, the item is dropped as
covered, not kept as a test that never failed.
6. `test_empty_string_raises` fails (`assert` on `pytest.raises` not
raised: the loop returned `0`). Add the guard; green; refactor the
unit table into a dict; `pytest` -> `15 passed`.
7. Final message: the evidence block from Step 7, listing the three red
runs, the green runs and `15 passed` (was 12).
## Anti-patterns
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Writing the code first, then tests that pass on the first run | Nothing shows the tests can fail; they may assert nothing useful | Red first (Step 3) |
| Writing every test up front, then making them pass | Canon TDD calls this out; the first design choice reshapes the rest | One item at a time (Step 2) |
| Editing expected values to what the code returns | Locks the bug into the test | Fix the code, or state that the test was wrong (Step 4) |
| Deleting or loosening assertions to get green | The suite passes and proves nothing ("Make it pass for real") | Step 4 rules |
| Tests with no assertions "for coverage" | Canon TDD: "write tests without assertions just to get code coverage" is a mistake | Every test asserts the behavior on its list item |
| Running only the new test before claiming done | Breaks elsewhere stay hidden | Whole suite in Steps 4 and 5 |
| "Fixed, should work now" with no output | The reader can't tell what ran | Evidence block (Step 7) |
| Refactoring while a test is red | Two changes at once; a failure can't be attributed | Refactor only on green (Step 5) |
## Limitations
- TDD drives design for code with observable behavior. Visual layout,
performance and exploratory questions need other checks.
- The loop is only as good as the test list. Pair it with
`boundary-value-generator` or `test-case-ideation-from-story` when the
input space is large.
- Slow suites tempt skipping the full run. Run the affected package
during the loop and the full suite once before Step 7, and say which.
- Legacy code with no seams may need a characterization test of current
behavior before the first red test; record it as such.
## References
- [fowler][fowler] - Martin Fowler, "Test Driven Development": the
three steps and neglected refactoring.
- [canon][canon] - Kent Beck, "Canon TDD": test list, one test at a
time, and the listed mistakes.
- [cc-bp][cc-bp] - Anthropic, Claude Code best practices: give Claude a
check it can run, show evidence, reproduce a bug with a failing test.
- [pytest-usage][pytest-usage], [vitest-cli][vitest-cli],
[jest-cli][jest-cli], [go-test][go-test], [surefire][surefire],
[gradle][gradle], [dotnet][dotnet], [cargo][cargo] - single-test
commands in Step 1. Go `-run`: `go help testflag`.0 errors · 1 warning · 0 tips · 57 checks passed
SKILL.md body: 259 lines, about 3,178 tokens · description: 334 characters · 6 files in the folder
- SpecificationA
Fields and format the Agent Skills specification requires
15 of 15 passed - DescriptionA
Whether an agent can tell when to use the skill
6 of 6 passed - Structure and contentA
How the body and the bundled files are laid out
15 of 16 passed - SecurityA
Secrets, hidden instructions, shell commands and side effects
21 of 21 passed
All checks
Body is 259 lines and links no reference fileswarning
Detail the agent rarely needs still costs context every time.
Fix: Link a reference file from the step that needs it. Move the deepest tables or examples out and point to them.
Rule: Long skills keep detail in reference files →Starts with a frontmatter blockspecification
SKILL.md has to open with a
Rule: Starts with a frontmatter block →---block that holds at leastnameanddescription.Frontmatter is valid YAMLspecification
The text between the
Rule: Frontmatter is valid YAML →---lines has to parse as a YAML map.No byte order mark before the frontmatterspecification
Finds the invisible UTF-8 byte order mark (U+FEFF) that some Windows editors put at the start of a file.
Rule: No byte order mark before the frontmatter →Has a namespecification
The spec requires a
Rule: Has a name →namefield.Name uses lowercase letters, digits and hyphensspecification
1 to 64 characters of
Rule: Name uses lowercase letters, digits and hyphens →a-z,0-9and-, not starting or ending with a hyphen, with no double hyphens.Name avoids the words anthropic and claudespecification
The name must not contain
Rule: Name avoids the words anthropic and claude →anthropicorclaude.Name matches its folderspecification
The
Rule: Name matches its folder →namemust equal the name of the folder that holds SKILL.md.Has a descriptionspecification
The spec requires a non-empty
Rule: Has a description →description.Description fits in 1,024 charactersspecification
The spec caps
Rule: Description fits in 1,024 characters →descriptionat 1,024 characters.No angle brackets in name or descriptionspecification
Rule: No angle brackets in name or description →nameanddescriptionmust not contain<or>, so no XML-style tags such as<example>either.Compatibility note fits in 500 charactersspecification
When
Rule: Compatibility note fits in 500 characters →compatibilityis set it must be 1 to 500 characters.Frontmatter sticks to the spec's fieldsspecification
Fields other than
Rule: Frontmatter sticks to the spec's fields →name,description,license,compatibility,metadataandallowed-tools.metadata maps keys to plain valuesspecification
Rule: metadata maps keys to plain values →metadatamust be a map whose values are strings, not lists or nested maps.Frontmatter keys are plain textspecification
Finds unquoted keys such as
Rule: Frontmatter keys are plain text →true:,no:,123:or2026-01-01:in the frontmatter, including keys undermetadata.Uses paths, not the legacy globs fieldspecification
The frontmatter sets
Rule: Uses paths, not the legacy globs field →globs, which Cursor keeps only for older skills.Description says when to use the skilldescription
The description should contain a trigger such as
Rule: Description says when to use the skill →Use when ....Description is written in the third persondescription
Avoid openers like
Rule: Description is written in the third person →You are,I help,I canorYou can.Description names the tool and the resultdescription
Flags short descriptions with no trigger that lean on vague verbs (
Rule: Description names the tool and the result →helps with,handles,manages), and descriptions that repeat the name.Description is long enough to matchdescription
Descriptions under 60 characters rarely carry both the job and the trigger.
Rule: Description is long enough to match →Description and when_to_use fit in 1,536 charactersdescription
Claude Code cuts the combined
Rule: Description and when_to_use fit in 1,536 characters →descriptionandwhen_to_usetext at 1,536 characters.Description says when to use it earlydescription
The first trigger phrase, such as
Rule: Description says when to use it early →Use when, starts after character 400.Body has instructionsstructure and content
The Markdown after the frontmatter should hold the instructions the agent follows, not be empty or a stray word.
Rule: Body has instructions →SKILL.md stays under 500 linesstructure and content
The spec and Anthropic both recommend keeping SKILL.md under 500 lines.
Rule: SKILL.md stays under 500 lines →Body stays under about 5,000 tokensstructure and content
The spec recommends keeping the loaded instructions under 5,000 tokens.
Rule: Body stays under about 5,000 tokens →Body gives numbered stepsstructure and content
No numbered list and no
Rule: Body gives numbered steps →Stepheadings.Body shows an examplestructure and content
No code block and no heading named Example.
Rule: Body shows an example →Paths use forward slashesstructure and content
Finds backslash paths such as
Rule: Paths use forward slashes →scripts\helper.py.No wording that goes out of datestructure and content
Finds dated phrases like
Rule: No wording that goes out of date →as of 2025,before March 2026orcoming soon.Every linked file existsstructure and content
A relative link in SKILL.md points to a file that is not in the skill's folder.
Rule: Every linked file exists →Reference files are linked from SKILL.mdstructure and content
A file linked from SKILL.md links on to further bundled files that SKILL.md does not link.
Rule: Reference files are linked from SKILL.md →Long reference files start with a contents liststructure and content
A bundled Markdown reference file over 100 lines with no contents list near the top. Files under
Rule: Long reference files start with a contents list →assets/ortemplates/, templates and test data are skipped.Explains rules instead of shouting themstructure and content
Five or more all-caps
Rule: Explains rules instead of shouting them →MUST,NEVERorALWAYSin the body.Bundled files have descriptive namesstructure and content
Files named like
Rule: Bundled files have descriptive names →doc2.md,file1.mdornotes3.txt.No READMEs or changelogs inside the skillstructure and content
A
Rule: No READMEs or changelogs inside the skill →README.md,CHANGELOG.md,INSTALLATION_GUIDE.mdorQUICK_REFERENCE.mdat the root of the skill folder.Scripts never wait for typed inputstructure and content
A bundled script calls
Rule: Scripts never wait for typed input →input(),getpass(),read -p,Read-Hostor a prompt library such as inquirer. Files named as templates are skipped, since a person runs the copy.Placeholders work in every agentstructure and content
Finds
Rule: Placeholders work in every agent →$ARGUMENTS,${CLAUDE_SKILL_DIR}and${CLAUDE_PROJECT_DIR}in SKILL.md.No real secretssecurity
Finds API keys, tokens, private keys and literal passwords in SKILL.md and its bundled files. Files under
Rule: No real secrets →evals/,fixtures/,__fixtures__/or test data folders are checked by the test data rule instead.Test data uses obvious placeholderssecurity
Finds secret-looking values in
Rule: Test data uses obvious placeholders →evals/,fixtures/,__fixtures__/and test data folders. These are usually fakes, so they cost a warning; the same value anywhere else fails the secrets rule.No piping downloads into a shellsecurity
Finds
Rule: No piping downloads into a shell →curl ... | sh,wget ... | bash,curl ... | python,bash <(curl ...),curl ... | source,source <(curl ...)andiwr ... | iex.Commands that run before loading are reviewedsecurity
Finds
Rule: Commands that run before loading are reviewed →!command blocks that Claude Code runs before the skill reaches the model.allowed-tools stays narrowsecurity
Rule: allowed-tools stays narrow →allowed-toolspre-approves unrestrictedBash(orShell) or every tool.Skills with side effects wait to be askedsecurity
The name or description is about deploying, publishing, sending or deleting, and automatic invocation is not turned off.
Rule: Skills with side effects wait to be asked →No hidden characterssecurity
Finds Unicode tag characters and bidirectional controls in SKILL.md and the bundled files, and runs of two or more zero-width characters on one line of a Markdown, text or YAML file.
Rule: No hidden characters →Frontmatter has no code-running YAML tagssecurity
Finds language tags such as
Rule: Frontmatter has no code-running YAML tags →!!python/object,!!python/apply,!!js/functionor!!ruby/objectin the frontmatter.No instructions to hide actions or override safeguardssecurity
Finds wording such as "ignore previous instructions", "override all system prompts", "don't tell the user." or "without telling the user." Quoted examples, lines that tell the agent to resist such text, tests and test data are skipped.
Rule: No instructions to hide actions or override safeguards →Doesn't turn off permission promptssecurity
Finds
Rule: Doesn't turn off permission prompts →--dangerously-skip-permissions,--dangerously-bypass-approvals-and-sandbox,danger-full-access,--yoloandbypassPermissionson a line that runs an agent CLI or sets a permission mode, unless the same file says it runs in a container or VM.Doesn't read credentials and call the networksecurity
One file names a file that holds secrets, such as an SSH private key,
Rule: Doesn't read credentials and call the network →~/.aws/credentials,.netrcor browserLogin Data, and also makes network calls withcurl,fetch,requestsor similar.No encoded or obfuscated codesecurity
Finds decode-then-run code (
Rule: No encoded or obfuscated code →base64 -d | sh,eval(atob(...)),exec(base64...)), long chains of hex escapes orString.fromCharCode, base64 strings over 200 characters outsideassets/and data files, and password-protected archives (unzip -P,7z x -p).Downloads use HTTPSsecurity
Finds
Rule: Downloads use HTTPS →curl,wgetand PowerShell downloads fromhttp://URLs. Local and private addresses such aslocalhost,127.0.0.1,10.x,192.168.xand169.254.169.254are skipped.Hooks in the frontmatter are reviewedsecurity
The frontmatter has a
Rule: Hooks in the frontmatter are reviewed →hooksfield, which Claude Code turns into commands that run on later tool calls.Credential files are reviewedsecurity
Names files that hold credentials:
Rule: Credential files are reviewed →~/.sshand SSH private keys,~/.aws/credentials,.netrc,.pypirc,~/.kube/config,~/.docker/config.json,~/.config/gh,/etc/shadow, browserLogin Dataand cookies, wallet files and macOS keychain lookups.Changes outside the project are reviewedsecurity
Finds recursive deletes of
Rule: Changes outside the project are reviewed →/,~or$HOME,chmod 777and setuid, writes to shell startup files and agent settings, scheduled jobs and services (crontab,launchctl load,systemctl enable,schtasks),mkfsanddd if=.Downloads are pinned to a versionsecurity
Finds downloads from
Rule: Downloads are pinned to a version →releases/latestand from a branch such asmainormasteron raw.githubusercontent.com, of scripts and binaries that the skill then runs.Instructions ship with the skillsecurity
Finds a skill that tells the agent to fetch an instruction file from a URL (
Rule: Instructions ship with the skill →SKILL.md,AGENTS.md,CLAUDE.md,instructions.md,prompt.md,.cursorrules) or to follow the steps or commands on a web page.Links show where they gosecurity
Finds links through URL shorteners such as bit.ly or tinyurl.com, links to public IP addresses instead of domain names, and downloads from paste sites or anonymous file hosts such as pastebin.com or transfer.sh.
Rule: Links show where they go →Network callssecurity
Lists the first network call:
Rule: Network calls →curl,wget,fetch(,requests,urllib,axios,Invoke-WebRequestand similar. A note, not a fault: it costs no points.Binary filessecurity
Lists compiled or packaged files in the skill folder, such as
Rule: Binary files →.exe,.dll,.so,.jar,.pycor.wasm. A note, not a fault: it costs no points.
To fix these in your copy of the skill, let your agent do it: the skillland-fix skill for Claude Code, Codex and Cursor edits the SKILL.md and runs these checks again until it scores A. Get the skills
The validator checks how the SKILL.md is written. It doesn't run the skill, so a high score doesn't mean the skill is useful, correct or safe. What the score covers
Compared with the index
Score
92 scores higher than 46% of 4,462 skills.
Body size
About 3,178 tokens, loaded each time the skill runs. The median is 1,651.
Files (6)
A tick marks the 6 of 6 files the validator read. It reads text files under 200 KB.
- SKILL.md (opens in new window)
- .tessl-plugin/plugin.json (opens in new window)
- evals/discount-codes-feature/criteria.json (opens in new window)
- evals/discount-codes-feature/task.md (opens in new window)
- evals/split-bill-loses-a-cent/criteria.json (opens in new window)
- evals/split-bill-loses-a-cent/task.md (opens in new window)
More testing & qa skills
fix-pr
D·64questdb/questdb · official
Develop features and fix bugs or review findings from a list, one item at a time, with exhaustive tests enforced while developing - design the change and its test plan against CLAUDE.md "Testing" and have both challenged independently, build test-first, run the item's tests with coverage (ci/diff_coverage.py) and add tests until every changed line, branch and condition runs, have the tests reviewed independently and close the gaps; commit. When the queue is empty, run review-pr at level 3 over the whole PR, as before approval, and treat what blocks it the same way until a review finds nothing that blocks. Bugs this PR caused that an independent risk rating finds unlikely to hurt users ship as private issues, and bugs found on the way that the PR base already has become GitHub issues; neither is work for the run. Use when the user runs /skill:fix-pr or asks to develop or fix items with it.
npx skills add questdb/questdb --skill fix-pr17.6k
googleapis/mcp-toolbox · official
Diagnose a failing test in the googleapis/mcp-toolbox repo and land a fix by reasoning from the actual error: read the failure, reproduce it, shrink it until the cause is forced into the open, then fix the cause. Use this whenever a test or CI job is red, a build breaks after a change, many packages fail at once, or a test passes locally but fails in CI.
npx skills add googleapis/mcp-toolbox --skill fix-failing-tests17k
tdd
A·96mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
npx skills add mattpocock/skills --skill tdd1.3M
More from testland/qa
- a11y-violation-gate
- ab-test-validity-checklist
- add-to-homescreen-flow-tests
- ai-spec-coverage-mapper
- ai-test-generator
- allure-reports
- api-chaos-runner
- apollo-server-tests
- appium-testing
- aria-authoring-patterns
- async-ordering-tests
- atlas-migrations
- attack-surface-test-checklist
- audit-trail-test-author
- auth0-tests
- aws-sam-local-testing
- axe-a11y
- azure-functions-tests
- bats-testing
- bdd-step-library-curator
- behave-testing
- boundary-value-generator
- browser-matrix-strategy-reference
- buf-cli-lint-breaking-build
- bug-bash-facilitator
- bug-report-template
- bug-tracker-workflow
- bullmq-tests
- cache-key-discriminator-audit
- cdn-cache-purge-tests
- ceedling-build-runner
- celery-tests
- chaos-drill-protocol
- chaos-experiment-author
- chaos-mesh
- chart-render-tests
- checkov-policy
- chromatic-visual-regression-testing
- chrome-extension-messaging-tests
- ci-failure-triage
- ci-test-job-conventions
- cli-output-conventions
- cloud-grid-e2e
- cloudflare-workers-miniflare
- codeql-queries
- compliance-coverage-scoring
- confirmation-testing-workflow
- contract-compatibility-gate
- coverage-diff-reporter
- coverage-guided-fuzzing
- coverage-py-analysis
- cron-job-test-author
- cross-tenant-data-leak-tests
- cucumber-testing
- currents-integration
- cve-exploitability-triage
- cypress-testing
- data-contract-extractor
- data-quality-conventions
- data-quality-gate
- db-query-plan-analyzer
- dbt-testing
- deadlock-detection-harness
- decision-table-test-design
- deepchecks-tests
- deepeval-evaluation
- defect-escape-taxonomy
- definition-of-done
- dependabot-config
- dependency-vulnerability-scanning
- desktop-test-strategy-reference
- detox-testing
- docker-compose-tests
- dotnet-unit-tests
- dr-drill-runner
- dst-transition-reference
- e2e-suite-budget
- elasticsearch-relevance-tests
- electron-playwright
- embedded-coverage-strategy-reference
- error-budget-tests
- espresso-suite
- event-sourcing-tests
- evidently-monitoring
- exec-quality-narrative
- experiment-results-interpreter
- experiment-sdk-testing
- exploratory-charter-author
- exploratory-testing
- failure-injection-test-author
- fairlearn-fairness
- fake-clock-testing
- faker-data
- fast-check-testing
- feature-flag-test-harness
- flake-axis-bisection
- flake-dashboard-author
- flake-pattern-reference
- flaky-test-quarantine
- flame-graph-analyzer
- flaui-tests
- flutter-testing
- flyway-migrations
- framework-choice-advisor
- game-perf-profiling
- gameplay-recording-replay
- gdpr-test-patterns
- gherkin-from-stories
- ghz-load
- giskard-llm
- giskard-tests
- github-actions-test-jobs
- gitlab-ci-test-jobs
- gitleaks-scanning
- go-unit-tests
- godot-gut-tests
- golden-file-conventions
- googletest-embedded-arm
- graphql-complexity-limit-tester
- graphql-n-plus-one-remediation
- graphql-schema-regression
- graphql-subscription-test-author
- graphql-yoga-tests
- great-expectations
- grpc-mock
- grpc-streaming-test-author
- grpcurl-cli
- hardware-in-loop-reference
- hasura-tests
- helm-chart-tester
- hipaa-test-patterns
- hybrid-search-eval-author
- hypothesis-testing
- i18n-string-coverage
- idempotency-test-author
- jacoco-analysis
- jaeger-trace-tests
- jenkinsfile-test-stages
- jmeter-load-testing
- jqwik-testing
- js-unit-tests
- judgment-list-author
- junit-xml-analysis
- jvm-unit-tests
- k-anonymity-verifier
- k6-load-testing
- kafka-consumer-tests
- karate-testing
- keycloak-tests
- knip-dead-code
- langfuse-tracing
- language-native-sast
- launchdarkly-testing
- lcov-analysis
- lighthouse-perf
- liquibase-migrations
- living-documentation-publisher
- lizard-complexity
- llm-eval-anti-patterns
- llm-regression-suite-author
- load-testing-overview
- locale-format-validator
- madge-deps
- maestro-flows
- mailpit-testing
- malicious-payload-bank
- manual-test-script-author
- mfa-flow-test-author
- migration-operation-taxonomy
- mobile-a11y-test-author
- mobile-device-matrix-toolkit
- model-based-test-graph-author
- model-performance-regression-gate
- model-risk-evidence-matrix
- mqtt-tests
- msw-handlers
- mull-mutation
- multi-tool-finding-triage
- multiplayer-state-machine-coverage
- mutant-survival-triage
- mutmut-mutation
- mvcc-isolation-tests
- negative-test-generator
- non-functional-requirement-extractor
- notebook-ci-pipeline-author
- nuclei-dast
- oauth-flow-test-author
- object-model-patterns
- offline-fallback-tests
- okta-tests
- openapi-contract-diff
- openfeature-sdk-testing
- opentelemetry-trace-assertions
- otel-collector-config-tester
- outbox-pattern-test-author
- pact-contract-testing
- pairwise-test-case-generator
- payment-flow-test-author
- payment-gateway-sandboxes
- pci-dss-control-test-author
- pdf-accessibility-checker
- pdf-snapshot-tester
- percy-visual-regression-testing
- perf-budget-gate
- pester-cli-testing
- pii-masking-pipeline-builder
- pitest-mutation
- platform-cert-overview-reference
- playwright-agents
- playwright-extension-fixtures
- playwright-fixture-builder
- playwright-snapshots
- playwright-testing
- policy-as-code-runner
- post-mortem-author
- postman-collections
- presidio-pii-detection
- print-stylesheet-tests
- prod-canary-validator
- promptfoo-evaluation
- proptest-testing
- protobuf-compat-checking
- pseudo-localization-runner
- push-notification-test-author
- pytest-asyncio-patterns
- python-unit-tests
- qa-hiring-kit
- qemu-system-test-runner
- qt-test-framework
- quality-status-digest
- rabbitmq-tests
- race-condition-test-author
- ragas-evaluation
- reachability-analyzer
- redis-cache-tests
- regression-suite-selector
- release-runbook-author
- renovate-config
- reqnroll-testing
- restassured-testing
- restler-fuzzing
- risk-matrix
- rtl-rendering-tester
- rust-unit-tests
- saga-transaction-tests
- schemathesis-fuzzing
- screen-reader-test-author
- secrets-rotation-runner
- seed-data-curator
- selenium-grid-4-runner
- selenium-testing
- semgrep-rules
- server-sent-events-tests
- serverless-integration-test-builder
- service-worker-lifecycle-tests
- session-management-test-author
- sidekiq-tests
- skill-matrix-author
- slo-load-test-plan
- smoke-suite-gate
- sms-test-author
- soc2-evidence-collector
- soda-checks
- sonarqube-maintainability-gate
- sonarqube-rules
- spec-testability-heuristics
- sqs-tests
- state-transition-test-design
- storybook-visual-regression-testing
- stride-threat-modeling
- stripe-subscription-billing-test-author
- stripe-test-cards-and-webhooks
- stryker-mutation
- stryker-net-mutation
- syft-generation
- synthea-healthcare-data
- synthetic-data-toolkit
- synthetic-monitor-author
- synthetic-pii-generator
- tcm-case-management
- tenant-onboarding-test-author
- test-case-anatomy-reference
- test-case-from-live-feature
- test-case-ideation-from-story
- test-code-conventions
- test-coverage-targeter
- test-data-patterns
- test-design-scorecard
- test-effort-estimation
- test-framework-architecture-audit
- test-framework-blueprint
- test-isolation-patterns
- test-management-sync
- test-pyramid-balancer
- test-removal-criteria
- test-run-summary-author
- test-strategy-author
- test-suite-health-audit
- testcontainers
- timezone-test-matrix-builder
- toxiproxy-chaos
- trace-spec-author
- traceability-matrix-builder
- trivy-config
- trivy-image
- tui-snapshot-tester
- unity-test-framework
- unity-test-framework-c
- unreal-automation-system
- varnish-test-vtc-syntax
- vector-search-recall-tests
- vex-author
- visual-baseline-conventions
- visual-baseline-gate
- wcag-color-contrast
- wcag-compliance-reporter
- wcag-keyboard-navigation
- web-e2e-overview
- web-push-tests
- web-vitals-inp-deep
- webdriverio-testing
- webhook-delivery-tester
- websocket-tests
- winappdriver
- wiremock-stubs
- workbox-tests
- xcuitest-suite
- zap-baseline