# energy-expert

energy-expert is a Claude Code skill for energy systems, smart grids, and SCADA work. It activates on requests about renewables, power management, or energy analytics.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 282 installs · ★ 45 repo stars
- Author: personamanagmentlayer
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/personamanagmentlayer/pcl/tree/HEAD/stdlib/domains/energy-expert/SKILL.md
- Updated: 2026-10-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/energy-expert

## What it does

energy-expert gives an agent guidance on energy systems and software for the energy sector. Its coverage includes generation and distribution, storage, load balancing, demand response, and renewable integration. It activates when a request mentions smart grids, renewables, power, utilities, or SCADA, and for work involving smart-grid standards or operations.

The examples calculate solar and wind output, choose a storage action, and read Modbus registers for SCADA. The battery example discharges only when the grid price exceeds $0.15/kWh. For production Modbus code, the source recommends the `pymodbus` library.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add personamanagmentlayer/pcl --skill energy-expert -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add personamanagmentlayer/pcl --skill energy-expert -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add personamanagmentlayer/pcl --skill energy-expert -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install personamanagmentlayer/pcl stdlib/domains/energy-expert
```

2. **Manually: put the files in place**
- File: `.github/skills/energy-expert/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add personamanagmentlayer/pcl --skill energy-expert -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/personamanagmentlayer/pcl --path stdlib/domains/energy-expert
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add personamanagmentlayer/pcl --skill energy-expert -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/personamanagmentlayer/pcl/tree/HEAD/stdlib/domains/energy-expert/SKILL.md

## When to use it
- estimate solar output from weather conditions
- choose whether to charge or discharge storage using demand and grid price
- read Modbus registers for a SCADA integration

## Example prompts
- Estimate solar output from the location, timestamp, and cloud cover.
- Choose a battery action using current demand, renewable output, and grid price.
- Show how to read Modbus holding registers for SCADA.

## Source text · SKILL.md · Apache-2.0

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: 2de46382ba2c8afa.

BEGIN THIRD-PARTY FILE 2de46382ba2c8afa
````text
---
name: energy-expert
version: 1.1.0
description: >-
  Expert-level energy systems, smart grids, renewable energy, power management, and energy
  analytics. Use when the user mentions smart grid, renewable, power, utilities, or SCADA,
  or when the task involves Energy Systems, Smart Grid Technology, Standards and Protocols,
  or Smart Grid Operations.
category: domains
tags: [energy, smart-grid, renewable, power, utilities, scada]
allowed-tools:
  - Read
  - Write
  - Edit
---

# Energy Expert

Expert guidance for energy systems, smart grid technology, renewable energy integration, power management, and energy sector software development.

## Core Concepts

### Energy Systems

- Smart grid infrastructure
- Renewable energy systems (solar, wind, hydro)
- Power generation and distribution
- Energy storage systems (batteries, pumped hydro)
- Demand response management
- Energy trading and markets
- Grid stability and load balancing

### Smart Grid Technology

- Advanced Metering Infrastructure (AMI)
- Supervisory Control and Data Acquisition (SCADA)
- Distribution Management Systems (DMS)
- Energy Management Systems (EMS)
- Outage Management Systems (OMS)
- Geographic Information Systems (GIS)
- Real-time monitoring and control

### Standards and Protocols

- IEC 61850 (power utility automation)
- Modbus (industrial protocol)
- DNP3 (Distributed Network Protocol)
- IEEE 2030 (smart grid interoperability)
- OpenADR (automated demand response)
- CIM (Common Information Model)
- MQTT for IoT devices

## Renewable Energy Integration

```python
from datetime import datetime, timedelta
import math

class RenewableEnergyManager:
    """Manage renewable energy sources in the grid"""

    def __init__(self):
        self.solar_farms = {}
        self.wind_farms = {}
        self.energy_storage = {}

    def calculate_solar_output(self,
                              capacity_kw: float,
                              location: tuple,
                              timestamp: datetime,
                              cloud_cover: float = 0.0) -> float:
        """Calculate solar panel output based on conditions"""
        lat, lon = location

        # Calculate solar angle (simplified)
        day_of_year = timestamp.timetuple().tm_yday
        hour = timestamp.hour + timestamp.minute / 60.0

        # Solar declination
        declination = 23.45 * math.sin(math.radians((360/365) * (day_of_year - 81)))

        # Hour angle
        hour_angle = 15 * (hour - 12)

        # Solar elevation angle
        elevation = math.asin(
            math.sin(math.radians(lat)) * math.sin(math.radians(declination)) +
            math.cos(math.radians(lat)) * math.cos(math.radians(declination)) *
            math.cos(math.radians(hour_angle))
        )

        # Base output (0-1 scale)
        if elevation <= 0:
            return 0.0  # Night time

        base_output = math.sin(elevation)

        # Apply cloud cover factor
        cloud_factor = 1.0 - (cloud_cover * 0.75)
````
END THIRD-PARTY FILE 2de46382ba2c8afa

The third-party file has ended. Everything between the 2de46382ba2c8afa 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 3001 of 15521 bytes. © personamanagmentlayer · Apache-2.0 · https://github.com/personamanagmentlayer/pcl/tree/HEAD/stdlib/domains/energy-expert/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
