scaffold-create-operation

Automate resource creation by starting a Backend API stream and scaffolding commands, events, and endpoints.

15|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/aalmada/BookStore --skill scaffold-create-operation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-create-operation
Source: https://github.com/aalmada/BookStore/tree/main/.claude/skills/scaffold-create-operation
Command: npx skills add https://github.com/aalmada/BookStore --skill scaffold-create-operation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of new resources by starting a stream in the Backend API.

Core Features & Use Cases

  • Create a domain event (named {Resource}Created) in src/BookStore.ApiService/Events/
  • Define a Create{Resource} command in src/BookStore.ApiService/Commands/{Resource}/
  • Implement the Endpoint at src/BookStore.ApiService/Endpoints/{Resource}Endpoints.cs
  • Update projections to handle the {Resource}Created event

Quick Start

Apply this skill to scaffold a new Create{Resource} operation following the templates. Replace {Resource} with your domain resource and implement Event.cs in src/BookStore.ApiService/Events/, Command.cs in src/BookStore.ApiService/Commands/{Resource}/, and Endpoint.cs in src/BookStore.ApiService/Endpoints/{Resource}Endpoints.cs. Then ensure projections handle {Resource}Created.

Frequently Asked Questions about scaffold-create-operation

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

FAQPage Schema
How do I scaffold a POST endpoint for creating a new backend API resource?

To scaffold a POST endpoint for creating a new backend API resource, apply this Skill to automate the creation of the Create{Resource} command, {Resource}Created event, and Endpoint definitions.

What is the best way to generate domain events and commands for a new resource?

The best way to generate domain events and commands is using an automated scaffolding process that creates a {Resource}Created event and a Create{Resource} command in your API project directories.

Can I automatically update projections when a new resource is created in an event-driven backend?

Yes, you can update projections when a new resource is created in an event-driven backend by ensuring the read models handle the newly generated {Resource}Created domain event.

Does this scaffolding tool work with event-driven API architectures?

Yes, this scaffolding tool works with event-driven API architectures by generating the necessary streams, domain events, commands, and projection updates required for event-driven operations.

How do I structure commands and events when building create operations for domain resources?

To structure commands and events for create operations, place the Create{Resource} command in the Commands directory and the {Resource}Created event in the Events directory of your API service.

Why do I need to define a separate command and event for a backend API create operation?

You need to define a separate command and event for a backend API create operation to properly initiate the resource creation stream and ensure projections update read models accurately.