create-resource

Generate CRUD resource layers from schema to routes with tests.

1|Updated May 21, 2025
One-click install
npx skills add https://github.com/madooei/backend-template --skill create-resource
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-resource
Source: https://github.com/madooei/backend-template/tree/main/.claude/skills/create-resource
Command: npx skills add https://github.com/madooei/backend-template --skill create-resource

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating a new domain resource across multiple layers (schemas, repositories, services, controllers, routes, and tests) is error-prone and time-consuming; this skill coordinates the whole workflow to ensure consistency and repeatability.

Core Features & Use Cases

  • End-to-end resource scaffolding: generates all layers (schemas, repositories, services, controllers, routes) and tests from a single domain entity name.
  • Consistent architecture: enforces a uniform folder structure and naming conventions for new entities like notes, users, or courses.
  • Quick onboarding: reduces ramp time for new projects by providing a standardized resource bootstrap workflow.

Quick Start

Create a complete CRUD resource for a new domain entity (e.g., Note, User, or Course) by executing all phases in order from schema to routes, including tests and optional events.

Frequently Asked Questions about create-resource

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

FAQPage Schema
How do I automate end-to-end CRUD scaffolding for a new domain entity?▼

Automating CRUD scaffolding generates all layers from schemas to routes and tests from a single domain entity name. It enforces a predefined phase sequence and uniform folder structure to ensure architectural consistency and repeatability.

What is the best way to ensure consistent architecture when adding new resources?▼

The best way to ensure consistent architecture is orchestrating complete resource creation end-to-end. This enforces uniform folder structures and naming conventions for new entities like notes, users, or courses across all generated layers.

How does automated domain entity scaffolding handle test coverage?▼

Automated domain entity scaffolding handles test coverage by including a structured test plan in its predefined phase sequence. It generates tests alongside all other layers to ensure immediate validation of the newly created resource.

Can I generate TypeScript resources with optional events integration?▼

Yes, you can generate TypeScript resources with optional events integration. The scaffolding workflow wires outputs across multiple layers and includes optional events integration as part of its end-to-end orchestration sequence.

Why should I use an orchestration workflow for CRUD resource creation instead of manual scaffolding?▼

You should use an orchestration workflow for CRUD resource creation because manual scaffolding across schemas, repositories, services, controllers, and routes is error-prone and time-consuming. Orchestration enforces repeatability and consistency.