agentleFS
MesteriisMesteriis/Engineering-Bible-AI/skills/esp32/SKILL.md

esp32

Skill0 starsChanged 5 months agoMITView on GitHub

Applies ESP32 rules for GPIO, boot states, relays, sensors, connectivity, firmware safety, and validation.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 13 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not recommend GPIO pins, wiring, voltage levels, current limits, or power behavior unless verified from:

    line 16
  2. Distinctive:

    Before changing ESP32 behavior, inspect:

    line 26
  3. Distinctive:

    Avoid unsafe relay activation during boot.

    line 46
  4. Distinctive:

    Consider default pin state before firmware starts.

    line 47
  5. Distinctive:

    Do not assume pins are safe across ESP32 variants.

    line 48
  6. Distinctive:

    Do not assume the ESP32 can directly drive loads.

    line 69
  7. Distinctive:

    If hardware details are missing, state that they are missing.

    line 80
  8. Distinctive:

    Avoid blocking critical loops.

    line 84
  9. Distinctive:

    Keep ISR work minimal.

    line 85
  10. Distinctive:

    Avoid unbounded dynamic allocation in long-running firmware.

    line 86
  11. Distinctive:

    Use timeouts for external operations.

    line 87
  12. Distinctive:

    Avoid repeated flash writes.

    line 89
  13. Distinctive:

    Never claim hardware behavior was verified unless it was actually verified.

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: esp32

Purpose

Apply hardware-aware engineering rules to ESP32-based systems, firmware, GPIO, boot behavior, relays, sensors, and connectivity.

Safety First

Physical devices fail differently than web apps. They can get hot, lock doors, flood rooms, or annoy the nearest human until civilisation collapses into support tickets.

Do not recommend GPIO pins, wiring, voltage levels, current limits, or power behavior unless verified from:

  • the exact board documentation;
  • project schematics;
  • user-provided hardware details;
  • existing repository configuration;
  • official component datasheets.

Inspect First

Before changing ESP32 behavior, inspect:

  • exact board/module;
  • GPIO usage;
  • strapping pins;
  • relay/transistor wiring;
  • pull-ups/pull-downs;
  • boot state;
  • power supply assumptions;
  • brownout behavior;
  • Wi-Fi/BLE usage;
  • sleep mode;
  • flash write patterns;
  • watchdog behavior;
  • connected loads.

GPIO Rules

  • Be careful with strapping pins.
  • Be careful with boot logs on UART pins.
  • Avoid unsafe relay activation during boot.
  • Consider default pin state before firmware starts.
  • Do not assume pins are safe across ESP32 variants.
  • Preserve existing known-good pin assignments unless explicitly changing them.

Reliability Rules

Consider:

  • brownouts;
  • watchdog resets;
  • Wi-Fi loss;
  • reconnect loops;
  • offline behavior;
  • sensor failures;
  • debouncing;
  • noisy ADC readings;
  • flash wear;
  • task starvation;
  • memory fragmentation.

Power and Loads

Do not assume the ESP32 can directly drive loads.

For relays, motors, LEDs, pumps, valves, and high-current devices, verify:

  • driver/transistor/relay module behavior;
  • flyback protection where needed;
  • common ground assumptions;
  • current draw;
  • isolation;
  • safe default state.

If hardware details are missing, state that they are missing.

Firmware Behavior

  • Avoid blocking critical loops.
  • Keep ISR work minimal.
  • Avoid unbounded dynamic allocation in long-running firmware.
  • Use timeouts for external operations.
  • Define safe fallback behavior.
  • Avoid repeated flash writes.

Validation

Validation may include:

  • compile/build;
  • config validation;
  • static analysis;
  • hardware bench test plan;
  • manual safety checklist.

Never claim hardware behavior was verified unless it was actually verified.

Shared Cross-Ecosystem Style

Apply the shared engineering style from:

  • ../../engineering/05_design_principles.md
  • ../../engineering/06_responsibility_model.md
  • ../../engineering/07_complexity_budget.md
  • ../../engineering/12_naming_bible.md

Language-specific idioms control syntax and ecosystem details, but they must not weaken the core rules: small cohesive units, explicit boundaries, honest validation, no dumping grounds, and no fake placeholders.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.