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.
npx agentmods add commands/mathisk2095/jko-claude-plugins/esp-hardengit clone --depth 1 https://github.com/mathisk2095/jko-claude-pluginsWrote 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.
[](https://agentmods.dev/commands/mathisk2095/jko-claude-plugins/esp-harden)<a href="https://agentmods.dev/commands/mathisk2095/jko-claude-plugins/esp-harden"><img src="https://agentmods.dev/badge/commands/mathisk2095/jko-claude-plugins/esp-harden.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.00840 |
| Opus 5 | $0.00009 | $0.00420 |
| Sonnet 5 | $0.00003 | $0.00168 |
| Haiku 4.5 | $0.00002 | $0.00084 |
Grade A, and why
esp-harden 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ESP32 Firmware Hardening & Inspection
First: Use the esp32-expert skill for all guidelines and anti-patterns. Do NOT proceed without consulting the anti-patterns catalog and concurrency reference.
Think like an embedded reliability engineer conducting a field-readiness audit. Every finding must name the concrete failure mode it prevents.
Process
-
Detect framework -- check for
platformio.inivsCMakeLists.txtwith IDF includes -
Detect target variant -- check sdkconfig or platformio.ini for target chip
-
Anti-Pattern Scan (from
references/anti-patterns.md):- ISR functions missing
IRAM_ATTR(AP-02) printf/ESP_LOG/malloc/newin ISR context (AP-01)delay()instead ofvTaskDelay(AP-11)- Large local arrays in task functions >512 bytes (AP-03)
- Shared I2C/SPI bus access without mutex (AP-05)
- Unchecked
esp_err_treturn values (AP-06) - Hardcoded credentials (AP-16)
- Missing TLS cert verification (AP-17)
volatilefor thread synchronization (AP-09)xSemaphoreCreateBinaryfor resource protection instead of Mutex (AP-14)malloc/newin loops without free (AP-07)- DMA buffers not using
MALLOC_CAP_DMA(AP-04) - Global constructors with side effects (AP-20)
std::functioncallbacks that may heap-allocate (AP-19)- No reconnection logic in WiFi/MQTT handlers (AP-08)
- ISR functions missing
-
Memory Safety Inspection:
- Task stack sizes vs typical requirements (check
references/freertos.mdtable) - Heap usage patterns and fragmentation risk (AP-15)
- PSRAM vs internal RAM placement correctness
- DMA buffer alignment and capability requirements
- Long-running allocation patterns (allocate+free cycles)
- Task stack sizes vs typical requirements (check
-
Build Configuration Check:
sdkconfig.defaultsexists and committed;sdkconfiggitignored- Partition table appropriate (OTA, NVS, storage)
- Compiler warnings enabled (
-Wall -Wextra) - Debug vs release config separated
- Correct target variant configured
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.
- 5d ago First seen · 86 lines · 17 tokens per session scan A 50f61f25454a
esp-harden is a command published in the GitHub repository mathisk2095/jko-claude-plugins (3 stars, last pushed 2d ago), licensed MIT. It adds 17 tokens to every session and 840 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.
Other commands, from other repositories
route
Generate a Kibana server route with proper validation, error handling, and TypeScript types. Supports all HTTP methods and common patterns like CRUD operations and Elasticsearch queries.
embeddable
Generate a custom Embeddable panel that can be placed on Kibana Dashboards, with factory registration, input/output types, and React rendering.
expression
Generate custom Expression Functions and Renderers for use in Kibana Canvas, Lens, and Dashboard visualizations.
saved-object
Generate a custom Saved Object type with registration, mappings, migrations, CRUD service, and management integration for a Kibana plugin.
ui-action
Generate custom UI Actions and Triggers for inter-plugin communication in Kibana — register actions, attach to triggers, execute across plugins.
mcp-config
Generate a .mcp.json configuration file that connects Claude Code to Elasticsearch and Kibana MCP servers alongside this plugin, enabling live cluster access during plugin development.