page-builder-blocks

Generate and manage Next.js page builder blocks with Zod schemas.

3|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/NextSpark-js/nextspark --skill page-builder-blocks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: page-builder-blocks
Source: https://github.com/NextSpark-js/nextspark/tree/main/.claude/skills/page-builder-blocks
Command: npx skills add https://github.com/NextSpark-js/nextspark --skill page-builder-blocks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a standardized framework and tooling for creating, managing, and integrating reusable content blocks within a Next.js page builder, ensuring consistency and efficiency in web development.

Core Features & Use Cases

  • Standardized Block Structure: Defines a clear 5-file structure (config.ts, schema.ts, fields.ts, component.tsx, index.ts) for all blocks.
  • Schema Definition & Validation: Uses Zod for defining block data schemas, extending a base schema for common properties.
  • Admin UI Field Definitions: Specifies how block fields are presented in an admin interface.
  • Component Rendering: Provides the React component for each block.
  • Use Case: When developing a new feature section for a website, use this Skill to scaffold a new block, define its editable fields (like title, description, images), and implement its visual representation, ensuring it integrates seamlessly with the existing page builder.

Quick Start

Use the page-builder-blocks skill to scaffold a new block with the slug 'my-new-block'.

Frequently Asked Questions about page-builder-blocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reusable page builder blocks in a Next.js application?

To create reusable page builder blocks in a Next.js application, use this skill to scaffold a standardized 5-file structure including config, schema, fields, and React component files. It streamlines block creation and automatically updates internal registries.

What is the standard file structure for developing Next.js content blocks?

The standard file structure for developing Next.js content blocks consists of five files: config.ts, schema.ts, fields.ts, component.tsx, and index.ts. This setup separates data validation, admin UI definitions, and React rendering.

How do I validate block data schemas in a Next.js page builder?

You validate block data schemas in a Next.js page builder by defining Zod schemas that extend a base schema for common properties. This approach ensures structured data validation before rendering React components.

How do I define admin UI fields for custom content blocks?

You define admin UI fields for custom content blocks by specifying field definitions within the fields.ts file. This configuration dictates how block attributes like titles and images appear in the admin interface.

Can I use this block scaffolding tool without adding external dependencies?

Yes, you can use this block scaffolding tool without adding external dependencies since it operates with zero required dependencies. It provides built-in scripts and references to generate blocks and manage registries directly.