본문으로 건너뛰기
cccskills
무료GitHub에 공개

dotnet-scaffold

Scaffold de API ASP.NET Core (.NET 10) production-ready: Vertical Slice o Clean Architecture, Minimal APIs, EF Core + PostgreSQL, JWT + Identity, ProblemDetails, health checks y testing. Usar para iniciar un backend .NET nuevo.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane스타 3(GitHub 3 + cccskills 0)
연동 도구DockerPostgreSQL

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

dotnet-scaffold — ASP.NET Core API Scaffolder

MANDATORY WORKFLOW

Antes de generar cualquier código, completar estos pasos en orden. Confirmar las decisiones del Step 0 con el usuario antes de escribir archivos (Question → Decision → Approval).

Step 0: Gather Requirements

  1. Nombre del servicio (PascalCase para la solución, ej. OrdersApi)
  2. Arquitectura: Vertical Slice (default) / Clean Architecture — ver skill dotnet-architecture para elegir
  3. Transport: Web API REST con Minimal APIs (default) / Controllers / gRPC
  4. ORM: EF Core (default) / Dapper
  5. DB: PostgreSQL (default) / SQL Server
  6. Auth: JWT + ASP.NET Identity (default) / OAuth / ninguna
  7. Deploy: Docker (default) / Azure App Service

Si el dominio es CRUD/simple → Vertical Slice. Si es complejo y long-lived con varios devs → Clean Architecture.

Step 1: Crear base

dotnet new sln -n <Name>
dotnet new webapi -n <Name>.Api                       # Minimal APIs (default en .NET 8+); para Controllers: --use-controllers
dotnet sln add <Name>.Api
dotnet new xunit -n <Name>.Tests && dotnet sln add <Name>.Tests
cd <Name>.Api
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL
dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore
dotnet add package FluentValidation.DependencyInjectionExtensions    # core + DI; FluentValidation.AspNetCore (auto-validation) está deprecado
dotnet add package Serilog.AspNetCore

Step 2: Estructura

Vertical Slice (default) — un folder por feature/use-case:

src/
  Features/
    Orders/   { CreateOrder.cs, GetOrder.cs, OrderEndpoints.cs }  # request+handler+validator+endpoint por slice
    Users/    { ... }
  Infrastructure/  { AppDbContext.cs, Migrations/ }
  Common/    { Behaviors/, Results/, ProblemDetails/ }
  Program.cs

Clean Architecture — proyectos por capa (deps apuntan hacia adentro):

<Name>.Domain/          # entities, value objects — cero deps externas
<Name>.Application/      # use cases, interfaces (IAppDbContext), DTOs
<Name>.Infrastructure/   # EF Core, Identity, implementaciones
<Name>.Api/             # endpoints/controllers, DI, Program.cs

Step 3: Defaults no negociables (Program.cs / .csproj)

  • <Nullable>enable</Nullable> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> en el .csproj
  • Async end-to-end: handlers async Task<>, CancellationToken propagado a EF Core y HTTP; nunca .Result/.Wait()
  • DI por constructor (primary constructors); registrar servicios con scope correcto (AddScoped para DbContext/handlers)
  • Validación: FluentValidation por slice, invocada manualmente (pipeline behavior MediatR o endpoint filter — no auto-validation) → responder ValidationProblemDetails (RFC 7807)
  • Errores: AddProblemDetails() + exception handler global → ProblemDetails consistente, sin filtrar stack traces
  • EF Core: migraciones versionadas (dotnet ef migrations add), nunca EnsureCreated() en prod; DbContext como Unit of Work (sin repos genéricos salvo necesidad)
  • Auth: JWT de vida corta + refresh, secretos en user-secrets/secret manager, authorization por policies declarativas
  • Observabilidad: Serilog structured logging (JSON) + health checks (AddHealthChecks) + OpenTelemetry opcional
  • Graceful shutdown: respetar IHostApplicationLifetime / CancellationToken del host

Step 4: Agregar piezas (invocar skills relacionadas)

  • dotnet-architecture — estructura de slices/capas en detalle
  • database / data-migrations — modelado EF Core + migraciones
  • jwt-strategy / auth-strategy / rbac-abac — auth y authorization
  • api-design / api-versioning / api-docs — contrato REST + OpenAPI
  • testing / contract-testing — xUnit + Testcontainers (Postgres real en tests)

Step 5: Verificar

dotnet build + dotnet test. Revisar contra la rule dotnet-code y el skill dotnet-best-practices. Build + tests verdes → scaffold READY.

Stack Defaults

ComponenteDefault
Runtime.NET 10 LTS (C# 14)
FrameworkASP.NET Core — Minimal APIs
ArquitecturaVertical Slice (Clean opcional)
ORMEF Core 10
DBPostgreSQL (Npgsql)
AuthJWT + ASP.NET Identity
ValidaciónFluentValidation → ProblemDetails
LoggingSerilog (JSON)
TestingxUnit + Testcontainers
DeployDocker

Inspirado en dotnet/skills (oficial Microsoft), github/awesome-copilot (dotnet-best-practices) y los templates ardalis/CleanArchitecture y nadirbad/VerticalSliceArchitecture. Adaptado al formato Arcane.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

SebastianLuser의 스킬 모두 보기

이 스킬의 문제 신고