agentleFS
gjbexgjbex/scientific-computing-skills/skills/developer-tool-installation-policy/SKILL.md

developer-tool-installation-policy

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Decide whether developer and scientific workflow tools belong in

  • Installs packages

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when deciding where small command-line tools should live: project metadata, local developer environments, pre-commit hooks, …

    line 10
  2. Distinctive:

    Use a split policy:

    line 31
  3. Distinctive:

    Put project contract tools in the project environment, repository metadata, pre-commit configuration, or CI configuration.

    line 33
  4. Very specific:

    Put personal convenience tools in isolated global installs such as pipx, uv tool install, or pixi global install.

    line 35
  5. Distinctive:

    Prefer a project-local or repository-pinned tool when:

    line 48
  6. Distinctive:

    Use isolated global installs for tools that are useful across many projects but are not part of a specific repository's validated contract.

    line 66
  7. Very specific:

    Avoid pip install --user into an unscoped Python environment for shared CLI tools.

    line 78
  8. Distinctive:

    When in doubt, treat reproducibility-sensitive tools as project contract tools.

    line 94
  9. Very specific:

    Use a global isolated ruff for quick cross-repository inspection.

    line 100
  10. Very specific:

    Use global dvc for casual inspection.

    line 106
  11. Very specific:

    Use global hpccm for drafting recipes.

    line 113
  12. Distinctive:

    document the supported setup path in the README or contribution docs.

    line 132
  13. Distinctive:

    When using this skill, state:

    line 155

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

Developer Tool Installation Policy

Use this skill when deciding where small command-line tools should live: project metadata, local developer environments, pre-commit hooks, CI jobs, or isolated global tool installs.

Repository AGENTS.md instructions take precedence over this skill.

Purpose

Apply a consistent split for tools such as:

  • ruff, black, mypy, pytest, pre-commit;
  • dvc, git-lfs, data and workflow utilities;
  • hpccm, apptainer, docker, podman;
  • quarto, jupyter, nbval, nbstripout;
  • nextflow, snakemake, tox, nox, hatch, twine;
  • other small CLIs used across many repositories.

The goal is to avoid both dependency sprawl and hidden global assumptions.

Default Policy

Use a split policy:

  • Put project contract tools in the project environment, repository metadata, pre-commit configuration, or CI configuration.
  • Put personal convenience tools in isolated global installs such as pipx, uv tool install, or pixi global install.

A tool is part of the project contract when the repository depends on it for correctness, generated files, contributor workflow, CI, release artifacts, or reproducible scientific outputs.

A tool is personal convenience when it is only used interactively, across many unrelated repositories, or as a launcher/bootstrapper whose exact version does not define repository outputs.

Project-Local Tools

Prefer a project-local or repository-pinned tool when:

  • CI runs it;
  • pre-commit enforces it;
  • contributors must run it to make valid changes;
  • it generates committed files;
  • it affects scientific results, figures, containers, notebooks, data pipelines, or release artifacts;
  • documented commands assume it is available;
  • the exact version affects behavior or output stability.

Project-local placement can mean pyproject.toml, pixi.toml, environment.yml, requirements-dev.txt, .pre-commit-config.yaml, tox.ini, noxfile.py, a language-specific lockfile, or CI setup steps. Match the repository's existing tooling rather than adding a second environment manager without a reason.

Global Isolated Tools

Use isolated global installs for tools that are useful across many projects but are not part of a specific repository's validated contract.

Appropriate examples:

  • pipx install pre-commit as a user-level launcher;
  • uv tool install ruff for ad hoc formatting or inspection;
  • pixi global install hpccm for drafting container recipes;
  • global dvc for read-only inspection across repositories;
  • global quarto or nextflow only when repository documentation and CI do not rely on a hidden unpinned version.

Avoid pip install --user into an unscoped Python environment for shared CLI tools. Prefer isolated tool environments so dependencies do not conflict across projects.

Decision Table

SituationDefault placement
CI or pre-commit runs the toolproject config plus CI setup
Tool generates committed filesproject-pinned version and freshness check
Tool affects scientific outputsproject environment or documented lockfile
Tool is only used for ad hoc inspectionisolated global install
Tool bootstraps project environmentsisolated global install plus project docs
Contributors must run itproject docs and reproducible install path
Exact version is irrelevantisolated global install is acceptable

When in doubt, treat reproducibility-sensitive tools as project contract tools.

Tool-Specific Guidance

Ruff and Similar Linters

Use a global isolated ruff for quick cross-repository inspection. Pin or configure ruff in the project when formatting, linting, pre-commit, or CI depends on it. Keep configuration in version control.

DVC

Use global dvc for casual inspection. Treat DVC as project-local policy when the repository contains .dvc files, dvc.yaml, dvc.lock, documented dvc pull, dvc status, or dvc repro workflows. Do not rely on undocumented local DVC remotes or private credentials.

HPCCM

Use global hpccm for drafting recipes. Pin HPCCM in the project or CI when an HPCCM recipe generates committed Apptainer/Singularity definition files. Add a freshness check that regenerates .def files and fails on diffs.

Pre-Commit

Installing the pre-commit launcher globally is fine. Hook versions and hook configuration belong in .pre-commit-config.yaml and should align with CI.

Nextflow and Quarto

Global installs are acceptable for personal use, but repository workflows should document expected versions and CI setup when pipelines or rendered documents are part of the project contract.

CI and Documentation

For any project contract tool:

  • document the supported setup path in the README or contribution docs;
  • make CI install the tool explicitly instead of relying on runner state;
  • pin versions when generated output stability matters;
  • expose one documented local command that exercises the same checks as CI when practical;
  • state when a globally installed launcher is only a convenience, not a substitute for project configuration.

Anti-Patterns

  • requiring hidden global tools for CI-equivalent local checks;
  • letting global ruff, dvc, hpccm, or quarto versions define committed outputs without a project pin;
  • installing every small CLI into every project when it is only a personal launcher;
  • mixing multiple environment managers without a clear boundary;
  • committing generated outputs without documenting the tool and command that produced them;
  • assuming pipx, uv, or pixi global installs are visible inside CI, containers, or HPC batch jobs.

Output Expectations

When using this skill, state:

  • which tools are project contract tools and why;
  • which tools are personal convenience tools and where to install them;
  • which repository files should pin or configure project tools;
  • which CI, pre-commit, or documentation updates are needed;
  • any validation that could not be performed because a tool is unavailable.

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.