testing
Skill2 starsChanged 2 months agoMITView on GitHub
Use when about to write, add or change a test in any project — a unit, component, API or E2E test, a regression test for a bug, or tests for a change just made. Preloaded into code-writing agents (implementation and bugfix) so the authoring core is in context before the first test file is written. Fires on "write a test for", "add a regression test", "add tests for this change", "cover this with a test", "write a Playwright spec for". Not for: planning or auditing a suite, choosing which tests to run, fixtures, the E2E environment or the testing profile (/aidex:coverage); the RED-first bug-fix procedure (/aidex:bugfix).
123 other projects use a version of this.
Adopted by
Most recently taken up by
- timmo001/skillstheir own version, first seen Oct 5, 2026
- kortix-ai/sunatheir own version, first seen Oct 5, 2026
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- JetBrains/intellij-communitytheir own version, first seen Oct 3, 2026
- shinpr/codex-workflowstheir own version, first seen Oct 2, 2026
Used with
Projects with it also use oss-pr, pr-automation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
ffsshhttiikkSkillcicd
Continuous integration and delivery pipelines
Also in 4 projects that use this
ffsshhttiikkSkillnetworking
Practical application and coding skills for Networking
Also in 3 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 9 projects that use this
Cogni-AI-OUSkilldotfiles
Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.
Also in 3 projects that use this
- +2 more from CES-Ltd
- +1 more from ffsshhttiikk
Other versions123 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 123
- lobehub/lobehub★ 83ksame name
- iOfficeAI/AionUi★ 33ksame name
- JetBrains/intellij-community★ 21ksame name
- kortix-ai/suna★ 20ksame name
- modelcontextprotocol/inspector★ 11ksame name
- microsoft/fast★ 9.7ksame name
- bytebase/dbhub★ 3.6ksame name
- theopenco/llmgateway★ 1.7ksame name
- BankrBot/skills★ 1.2ksame name
- microsoft/CCF★ 875same name
113 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 105 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Read the project's .context/testing-profile.md, take testing_packs, and open each pack's ${CLAUDE_PLUGIN_ROOT}/skills/<pack>/SKILL.md: its …
“Common” is measured: kept by at least 6 in 10 of the 105 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Testing
The write-time core: what to answer before a test is written, where it goes, what it
looks like and what to run. It is the single owner of the four questions and of the
one-owner rule; coverage owns the doctrine behind them (layers, selection, fixtures,
the E2E environment, the profile) and bugfix the RED→GREEN procedure.
Before adding a test
Answer four questions; a missing answer means the test is not added yet.
- What observable behaviour or contract does it protect?
- What credible regression turns it red?
- Why does no existing test already catch that? One contract has one owner test, at the layer the layer model assigns; extend that test or its table before adding a sibling.
- Does it need an export, flag or hook no production caller needs? Then test at the real boundary instead.
A test that breaks under a behaviour-preserving refactor asserts implementation. A change that opened no new way to fail needs no new test — say so instead of writing one.
Layer
The lowest layer that can observe the failure, by the rubric in
${CLAUDE_PLUGIN_ROOT}/skills/coverage/references/01-layer-model.md: test the decision,
not the pixels — except when the browser is what decides. State the layer and a
one-sentence reason with the test.
Shape
Read the project's .context/testing-profile.md, take testing_packs, and open each
pack's ${CLAUDE_PLUGIN_ROOT}/skills/<pack>/SKILL.md: its "Question -> file" table names
the test-shapes reference for the layer at hand. Follow the project's existing tests
next to the code. No profile, or a pack that is not installed: say so and follow
${CLAUDE_PLUGIN_ROOT}/skills/coverage/SKILL.md § Resolving the stack packs — never
improvise framework content from memory.
What to run
The new or changed test alone, by the profile's single-test command for its leg
(backend_test_cmd, frontend_test_cmd, e2e_test_cmd, each taking {path}), then the
selection for the diff:
${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/affected-tests.sh --command. The full suite
is the integration-boundary gate, not a per-change one. A test that was never seen red
has not shown it can fail
(${CLAUDE_PLUGIN_ROOT}/skills/coverage/references/15-green-that-proves-nothing.md).
Bug regressions
One regression test, once, at the layer that owns the failure — never the same scenario
replayed at unit, API and E2E. If an existing test should have caught the bug, fix or
extend that test (a new table row). RED first, then the fix: bugfix owns that procedure.
Tests that earn nothing
The patterns that fail the four questions, the retention bar that keeps a test anyway, and what to name before deleting one: references/16-tests-that-earn-nothing.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

