本文へ移動
cccskills
無料GitHub で公開

ln-722-backend-generator

Generates .NET Clean Architecture backend structure from entity definitions

インストール方法を見る

含まれるファイル(6)

  • SKILL.md7.0 KB
  • references/controller_patterns.md3.7 KB
  • references/entity_patterns.md3.8 KB
  • references/layer_structure.md3.9 KB
  • references/nuget_packages.md3.1 KB
  • references/program_sections.md3.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

ln-722-backend-generator

Type: L3 Worker Category: 7XX Project Bootstrap Parent: ln-720-structure-migrator

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA standards. Use this skill to generate semantic ARIA for Web and accessibility traits for Web and Native platforms (iOS/Android).

日本語の概要は準備中です。原文の説明を表示しています。

tensology/decisionsai172026年10月13日 更新

Whole site or product — a full web accessibility (a11y) audit against WCAG 2.2, following the WCAG-EM methodology. Defines scope, samples representative pages and flows, runs the automated tier (`accessibility-scan`) and the hands-on manual tier (`accessibility-inspect`), and produces one conformance report. Grades each finding by severity and evidence basis, and states per-criterion conformance as pass, fail, or undetermined (needs a human). Use it for 'audit my site for accessibility', 'is this product accessible', 'a11y audit', 'WCAG or Section 508 conformance report', or any multi-page assessment. Assesses; does not fix (use `accessibility-fix`) or diff (use `accessibility-diff`). For a single page use `accessibility-scan`; for hands-on keyboard and screen-reader checks use `accessibility-inspect`.

日本語の概要は準備中です。原文の説明を表示しています。

tensology/decisionsai172026年10月13日 更新

Regression check — diff a live page's web accessibility (a11y) violations against a baseline. By default it compares your uncommitted changes (stash-based); pass `--branch [<name>]` to compare against a branch. Reports the new WCAG violations introduced, the ones fixed, and the count of pre-existing ones. Use it for 'did my change break accessibility', 'what a11y issues did this PR add', or as a CI gate. For a full scan of one page use `accessibility-scan`; for a whole site use `accessibility-audit`.

日本語の概要は準備中です。原文の説明を表示しています。

tensology/decisionsai172026年10月13日 更新

Remediation only — repair web accessibility (a11y) violations against WCAG 2.2 with a baseline, edit, and verify loop. Takes a target (URL, files, directory) or a findings worklist from `accessibility-scan`/`accessibility-inspect`/`accessibility-audit`, applies mechanical fixes as given, leaves TODOs for visual or contextual judgment, and verifies by re-running the baseline check. It only fixes. To find issues use `accessibility-scan` (one page, automated), `accessibility-inspect` (one page, manual), or `accessibility-audit` (whole site, WCAG-EM); to check for regressions use `accessibility-diff`. Use it for 'fix the a11y issues in X', 'make this accessible', 'add missing alt text and labels', 'apply these accessibility fixes', 'remediate these violations'.

日本語の概要は準備中です。原文の説明を表示しています。

tensology/decisionsai172026年10月13日 更新

One page, hands-on manual tier — drive a live page through the web accessibility (a11y) checks a rule engine can't decide: keyboard operation and focus order, screen-reader names, roles and states from the accessibility tree, reflow and zoom, reduced motion, form errors, and target size. Grades each finding by evidence basis (verified / confirm-with-a-human / human-required) and severity, and closes every criterion in a ledger: verified, flagged, not exercised, or N/A. Locates and assesses; does not fix (use `accessibility-fix`). Use it for keyboard testing, focus-order checks, screen-reader or a11y-tree review, reflow and zoom at 200%, or 'is this operable, not just lint-clean'. The automated tier is `accessibility-scan`; `accessibility-audit` runs both across a sampled site.

日本語の概要は準備中です。原文の説明を表示しています。

tensology/decisionsai172026年10月13日 更新

One page, automated tier — run the web accessibility (a11y) rule engine against a live page and locate every violation it can detect mechanically. Pass a URL, a config target name (e.g. `accesslint:accessibility-scan dev`), or nothing to use the default target from `accesslint.config.json`. Ensures a debuggable Chrome, runs the @accesslint/core engine over CDP, and returns a worklist of live-DOM WCAG 2.2 violations, each grounded to its DOM selector and source `file:line`. Locates; doesn't edit. Use it for 'is this page accessible', 'check a11y on this URL', 'find contrast and alt-text issues', or to verify a UI change. For hands-on keyboard and screen-reader checks use `accessibility-inspect`; for a whole site or product use `accessibility-audit`; to diff against uncommitted changes or a branch use `accessibility-diff`.

日本語の概要は準備中です。原文の説明を表示しています。

tensology/decisionsai172026年10月13日 更新

tensology のスキルをすべて見る

このスキルの問題を報告する