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

scientific-ci

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Design and maintain continuous-integration workflows for

The file

Show its rules and text

We split this skill into the rules it gives an agent

45 rules. About 0 are common, 41 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈41

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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 CI configuration for scientific, numerical, or parallel software where automated checks must …

    line 11
  2. Distinctive:

    Use this skill when:

    line 28
  3. Distinctive:

    Do not use this skill to assume that CI should replicate a full cluster or production environment when the repository only needs practical …

    line 36
  4. Distinctive:

    When this skill applies:

    line 42
  5. Distinctive:

    Read the repository AGENTS.md first, if present.

    line 44
  6. Distinctive:

    Prefer reproducible commands already used locally by the repository.

    line 47
  7. Distinctive:

    Keep matrix size proportional to actual risk and maintenance cost.

    line 48
  8. Distinctive:

    Prefer extending the repository's current CI system rather than introducing a second workflow layer without clear value.

    line 51
  9. Distinctive:

    Start with one primary compiler and one representative build mode.

    line 69
  10. Distinctive:

    Add a second compiler when toolchain diversity regularly reveals defects.

    line 70
  11. Distinctive:

    Use separate jobs for debug-like validation and release-like build assurance.

    line 71
  12. Distinctive:

    Keep optional accelerators or heavyweight dependencies out of the default path unless they are central to the project.

    line 72
  13. Distinctive:

    Avoid exploding the matrix across every compiler, OS, and dependency version unless the repository genuinely supports them all.

    line 74
  14. Distinctive:

    Prefer small, deterministic tests that still exercise meaningful scientific behavior.

    line 82
  15. Distinctive:

    Use tolerances and acceptance criteria that match the algorithm.

    line 84
  16. Distinctive:

    Keep large reference datasets out of the default CI path unless they are unavoidable.

    line 85
  17. Distinctive:

    If exact reproducibility is not expected, document the allowed variation.

    line 88
  18. Distinctive:

    Keep CI parallel tests modest in scale and resource assumptions.

    line 94
  19. Distinctive:

    Use low-rank or low-thread-count checks to catch obvious parallel defects.

    line 95
  20. Distinctive:

    Avoid assuming specialized interconnects, filesystems, or schedulers in general-purpose CI runners.

    line 96
  21. Distinctive:

    Treat MPI, OpenMP, and thread-affinity checks as smoke coverage unless the environment supports more.

    line 98
  22. Distinctive:

    Add sanitizer jobs as opt-in or non-default required checks when runtime cost is acceptable.

    line 108
  23. Distinctive:

    Keep stricter analysis paths isolated so failures are easy to interpret.

    line 110
  24. Distinctive:

    Prefer one or two well-maintained strict jobs over many rarely trusted ones.

    line 111
  25. Distinctive:

    If a job is noisy or flaky, fix the cause or narrow its scope rather than teaching people to ignore it.

    line 113
  26. Very specific:

    Use developer-tool-installation-policy when deciding whether CI tools such as ruff, dvc, hpccm, pre-commit, quarto, or nextflow must be …

    line 116
  27. Distinctive:

    Prefer compact machine-readable outputs when tooling already supports them.

    line 123
  28. Distinctive:

    Avoid artifact sprawl that nobody inspects.

    line 125
  29. Distinctive:

    Keep full benchmarks out of default CI unless the repository has stable, meaningful performance gates.

    line 131
  30. Distinctive:

    Prefer performance smoke tests or regression sentinels only when variance is controlled.

    line 133
  31. Distinctive:

    Run documented build or example commands when those paths are part of normal user workflows.

    line 142
  32. Distinctive:

    Prefer checked-in configs or scripts over ad hoc command duplication in CI.

    line 144
  33. Distinctive:

    Ensure CI commands align with the repository's published instructions.

    line 145
  34. Distinctive:

    When examples or docs drift from the code, CI is a useful backstop.

    line 147
  35. Very specific:

    Keep workflows under .github/workflows/.

    line 154
  36. Very specific:

    Use pull_request for review validation and push for protected or release branches when appropriate.

    line 155
  37. Distinctive:

    Run repository-documented local commands inside CI jobs rather than creating a separate hidden CI-only command path.

    line 157
  38. Very specific:

    Use job names that describe the validation contract, such as build, test, docs, lint, sanitize, or validate.

    line 159
  39. Distinctive:

    Keep permissions minimal; start from read-only defaults unless a workflow must publish artifacts, comments, packages, or releases.

    line 161
  40. Distinctive:

    Use matrices only where variation catches real risk, such as compiler, Python version, build type, or dependency backend.

    line 163
  41. Distinctive:

    Keep release, package publishing, and deployment workflows separate from ordinary PR validation unless the project has a deliberate CI/CD …

    line 168
  42. Distinctive:

    Avoid GitHub Actions workflows that assume private runners, hidden data, cluster queues, site modules, or machine-local paths unless those …

    line 171
  43. Distinctive:

    Run the smallest affected workflow locally when practical before editing CI.

    line 186
  44. Distinctive:

    If jobs could not be exercised end-to-end, say what remains unverified.

    line 190
  45. Distinctive:

    When using this skill, briefly note:

    line 194

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

