Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

carbon

/carbon

Mierzy zużycie energii, emisje CO2e i zużycie tokenów przy pracy na komputerze, z oszacowaniem wpływu wnioskowania po stronie dostawcy.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format20 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Mierzy zużycie energii, emisje CO2e i zużycie tokenów przy pracy na komputerze, z oszacowaniem wpływu wnioskowania po stronie dostawcy.

Oryginalny opis (EN)

Track the energy use, CO2e emissions and LLM token usage of work done on this machine with CodeCarbon, estimate the provider-side impact of the inference the session paid for with EcoLogits, and compare runs to reduce the footprint. Use when the user asks to start/stop energy tracking, measure the power or carbon cost of a run, demo or benchmark, or wants a report of compute time, energy, CPU/GPU/RAM breakdown, estimated emissions, water use, how many tokens were sent and received (context size, cache hit rate, prompt efficiency), what the API calls themselves cost the environment, or how to r

Jak działa

  1. Commands
  2. Rules for reporting
  3. Reducing the footprint
  4. Reference (open only when needed)
Sekcje z nagłówków SKILL.md, w oryginale · 85 linii, 628 słów
Podgląd SKILL.md
---
name: carbon
description: Track the energy use, CO2e emissions and LLM token usage of work done on this machine with CodeCarbon, estimate the provider-side impact of the inference the session paid for with EcoLogits, and compare runs to reduce the footprint. Use when the user asks to start/stop energy tracking, measure the power or carbon cost of a run, demo or benchmark, or wants a report of compute time, energy, CPU/GPU/RAM breakdown, estimated emissions, water use, how many tokens were sent and received (context size, cache hit rate, prompt efficiency), what the API calls themselves cost the environment, or how to reduce it. Triggers include "carbon_start", "carbon_end", "carbon_report", "carbon compare", "track energy", "how much power did that use", "emissions of this run", "how many tokens did that use", "is my context clean", "ecologits", "footprint of my Claude usage", "reduce my footprint".
---

# carbon

Two scopes, measured and reported separately, never summed:

```
              AGENT SESSION
                    |
        .-----------+-----------.
        |                       |
   THIS MACHINE              PROVIDER
   CodeCarbon                EcoLogits
   MEASURED                  ESTIMATED
   whole-machine draw        inference for this
   while the run was live    session's output tokens
```

## Commands

```sh
{{CARBON_CMD}} start  [label]        # begin a new run; returns in a few seconds
{{CARBON_CMD}} end    [run]          # stop, then print the report
{{CARBON_CMD}} report [run]          # report for a past or live run
{{CARBON_CMD}} compare A B           # B against A, with deltas
{{CARBON_CMD}} compare --baseline IDLE TASK   # TASK minus idle run, scaled
{{CARBON_CMD}} list [--session] [--label L] [-n N]   # history, newest first
{{CARBON_CMD}} export [run] [--format csv|sql] [-o FILE]   # CodeCarbon CSV, or the database as SQL
{{CARBON_CMD}} delete <run>          # delete one stopped run
{{CARBON_CMD}} doctor                # check the installation
```

`start` defaults to the label `default`. Every `start` is a new run with its
own id; earlier runs with the same label are kept. A `[run]` is a label (its
newest run) or `@<id>` (one exact run, as shown by `list`). Without one, `end`
and `report` use **this session's** run; if this session started none they
fail rather than touch another session's run. A run stops by itself when this
agent session exits.

**History only on request.** `end` reports this session's run and nothing
else. Run `list` only when the user asks about past or other runs, then
`report @<id>` for one of them.

**Never run the `codecarbon` CLI directly**, and never `pip install` anything:
these commands are the whole interface. If one fails, show the error and
suggest `{{CARBON_CMD}} doctor`.

## Rules for reporting

- **Relay verbatim.** Show the output of `end`, `report`, `compare` and `list` in a
  code block and stop. Do not summarise, reformat, recompute or explain causes.
- **Never sum the scopes.** CodeCarbon (this machine) and EcoLogits (provider)
  are different scopes and methods; never present a combined total.
- **Never divide tokens into the energy or emissions figures.** A "Wh per 1k
  tokens" from them is meaningless.
- **Whole machine.** CodeCarbon measures everything running, not one program.
  For an attributable figure, use an idle baseline: `start idle`, wait about a
  minute touching nothing, `end idle`, then `compare --baseline idle <task>`.
- **Measured versus estimated CPU.** `start` prints `CPU: <method> (measured)`
  or `- ESTIMATE, not measured`. Say so when the CPU figure is an estimate. If
  it prints sudo commands to enable RAPL, show them to the user; **never run
  sudo yourself**.

## Reducing the footprint

When asked how to lower it, offer these as experiments, not causes: change one
thing, run the same task again under a new label, and let
`{{CARBON_CMD}} compare` judge.

| Signal in the report | Try |
|---|---|
| Low `Cache hit %` | keep the start of the prompt stable; avoid editing early context mid-session |
| Rising `Average context` | clear or compact between tasks; read narrower file ranges; fewer, smaller tool outputs |
| Large model in `By model` for routine work | a smaller model for searches and mechanical edits |
| Many subagent calls | do small tasks inline |
| High machine energy above idle | check for local jobs (tests, builds, indexing) left running |

Cache and context changes move the Tokens block much more than the EcoLogits
block, which prices output tokens only.

## Reference (open only when needed)

- `reference/methodology.md` - how the EcoLogits estimate works and how to read the report honestly; open when quoting provider figures or explaining a caveat.
- `reference/tokens.md` - token accounting and session identification; open when tokens are missing or look wrong.
- `reference/platforms.md` - per-OS support, grid detection, run lifecycle, the data model (what is stored where), environment variables; open for setup, troubleshooting or querying the database.
Pliki w paczce (4)
  • SKILL.md 5 KB
  • reference/methodology.md 8 KB
  • reference/platforms.md 5 KB
  • reference/tokens.md 3 KB

Wersje

W bazie nie ma innych skilli o nazwie carbon.

Migawka bazy z 13.11.2026 · wersja paczki 948e75155a21 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100carbon-water-footprint
    Szacuje ślad węglowy, zużycie energii i wody sesji AI i pokazuje wskaźnik zużycia w trakcie pracy.
  • 90rseng-green-computing
    Mierzy i ogranicza ślad środowiskowy obliczeń badawczych: zużycie energii i emisje w CodeCarbon, wydajny kod, dobór sprzętu i planowanie uwzględniające emisje.
  • 91carbon-footprint-tracking
    Mierzy, śledzi i pomaga ograniczać emisje węgla w łańcuchu dostaw: rachunkowość emisji GHG, zakresy 1, 2 i 3, raportowanie i bazowy poziom emisji.
  • 90google-cloud-waf-sustainability
    Przygotowuje rekomendacje zrównoważonego rozwoju, redukcji śladu węglowego i efektywności energetycznej według filaru Sustainability frameworku WAF: niskoemisyjne regiony, ograniczanie marnowania zasobów i energii AI/ML.
  • 90carbon-footprint-calculator
    Liczy emisje gazów cieplarnianych organizacji w zakresach 1, 2 i 3 wg GHG Protocol i przygotowuje dashboard oraz skoroszyt do audytu.
  • 85azure-carbon-optimization
    Pomaga eksportować dane o emisjach z Azure Carbon Optimization przez REST i Python, ustawiać RBAC i stosować zalecenia Azure Advisor.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.