Agent Skills + MCP Tools · v3.0

Green Coding Skills

Audit software projects for environmental sustainability, accessibility, and quality.
SCI carbon measurement, W3C WSG compliance, page emissions, mobile energy profiling.

8 Commands

Each command is a standalone Agent Skill that guides your AI agent through a structured workflow

/gc-setup

Full Sustainability Audit

9-phase workflow: explore codebase, measure SCI, check WSG compliance, audit accessibility, optimize performance, establish baselines.

/gc-dev

Daily Dev Companion

Green check before commit, feature planning with sustainability in mind, PR review for energy-wasteful patterns.

/gc-measure-sci

Measure SCI

Compute Software Carbon Intensity for a specific operation. Supports JS/TS, PHP, Python, Go, and cloud workloads.

/gc-estimate-emissions

Page Emissions

Estimate CO2 per page view using the Sustainable Web Design v4 model. Single page or full sitemap analysis.

/gc-check-sustainability

Quick Check

Fast sustainability review: WSG top guidelines, green hosting verification, Creedengo code patterns.

/gc-mobile-ios

iOS Energy Audit

7-phase iOS audit: energy profiling, Creedengo iOS rules, network efficiency, SCI with iPhone defaults.

/gc-mobile-android

Android Energy Audit

7-phase Android audit: battery optimization, Doze/WorkManager, Creedengo Android rules, Power Profiler.

/gc-verify

Adversarial Verification

Chain-of-Verification (CoVe) review. Runs automatically after every skill. Challenges assumptions, detects greenwashing.

9-Phase Audit Workflow

What /gc-setup covers when activated on your project

1

Explore

Understand stack, architecture, dependencies, hosting

2

Energy & Carbon

SCI formula: ((E × I) + M) / R per operation

3

WSG Compliance

80 W3C Web Sustainability Guidelines

4

Accessibility

Lighthouse CI with WCAG 2.1 AA thresholds

5

Performance

Bundle size, lazy loading, caching, fonts, images

6

Testing

Test infrastructure, coverage, CI energy tracking

7

Prioritize

Rank actions by impact × feasibility (P0–P3)

8

Baselines

Measurable targets for every dimension

9

CLAUDE.md

Encode sustainability into the dev workflow

Standards & Tools

Science-based methodology with cited sources for every measurement

8 MCP Tools

Optional real-time calculations via Model Context Protocol. All skills include manual fallback.

sci_calculate

Compute SCI carbon intensity per functional unit

grid_carbon_intensity

Look up grid carbon intensity by country

swd_estimate

Estimate page-level CO2 via SWD v4 model

swd_batch

Estimate emissions for multiple pages at once

check_green_hosting

Check if a domain uses green hosting

wsg_compliance_score

Score a WSG compliance JSON file

creedengo_check

Check source files against green code rules

sci_compare

Compare two SCI measurements

Mobile Energy Auditing

Dedicated skills for native iOS and Android apps

iOS — /gc-mobile-ios

Energy Profiling

Xcode Energy Gauge, Instruments Energy Log, MetricKit production metrics

Code Patterns

Creedengo iOS rules: location precision, sensor polling, idle timer, Bluetooth scanning, background fetch

SCI Defaults

iPhone: 3W device power, 70,000g embodied carbon, 3-year lifecycle

Android — /gc-mobile-android

Energy Profiling

Power Profiler, Battery Historian, Android Vitals, Perfetto system traces

Code Patterns

Creedengo Android rules: wake locks, AlarmManager, Doze mode, fused location, sensor polling

SCI Defaults

Android: 2.5W device power, 50,000–80,000g embodied carbon, 3-year lifecycle

Adversarial Verification

Every report is automatically verified using Chain-of-Verification (CoVe)

1

Extract Claims

Every number, source, assumption, and recommendation becomes an atomic assertion

2

Adversarial Questions

Generate hostile counter-questions designed to find the failure mode of each claim

3

Independent Verify

Answer each question in isolation — no bias from the original report

4

Revise

Classify findings, propose corrections, assign confidence level

8 Verification Dimensions

Sources Assumptions Precision Coverage Consistency Greenwashing Reproducibility Feasibility

10 Guiding Principles

1 Measure before optimizing
2 Sustainability is not optional
3 Client over server when possible
4 Less is more
5 Transparency
6 Accessibility is sustainability
7 Automate the checks
8 Track over time
9 Design frugally
10 Science-based approach

Installation

Step 1 — Install Skills

git clone https://github.com/fullo/sustainable-code-skill-setup.git ~/.gc-tools
cp -r ~/.gc-tools/skills/* .claude/skills/

Step 2 — Enable MCP (optional)

npm install -g sustainable-code-mcp

Or build from source:

cd ~/.gc-tools/mcp-plugin
npm install && npm run build

Compatibility

Claude Code Cursor Windsurf Cline

Works with any tool that supports the Agent Skills format.

Usage Examples

Trigger skills with slash commands or natural language

/gc-setup
/gc-dev
/gc-measure-sci my API endpoint
/gc-estimate-emissions homepage
/gc-check-sustainability
/gc-mobile-ios
/gc-mobile-android
/gc-verify
measure the carbon footprint of this project
is my site sustainable?
audit this iOS app for battery drain
how much CO2 does my homepage emit?