askill
block-scaffolds

block-scaffoldsSafety 95Repository

Copy-paste scaffolds for Oh My Brand! blocks. Templates for block.json, render.php, helpers.php, view.ts, style.css, and tests. Use when creating new blocks.

0 stars
1.2k downloads
Updated 1/10/2026

Package Files

Loading files...
SKILL.md

Block Scaffolds

Ready-to-use templates for creating new blocks in the Oh My Brand! FSE theme.

When to Use

  • Creating a new native WordPress block
  • Creating a new ACF block
  • Starting test files for blocks
  • Quick copy-paste for block files

Placeholders

Replace these placeholders in all templates:

PlaceholderReplace WithExample
BLOCK_NAMEkebab-case namegallery, hero-section
BLOCK_TITLEHuman-readable titleGallery Carousel
BLOCK_CLASSPascalCase classGalleryCarousel
BLOCK_DESCRIPTIONShort descriptionImage gallery with carousel
CATEGORYBlock categorymedia, text, design
ICONDashicon nameformat-gallery, admin-home
FIELD_NAMEACF field namegallery_images

Native Block Scaffolds

For blocks built with @wordpress/scripts in src/blocks/:

FileTemplatePurpose
block.jsonblock-json-native.jsonBlock metadata
render.phprender-native.phpServer-side render
helpers.phphelpers-native.phpHelper functions
view.tsview.tsFrontend Web Component
style.cssstyle.cssFrontend styles
edit.tsxedit.tsxEditor component

ACF Block Scaffolds

For ACF PRO blocks in blocks/acf-{name}/:

FileTemplatePurpose
block.jsonblock-json-acf.jsonACF block metadata
render.phprender-acf.phpRender template
helpers.phphelpers-acf.phpHelper functions

Test Scaffolds

FileTemplatePurpose
view.test.tsview.test.tsVitest Web Component tests
HelpersTest.phphelpers.test.phpPHPUnit helper tests

Quick Start

Native Block

# 1. Create directory
mkdir -p src/blocks/my-block

# 2. Copy templates from references/
# 3. Replace placeholders
# 4. Build: pnpm run build

ACF Block

# 1. Create directory
mkdir -p blocks/acf-my-block

# 2. Copy templates from references/
# 3. Replace placeholders
# 4. Create field group in WP Admin > ACF
# 5. Register in functions.php $acf_blocks array

Related Skills

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 2/20/2026

Well-structured skill with comprehensive scaffold templates for WordPress blocks. Provides clear placeholder tables, file references, and quick start guides. Highly actionable with structured steps. Tags mismatch (ci-cd/testing vs blocks/scaffolds) and internal path in .github/skills/ reduce reusability. Content is reference-style but accurate and project-specific.

95
90
55
85
90

Metadata

Licenseunknown
Version-
Updated1/10/2026
PublisherWesleySmits

Tags

ci-cdtesting