espforge-compile-example

Creates and compiles espforge device driver examples using a shell script and cargo build.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/mohankumargupta/skills --skill espforge-compile-example-mohankumargupta
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: espforge-compile-example
Source: https://github.com/mohankumargupta/skills/tree/main/espforge-compile-example
Command: npx skills add https://github.com/mohankumargupta/skills --skill espforge-compile-example-mohankumargupta

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? It automates the creation and compilation of espforge example projects for specific devices, surfacing Rust driver errors early so developers can iterate on fixes quickly. ## Core Features & Use Cases - Example Generation: Runs the espforge CLI to scaffold a device-specific example project from a YAML definition. - Compilation & Error Detection: Compiles the generated example with cargo build to reveal errors in the espforge Rust driver for the target device. - Iterative Recompilation: Supports a recompile mode for repeated fix-and-build cycles, with a fallback report written to <device>_COMPILE_EXAMPLE.txt after five failed attempts. - Use Case: When adding support for a new device like ssd1306, run the skill to generate and compile its example, then fix driver errors until the build succeeds. ## Quick Start Create and compile an espforge example for device ssd1306 and fix any driver errors that appear.

Frequently Asked Questions about espforge-compile-example

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and compile an espforge example for a device?▼

Run the compile_example.sh script with the device name, such as bash compile_example.sh ssd1306. It generates the example via the espforge CLI, compiles the YAML definition, and runs cargo build.

How do I recompile an espforge example after fixing errors?▼

Pass recompile as the second argument to the script, for example bash compile_example.sh ssd1306 recompile. This skips example regeneration and only recompiles the existing project.

What does it mean when espforge example compilation fails?▼

A failed build indicates an error in the espforge Rust driver for that device. The driver source code is located in the espforge directory within the working directory for inspection and fixing.

What happens if the espforge example still fails after multiple fixes?▼

After five unsuccessful fix attempts, stop and write a document named <device>_COMPILE_EXAMPLE.txt. It should explain what was tried and why the compilation could not be completed.

What tools are required to compile espforge examples?▼

You need the espforge CLI binary built at espforge/target/debug/espforge and the Rust cargo toolchain. The script invokes espforge compile on the example YAML and then runs cargo build.