agentleFS
gjbexgjbex/scientific-computing-skills/skills/scientific-documentation/SKILL.md

scientific-documentation

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Write and improve documentation for scientific-computing and HPC

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈31

    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:

    Use this skill when editing or reviewing documentation for scientific, numerical, or parallel software where readers need clear technical …

    line 11
  2. Distinctive:

    Use this skill when:

    line 28
  3. Distinctive:

    Do not use this skill to replace formal scientific papers or deep domain theory that belongs in external references.

    line 36
  4. Distinctive:

    When this skill applies:

    line 41
  5. Distinctive:

    Read the repository AGENTS.md first, if present.

    line 43
  6. Distinctive:

    Document what the software does before describing internal structure.

    line 45
  7. Distinctive:

    Prefer concrete commands, examples, and file paths over abstract prose.

    line 46
  8. Distinctive:

    Prefer extending existing repository documentation rather than scattering new facts across many files without a clear entry point.

    line 50
  9. Distinctive:

    If benchmarking or profiling is central to the project, say so explicitly and link the expected workflow.

    line 79
  10. Distinctive:

    Document the numerical method at the level needed to use and maintain it.

    line 84
  11. Distinctive:

    Prefer short, precise descriptions over tutorial-style theory dumps.

    line 87
  12. Distinctive:

    If equations or references are necessary, include only what clarifies the implementation or outputs.

    line 88
  13. Distinctive:

    Document parameter defaults and which ones materially change results.

    line 97
  14. Distinctive:

    Prefer explicit examples for non-obvious configuration combinations.

    line 98
  15. Distinctive:

    Call out dangerous or expensive settings clearly.

    line 99
  16. Distinctive:

    If a parameter affects correctness, performance, or reproducibility, say so.

    line 101
  17. Distinctive:

    Prefer copyable commands with real filenames or realistic placeholders.

    line 106
  18. Distinctive:

    Keep examples aligned with the current CLI, file layout, and defaults.

    line 107
  19. Distinctive:

    Avoid examples that are too large, too slow, or dependent on hidden files.

    line 109
  20. Distinctive:

    Document seeds, config files, environment variables, and build assumptions needed to reproduce published examples or benchmark claims.

    line 115
  21. Distinctive:

    If thread counts, MPI ranks, affinity, or filesystem setup matter, document them near the relevant workflow.

    line 118
  22. Distinctive:

    Avoid presenting one machine's performance as universal behavior.

    line 120
  23. Distinctive:

    Prefer precise technical language over marketing language.

    line 126
  24. Distinctive:

    Use headings that reflect user tasks and concepts.

    line 127
  25. Distinctive:

    Keep definitions close to the first point of use.

    line 128
  26. Distinctive:

    Avoid unexplained acronyms when a short expansion would help.

    line 129
  27. Distinctive:

    Prefer tables or structured lists when documenting many parameters or files.

    line 130
  28. Distinctive:

    Check that documented commands, paths, and filenames still match the repo.

    line 145
  29. Distinctive:

    Run or partially verify key examples when practical.

    line 146
  30. Distinctive:

    If examples could not be run, say why.

    line 149
  31. Distinctive:

    When using this skill, briefly note:

    line 153

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

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

Scientific Documentation

Use this skill when editing or reviewing documentation for scientific, numerical, or parallel software where readers need clear technical guidance on what the software does, how to run it, and how to interpret its results.

Repository AGENTS.md instructions take precedence over this skill.

Purpose

Apply a pragmatic default for:

  • README and usage documentation for scientific tools and workflows;
  • documenting assumptions, inputs, outputs, and parameter meanings;
  • explaining algorithms and numerical choices at the right level;
  • connecting documentation to validation, reproducibility, and performance work.

When To Use

Use this skill when:

  • the user asks to add or improve project documentation;
  • the repository lacks clear instructions for building, running, or validating;
  • numerical methods, solver settings, or data products need explanation;
  • results are hard to interpret because assumptions or units are undocumented;
  • examples or workflow descriptions would materially reduce confusion.

