scaffolding-plop

Generates page routes, page builder sections, and rich text blocks using Plop generators.

Updated Sep 6, 2026
One-click install
npx skills add https://github.com/malikkotb/shellpluscore --skill scaffolding-plop-malikkotb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffolding-plop
Source: https://github.com/malikkotb/shellpluscore/tree/main/.agents/skills/scaffolding-plop
Command: npx skills add https://github.com/malikkotb/shellpluscore --skill scaffolding-plop-malikkotb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Creating a new page route, page builder section, or rich text block in this Astro + Sanity codebase requires touching many files (schemas, components, registries, fragments) in a consistent way. This Skill ensures generator-first scaffolding so all boilerplate, registry insertions, and PLOP anchor markers stay consistent instead of being hand-written and drifting apart. ## Core Features & Use Cases - Generator-first scaffolding: Runs npm run plop to create prefix page routes (e.g. /articles/[slug]), page builder sections (e.g. ctaSection), and rich text blocks (e.g. calloutBlock) with all registry updates. - Reference-guided workflows: Loads only the matching reference file (page-route, page-builder-section, or rich-text-block) describing exactly which files and templates each generator creates. - Handoff discipline: Defines when to hand off to Sanity schema/query work, Astro UI work, or the agent-markdown skill after generation. - Use Case: When asked to add a new "testimonials" page builder section, run the Plop generator, verify the schema, component, and PageSections registry entries, then run npm run check. ## Quick Start Ask the AI to scaffold a new page builder section named "testimonials" using the Plop generator and verify the generated files and PLOP markers.

Frequently Asked Questions about scaffolding-plop

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

FAQPage Schema
How do I scaffold a new page builder section with Plop?

Run npm run plop and choose the "Page Builder Section" generator, then provide a name like cta. It creates the Sanity schema, the Astro section component, and updates the PageSections registry at the PLOP anchors, then runs typegen and formatting.

How do I create a new prefix page route like /articles/[slug]?

Use the "Prefix Page Route" Plop generator with a plural routePrefix (e.g. articles) and a singular documentType (e.g. article). It creates the document schema, updates the schema index and Studio structure, and generates the [slug].astro page with a GROQ query.

Can I edit or remove the PLOP marker comments after generation?

No, PLOP marker comments such as // PLOP: Add Import and // PLOP: Add Export must remain intact. They are anchors the generators use to insert future imports, exports, and structure entries into registry files.

When should I not use the Plop scaffolding generators?

Do not use them for pure runtime UI or styling changes, or for schema and GROQ query edits that do not involve generating a new route, section, or block. Those tasks belong to the astro or sanity skills instead.

What if the Plop generator setup is not ported to the repo yet?

The skill notes the plopfile and templates may not be ported yet. In that case, use the reference files as a map of what a route, section, or block consists of and create the files manually at the documented paths.