industryby datadrivenconstruction
Carbon Calculator
datadrivenconstruction/carbon-calculator
Calculate embodied carbon in construction materials. Track CO2 emissions, compare alternatives, and generate sustainability reports.
What it changes
Passed 21 of 22 test cases with the skill, and 10 of 22 without it.
Without skill43%
With skill96%
Checks it passed that the model alone missed
- The softwood timber emissions equal 6,200 kgCO2e.
- The hardwood timber emissions equal 4,600 kgCO2e.
- The total calculated emissions equal 4,000 kgCO2e.
and 24 more in the full report
12 fixed10 passed either way1 still failing0 broke
- Pass-rate lift
- +52 pp
- Tokens
- +152%
- Agent turns
- 0%
- Response time
- -41%
Model gemini-3.6-flashMeasured 8/23/2026v122 of 23 cases passed with skill · 22 comparable
See it in action
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
PromptCalculate the embodied carbon footprint for 2,500 kg of copper plumbing pipe using code 'copper_pipe'.
What was checked, without and with the skill| Checked | Without skill | With skill |
|---|
| The calculation applies an emission factor of 2.71 kgCO2e/kg for copper pipe. | Missed | Passed |
|---|
| The calculated total embodied carbon equals 6,775 kgCO2e. | Missed | Passed |
|---|
What's inside
The instructions your model reads when the skill loads.
SKILL.md412 linessingle file
Carbon Calculator
Business Case
Problem Statement
Sustainability requirements demand:
- Tracking embodied carbon
- Comparing material options
- Meeting carbon targets
- Reporting emissions
Solution
Calculate and track embodied carbon for construction materials using standard emission factors.
Technical Implementation
import pandas as pd
from typing import Dict, Any, List, Optional
from dataclasses import dataclass
from enum import Enum
class MaterialCategory(Enum):
CONCRETE = "concrete"
STEEL = "steel"
ALUMINUM = "aluminum"
TIMBER = "timber"
BRICK = "brick"
GLASS = "glass"
INSULATION = "insulation"
PLASTIC = "plastic"
COPPER = "copper"
OTHER = "other"
@dataclass
class CarbonFactor:
material: str
category: MaterialCategory
Track record
Benchmark
21 / 22
test cases passed, vs 10 / 22 without
Adoption
- Users
- 0
- Times used
- 0
Safety and source details
SkillSafety
✓ 3 of 3 passed✓Code scan15 of 15 checks clean
0 critical · 0 warning · 0 info — scanner v4 — 8/3/2026
View 15 scanner checks
live_secretremote_code_executionreverse_shelldata_exfiltrationssrf_metadataagent_snoopinganti_refusaldestructive_commandsobfuscated_unicodeunicode_homoglyphopaque_blobsuspicious_urltool_overreachtrigger_abuseprompt_injection_phrasing
✓IntentSafe
LLM judge · does the skill do what it claims
✓ContentClean
LLM judge · policy & harmful-content review
Source
Importeddatadrivenconstruction / ddc_skills_for_ai_agents_in_construction
1_DDC_Toolkit/Sustainability/carbon-calculator/SKILL.md
View on GitHub ↗License MITImported 8/3/2026Version v1