Use this skill when editing or reviewing CI configuration for scientific, numerical, or parallel software where automated checks must validate builds, tests, and workflow integrity without assuming a full HPC environment.

Repository AGENTS.md instructions take precedence over this skill.

Purpose

Apply a pragmatic default for:

  • build and test workflows in scientific repositories;
  • compiler and platform coverage that catches meaningful regressions;
  • CI-friendly validation for numerical and parallel code;
  • artifact and log handling that helps diagnose failures efficiently.

When To Use

Use this skill when:

  • the user asks to add or improve CI for a scientific project;
  • build or test coverage is inconsistent across compilers or configurations;
  • numerical regressions should be caught automatically;
  • sanitizers, warnings, or linting should run in a controlled way;
  • documentation, examples, or reproducibility paths need automated smoke checks.

Do not use this skill to assume that CI should replicate a full cluster or production environment when the repository only needs practical automated coverage.

Working Approach

When this skill applies:

  1. Read the repository AGENTS.md first, if present.
  2. Identify the smallest CI set that catches the most likely regressions.
  3. Separate fast required checks from slower or more environment-specific ones.
  4. Prefer reproducible commands already used locally by the repository.
  5. Keep matrix size proportional to actual risk and maintenance cost.
  6. State what CI validates, what it deliberately skips, and what remains manual.

Prefer extending the repository's current CI system rather than introducing a second workflow layer without clear value.

Core Coverage

Scientific CI usually benefits from some combination of:

  • at least one clean configure and build path;
  • automated tests or validation commands;
  • warning-clean builds where practical;
  • documentation or example smoke checks when examples are important;
  • one stricter path such as sanitizers, static analysis, or an additional compiler.

The goal is confidence per minute, not maximal job count.

Build Matrix Guidance

  • Start with one primary compiler and one representative build mode.
  • Add a second compiler when toolchain diversity regularly reveals defects.
  • Use separate jobs for debug-like validation and release-like build assurance.
  • Keep optional accelerators or heavyweight dependencies out of the default path unless they are central to the project.
  • Avoid exploding the matrix across every compiler, OS, and dependency version unless the repository genuinely supports them all.

For scientific code, compiler diversity is often more valuable than broad OS fan-out.

Numerical and Scientific Validation

  • Prefer small, deterministic tests that still exercise meaningful scientific behavior.
  • Use tolerances and acceptance criteria that match the algorithm.
  • Keep large reference datasets out of the default CI path unless they are unavoidable.
  • Distinguish correctness checks from performance checks.
  • If exact reproducibility is not expected, document the allowed variation.

CI should catch real scientific regressions without becoming flaky.

