MCPInstall

ln-722-backend-generator

Generates .NET Clean Architecture backend structure from entity definitions. Use when bootstrapping .NET backend projects.

Installs
376
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-722-backend-generator
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads ln-722-backend-generator automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Paths: File paths (references/, ../ln-*) are relative to this skill directory.

ln-722-backend-generator

Type: L3 Worker Category: 7XX Project Bootstrap

Generates complete .NET backend structure following Clean Architecture principles.


Purpose & Scope

AspectDescription
InputProject name, entity list, configuration options
OutputComplete .NET solution with layered architecture
Target.NET 10+, ASP.NET Core

Scope boundaries:

  • Generates project structure and boilerplate code
  • Creates MockData for initial development
  • Does not implement business logic or database connections

Workflow

PhaseNameActionsOutput
1Receive ContextGet project name, entities, options from coordinatorConfiguration
2Create SolutionCreate .sln and .csproj filesEmpty solution structure
3Generate DomainCreate entities, enums, base classesDomain project files
4Generate APICreate controllers, DTOs, middlewareAPI project files
5VerifyBuild solution, check referencesBuild success

Phase 1: Receive Context

Accept delegation from ln-720-structure-migrator.

InputTypeRequiredDescription
projectNamestringYesSolution and project name prefix
targetPathstringYesDirectory for generated solution
targetFrameworkstringYes.NET version (e.g., net10.0)
entitieslistYesEntity names to generate
featureslistYesFeature groupings for MockData

Options:

OptionDefaultEffect
useSwaggertrueAdd Swashbuckle for API docs
useSerilogtrueAdd structured logging
useHealthCheckstrueAdd health endpoints
createMockDatatrueGenerate mock data classes

Phase 2: Create Solution

Generate solution file and project structure.

StepActionReference
2.1Create solution directory—
2.2Generate .sln file—
2.3Create project directorieslayer_structure.md
2.4Generate .csproj files per layerlayer_structure.md
2.5Add project referenceslayer_structure.md

Generated projects:

ProjectPurpose
{Project}.ApiHTTP endpoints, middleware
{Project}.DomainEntities, enums
{Project}.ServicesBusiness logic interfaces
{Project}.RepositoriesData access interfaces
{Project}.SharedCross-cutting utilities

Phase 3: Generate Domain

Create domain layer files.

StepActionReference
3.1Create BaseEntity classentity_patterns.md
3.2Generate entity classes per inputentity_patterns.md
3.3Generate status enumsentity_patterns.md
3.4Create folder structurelayer_structure.md

Entity generation rules:

Entity PropertyGenerated As
Primary keypublic Guid Id { get; set; }
String fieldpublic string Name { get; set; } = string.Empty;
Status fieldpublic {Entity}Status Status { get; set; }
TimestampsCreatedAt, UpdatedAt from BaseEntity

Phase 4: Generate API

Create API layer files.

StepActionReference
4.1Generate Program.csprogram_sections.md
4.2Generate controllers per entitycontroller_patterns.md
4.3Generate DTOs per entitycontroller_patterns.md
4.4Generate middleware classeslayer_structure.md
4.5Generate extension methodsprogram_sections.md
4.6Generate MockData classes (if enabled)layer_structure.md
4.7Add NuGet packagesnuget_packages.md

Controller endpoints per entity:

EndpointMethodRoute
GetAllGET/api/{entities}
GetByIdGET/api/{entities}/{id}
CreatePOST/api/{entities}
UpdatePUT/api/{entities}/{id}
DeleteDELETE/api/{entities}/{id}

Phase 5: Verify

Validate generated solution.

CheckCommandExpected
Solution buildsdotnet buildSuccess, no errors
Project referencesCheck .csprojAll references valid
Files createdDirectory listingAll expected files present

Generated Structure Summary

LayerFoldersFiles per Entity
ApiControllers/, DTOs/, Middleware/, MockData/, Extensions/Controller, DTO
DomainEntities/, Enums/, Common/Entity, Status enum
ServicesInterfaces/Interface (stub)
RepositoriesInterfaces/Interface (stub)
Shared—Utility classes

