hass-eink-dashboard: Skill for Claude Code

.agents/skills/implement-widget/SKILL.md

implement-widget is a skill for Claude Code from cryptomilk/hass-eink-dashboard. It costs 48 tokens per session (5,047 once invoked), scanned A, original, Apache-2.0.

A skill for implementing a dashboard widget's SVG template and Python code that supplies its display data. SVG is a text format for describing graphics, and the skill follows the green phase of TDD by making existing tests pass.

In plain words
What is it for?
Use it to add a widget's SVG template and Python context builder after tests describe the expected behavior.
Why use it?
It gives the implementation a defined place in the project's renderer and follows the layouts, colors, helpers, and interfaces already used by other widgets. This avoids inventing a separate rendering pattern.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents); $skill-name invocation.

This is cryptomilk/hass-eink-dashboard's own configuration. It tells Claude Code how to work on hass-eink-dashboard itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hass-eink-dashboard configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cryptomilk/hass-eink-dashboard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cryptomilk/hass-eink-dashboard/main/.agents/skills/implement-widget/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cryptomilk/hass-eink-dashboard

Made for: Claude Code.

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 implement-widget

README.md
[![agentmods](https://agentmods.dev/badge/skills/cryptomilk/hass-eink-dashboard/implement-widget/github.svg)](https://agentmods.dev/skills/cryptomilk/hass-eink-dashboard/implement-widget)
Your own site
<a href="https://agentmods.dev/skills/cryptomilk/hass-eink-dashboard/implement-widget"><img src="https://agentmods.dev/badge/skills/cryptomilk/hass-eink-dashboard/implement-widget/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 implement-widget

Your own site · 80×15
<a href="https://agentmods.dev/skills/cryptomilk/hass-eink-dashboard/implement-widget"><img src="https://agentmods.dev/badge/skills/cryptomilk/hass-eink-dashboard/implement-widget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,047 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.00048 $0.05047
Opus 5.5 $0.00019 $0.02019
Sonnet 5.5 $0.00010 $0.01009
Haiku 4.5 $0.00005 $0.00505

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

Security

Grade A, and why

implement-widget 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 3d 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.

.agents/skills/implement-widget/SKILL.md · 544 lines

How it starts

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

Implement Widget Renderer: $widget-type

Implement the SVG template and Python context builder for $widget-type. The output of this work is two artifacts:

  1. custom_components/eink_dashboard/templates/$widget-type.svg.j2
  2. _build_$widget-type_context() in widgets/$widget-type.py

Before you start

  1. Read the existing tests (TestRender{WidgetName} in tests/test_render_{widget_type}.py) — these define the expected behavior.
  2. Read const.py for WidgetType, COLOR_* constants, PADDING, DEFAULT_CARD_STYLE, Widget, DisplayConfig, color_to_hex.
  3. Read svg_render.py for the Jinja2 environment, _svg_to_png(), icon filter functions (_mdi_svg_filter, _weather_svg_filter), and _SVG_RENDERERS.
  4. Read existing widget modules in widgets/ (e.g. widgets/tile.py) for the context builder pattern, and widgets/_helpers.py for shared layout helpers.
  5. Read templates/_macros.svg.j2 for the three shared macros: card_container, card_row, chip.

Current SVG infrastructure (svg_render.py)

!grep -n "^def \|^_SVG_RENDERERS\|^_jinja_env\|^_TEMPLATE_DIR\|^_FONTS_DIR\|^_mdi\|^_weather" custom_components/eink_dashboard/svg_render.py

Shared layout helpers (widgets/_helpers.py)

!grep -n "^def \|^_ACTIVE" custom_components/eink_dashboard/widgets/_helpers.py

Existing widget context builders

!grep -rn "^def _build_" custom_components/eink_dashboard/widgets/*.py

SVG macro signatures

!grep -n "macro card_container\|macro card_row\|macro chip\|macro icon_circle" custom_components/eink_dashboard/templates/_macros.svg.j2

WidgetMetrics and _compute_metrics (in render.py)

!grep -n "^class WidgetMetrics" -A 10 custom_components/eink_dashboard/render.py

!grep -n "^def _compute_metrics" -A 12 custom_components/eink_dashboard/render.py

Icon name resolver (in render.py)

!grep -n "^def _device_class_icon" -A 6 custom_components/eink_dashboard/render.py

Current SVG renderer registry

Read the full file on GitHub · 544 lines

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. 3d ago First seen · 544 lines · 48 tokens per session scan A ccafecfe917f

Subscribe to this mod's changes

implement-widget is a skill published in the GitHub repository cryptomilk/hass-eink-dashboard (124 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 5,047 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-10-26.

Related

Other skills, from other repositories

HA Integration Dev

Home Assistant custom integration development in Python. Covers customcomponents, DataUpdateCoordinator, configflow, OAuth2, conversation agent, HACS publishing, device registry, entity platforms, services, repair issues, diagnostics, Bluetooth integrations, and multi-coordinator patterns.

tonylofgren/aurora-smart-home · 55 tokens

effect-v4

Write, review, or upgrade Effect v4 code in the Composio CLI, cli-keyring, and json-schema-to-effect-schema packages, all pinned exactly to [email protected] — Context.Service and explicit layers, Schema.TaggedError and typed recovery, the effect/cli command surface, and the vendored effect source oracle. Use when writing…

ComposioHQ/composio · 157 tokens

langgraph-docs

Fetches and references LangGraph Python documentation to build stateful agents, create multi-agent workflows, and implement human-in-the-loop patterns. Use when the user asks about LangGraph, graph agents, state machines, agent orchestration, LangGraph API, or needs LangGraph implementation guidance.

langchain-ai/deepagents · 62 tokens

stripe-projects

Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.

e2b-dev/E2B · 51 tokens

migrating-mastra-to-pydantic-ai

Migrate TypeScript Mastra applications to Python with Pydantic AI and, only when needed, Pydantic AI Harness. Use when source code imports @mastra/ or relies on Mastra agents, tools, workflows, memory, processors, streaming, approvals, skills, or subagents.

pydantic/pydantic-ai · 73 tokens

migrating-vercel-ai-sdk-and-eve-to-pydantic-ai

Migrate TypeScript Vercel AI SDK or Eve applications to Python with Pydantic AI and, only when needed, Pydantic AI Harness. Use when source code imports ai, @ai-sdk/, or eve, or relies on generateText, streamText, ToolLoopAgent, useChat, Eve agents, tools, skills, subagents, approvals, sessions, channels, schedules…

pydantic/pydantic-ai · 107 tokens