create-page-builder-block
Skill by jamesreaco
Scaffolds a new page builder block for a Sanity and Next.js site. It creates the schema, GROQ fragment and React component and wires them into the repo's registries.
Install create-page-builder-block
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jamesreaco/site-engine /tmp/site-engine && mkdir -p ~/.claude/skills && cp -r /tmp/site-engine/.claude/skills/create-page-builder-block ~/.claude/skills/create-page-builder-blockRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install create-page-builder-block in Claude Code
git clone --depth 1 https://github.com/jamesreaco/site-engine /tmp/site-engine && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/site-engine/.claude/skills/create-page-builder-block ~/.gemini/antigravity-cli/skills/create-page-builder-blockAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install create-page-builder-block in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill adds a new page builder block to a Sanity and Next.js site. It first checks that the block name and fields are known, then derives consistent names for the schema, query fragment and React component. It works through a checklist of seven touch points, including the schema file, the schema index, the page builder array and insert menu, the query fragments and the component registry.
It also covers regenerating Sanity types with npx sanity schema extract and npx sanity typegen generate, then running tsc and lint to verify. It is aimed at developers working in this repository who want to add a block such as a stats or testimonial section. The source says the user must check the new block in Sanity Studio, since the skill cannot verify Studio visually.
Written from the project's SKILL.md and checked against it.
What it can do
- Requirement gatheringAsks for the block name, its fields and their types before writing any code.
- Name derivationKeeps schema, file, component, query and registry names consistent.
- Schema scaffoldCreates a Sanity schema file using shared fieldsets, field groups and an anchorId field.
- Schema registrationAdds the schema to the schema index, the page builder array and an insert menu group.
- GROQ fragmentWrites a query fragment that reuses shared media and button query fragments.
- React componentCreates a Tailwind component wrapped in Container with optional anchor ID support.
- Component registrationAdds a dynamic import and an entry in the PB_BLOCKS map.
- Type generation and checksRuns Sanity typegen, tsc and lint to verify the new block.
What you need
- A Sanity and Next.js site repository
- Node.js with npm and npx
- TypeScript for the tsc check
- Access to the repository files
Try asking
- Create a new page builder block called Stats with a heading and a list of stats.
- Add a testimonial section to the page builder with a quote, author and image.
- Add a pricing block to the Sanity page builder and wire it into the query.
Good to know
- Written for this repository's file layout and conventions.
- Cannot visually verify Sanity Studio; the user must check the insert menu.
- The insert menu preview image is optional and is not generated by the skill.
- Typegen commands are not in package.json scripts and must be run directly.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/create-page-builder-block/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to create-page-builder-block
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
create-page-builder-block: common questions
Which files does this skill change?
The source lists seven touch points, including a schema file, the schema index, page-builder.ts, the query fragments and the page builder component index.
Does it generate the insert menu preview image?
No. The source says the optional preview PNG at public/sanity/preview-<schemaName>.png should be mentioned to the user rather than generated.
Why does the new block need type regeneration?
The source says block prop types are derived from the generated sanity.types.ts, and without running the typegen commands the new component's props will fail to typecheck.
How do I install create-page-builder-block?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is create-page-builder-block free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is create-page-builder-block safe to use?
It scores 54 of 100. Grades: maintenance B, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to create-page-builder-block?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
