| name | tinygo |
| description | Use this skill when the user wants to compile Go for microcontrollers, WebAssembly, or constrained environments — smaller binaries than standard Go with board-specific targets. |
tinygo Plugin
TinyGo is a Go compiler for microcontrollers, WebAssembly, and systems with tight memory limits. Produces smaller binaries than go build and supports dozens of embedded boards.
Installation
brew install tinygo
Basic Usage
tinygo version
tinygo build -o app.wasm -target=wasm main.go
tinygo flash -target=arduino-nano33 main.go
Common Patterns
tinygo targets
tinygo build -size=short -o firmware.elf main.go
tinygo run main.go
Usage Examples
- "Compile this Go program to WebAssembly with tinygo"
- "Flash firmware to an Arduino Nano 33"
- "List tinygo supported targets"
SuperCLI
sc tinygo _ _ version
sc tinygo _ _ build -o out.wasm -target=wasm main.go
sc plugins learn tinygo