agentleFS
fdiblenfdiblen/rseng-agent-skills/skills/rseng-green-computing/SKILL.md

rseng-green-computing

Skill20 starsChanged 4 months agoMITView on GitHub

Covers the environmental footprint of research computing: measuring and reporting energy use and carbon emissions of computations (CodeCarbon), reducing them through efficient code, right-sized hardware and carbon-aware scheduling (CATS), the GREENER principles and the Software Carbon Intensity metric. Use when the user asks about the carbon or energy cost of their computations, wants to make workloads greener, mentions sustainability of computing, CodeCarbon, CATS or the Software Carbon Intensity metric. Use PROACTIVELY when planning large training runs, simulations or parameter sweeps - footprint measurement is worthless retrospectively. (Keeping the software project itself alive is rseng-maintenance-sustainability; making code faster is rseng-performance-profiling.)

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Never guess at footprint - estimate it:

    line 33
  2. Distinctive:

    When proposing CI pipelines, keep them lean: cache dependencies, skip redundant matrix entries, avoid scheduled jobs nobody reads …

    line 83
  3. Distinctive:

    Check whether any of these applies before moving on:

    line 108

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

Environmentally sustainable research computing

Research computing has a real carbon footprint - large simulations, ML training runs and always-on services consume energy at a scale funders and institutions increasingly ask about. The GREENER principles for computational science frame the practice: Governance, Responsibility, Estimation, Energy and embodied impacts, New collaborations, Education and Research. For an agent the working core is: measure first, reduce second, schedule smart, report honestly.

Measure before optimizing

Never guess at footprint - estimate it:

  • CodeCarbon instruments Python code with a few lines (or a CLI wrapper) and estimates energy plus location-adjusted CO2e; add it to representative runs, not every run.
  • For non-Python or cluster workloads, estimate from job accounting (CPU/GPU hours x hardware power draw x facility PUE x grid carbon intensity) and state the assumptions.
  • Record estimates alongside results the same way runtimes are recorded, so the cost of a paper's computations is reportable.

The Software Carbon Intensity (SCI) specification (an ISO standard) gives a defensible formula when a formal number is needed: operational plus embodied emissions per functional unit.

Reduce

Order interventions by leverage, and quantify the win when possible:

  1. Compute less: cache intermediate results, avoid re-running unchanged pipeline stages (rseng-workflows), kill zombie jobs, right-size parameter sweeps before launching them.
  2. Compute efficiently: profile first (rseng-performance-profiling) - a 5x speedup is usually a ~5x energy cut; use appropriate precision; prefer vectorized/compiled paths in hot loops (rseng-language-guides).
  3. Match hardware to the job: GPUs are more energy-efficient than CPUs for the workloads that suit them (rseng-gpu-computing) and wasteful for the ones that do not; do not reserve more nodes, memory or walltime than the job uses.
  4. Store less: data has a footprint too - prune intermediates, compress archives, apply retention rules (rseng-data-management).

Schedule smart

Grid carbon intensity varies by hours and by region. Carbon-aware scheduling shifts flexible batch work to cleaner windows:

  • CATS (Climate-Aware Task Scheduler) picks the lowest-carbon start time for a job of a given duration on UK-grid data; the same delay-tolerant principle applies anywhere batch work is flexible.
  • Cloud users can choose lower-carbon regions for flexible workloads; cluster users can prefer off-peak windows where the operator exposes them.

Report and advocate

  • Include a brief compute-footprint statement in papers and READMEs for compute-heavy projects (estimated kWh/CO2e and the estimation method) - normalize the practice.
  • When proposing CI pipelines, keep them lean: cache dependencies, skip redundant matrix entries, avoid scheduled jobs nobody reads (rseng-ci-cd).
  • Educate while doing: a measured number ("this sweep emitted an estimated 12 kg CO2e") lands better than generic advice.

Working with this skill

This skill is source-independent: its authority is the GREENER principles, the SCI specification and the tool documentation linked below.

Learn more (verified):

<!-- related-skills:begin -->

Related skills

Check whether any of these applies before moving on:

  • rseng-ci-cd - lean pipelines waste less compute
  • rseng-data-management - storage retention has a footprint
  • rseng-gpu-computing - matching hardware to workload efficiency
  • rseng-hpc-computing - right-sized resource requests save energy
  • rseng-performance-profiling - speedups cut energy roughly proportionally
  • rseng-workflows - caching avoids recomputing pipeline stages
<!-- related-skills:end -->

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.