scaffold-template-entity

Automates generation of domain models, DTOs, services, and endpoints for new entities in the Template solution.

1|Updated Feb 28, 2024
One-click install
npx skills add https://github.com/Sparkymod/Template --skill scaffold-template-entity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-template-entity
Source: https://github.com/Sparkymod/Template/tree/main/.claude/skills/scaffold-template-entity
Command: npx skills add https://github.com/Sparkymod/Template --skill scaffold-template-entity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires System, Microsoft.EntityFrameworkCore, Microsoft.AspNetCore.Mvc, Microsoft.AspNetCore.Blazor, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of adding new entities to the Template solution, reducing manual work and ensuring consistency across the application.

Core Features & Use Cases

  • End-to-End Scaffold: Generates all necessary components for a new entity, including domain models, DTOs, services, and endpoints.
  • CRUD Generation: Supports both full CRUD and query-only modes for different entity types.
  • Customization: Allows customization of key types, auditability, statefulness, and front-end pages.
  • Use Case: When adding a new entity like 'Invoice' to the Template solution, this Skill can automatically generate all the required components and configurations.

Quick Start

Use the scaffold-template-entity skill to add a new entity to the Template solution. Provide the entity name and specify the service mode.

Frequently Asked Questions about scaffold-template-entity

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

FAQPage Schema
How do I automate entity scaffolding for domain models, DTOs, and services in a .NET Blazor solution?

Automating entity scaffolding generates domain models, DTOs, services, and endpoints simultaneously. This Skill handles end-to-end generation for the Template solution, utilizing conventions to add new entities while ensuring application consistency and reducing manual work.

Can I generate query-only endpoints instead of full CRUD for specific entities in EF Core?

Yes, you can generate query-only endpoints instead of full CRUD. The Skill supports both full CRUD and query-only modes, allowing you to specify the service behavior during generation to match different entity operational requirements.

Do I need .NET 10 and EF Core to use this entity generation Skill?

Yes, .NET 10, EF Core, and Blazor are required dependencies. The entity generation process relies on these specific frameworks to correctly automate and scaffold the domain models, services, and endpoints into the Template solution.

What customization options are available when adding new entities to a Blazor application?

Customization options for adding new entities include configuring key types, auditability, statelessness, and front-end pages. These settings allow the generated domain models and services to align with specific application conventions.

How do I scaffold an Invoice entity end-to-end without manual coding?

To scaffold an Invoice entity end-to-end, provide the entity name and specify the service mode. The Skill automatically generates all required components, including domain models, DTOs, services, and endpoints, eliminating manual coding.