Modernizes, ports, rewrites, packages, or replaces established scientific software in independently validated stages against an external scientific oracle, settling compatibility and upstream stewardship before calling it complete. Not for an isolated benchmark; use experiment-protocol. Not for diagnosing wrong results; use scientific-debugging.
Ships in scientific-modernization. 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.
Modernization preserves scientific behavior and stewardship; it is not source translation. Faster code, a clean build, and passing self-authored unit tests do not establish scientific equivalence. Work the stages below in order; each has an explicit exit condition.
/skill scientific-modernization <what to modernize, port, rewrite, or replace, and why>
There is no operator in a headless run without an --answers file: ask_user is not registered, so
any call is refused as an unregistered tool rather than answered. Stage 1's "the user has seen them" exit condition means,
headlessly: state the four bullets in your reply and proceed, never stall
waiting for acknowledgment. Every other stage gate below works the same way:
state the decision and its reasoning, then continue.
The six stages are the plan; do not open a task list for them. tasks sits
outside this skill's tool surface and any call to it is refused.
Shell rules for every bash call: one command per call, plain and direct.
Never use $(...) or backticks; they trigger an approval gate that ends a
headless run.
This is a long, multi-stage process on a small model or a time-boxed run. If you are approaching your tool-call or time budget before reaching Stage 6, stop at the current stage, state exactly which stage you reached and why you stopped, and report the work as an incomplete prototype; never fabricate completion of stages you did not actually reach.
Identify the upstream project: active maintainers, license, release cadence, supported users, contribution path. Prefer improving the original project when coordination is viable.
Record the decision in writing before any implementation:
Do not start a rewrite whose only durable plan is "the community can maintain it later." Exit: the four bullets above are written down and the user has seen them.
Write the acceptance contract in .pancode/validation.yaml before changing
behavior; a VALIDATION.md is advisory prose and does not raise rigor. Pick at least one oracle that does
not depend on the new implementation agreeing with itself. When choosing it,
read references/oracle-kinds.md.
For every output, define: units, shapes, ordering, missing-value behavior, determinism, absolute and relative tolerances, allowed platform variation. Include adversarial and historically troublesome inputs.
If no credible oracle exists, stop and report that limitation. Implementation
velocity cannot repair an undefined truth condition. Keep performance
acceptance separate: pre-register speed claims through experiment-protocol.
Exit: the contract file exists and names its oracle(s).
Inventory observable behavior before migrating anything. When writing the inventory, read references/compatibility-envelope.md.
Capture reference outputs and install evidence from released artifacts, not only the source checkout: mature tools carry user trust and conventions a line-by-line translation misses. Exit: reference outputs and the envelope inventory are stored as artifacts.
Split the work into the smallest stages that can each be checked against the oracle. Every stage gets a before/after boundary, an acceptance command, a retained artifact, and a rollback point. Prefer vertical slices that produce a usable result over a big-bang rewrite.
Per stage:
An agent's confidence is not evidence. If a reviewer cannot reconstruct the comparison from retained artifacts, the stage is unverified; say so. Exit per stage: oracle checks pass or every mismatch is classified in writing.
Initial implementation is faster than convergence. Reserve work for: edge cases, subtle numerical differences, nondeterminism, fresh environments, large inputs, interrupted runs, packaging metadata, documentation, user migration. Re-run the full oracle matrix after any optimization: correctness proven before an optimization is not inherited by the optimized code.
Use scientific-debugging when a mismatch needs causal diagnosis. Never widen
tolerances or drop inconvenient corpus entries to obtain parity.
A completion claim must include all of:
If scientific validity or durable ownership is unresolved, report the work as a prototype. Do not call it a replacement, successor, or production release. When vetting a stage or completion claim, read references/red-flags.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/scientific-modernization:scientific-modernizationfrom scientific-modernization
npx claudepluginhub panstudio/pancode --plugin scientific-modernization