new-crud

Scaffold CRUD packages from a skeleton template with placeholders and contracts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bespoke-uk/bespoke-mono --skill new-crud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-crud
Source: https://github.com/bespoke-uk/bespoke-mono/tree/main/.claude/skills/new-crud
Command: npx skills add https://github.com/bespoke-uk/bespoke-mono --skill new-crud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a ready-to-use CRUD package by bootstrapping from a standard skeleton, reducing manual setup time and ensuring consistency across projects.

Core Features & Use Cases

  • Copy /template/skeleton-crud to the target location and preserve the structure.
  • Replace all placeholders with project-specific values (category/package-name, ModelName) and rename files accordingly.
  • Generate the full directory structure per docs/standards/package_standards.md, create contracts, configure the ServiceProvider, and set up a config file with all sections.
  • Create CLAUDE.md documentation and run dependency tooling (composer install, composer format, composer analyse) to finalize the package.

Quick Start

Run the new-crud command with your category/package-name to scaffold a full CRUD package.

Frequently Asked Questions about new-crud

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

FAQPage Schema
How do I scaffold a CRUD package from a template in PHP?

To scaffold a CRUD package, the tool copies a skeleton template, replaces placeholders with your category and ModelName, and generates the full directory structure with contracts, config, and documentation files.

What's the best way to ensure standard structure when creating new CRUD packages?

Bootstrapping new CRUD packages from a skeleton template enforces standard structure and contracts, replacing manual setup with automated file renaming, ServiceProvider configuration, and consistent directory layout generation.

Do I need Composer to finalize a scaffolded CRUD package?

Yes, Composer is required to finalize the scaffolded CRUD package. The tool runs dependency checks including composer install, composer format, and composer analyse to complete the package setup.

Can I specify a custom ModelName when generating a CRUD package?

Yes, you can provide an optional ModelName when scaffolding the CRUD package. The tool replaces all placeholders with your project-specific values and renames files accordingly to match the specified ModelName.

What files and configurations does a CRUD scaffold generate automatically?

The CRUD scaffold generates contracts, ServiceProvider configuration, a config file with all sections, and CLAUDE.md documentation, while building the full directory layout per package standards.

Why does manual CRUD package setup lead to inconsistent project structures?

Manual CRUD package setup lacks enforced standards, leading to inconsistent directory layouts and missing contracts. Scaffolding from a skeleton template reduces manual setup time and ensures structural consistency across projects.