/skills-library:dimensional-analysis-checkerfrom skills-library
Checks physics equations, derivations, and scaling laws for dimensional consistency term by term. Builds a symbol table, verifies each term's units, and audits physical meaning of surviving terms.
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.
None: SKILL.md is the whole skill.
Use this skill when a user has a physics equation, derivation step, scaling law, or model expression and wants to know whether the dimensions make sense before trusting the result.
This skill does not prove that a derivation is fully correct. It answers a narrower question first: do the units and dimensions constrain the expression the way physics says they should?
Use this skill when the user wants to:
model-critique-coach)Do not use this skill as the only validation step when the user needs:
If the algebra is dimensionally valid but still physically wrong, say so plainly and hand off to limiting-case-validator, physics-mechanism-decomposer, or derivation-step-checker.
Ask for the smallest set that makes checking possible:
If the user does not provide a symbol table, build one explicitly from the prompt and mark guessed entries as assumed.
Return a compact report with these sections:
Scope — what was checked and under which unit systemDimension map — symbol → meaning → dimension/unit → statusChecks — each equation or term marked pass, fail, or ambiguousFindings — the exact mismatch, leftover factor, or undefined symbolPhysical meaning audit — what each surviving term represents physicallyNext move — smallest correction or follow-up check to run nextBefore checking dimensions:
R radius vs resistance, T period vs temperature)If notation is ambiguous, do not silently choose one meaning. Mark the result ambiguous until the symbol is disambiguated.
For every symbol that appears, create a table with:
[M L T^-2])given, derived, or assumedPrefer base-dimension form over only unit names because it exposes hidden inconsistencies faster.
Apply the strongest valid test for the structure at hand:
When a formula mixes terms with different dimensions, point to the first exact place the mismatch appears.
After the basic check:
A dimensionally valid term still needs a sentence explaining what contribution it stands for physically.
For each surviving term or grouped contribution, ask:
If a term passes units but nobody can say what it means, call it out. That usually signals cargo-cult algebra or a missing modeling assumption.
Use these outcome labels:
pass — dimensionally consistent under stated assumptionsfail — definite inconsistency foundambiguous — cannot judge cleanly because notation, units, or conventions are underspecifiedpartial pass — some steps check out, but at least one symbol or conversion remains unresolvedPrefer this repository's own checker first — it is standard-library only, so it runs anywhere:
python3 ../_shared/scripts/dimcheck.py expressions.dim
Write the dimension map into a [symbols] section (v = L T^-1) and each expression into
[check] as name = expression, with the declared dimension after a ;. To check an
equation, write it as lhs == rhs (or name = lhs == rhs to name it): both sides must
share a dimension, and a side written as 0 matches any dimension. A plain lhs = rhs is
also checked as an equation unless lhs is a single new name, which that line defines.
Use [compare] to assert that several named terms share a dimension. Put fractional
exponents in parentheses, x^(1/2); x^1/2 and v^2/2 are rejected as ambiguous, so write
(v^2)/2 or 1/2*v^2 for division. The checker reports each mismatch, refuses to add unlike
terms, rejects dimensional arguments to exp/log/trig and to symbolic exponents, and lists
every symbol that was never declared — which doubles as a check for quantities that appeared
out of nowhere. Exit status 0 means all checks passed; 1 means a dimensional inconsistency
or an undeclared symbol; 2 means the input itself could not be parsed, which is a problem
with the .dim file to fix and rerun, not a finding about the physics. --selftest
verifies the checker itself.
Reach for SymPy or another CAS only for what dimcheck.py deliberately does not do:
k in Buckingham's n − k)Use a manual table method:
The skill should still work without any vendor-specific runtime. Label these checks as manual in the report; never write that the script ran or that anything was verified by script.
assumed.../_shared/physics-evidence-contract.md §4).Hand off to another skill or workflow when:
Recommended neighbors (all available):
physics-mechanism-decomposer — open-phenomenon mechanism rankingproblem-formalization-coach — when the real problem is that a law was used
without stating why it applieslimiting-case-validator — regime checks: send each parameter to 0 and to infinity and
check that the expression returns to a known special casederivation-step-checker — algebra plus law-by-law validation, step by stepconcept-to-formula-deriver — a derivation from first principles rather than a checkanswer-plausibility-checker — a numerical result to sanity-check rather than a formulauncertainty-propagator — uncertainty propagation rather than unit checkingShared physics material lives one level up, loaded on demand:
../_shared/dimensionless-groups.md — Buckingham's theorem (how k and n get
miscounted), the standard groups, and the discipline for comparing magnitudes../_shared/law-applicability-table.md — when a dimensionally valid term still violates the
conditions of the law it came from../_shared/physics-evidence-contract.md — status tags, significant figures, which constants
are exact by definition and which must be cited with a date, and the academic-integrity
boundary (§4) behind the guardrail above../_shared/scripts/dimcheck.py — the deterministic checkerScope
- Checked: ...
- Unit system: ...
Dimension map
- symbol: meaning | dimension/unit | status
Checks
- Eq. (1): pass/fail/ambiguous
- Eq. (2): ...
Findings
- First mismatch: ...
- Suspicious leftover factor: ...
Physical meaning audit
- Term A represents ...
- Term B represents ...
Next move
- ...
| 版本 | 日期 | 变更 | 类型 |
|---|---|---|---|
| 0.1.1 | 2026-09-26 | 跟随 dimcheck.py 修复写明 [check] 的方程写法、分数指数加括号与退出状态 0/1/2;诚信条款改为无条件并引用证据契约 §4;相邻 skill 去掉过时的 planned 标注并改用实名;π 定理引用改为"k 与 n 被数错的方式";补 dimcheck 路径与无执行能力两个用例 | patch |
| 0.1.0 | 2026-08-30 | Initial cross-agent version with explicit manual fallback and evidence-status reporting. | 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