What problem does it solve?
This Skill removes the repeated, error-prone work of scaffolding ACF Composer Gutenberg blocks while keeping Blade markup, custom element structure, CSS cascade tokens, and theme variations consistent across editor preview and frontend rendering.
Core Features & Use Cases
- End-to-end block scaffold: Generates the ACF Composer controller class, Blade view template, custom element JS class, and block-scoped CSS entry points.
- Design-system aligned styling: Builds scoped CSS custom property cascades from the project’s shared components and enforces token-based color behavior for light, neutral, and dark modes.
- Editor/front-end parity safeguards: Ensures
get_block_wrapper_attributes() and the @unless ($block->preview) wrapper strategy preserve variation classes and layout consistently.
- Optional HTML Forms integration: Detects form-related intent and wires the block view to the
sage-forms skill with validation module stubs and JS initialization hooks when applicable.
Quick Start
Tell your agent: "Use superpowers-sage:block-scaffolding to scaffold a new ACF Composer block named HeroBlock."