playbook-test-spec
Skill0 starsChanged 4 days agoMITView on GitHub
Design or repair a Julia test suite. Use for Julia test layout, unit and integration coverage, Aqua and JET gates, regression cases, and assertion-review discipline.
In this repository55 other files it gives its agents.
- advanced-optimizationSkill
- bayesian-inferenceSkill
- bayesian-pinnSkill
- bayesian-ude-workflowSkill
- catalyst-reactionsSkill
- continuum-mechanics-and-rheologySkill
- control-theorySkill
- creating-julia-appSkill
- debugging-toolkitSkill
- differential-equationsSkill
- differentiationSkill
- equation-discoverySkill
- experiment-trackingSkill
- fem-feaSkill
- julia-graph-neural-networksSkill
- julia-languageSkill
- julia-ml-and-dlSkill
- julia-model-deploymentSkill
- julia-paper-implementationSkill
- julia-pro-helpSkill
- julia-pro-modeSkill
- julia-reinforcement-learningSkill
- modeling-toolkitSkill
- neural-pdeSkill
- nonlinear-dynamicsSkill
- numerical-methods-implementationSkill
- package-development-workflowSkill
- performance-tuningSkill
- physical-learning-systemsSkill
- playbook-debugSkill
- playbook-model-validateSkill
- playbook-package-releaseSkill
- playbook-paper-implementSkill
- playbook-perfSkill
- principle-both-sidesSkill
- principle-breakingSkill
- principle-file-is-truthSkill
- principle-gateSkill
- principle-limitsSkill
- principle-loud-failureSkill
- principle-one-stepSkill
- principle-proof-listSkill
- principle-rebuttalSkill
- principle-runtime-surfaceSkill
- principle-three-boundsSkill
- principle-three-clocksSkill
- scientific-visualizationSkill
- sciml-and-diffeqSkill
- setup-julia-proSkill
- signal-processingSkill
- simulation-and-hpcSkill
- statistical-physicsSkill
- symbolic-mathSkill
- web-development-juliaSkill
- zarr-cloud-arraysSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Done when: every level has at least one case, or its absence is written down with a reason.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test suite design
Tests exist to make a change safe, so the suite is judged by what it catches, not by its line count.
1. Layout
test/runtests.jl includes one file per concern; each file holds @testset blocks named after the behaviour, not the function. test/Project.toml carries the test-only dependencies, so Test, Aqua, JET, BenchmarkTools stay out of [deps] (principle-runtime-surface).
Done when: julia --project -e 'using Pkg; Pkg.test()' runs the whole suite from a clean depot.
2. The four levels, and what each one catches
| Level | Catches | Shape |
| unit | a formula, a boundary, a unit conversion | @test f(x) ≈ expected rtol=1e-12 |
| property | an invariant over generated inputs | @test entropy(u) >= 0 across random states |
| integration | a pipeline whose parts disagree | one short end-to-end run against a stored reference |
| regression | the specific bug that already happened | the minimal reproduction from playbook-debug |
@test_broken marks a known bug and keeps the suite green; it is a promise, tracked in the issue it names. @test_skip marks a platform or dependency gap. Neither one counts as a fix.
Done when: every level has at least one case, or its absence is written down with a reason.
3. Quality gates
Aqua.test_all(MyPkg): ambiguities, piracy, stale deps, compat bounds.JET.test_package(MyPkg): type errors on the public surface.- doctests, when docstrings carry examples.
- an allocation or timing assertion on the one hot path that matters.
Done when: each gate runs in CI and fails the build.
4. The suppression rule
An assertion that is rewritten to match current output has removed a test rather than fixed a bug, and the suite now certifies the wrong answer. Mark such edits, report them separately from fixes, and require an explicit request before making one.
Done when: the run report separates fixed failures from assertion rewrites, or states that there were none.
5. Iteration bound
A fix loop runs at most N rounds (10 is generous) and stops on two rounds without progress. Unbounded iteration is an unbounded number of chances to launder a bug into green.
Done when: the run ends in one of: all pass, partial with the remaining failures listed, or plateau with the diagnosis.
Topics this playbook opens
Load one at the step named. The table exists so you do not read all of them up front.
| Topic | The step that needs it | What it settles |
| numerical-methods-implementation | 2 The four levels | a manufactured solution, the only convergence test that states its order |
| differential-equations | 2 The four levels | a solver test asserting a tolerance rather than a number |
| fem-fea | 2 The four levels | a patch test separating a bad element from a bad mesh |
| julia-ml-and-dl | 2 The four levels | a leakage test that fails when the split is wrong |
| package-development-workflow | 3 Quality gates | Aqua, JET, and compat bounds as the gate a suite runs |
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.

