test-plan
Skill1 starsChanged 7 months agoMITView on GitHub
Generate a structured test plan (positive, negative, bulk, edge, security cases) for a class, trigger, or LWC before tests are written. The plan becomes a contract @qa consumes — every case in the plan must have a corresponding test.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- huntie/skillstheir own version, first seen Nov 1, 2026
- TzolkinB/skillstheir own version, first seen Oct 22, 2026
- DoKu67/claude-code-skilstheir own version, first seen Oct 16, 2026
- AviadP/aviad-dev-toolkittheir own version, first seen Oct 15, 2026
- XGENT-ai/skillstheir own version, first seen Oct 13, 2026
- nhhthong/skillstheir own version, first seen Oct 13, 2026
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- liferay/liferay-portal★ 2.3ksame name
- stackrox/stackrox★ 1.3ksame name
- MillenniumDawn/Millennium-Dawn★ 158same name
- mbwsims/claude-universe★ 71same name
- Codagent-AI/agent-skills★ 31same name
- katalon-labs/true-skills★ 10same name
- yasunori0418/skills★ 9same name
- xmh-test/test-agent-skills★ 5same name
- DoKu67/claude-code-skils★ 4same name
- SUDARSHANCHAUDHARI/QACraft★ 2same name
7 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.
In this repository53 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- adrSkill
- agent-deploySkill
- agent-discoverSkill
- agent-eval-trendSkill
- agent-exchange-listSkill
- agent-specSkill
- agent-testSkill
- agent-vs-flow-vs-apexSkill
- before-vs-after-triggerSkill
- code-reviewSkill
- complexitySkill
- coverage-trendSkill
- dead-codeSkill
- dependency-graphSkill
- deploySkill
- destructive-changesSkill
- diff-deploySkill
- erdSkill
- field-impactSkill
- flaky-test-finderSkill
- flow-auditSkill
- flow-vs-apexSkill
- fls-auditSkill
- gateway-configSkill
- generate-docsSkill
- limit-usageSkill
- lwc-vs-reactSkill
- mcp-tool-vs-restSkill
- notifySkill
- onboardSkill
- org-diffSkill
- org-exploreSkill
- package-versionSkill
- pattern-packSkill
- perf-reviewSkill
- permset-auditSkill
- pr-prepareSkill
- queueable-vs-batchSkill
- quick-deploySkill
- react-initSkill
- release-notesSkill
- scratch-orgSkill
- security-scanSkill
- sequence-diagramSkill
- sf-initSkill
- sharing-reviewSkill
- slack-agentSkill
- soql-analyzerSkill
- test-coverageSkill
- test-dataSkill
- trust-evalSkill
- trust-layer-auditSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
3
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
- Distinctive: line 33
If not found, exit 2 with a clear message.
- Distinctive: line 115
Plans, not tests: Don't write Apex code or Jest test code in this skill — just the case rows
- Distinctive: line 118
Surface assumptions: If a case depends on test data that doesn't exist (custom metadata records, perm sets), flag it in a "Test Data …
- Very specific: line 119
Use the architect's Test Strategy as a starting point: when --from-design is passed.
“Common” is measured: kept by at least 6 in 10 of the 14 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
You are producing a test plan for a unit-under-test. The plan is a Markdown table @qa later turns into actual @isTest methods or Jest it() blocks. The point is to enumerate cases before writing tests so coverage isn't an afterthought.
Read Project Config First
source "${CLAUDE_PLUGIN_ROOT}/hooks/lib/config.sh"
APEX_SRC="$(sf_config_get '.paths.apexSource' "$ENV")"
LWC_SRC="$(sf_config_get '.paths.lwcSource' "$ENV")"
COVERAGE_TARGET="$(sf_config_get '.quality.codeCoverageTarget' "$ENV")"Input
$ARGUMENTS: required.
<ApexClassName>— produce a plan for an Apex class (or trigger)<lwc-name>— produce a plan for an LWC component--out <path>— output Markdown file (defaultcode-reviews/test-plans/<name>.md)--from-design— read the latest@architectTest Strategy block from the conversation/clipboard and seed the plan
Steps
1. Locate and read the unit under test
For Apex: ${APEX_SRC}/<ClassName>.cls (and trigger .trigger)
For LWC: ${LWC_SRC}/<lwc-name>/<lwc-name>.{js,html}
If not found, exit 2 with a clear message.
2. Identify the surface to test
Apex:
- Public/Global methods: parameters, return type
@AuraEnabledmethods (LWC-facing — enumerated separately; cacheable vs. write)@HttpGet/@HttpPost/ etc. for REST services- Trigger contexts (before/after × insert/update/delete/undelete)
- DML statements (what gets written and when)
- Callouts (what external systems are touched)
- Platform Event publishes / consumers
LWC:
- Public properties (
@api) - Public methods (
@apimethods) - Wired adapters (Apex methods,
getRecord,getPicklistValues, etc.) - LMS subscriptions (which channels)
- Imperative Apex calls
- DOM event handlers (clicks, value changes)
- Lifecycle callbacks (
connectedCallback,renderedCallback)
3. Enumerate cases by category
For each category, list cases. Don't be exhaustive — be representative. One row per test method.
| Category | What to include |
| Positive | Each happy path: minimum input, typical input, all-fields populated |
| Negative | null / blank inputs; invalid types; missing required fields; record-not-found; insufficient permissions (CRUD/FLS); SOQL no-results; DML rollback path |
| Bulk | 200+ records (the trigger threshold); 10K records when async/batch is in scope; verifies governor limits |
| Edge | Boundary values (max length strings, max precision numbers, end-of-month dates, leap years, time zones); record types; special characters; managed-package vs. unmanaged objects |
| Security | Sharing model: with vs. without sharing user contexts; FLS on the fields touched; SOQL injection vectors for any dynamic SOQL; OAuth flow assumptions for callouts |
4. For each case, specify the test contract
| # | Category | Description | Setup | Action | Assertion | Pattern |
|---|----------|-------------|-------|--------|-----------|---------|
| 1 | Positive | createOrder with valid payload | TestSetup: 1 Account | call createOrder(dto) | order.Id != null; order.Status = 'OPEN' | SF-15 callout mock not needed |
| 2 | Negative | createOrder with null payload | (none) | call createOrder(null) | IllegalArgumentException with message "payload required" | — |
| 3 | Bulk | persist 250 line items | TestSetup: 1 Order | persist(250 items) | all rows inserted; CPU budget OK | Test.startTest/stopTest |
| 4 | Edge | order with quantity=0 | TestSetup: 1 Order | persist 1 item qty=0 | DML error: "Quantity must be > 0" | — |
| 5 | Security | non-sharing user reads private order | TestSetup: 1 Order, owner=adminA | runAs(userB) → fetchOrder(id) | QueryException ("not found") | runAs() block |
| 6 | Callout | external 500 error | Test.setMock returning 500 | call notify() | CalloutException; error logged | SF-15 mock |5. Output
Default Markdown:
# Test Plan: <ClassOrLwc>
Generated: 2026-04-28T12:00:00Z (`/argo:test-plan`)
Coverage target: 85% (from quality.codeCoverageTarget)
## Surface
(brief enumeration of what's being tested — methods, wires, events)
## Cases
(the case table from step 4)
## Patterns referenced
- SF-15 (HTTP callout via Named Credential) — mock with Test.setMock
- SF-17 (Custom Metadata Type Lookup) — use FeatureFlags.load() in tests
- SF-14 (LWC Jest Test Structure) — for the LWC tests below
- ...
## Hand-off
@qa: implement these test methods; one per row above. Run `quality.unitTestCommand`
and `/argo:test-coverage <Class>` after; coverage target 85%.CI mode: emit JSON (the rows from step 4 as an array of case objects). Useful when downstream tools want to validate that every row has a corresponding test method.
6. Exit codes
- 0 — plan emitted
- 2 — unit under test not found
Rules
- Plans, not tests. Don't write Apex code or Jest test code in this skill — just the case rows
- Reference patterns by ID.
SF-15,SF-17etc. so @qa can look them up directly - Keep cases atomic. Each row → one test method. Don't bundle "positive + negative" into one row
- Surface assumptions. If a case depends on test data that doesn't exist (custom metadata records, perm sets), flag it in a "Test Data Required" section
- Use the architect's Test Strategy as a starting point when
--from-designis passed; expand it but don't shrink it
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.

