Skip to main content
skill CX Codex

energykit — Claude Code skill: what it does, how to install

Provides guidance for Apple EnergyKit to query grid electricity forecasts and report load events for smart home devices, EV chargers, and HVAC systems.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill energykit -a claude-code
Open on GitHub

What energykit does

The skill guides agents through Apple EnergyKit integration in Swift. It covers querying the ElectricityGuidance.Service forecast stream. Rating values range from 0.0 to 1.0. Lower values indicate cleaner and cheaper power. It shows how to schedule device runtime using .shift or .reduce actions. It also outlines load telemetry via ElectricVehicleLoadEvent and ElectricHVACLoadEvent.

Apps require the com.apple.developer.energykit entitlement. Without it, calls fail with EnergyKitError.permissionDenied. Apps targeting the iOS 27 Home app experience also need com.apple.developer.energykit.loadevents-experience.

Apple limits documented electricity guidance to the contiguous United States. Your code must catch EnergyKitError.unsupportedRegion. Core framework APIs start at iOS 26.0, while cleanliness breakdowns require iOS 26.1+.

What it helps with

  • query electricity cleanliness and cost forecasts using ElectricityGuidance.Service
  • schedule EV charging windows based on .shift guidance ratings
  • report HVAC runtime telemetry with ElectricHVACLoadEvent
  • handle EnergyKitError.unsupportedRegion outside the contiguous United States

Example prompts for the agent

  • Show me how to observe the ElectricityGuidance forecast stream in Swift.
  • Create a SwiftUI view displaying ElectricityGuidance.Value intervals and ratings.
  • Write a function to submit an ElectricVehicleLoadEvent with required EnergyKit entitlements.

How to install energykit

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill energykit -a claude-code

2Manually: put the files in place

~/.claude/skills/energykit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/energykit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about energykit

How do I install energykit in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill energykit -a claude-code. The skill file installs to ~/.claude/skills/energykit/SKILL.md.

What does the energykit skill do?

It guides agents on implementing Apple EnergyKit in Swift projects. It details forecast streaming, rating thresholds, load event telemetry, and required app entitlements.

What entitlements are needed to use EnergyKit?

Your app target must include com.apple.developer.energykit. If you integrate load events with the Apple Home app on iOS 27+, you also need com.apple.developer.energykit.loadevents-experience.

Similar skills

Everything for Mobile →

From the same set86

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor