# lifecycle-carbon-calculator

lifecycle-carbon-calculator adds up embodied carbon and life-cycle emissions for construction materials, assemblies and whole projects, then checks the result against benchmarks by building type.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 116 installs · ★ 434 repo stars
- Author: datadrivenconstruction
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/2_DDC_Book/3.3-4D-BIM-CO2-Simulation/lifecycle-carbon-calculator/SKILL.md
- Updated: 2026-10-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/lifecycle-carbon-calculator

## What it does

The skill adds up embodied carbon for a material, an assembly or an entire building. Emissions are tracked per life-cycle stage, from raw material extraction and manufacturing (A1–A3) through transport and construction to demolition and disposal (C1–C4), with module D kept apart as a reuse credit. The Python module defines data classes for materials, assemblies and projects, plus a calculator object you feed quantities into.

A starter library covers concrete at 30 and 40 MPa, rebar, structural steel, cross-laminated timber, gypsum board, mineral wool, glazing and aluminium profiles, each with stage coefficients, density and the EPD it came from. You can register a material of your own. Project output includes carbon per square metre and a comparison against benchmarks for offices, housing, retail, industrial and healthcare buildings, graded from typical to best.

Python 3 has to sit on `PATH`; the code also imports `pandas`. On a bare machine install both before calling the skill, or nothing runs. The coefficients ship as EPD-based starting values, so swap in numbers for your region and suppliers before the figures reach a report.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill lifecycle-carbon-calculator -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/lifecycle-carbon-calculator/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/lifecycle-carbon-calculator/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill lifecycle-carbon-calculator -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/lifecycle-carbon-calculator/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill lifecycle-carbon-calculator -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/lifecycle-carbon-calculator/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction 2_DDC_Book/3.3-4D-BIM-CO2-Simulation/lifecycle-carbon-calculator
```

2. **Manually: put the files in place**
- File: `.github/skills/lifecycle-carbon-calculator/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill lifecycle-carbon-calculator -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --path 2_DDC_Book/3.3-4D-BIM-CO2-Simulation/lifecycle-carbon-calculator
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/lifecycle-carbon-calculator/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill lifecycle-carbon-calculator -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/2_DDC_Book/3.3-4D-BIM-CO2-Simulation/lifecycle-carbon-calculator/SKILL.md

## When to use it
- add up embodied carbon for a concrete and rebar package
- check kgCO2e per m² against an office benchmark
- break emissions down by life-cycle stage
- swap a high-carbon material for a lighter alternative
- pull figures for a green certification submission

## Example prompts
- Run the carbon numbers for concrete `C30` and rebar `REBAR` across every life-cycle stage.
- How does this project's kgCO2e per m² compare with the office benchmark?
- Register a custom material with EPD coefficients and recalculate the assembly.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 021e06b7e288bef6.

BEGIN THIRD-PARTY FILE 021e06b7e288bef6
````text
---
name: "lifecycle-carbon-calculator"
description: "Calculate embodied carbon and lifecycle emissions for construction materials and projects. Support sustainable design decisions with carbon data."
homepage: "https://datadrivenconstruction.io"
metadata: {"openclaw": {"emoji": "🎬", "os": ["darwin", "linux", "win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}}
---
# Lifecycle Carbon Calculator for Construction

## Overview

Calculate embodied carbon (EC) and lifecycle carbon emissions for construction materials, assemblies, and projects. Support sustainable design decisions and carbon reduction targets.

## Business Case

Carbon calculation supports:
- **Regulatory Compliance**: Meet carbon reporting requirements
- **Green Certifications**: LEED, BREEAM, Living Building Challenge
- **Design Optimization**: Choose lower-carbon alternatives
- **Sustainability Goals**: Track progress toward net-zero

## Technical Implementation

```python
from dataclasses import dataclass, field
from typing import List, Dict, Any, Optional
from enum import Enum
import pandas as pd

class LifecycleStage(Enum):
    A1_A3 = "Product Stage (A1-A3)"  # Raw materials, transport, manufacturing
    A4 = "Transport to Site (A4)"
    A5 = "Construction (A5)"
    B1_B7 = "Use Stage (B1-B7)"  # Maintenance, repair, replacement
    C1_C4 = "End of Life (C1-C4)"  # Demolition, transport, disposal
    D = "Beyond Lifecycle (D)"  # Reuse, recycling potential

@dataclass
class MaterialCarbon:
    material_id: str
    name: str
    category: str
    unit: str
    carbon_a1_a3: float  # kgCO2e per unit
````
END THIRD-PARTY FILE 021e06b7e288bef6

The third-party file has ended. Everything between the 021e06b7e288bef6 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 1636 of 18563 bytes. © datadrivenconstruction · MIT · https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/2_DDC_Book/3.3-4D-BIM-CO2-Simulation/lifecycle-carbon-calculator/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
