/skills-library:numerical-stability-auditorfrom skills-library
Audits numerical simulation outputs to distinguish physical behavior from numerical artifacts. Checks conserved quantity drift, step-size convergence order, and suspicious high-frequency content in power spectra.
Ships in skills-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Judge numerical credibility before explaining simulated behavior. Separate evidence of discretization failure from evidence about the modeled physics.
This skill audits numerical outputs; it does not prove that the governing equations, parameters, boundary conditions, or implementation represent reality. It does not replace method-specific stability theory, code review, experimental validation, or an exact solution when one exists.
Do not label every oscillation a numerical artifact. A suspicious feature remains a hypothesis until a refinement or method-change test distinguishes it from physical dynamics.
Ask only for missing information that changes the audit:
If only one run exists, perform a limited diagnostic and explicitly request refinement runs. Never infer convergence order from one or two resolutions.
Write down what must stay fixed across runs: equations, parameters, initial and boundary conditions, solver family, stopping criterion, output sampling, random seed or ensemble definition, and comparison time. Note intentional differences.
Choose diagnostics that match the physics:
For each run, report:
Normalize only by a physically meaningful scale. If the initial invariant is zero or near zero, use a declared reference scale and report absolute drift too.
A drift curve is also a process diagnostic: align the onset of drift with collisions, switching, contact, remeshing, boundary interaction, stiffness, or event handling. Do not hide cancellation by reporting endpoint drift alone.
Use at least three step sizes or mesh scales with a common refinement ratio when practical. Compare the same scalar observable, norm, event time, or error against an exact/reference solution.
If errors e(h) are available, estimate observed order
p = log(e_coarse / e_fine) / log(h_coarse / h_fine).
If no exact solution exists, use successive-solution differences and state that the result is self-convergence, not accuracy proof. Interpolate onto common times or locations before comparison; do not compare mismatched samples as if aligned.
Pair each difference with the coarser step of the two runs it compares: three runs h1 > h2 > h3 give d1 = |u(h1) − u(h2)| on the row of h1 and d2 = |u(h2) − u(h3)| on the row of h2. Keep one refinement ratio r = h1/h2 = h2/h3; then d1/d2 = r^p and p = log(d1/d2) / log(r). With unequal ratios the pairwise orders are biased. Three runs give only two differences, hence one order estimate: the helper accepts them with a warning, and a fourth run is what shows whether the order is stable.
Classify the outcome:
Do not demand textbook order across discontinuities, limiters, event times, chaotic divergence, or mixed temporal/spatial error. Explain the expected order reduction.
For uniformly sampled signals, remove the mean (and preferably trend), inspect the spectrum, and compare refined runs. Flag, but do not automatically condemn:
A physical peak should normally remain at a stable physical frequency under refinement. Account for forcing frequencies, natural modes, aliasing, output downsampling, and nonuniform sampling. Use Lomb–Scargle or resampling for nonuniform data rather than a plain FFT.
For each suspicious feature, propose the cheapest discriminating test:
State what outcome would support “physical” versus “numerical.”
Use one of:
Never say “stable” without naming the diagnostic, tested range, and tolerance.
Use scripts/audit_stability.py for CSV-based invariant drift, uniform-sampling spectral indicators, and convergence estimates from three or more error rows, or from the two successive differences of three runs (accepted with a warning). Uniform sampling is judged against the printed precision of the time column, so times rounded to 4 decimals still get the spectral check. The script uses only the Python standard library; --selftest runs its regression cases.
Read references/input-schema.md before invoking it. Treat its output as measurements, not a verdict: thresholds are user-supplied or context-dependent, and spectral flags require refinement evidence. Report every entry of the convergence warnings list in Limitations.
Return:
Before finishing, verify that:
references/input-schema.md — CSV columns, invocations, difference-to-step pairing, uniformity tolerance and exit behavior of the helper../_shared/physics-evidence-contract.md — §4 academic-integrity boundary shared by all physics skills (no invented runs or convergence results)| 版本 | 日期 | 变更 | 类型 |
|---|---|---|---|
| 0.1.1 | 2026-09-26 | 写明自收敛时差值与步长的配对(差值记在较粗步长那一行、保持同一加密比);脚本接受三次运行得到的两个差值并给警告,加密比不一致时也给警告;均匀采样容差改按时间列的打印精度计算,时间四舍五入到 4 位小数不再跳过鬼频检查;加 --selftest;补 _shared 证据契约 §4 引用;示例命令改用 python3(macOS 自带的只有 python3) | patch |
| 0.1.0 | 2026-09-05 | 初始版本 | minor |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chromitecr/skills --plugin skills-library64 skills in this plugin
/activity-list-optimizer当学生说"Common App 活动栏写不下"、"这段活动描述超字数了"、"帮我把这几条压到限制内"时使用。先按官方申请表核对当季字符限额,再逐条检查;一次把所有条目量完并直接给出压缩版,只在需要砍掉实质内容时才用选择题问该保哪部分。每改一版都用工具重新数一遍字符,绝不凭感觉说"这样应该够了"。只压缩,不代写空白。/activity-profile-builder当学生说"我参加过一些活动但没整理过"、"帮我把经历录进去"、"我的活动档案是空的"时使用。让学生一口气把记得的活动说出来,直接把这段话拆成结构化的长期事项(角色、组织、起止时间、做了什么、结果、级别),说不清的字段留空标"待补"而不是编,再用一张选择题卡把级别判定与是否重复这类关键项一次问完,然后提案入库。只记录学生真正说出口的内容,级别按事实判定,绝不往高了写。/admissions-reader当学生问"招生官会怎么看我的档案"、"我的背景还差什么"、"帮我评估一下现在的申请竞争力"时使用。以顶尖大学招生官的视角通读学生的档案、长期活动与已写下的反思,不问任何前置问题直接产出一份指名道姓的坦诚点评:这份材料的亮点、招生官真实的解读方式、明显的短板与空白、以及接下来最值得做的一到两件事。只读不写,不修改学生的任何数据,也不代写任何申请材料。Other plugins' skills for the same job