Parallel and HPC Concerns

  • Keep CI parallel tests modest in scale and resource assumptions.
  • Use low-rank or low-thread-count checks to catch obvious parallel defects.
  • Avoid assuming specialized interconnects, filesystems, or schedulers in general-purpose CI runners.
  • Treat MPI, OpenMP, and thread-affinity checks as smoke coverage unless the environment supports more.
  • Mark cluster-only validation separately from standard CI.

CI should validate portability and basic correctness, not pretend to be a full performance lab.

Warnings, Sanitizers, and Analysis

  • Include a warning-focused build when warnings are part of project policy.
  • Add sanitizer jobs as opt-in or non-default required checks when runtime cost is acceptable.
  • Keep stricter analysis paths isolated so failures are easy to interpret.
  • Prefer one or two well-maintained strict jobs over many rarely trusted ones.

If a job is noisy or flaky, fix the cause or narrow its scope rather than teaching people to ignore it.

Use developer-tool-installation-policy when deciding whether CI tools such as ruff, dvc, hpccm, pre-commit, quarto, or nextflow must be pinned in the project rather than assumed from a runner's global state.

Artifacts and Diagnostics

  • Upload logs, test reports, or small failure artifacts when they aid triage.
  • Prefer compact machine-readable outputs when tooling already supports them.
  • Preserve enough context to debug a failure without rerunning blindly.
  • Avoid artifact sprawl that nobody inspects.

Artifacts should reduce diagnosis time, not just consume storage.

Performance and Benchmark Checks

  • Keep full benchmarks out of default CI unless the repository has stable, meaningful performance gates.
  • Prefer performance smoke tests or regression sentinels only when variance is controlled.
  • Record environment assumptions clearly if any timing-based check exists.

Most scientific repositories should separate CI correctness from serious benchmarking.

Reproducibility and Documentation Hooks

  • Run documented build or example commands when those paths are part of normal user workflows.
  • Prefer checked-in configs or scripts over ad hoc command duplication in CI.
  • Ensure CI commands align with the repository's published instructions.

When examples or docs drift from the code, CI is a useful backstop.

GitHub Actions

For GitHub-hosted scientific projects, GitHub Actions is a practical default CI platform.

  • Keep workflows under .github/workflows/.
  • Use pull_request for review validation and push for protected or release branches when appropriate.
  • Run repository-documented local commands inside CI jobs rather than creating a separate hidden CI-only command path.
  • Use job names that describe the validation contract, such as build, test, docs, lint, sanitize, or validate.
  • Keep permissions minimal; start from read-only defaults unless a workflow must publish artifacts, comments, packages, or releases.
  • Use matrices only where variation catches real risk, such as compiler, Python version, build type, or dependency backend.
  • Cache dependencies cautiously and make cache failures non-fatal when possible.
  • Upload compact logs, reports, or failure artifacts when they materially help diagnosis.
  • Keep release, package publishing, and deployment workflows separate from ordinary PR validation unless the project has a deliberate CI/CD contract.

Avoid GitHub Actions workflows that assume private runners, hidden data, cluster queues, site modules, or machine-local paths unless those jobs are clearly marked as optional or environment-specific.

Anti-Patterns

  • CI matrices so large that failures are ignored;
  • performance gates on unstable runners;
  • tests that require hidden external data or machine-local paths;
  • warning or sanitizer jobs that are permanently red;
  • duplicating local build logic in CI instead of reusing scripts or presets;
  • assuming cluster-specific infrastructure in generic hosted CI.

Validation Defaults

  • Run the smallest affected workflow locally when practical before editing CI.
  • Validate CI syntax or configuration structure if tooling is available.
  • Confirm that referenced scripts, presets, and paths exist.
  • State explicitly which CI paths were tested locally and which were not.
  • If jobs could not be exercised end-to-end, say what remains unverified.

Output Expectations

When using this skill, briefly note:

  • which CI files or jobs were added or changed;
  • which build, test, or analysis paths are now covered;
  • whether matrix, sanitizer, artifact, or documentation checks were introduced;
  • which workflow commands were validated locally;
  • which portability, flakiness, or environment risks remain.

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.