What problem does it solve?
This Skill removes the guesswork from extending Megahub's Blockly IDE by giving you a precise workflow for creating, updating, and debugging custom blocks, Lua generators, and the documentation that describes them.
Core Features & Use Cases
- Custom block authoring: Define Megahub blocks as self-contained JavaScript modules with block JSON, Lua generation logic, and toolbox metadata.
- Generator debugging: Diagnose statement blocks, value blocks, field mappings, and shadow inputs so the emitted Lua matches the intended behavior.
- Platform integration: Register new blocks across the IDE component, renderer, and documentation scripts so the workspace, preview, and docs stay in sync.
- Docs and testing workflow: Keep BLOCKS.md, screenshots, and unit tests aligned whenever blocks, tooltips, inputs, or fields change.
- Use case: Add a new motor, GPIO, or UI block, verify its Lua output, and regenerate the Megahub block catalog without missing any required wiring.
Quick Start
Use the blockly skill to add or fix a Megahub block, wire its Lua generator and registrations, and regenerate the block docs and tests.