

What it writes
A promotion, a room card, a testimonial: pnpm make:block writes the block with its fields and admin texts, a first look that follows the site’s themes in light and dark, a second style on the accent colour, its category and a drawing in "Add block", and a test. It adds the block to the package, and the package to the site, each only once.
Safe by default
A link field is checked when it is saved and again when it is shown, so a dangerous address never reaches the page. A name another block has, or a prefix another package uses, stops it before anything is written.
Or ask for it
With Claude Code, the apex-make-block skill drives it, then offers to write the block’s real design within the front-end style guide. The Block generator page under Features explains it.
pnpm make:block promo --group actions \
--prefix acme --package-name @acme/blocks \
--label en=Promotion --field heading:text:required \
--field body:richText --field link:url --dry-runThe generator, in the demo
What it writes and how to use it.