scientific-numerics-review
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Review scientific-computing and HPC code for numerical stability,
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- developer-tool-installation-policySkill
- git-refactor-hygieneSkill
- project-repository-setupSkill
- scientific-accelerator-portabilitySkill
- scientific-build-systemsSkill
- scientific-ciSkill
- scientific-cli-benchmarkSkill
- scientific-cli-designSkill
- scientific-code-styleSkill
- scientific-container-workflowsSkill
- scientific-data-analysis-and-visualizationSkill
- scientific-data-managementSkill
- scientific-documentationSkill
- scientific-io-and-data-formatsSkill
- scientific-notebook-workflowsSkill
- scientific-package-managementSkill
- scientific-parallel-debuggingSkill
- scientific-performance-portabilitySkill
- scientific-profilingSkill
- scientific-release-and-publicationSkill
- scientific-reproducibilitySkill
- scientific-reviewSkill
- scientific-testingSkill
- scientific-workflow-automationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 22 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
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 11
Use this skill when reviewing or changing scientific, numerical, or parallel code where the main risk is not syntax or style, but …
- Distinctive: line 29
Use this skill when:
- Distinctive: line 37
Do not use this skill as a substitute for full mathematical verification or domain-specific theoretical review beyond what the code and …
- Distinctive: line 42
When this skill applies:
- Distinctive: line 44
Read the repository AGENTS.md first, if present.
- Distinctive: line 48
Prefer concrete failure modes over vague statements about instability.
- Distinctive: line 51
Prefer findings that connect code changes to likely numerical consequences.
- Distinctive: line 55
Ask questions such as:
- Distinctive: line 81
Check whether residuals, errors, or objective changes are the right stopping signal.
- Distinctive: line 84
Ensure the chosen norm or metric matches the mathematical claim.
- Distinctive: line 94
Avoid one global tolerance for unrelated variables without justification.
- Distinctive: line 96
Check whether comparisons near zero use an appropriate absolute tolerance.
- Distinctive: line 97
Treat unexplained tolerance widening as a likely defect until justified.
- Distinctive: line 104
Check whether discrete operators are consistent with the intended model.
- Distinctive: line 106
Look for violated conservation, symmetry, positivity, monotonicity, or mass balance properties when those should hold.
- Distinctive: line 108
Treat indexing changes, halo logic, and stencil rewrites as numerically significant even when they look mechanically small.
- Distinctive: line 118
Check whether conversions are deliberate and localized.
- Distinctive: line 119
Treat precision reductions made for performance as numerically meaningful changes, not only engineering optimizations.
- Distinctive: line 129
Check whether determinism requirements changed silently.
- Distinctive: line 144
When this skill is used for review, prioritize:
- Distinctive: line 152
If no clear findings are present, say so explicitly and mention any residual numerical risks that remain hard to assess without stronger …
- Distinctive: line 158
When using this skill, briefly note:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Scientific Numerics Review
Use this skill when reviewing or changing scientific, numerical, or parallel code where the main risk is not syntax or style, but mathematically unsound or scientifically misleading behavior.
Repository AGENTS.md instructions take precedence over this skill.
Purpose
Apply a pragmatic default for reviewing:
- floating-point-sensitive computations;
- iterative methods and convergence criteria;
- discretizations, approximations, and conservation properties;
- tolerance choices and error metrics;
- changes that may alter scientific meaning without obviously breaking the code.
When To Use
Use this skill when:
- the user asks for a review of numerical or scientific code;
- a solver, integrator, optimizer, or reduction path is being changed;
- tolerances, stopping conditions, or precision choices are being modified;
- performance work may have changed numerical behavior;
- results drift and it is unclear whether the change is acceptable.
Do not use this skill as a substitute for full mathematical verification or domain-specific theoretical review beyond what the code and task require.
Working Approach
When this skill applies:
- Read the repository
AGENTS.mdfirst, if present. - Identify the numerical quantity or scientific claim the code is meant to preserve.
- Review algorithmic assumptions before line-level style details.
- Distinguish implementation noise from scientifically meaningful result drift.
- Prefer concrete failure modes over vague statements about instability.
- State what is known, what is inferred, and what would need stronger validation.
Prefer findings that connect code changes to likely numerical consequences.
Core Review Questions
Ask questions such as:
- Is the computation stable for the expected input range?
- Is the problem well-conditioned enough for the chosen method and precision?
- Are stopping criteria tied to meaningful error or residual measures?
- Are tolerances justified by scale, conditioning, or discretization error?
- Does the code preserve known invariants, bounds, or monotonic properties?
- Could reordering operations materially change the result?
- Is the reported metric aligned with the actual scientific objective?
Floating-Point Risks
Review for:
- catastrophic cancellation;
- loss of significance in subtraction of near-equal values;
- unstable summation or reduction order;
- overflow or underflow risks;
- avoidable conversion between precisions;
- hidden dependence on exact equality of floating-point values.
Parallel reductions, vectorization, and compiler optimization can change operation order enough to expose these issues.
Convergence and Stopping Logic
- Check whether residuals, errors, or objective changes are the right stopping signal.
- Distinguish absolute and relative stopping criteria.
- Ensure the chosen norm or metric matches the mathematical claim.
- Review maximum-iteration fallbacks and non-convergence handling.
- Be cautious when iteration count is treated as a quality measure by itself.
A solver that stops consistently is not necessarily a solver that stops correctly.
Tolerances and Error Metrics
- Review whether tolerances scale with the problem and quantity being measured.
- Avoid one global tolerance for unrelated variables without justification.
- Distinguish discretization error, solver error, and floating-point noise.
- Check whether comparisons near zero use an appropriate absolute tolerance.
- Treat unexplained tolerance widening as a likely defect until justified.
Tolerance choices should reflect the mathematics of the problem, not only the desire to pass tests.
Discretization and Invariants
- Check whether discrete operators are consistent with the intended model.
- Review boundary-condition handling and edge-cell logic carefully.
- Look for violated conservation, symmetry, positivity, monotonicity, or mass balance properties when those should hold.
- Treat indexing changes, halo logic, and stencil rewrites as numerically significant even when they look mechanically small.
Small implementation changes can alter the scientific meaning of a method.
Precision Choices
- Review whether
float,double, or mixed precision is appropriate for the algorithm and scale. - Identify accumulations or solves that may need higher precision than storage.
- Check whether conversions are deliberate and localized.
- Treat precision reductions made for performance as numerically meaningful changes, not only engineering optimizations.
Parallel and Performance-Driven Changes
- Review whether threading, SIMD, fusion, tiling, or reordering changed the numerical contract.
- Expect non-associative reductions to produce some drift, but not arbitrary drift.
- Distinguish acceptable roundoff variation from evidence of instability.
- Check whether determinism requirements changed silently.
Performance improvements should not quietly rewrite the scientific claim.
Anti-Patterns
- exact equality reasoning for generic floating-point paths;
- convergence checks that do not reflect solution quality;
- widening tolerances without explaining the source of the drift;
- assuming faster code is equivalent because outputs "look similar";
- treating previous outputs as unquestionable ground truth;
- dismissing all numerical differences as floating-point noise.
Review Output Style
When this skill is used for review, prioritize:
- concrete numerical risks and likely consequences;
- file and line references when possible;
- clear distinction between confirmed defects, plausible concerns, and open questions;
- brief mention of missing validation that would resolve uncertainty.
If no clear findings are present, say so explicitly and mention any residual numerical risks that remain hard to assess without stronger tests or reference data.
Output Expectations
When using this skill, briefly note:
- what numerical quantity, invariant, or convergence behavior was reviewed;
- which risks appear confirmed versus inferred;
- whether precision, reduction order, or tolerance choices are involved;
- what additional tests or reference comparisons would reduce uncertainty;
- which scientific or numerical risks remain open.
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.

