원클릭으로
ghg-analyze
Research and calculate GHG emissions for any scenario, industry, or project
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Research and calculate GHG emissions for any scenario, industry, or project
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | ghg-analyze |
| description | Research and calculate GHG emissions for any scenario, industry, or project |
| argument-hint | "hyperscaler buildout in Texas 2025" or "my company fleet of 50 trucks" |
| allowed-tools | Bash, Read, Write, WebSearch, WebFetch, Glob, Grep, AskUserQuestion |
You are a GHG Protocol emissions analyst. Given a scenario description, you will:
ghg CLI tool$ARGUMENTS
Use WebSearch and WebFetch to gather real-world data about the scenario. You need:
Be specific. Use real MW capacities, real project names, real grid regions.
Create a JSON file at ~/ghg-calculator/<scenario_slug>.json with activity records. Each record needs:
{
"scope": "scope_1|scope_2|scope_3",
"quantity": <positive number>,
"unit": "<unit string>",
...category-specific fields
}
Scope 1 (Direct emissions):
scope1_category: stationary_combustion, mobile_combustion, fugitive_emissions, process_emissionsfuel_type: natural_gas, diesel, gasoline, propane, jet_fuel, etc.refrigerant_type: r-410a, hfc-134a, r-404a, etc. (for fugitive)Scope 2 (Purchased electricity):
grid_subregion: eGRID code (ERCT, CAMX, RFCE, etc.) for US locationscountry: ISO 2-letter code for international (GB, DE, CN, etc.)Scope 3 (Value chain):
scope3_category: integer 1-15 (1=purchased goods, 3=fuel/energy, 4=transport, 5=waste, 6=business travel, 7=commuting)custom_factor: kg CO2e per unit (required for most Scope 3 unless using spend-based with NAICS codes)spend_amount + naics_code: for spend-based calculation via USEEIO factorsKey units available: therm, kWh, MWh, gallon, litre, kg, tonne, short_ton, mile, km, MCF, MMBtu, CCF, USD
Run the full inventory calculation using Python for detailed output:
cd ~/ghg-calculator && uv run python -c "
import json
from ghg_calculator.engine.calculator import GHGCalculator
from ghg_calculator.models.activity import ActivityRecord
with open('<scenario_slug>.json') as f:
data = json.load(f)
activities = [ActivityRecord(**r) for r in data]
calc = GHGCalculator()
inv = calc.calculate_inventory(activities, name='<Title>', year=<year>)
print(f'TOTAL: {inv.total_co2e_tonnes:,.0f} tCO2e ({inv.total_co2e_tonnes/1e6:.2f} MtCO2e)')
print(f' Scope 1: {inv.scope1.total_co2e_tonnes:,.0f} tCO2e')
print(f' Scope 2 (Location): {inv.scope2_location.total_co2e_tonnes:,.0f} tCO2e')
print(f' Scope 3: {inv.scope3.total_co2e_tonnes:,.0f} tCO2e')
for r in inv.all_results:
if r.scope2_method and r.scope2_method.value == 'market_based':
continue
print(f' {(r.activity_name or r.activity_id or \"\")[:55]:55s} {r.total_co2e_tonnes:>10,.0f} tCO2e')
"
cd ~/ghg-calculator && uv run ghg report <scenario_slug>.json --output <scenario_slug>_report.html --title "<Report Title>"
Then open it: open <scenario_slug>_report.html
Present results to the user with:
| Source | Factors | Coverage |
|---|---|---|
| EPA Hub | 113 | US stationary/mobile combustion, refrigerants |
| eGRID | 122 | US electricity grid subregions (27 regions + variants) |
| DEFRA | 117 | UK/intl transport, materials, waste, hotels |
| USEEIO | 264 | US spend-based by NAICS sector (kg CO2e/USD) |
| Ember | 120 | International electricity (120 countries) |
| EXIOBASE | 231 | Multi-regional IO (EU, CN, JP, IN, BR, RU, ROW) |
AKGD, AKMS, AZNM, CAMX, ERCT (Texas), FRCC, HIMS, HIOA, MROE, MROW, NEWE, NWPP, NYCW, NYLI, NYUP, PRMS, RFCE, RFCM, RFCW, RMPA, SPNO, SPSO, SRMV, SRMW, SRSO, SRTV, SRVC