esp-teach

esp-teach is a command for coding agents from mathisk2095/jko-claude-plugins. It costs 19 tokens per session (1,524 once invoked), scanned A, original, MIT.

A one-time setup command for an ESP32 firmware project that discovers the board, build system, hardware, and connected components, then saves that context in a CLAUDE.md file. ESP32 is a family of microcontrollers used in connected devices.

In plain words
What is it for?
Use it when starting work on an ESP32 project to inspect its files, identify hardware and software dependencies, look up datasheets, ask only unresolved questions, and create persistent project notes.
Why use it?
It prevents future coding sessions from repeatedly guessing the target chip, wiring, libraries, and build settings. It also records information that would otherwise need to be rediscovered.

Command

Part of the esp32-cpp plugin — 1 skill, 4 commands shipped together

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.

agentmods
npx agentmods add commands/mathisk2095/jko-claude-plugins/esp-teach
Clone the repo
git clone --depth 1 https://github.com/mathisk2095/jko-claude-plugins

Or install esp32-cpp, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

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 esp-teach

README.md
[![agentmods](https://agentmods.dev/badge/commands/mathisk2095/jko-claude-plugins/esp-teach.svg)](https://agentmods.dev/commands/mathisk2095/jko-claude-plugins/esp-teach)
Your own site
<a href="https://agentmods.dev/commands/mathisk2095/jko-claude-plugins/esp-teach"><img src="https://agentmods.dev/badge/commands/mathisk2095/jko-claude-plugins/esp-teach.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00019 $0.01524
Opus 5 $0.00010 $0.00762
Sonnet 5 $0.00004 $0.00305
Haiku 4.5 $0.00002 $0.00152

Measured 4d ago against content hash a26381301c3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

esp-teach 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 4d 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.

plugins/esp32-cpp/commands/esp-teach.md · 148 lines

How it starts

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

ESP32 Project Teach

One-time project onboarding that establishes persistent hardware context for all future sessions.

First: Use the esp32-expert skill for domain knowledge. → Consult peripherals reference for datasheet lookup protocol and libraries reference for component identification.

Explore the codebase, discover hardware, search online for datasheets, ask only what you couldn't infer, and persist everything to CLAUDE.md. Future sessions start with full hardware knowledge -- no re-discovery needed.

Step 1: Explore the Project

Before asking any questions, scan the project thoroughly to discover what you can:

Build System & Target

  • Check for platformio.ini vs CMakeLists.txt with IDF includes
  • Read sdkconfig.defaults or sdkconfig for target chip, flash size, PSRAM, CPU freq
  • Read platformio.ini for board, framework, build flags
  • Check idf_component.yml / managed_components/ for dependencies
  • Identify: ESP-IDF version, C++ standard, LVGL version (if present)

Hardware Discovery

  • Read CLAUDE.md, README.md, any docs/ files for hardware description
  • Search for pin definitions: GPIO_NUM_, #define.*PIN, board config files
  • Search for I2C addresses: 0x patterns in driver init code
  • Search for SPI device configs: spi_device_interface_config_t
  • Search for display driver: esp_lcd, TFT_eSPI, LovyanGFX, LVGL display init
  • Search for touch driver: esp_lcd_touch, touch I2C addresses
  • Search for audio: i2s_, es8311, es7210, codec references
  • Search for sensors: BME280, BMP280, DHT, IMU, ADC usage patterns
  • Identify BSP component (if any) and what hardware it abstracts

Software Patterns

  • How is LVGL integrated (if present)? Task core, mutex pattern, flush callback
  • FreeRTOS task structure: what tasks exist, priorities, core pinning
  • Communication: WiFi, BLE, MQTT, HTTP, WebSocket, ESP-NOW
  • Storage: NVS, SPIFFS, LittleFS, SD card
  • Error handling pattern: ESP_ERROR_CHECK vs manual checks
  • Logging: tag conventions, log levels

Read the full file on GitHub · 148 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. 4d ago First seen · 148 lines · 19 tokens per session scan A a26381301c3f

Subscribe to this mod's changes

esp-teach is a command published in the GitHub repository mathisk2095/jko-claude-plugins (3 stars, last pushed 6d ago), licensed MIT. It adds 19 tokens to every session and 1,524 once invoked, about $0.0001 per session on Opus 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.