esphome-display

esphome-display is a skill for Claude Code from narrowstacks/claude-homeassistant-plugins. It costs 51 tokens per session (3,743 once invoked), scanned A, original, MIT.

Code guidance for drawing on ESPHome-connected screens such as OLED, e-paper, and TFT displays. It covers display update code, including shapes, text, sensor readings, and multiple pages.

In plain words
What is it for?
Writing screen layouts, drawing shapes, showing sensor values, formatting text, creating display pages, and troubleshooting display output.
Why use it?
It helps avoid guessing how screen coordinates and drawing commands work when building or fixing a device display.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the esphome-display plugin — 1 skill shipped together

Good fit Writing screen layouts, drawing shapes, showing sensor values, formatting text, creating display pages, and troubleshooting display output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/narrowstacks/claude-homeassistant-plugins/esphome-display
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add narrowstacks/claude-homeassistant-plugins --skill esphome-display
Clone the repo
git clone --depth 1 https://github.com/narrowstacks/claude-homeassistant-plugins

Made for: Claude Code.

Or install esphome-display, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for esphome-display

README.md
[![agentmods](https://agentmods.dev/badge/skills/narrowstacks/claude-homeassistant-plugins/esphome-display/github.svg)](https://agentmods.dev/skills/narrowstacks/claude-homeassistant-plugins/esphome-display)
Your own site
<a href="https://agentmods.dev/skills/narrowstacks/claude-homeassistant-plugins/esphome-display"><img src="https://agentmods.dev/badge/skills/narrowstacks/claude-homeassistant-plugins/esphome-display/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for esphome-display

Your own site · 80×15
<a href="https://agentmods.dev/skills/narrowstacks/claude-homeassistant-plugins/esphome-display"><img src="https://agentmods.dev/badge/skills/narrowstacks/claude-homeassistant-plugins/esphome-display.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.03743
Opus 5.5 $0.00020 $0.01497
Sonnet 5.5 $0.00010 $0.00749
Haiku 4.5 $0.00005 $0.00374

Measured 3mo ago against content hash 74d160f93d70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

esphome-display scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

esphome-display/skills/esphome-display/SKILL.md · 532 lines

How it starts

The opening of the file, as written. The whole thing — 532 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ESPHome Display Code Generator

Generate ESPHome display lambda code for graphical displays including OLED, E-Paper, and TFT displays.

Core Concepts

Display Lambda Structure

All display code goes in a lambda block that executes on each display update:

display:
  - platform: ssd1306_i2c  # or other display type
    id: my_display
    lambda: |-
      // Your rendering code here using 'it' object
      it.print(0, 0, id(my_font), "Hello");

The it variable represents the display buffer and provides all drawing methods.

Coordinate System

  • Origin (0,0) is at top-left corner
  • X increases rightward, Y increases downward
  • Use it.get_width() and it.get_height() for display dimensions
  • Rotation can be set via rotation: 90 (0, 90, 180, or 270 degrees)

Drawing Functions

Basic Shapes

lambda: |-
  // Lines
  it.line(x1, y1, x2, y2);
  it.line(x1, y1, x2, y2, COLOR_ON);  // with color
  it.horizontal_line(x, y, width);
  it.vertical_line(x, y, height);
  
  // Rectangles
  it.rectangle(x, y, width, height);
  it.filled_rectangle(x, y, width, height);
  
  // Circles
  it.circle(center_x, center_y, radius);
  it.filled_circle(center_x, center_y, radius);
  
  // Rings and gauges
  it.filled_ring(center_x, center_y, outer_radius, inner_radius);
  it.filled_gauge(center_x, center_y, outer_radius, inner_radius, percent);
  
  // Triangles
  it.triangle(x1, y1, x2, y2, x3, y3);
  it.filled_triangle(x1, y1, x2, y2, x3, y3);
  
  // Polygons
  it.regular_polygon(x, y, radius, 6);  // hexagon
  it.filled_regular_polygon(x, y, radius, 8);  // octagon
  
  // Single pixel
  it.draw_pixel_at(x, y);
  it.fill(COLOR_ON);  // fill entire display

Colors

Monochrome displays: Use COLOR_ON (default, pixel on) and COLOR_OFF (pixel off).

Color displays: Create Color objects:

lambda: |-
  auto red = Color(255, 0, 0);
  auto green = Color(0, 255, 0);
  auto custom = Color(123, 45, 67);
  
  it.filled_circle(50, 50, 20, red);

Read the full file on GitHub · 532 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 532 lines · 51 tokens per session scan A 74d160f93d70

Subscribe to this mod's changes

esphome-display is a skill published in the GitHub repository narrowstacks/claude-homeassistant-plugins (3 stars, last pushed 1y ago), licensed MIT. It adds 51 tokens to every session and 3,743 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

esphome-display compared with skills from other repositories

esphome-display next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
esphome-displaynarrowstacks/claude-homeassistant-pluginsSkill31y agoMITA51Claude Code
gke-compute-classesgoogle/skillsSkill26ktodayApache-2.0A100Claude Code, Codex
jetson-diagnosticNVIDIA/skillsSkill4.3ktodayApache-2.0A30Claude Code, Codex
holoscan-install-wheelNVIDIA/skillsSkill4.3ktodayApache-2.0A34Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k16d agoMITA113Claude Code, Codex
hsb-flashNVIDIA/skillsSkill4.3ktodayApache-2.0B94Claude Code
jetson-validate-imageNVIDIA/skillsSkill4.3ktodayApache-2.0B50Claude Code, Codex