create-feature

Generate Clean Architecture feature artifacts for REST endpoints.

2|Updated May 2, 2026
One-click install
npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill create-feature-andrecini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-feature
Source: https://github.com/andrecini/dotnet-squad-copilot-agent/tree/main/.claude/skills/create-feature
Command: npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill create-feature-andrecini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the friction and inconsistency of manually creating new API features across multiple layers, ensuring each part follows the project’s Clean Architecture conventions.

Core Features & Use Cases

  • Guided end-to-end feature scaffolding: creates the requested feature artifacts across Presentation, Application, Domain, Infrastructure, and Tests (depending on the chosen scope).
  • Consistent object & mapping generation: produces request/response DTOs, domain models/entities, and required AutoMapper profiles between layers.
  • Production-aligned implementation patterns: generates validators, minimal API endpoints, AppServices, service interfaces/implementations, repositories (EF Core or Dapper by rule), and DI registrations in the correct XDependency.cs files.
  • Test scaffolding with mocks and scenarios: creates unit test structure (data mocks, service/repository mocks, and validator tests) aligned to the project’s testing approach.

Quick Start

Ask: "Create a complete feature for 'Order' with 'Create' operation including endpoint, validator, AppService, service, repository, and unit tests."

Frequently Asked Questions about create-feature

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

FAQPage Schema
How do I scaffold a complete Clean Architecture feature for a .NET REST endpoint?

Scaffolding a Clean Architecture feature generates DTOs, validators, AppServices, domain models, repositories, AutoMapper profiles, DI registrations, and unit tests across all project layers for new REST endpoints.

What's the best way to generate unit tests and mocks for new API endpoints?

Generating unit tests for new API endpoints creates structured test scaffolding with data mocks, service mocks, repository mocks, and validator tests aligned to the project's testing approach and Clean Architecture conventions.

Can I scaffold just a repository or domain service without generating the entire feature?

Yes, feature scaffolding applies to creating individual endpoints, services, repositories, or combinations across layers, allowing you to select a specific scope rather than generating the entire feature.

What naming conventions and patterns does Clean Architecture scaffolding enforce for minimal APIs?

Clean Architecture scaffolding enforces strict naming conventions, Result-based returns, CancellationToken propagation, TypedResults in minimal APIs, and dependency injection registrations in the correct XDependency.cs files.

How do I add AutoMapper profiles and dependency injection registrations when creating a new feature?

Creating a new feature automatically produces required AutoMapper profiles between layers and generates dependency injection registrations in the correct XDependency.cs files for AppServices, services, and repositories.

What limitations exist when scaffolding features across Clean Architecture layers?

Feature scaffolding includes guardrails preventing unsafe or out-of-scope changes, ensuring generated artifacts conform to strict project scaffolding rules without modifying existing code outside the requested feature scope.