Critical Rules

  • Single Responsibility: Generate only backend structure, no frontend
  • Idempotent: Can re-run to regenerate (will overwrite)
  • Build Verification: Must verify dotnet build passes
  • Clean Architecture: Respect layer dependencies (inner layers independent)
  • No Business Logic: Generate structure only, not implementation
  • MockData First: Enable immediate API testing without database

Definition of Done

  • Solution file created with all projects
  • All project references configured correctly
  • Domain entities generated for all input entities
  • Controllers generated with CRUD endpoints
  • DTOs generated for request/response
  • MockData classes generated (if enabled)
  • Program.cs configured with all services
  • dotnet build passes successfully
  • Swagger UI accessible (if enabled)

Risk Mitigation

RiskDetectionMitigation
Build failuredotnet build failsCheck .csproj references, verify SDK version
Missing referencesCS0246 errorsAdd missing project references
Invalid entity namesBuild or runtime errorsValidate entity names before generation
Path conflictsFile exists errorsCheck target path, prompt before overwrite
Package restore failureNuGet errorsVerify network, check package names

Reference Files

FilePurpose
references/layer_structure.mdProject organization, folder structure, dependencies
references/entity_patterns.mdEntity generation rules, property patterns
references/controller_patterns.mdController and DTO generation rules
references/program_sections.mdProgram.cs structure and service registration
references/nuget_packages.mdRequired and optional NuGet packages

Version: 2.0.0 Last Updated: 2026-01-10

FAQ

What does the ln-722-backend-generator skill do?

Generates .NET Clean Architecture backend structure from entity definitions. Use when bootstrapping .NET backend projects.

How do I install ln-722-backend-generator?

Run npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-722-backend-generator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ln-722-backend-generator/ (personal) or .claude/skills/ln-722-backend-generator/ (project).

Which AI agents can use ln-722-backend-generator?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is ln-722-backend-generator safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains ln-722-backend-generator?

It is published by levnikolaevich in levnikolaevich/claude-code-skills. It has 376 recorded installs.

More from levnikolaevich/claude-code-skills

View all →

ln-100-documents-pipeline

levnikolaevich/claude-code-skills

Creates complete project documentation system (project docs, reference, tasks, tests). Use when bootstrapping docs from scratch or regenerating all.

Docs & Writing479 installs

ln-620-codebase-auditor

levnikolaevich/claude-code-skills

Use when auditing the codebase through the evaluation platform with mandatory research, coordinated domain audit workers, and structured summaries.

ln-775-api-docs-generator

levnikolaevich/claude-code-skills

Configures Swagger/OpenAPI documentation for backend APIs. Use when adding interactive API docs to a project.

Backend & APIs432 installs

ln-624-code-quality-auditor

levnikolaevich/claude-code-skills

Checks cyclomatic complexity, nesting, long methods, god classes, O(n2), N+1 queries, constants management. Use when auditing code quality.

413 installs

ln-782-test-runner

levnikolaevich/claude-code-skills

Executes all test suites and reports results with coverage. Use when verifying that test infrastructure works after bootstrap.

Testing & QA412 installs

ln-634-test-coverage-auditor

levnikolaevich/claude-code-skills

Identifies missing tests for unique critical local logic: money, auth, permissions, data integrity, algorithms, and domain rules. Use when auditing critical logic coverage gaps.

Testing & QA401 installs

Popular backend & apis skills

View category →

find-skills

vercel-labs/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

OfficialBackend & APIs4.1M installs

entra-app-registration

microsoft/azure-skills

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

OfficialBackend & APIs566.7K installs

This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).

Backend & APIs514.8K installs

embedded-captions

heygen-com/hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Backend & APIs453.3K installs

entra-agent-id

microsoft/azure-skills

Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).

OfficialBackend & APIs336.6K installs

neon

neondatabase/agent-skills

Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.

Backend & APIs237.1K installs