agentleFS
90184479018447/julia-pro-p/skills/julia-paper-implementation/SKILL.md

julia-paper-implementation

Skill0 starsChanged 3 days agoMITView on GitHub

Implement a published method in Julia: extract equations and parameters, build a sourced configuration table, reproduce a printed number, and record every assumption. Use for paper-to-Julia implementation.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  1. Distinctive:

    Configuration table: Every number with where it came from: paper section, appendix table, code line, or guessed.

    line 26
  2. Distinctive:

    Only then scale: one short run reproducing the shape of a reported curve, then the full budget.

    line 32

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Implementing a paper's method in Julia

A paper omits details that a working Julia implementation needs. Recover those details in an order that fails cheaply: structure before scale, one printed number before one figure.

Read in this order

PassSourceSettles
1method section, equations onlythe state, the loss, the update
2appendix and supplementarydimensions, initialisation, schedules, the exact datasets
3released code, if anyeverything the prose omits — and every place it disagrees with the prose
4issues and author repliesknown errata, and which numbers nobody has reproduced

A paper with no released code is a different job: the appendix becomes the specification and the gaps are yours to fill, so the configuration table's source column turns into a guess column.

Three artifacts before any training

Notation table. Symbol, meaning, units, shape, and where it appears. Most reproduction failures are a transposed index or an off-by-one in a time index, both invisible in prose and obvious in a table.

The update, executable. Write the loss and one parameter update in Julia with the paper's symbols as variable names. Check the gradient with ForwardDiff.jl or FiniteDiff.jl on a two-parameter toy problem before the real model exists. A sign error is cheap here and expensive after a week of training.

Configuration table. Every number with where it came from: paper section, appendix table, code line, or guessed. The guess column is the honest surface of the reproduction — it tells a reader what could not be recovered and where a deviation would start.

The first milestone is a printed number

Find one number the paper prints that a single forward pass or a single epoch should reproduce: a parameter count, a loss at initialisation, an accuracy after one epoch on a stated split. Reproduce it before building anything else. A model that matches the parameter count but not the initial loss has an initialisation or normalisation difference; one that matches neither has a structural difference, and structure is cheaper to fix than scale.

Only then scale: one short run reproducing the shape of a reported curve, then the full budget.

What the paper will not state

Initialisation scheme and scale, learning-rate warmup and decay shape, batch composition and shuffle order, where normalisation sits relative to the activation, dropout placement, and the seed. Recover each from code when code exists; otherwise pick the field's default, write it in the guess column, and treat any mismatch in the first milestone as a reason to revisit that guess rather than the architecture.

Reproducing a numerics result, not just a network

For a method that solves an equation rather than trains a classifier, the printed number is usually a converged error or a runtime. Then the tolerances, the discretisation, and the hardware are part of the method: a solver at different reltol is a different method, and a speedup claim is unreadable without the baseline it was measured against. State both before comparing.

Depth

PageOpen when
differential-equationsthe paper's method is a solver or a discretisation
neural-pdethe paper is a PINN or a neural operator
experiment-trackingrecording the deviation log and the config that produced each run
performance-tuningthe reproduction has to be fast enough to run at the paper's budget

Traps

  • Starting from the introduction. It states the claim, not the method; the appendix holds the numbers and reading it first prevents a rewrite.
  • Porting the full model before the toy gradient check. A sign error survives every scale-up and looks like a hyperparameter problem.
  • Treating the released code as ground truth over the paper. They disagree; when they do, the paper's claim is what you reproduce and the code's behavior is what you explain.
  • Reporting a match without stating the tolerance. Reproduced to three digits and reproduced to one are different results.
  • Filling every gap silently. A configuration table with no guess column reads as complete when it is not.

Done when

The contribution is restated in one sentence from the paper's own claims; a notation table exists with units and shapes; the loss and one update run and pass a finite-difference gradient check on a toy; one number the paper prints is reproduced with the tolerance stated; the configuration table names the source or the guess for every entry; and the deviation log records what was changed relative to the paper and why.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.