Do not use this skill to replace formal scientific papers or deep domain theory that belongs in external references.

Working Approach

When this skill applies:

  1. Read the repository AGENTS.md first, if present.
  2. Identify the target reader: developer, researcher, student, or user.
  3. Document what the software does before describing internal structure.
  4. Prefer concrete commands, examples, and file paths over abstract prose.
  5. Explain assumptions, limits, and output interpretation explicitly.
  6. State what was documented, what remains implicit, and what was verified.

Prefer extending existing repository documentation rather than scattering new facts across many files without a clear entry point.

Core Topics

Scientific documentation should usually make these easy to find:

  • purpose of the code or workflow;
  • build and run instructions;
  • required inputs and expected outputs;
  • units, conventions, and parameter meanings;
  • validation or test expectations;
  • reproducibility requirements such as seeds, configs, and environment details;
  • performance-relevant runtime settings when they matter.

The goal is not maximal prose. The goal is reducing ambiguity for the next technical reader.

README Expectations

For project-level documentation, prefer a README that answers:

  • what problem the software solves;
  • who it is for;
  • how to build or install it;
  • the simplest command that works;
  • where to find examples, tests, or datasets;
  • what the major limitations or assumptions are.

If benchmarking or profiling is central to the project, say so explicitly and link the expected workflow.

Method and Model Explanations

  • Document the numerical method at the level needed to use and maintain it.
  • Explain approximations, stability assumptions, discretization choices, or solver stopping criteria when they affect results.
  • Prefer short, precise descriptions over tutorial-style theory dumps.
  • If equations or references are necessary, include only what clarifies the implementation or outputs.

Documentation should help readers understand both capability and limitation.

Inputs, Outputs, and Parameters

  • Define input file expectations, schema assumptions, and units.
  • Explain output artifacts, formats, and how to interpret important fields.
  • Document parameter defaults and which ones materially change results.
  • Prefer explicit examples for non-obvious configuration combinations.
  • Call out dangerous or expensive settings clearly.

If a parameter affects correctness, performance, or reproducibility, say so.

Examples

  • Include at least one minimal working example when practical.
  • Prefer copyable commands with real filenames or realistic placeholders.
  • Keep examples aligned with the current CLI, file layout, and defaults.
  • Show expected output shape or key lines when that aids verification.
  • Avoid examples that are too large, too slow, or dependent on hidden files.

Examples should be easy to rerun, not merely illustrative.

Reproducibility and Performance Context

  • Document seeds, config files, environment variables, and build assumptions needed to reproduce published examples or benchmark claims.
  • Distinguish normal usage guidance from performance-tuning guidance.
  • If thread counts, MPI ranks, affinity, or filesystem setup matter, document them near the relevant workflow.
  • Avoid presenting one machine's performance as universal behavior.

Scientific documentation should help readers reproduce intent, not just syntax.

Style Guidance

  • Prefer precise technical language over marketing language.
  • Use headings that reflect user tasks and concepts.
  • Keep definitions close to the first point of use.
  • Avoid unexplained acronyms when a short expansion would help.
  • Prefer tables or structured lists when documenting many parameters or files.

Clarity matters more than stylistic flourish.

Anti-Patterns

  • README files that describe internals before basic usage;
  • undocumented units, coordinate conventions, or assumptions;
  • examples that no longer run;
  • claims about correctness or performance with no validation context;
  • scattering critical usage facts across commit history or issue threads;
  • documenting only the happy path when failure modes are common.

Validation Defaults

  • Check that documented commands, paths, and filenames still match the repo.
  • Run or partially verify key examples when practical.
  • Confirm that parameter names, defaults, and output descriptions match code.
  • State explicitly which documentation claims were validated and which were not.
  • If examples could not be run, say why.

Output Expectations

When using this skill, briefly note:

  • which documentation files or sections were added or changed;
  • which workflows, assumptions, or parameter meanings are now documented;
  • whether examples or reproducibility notes were added;
  • which documentation examples or commands were validated;
  • which gaps remain for future documentation work.

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.