Official agent skill

Create Datadriven Aspnetcore

by dotnet in dotnet/skills

Generate or scaffold ASP.NET Core code — Razor Pages, Blazor components, MVC controllers, views, and Minimal API endpoints — without using ASP.NET Core CLI scaffolding/code-generation tools.

OfficialMITAuto-check passedDevelopment

Install Create Datadriven Aspnetcore

skills CLI
$ npx skills add dotnet/skills --skill create-datadriven-aspnetcore -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dotnet/skills create-datadriven-aspnetcore --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dotnet/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/dotnet-data/skills/create-datadriven-aspnetcore .claude/skills/create-datadriven-aspnetcore && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-datadriven-aspnetcore
GitHub stars
5.6k
Used in
1 other repo
Token cost
~3.2k tokens
SKILL.md length
1,402 words
Files
1
Skills in repo
91
Repo updated
First seen
Licence
MIT

At a glance

Generate or scaffold ASP.NET Core code — Razor Pages, Blazor components, MVC controllers, views, and Minimal API endpoints — without using ASP.NET Core CLI scaffolding/code-generation tools.

  • Works in 7 steps: Understand the Scaffolding Request → Discover UI Style (non-API scaffolders… → Apply Blazor-Specific Rules (Blazor… → …
  • Adding CRUD pages
  • SKILL.md covers When to Use, When Not to Use, Inputs and Workflow, plus 3 more sections
  • Calls dotnet

What it does

Create Datadriven Aspnetcore is an agent skill from dotnet/skills, published by the product's own GitHub organization. Generate or scaffold ASP.NET Core code — Razor Pages, Blazor components, MVC controllers, views, and Minimal API endpoints — without using ASP.NET Core CLI scaffolding/code-generation tools. Use when (1) adding CRUD pages, views, or API endpoints backed by Entity Framework (EF Core) and a database, (2) generating code to create, read, update, and delete data using a DbContext, (3) scaffolding UI components that match the project's existing CSS framework and coding patterns, or (4) creating data-driven forms…

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Project scaffolding, REST APIs and ORMs and data access. It works with ASP.NET Core, Blazor and .NET. The repository describes itself as: Repository for skills to assist AI coding agents with .NET and C. The licence is MIT.

When your agent uses it

  • Adding CRUD pages
  • API endpoints backed by Entity Framework (EF Core) and a database
  • Generating code to create
  • Delete data using a DbContext

Example prompts

  • “/create-datadriven-aspnetcore”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Understand the Scaffolding Request
  2. Discover UI Style (non-API scaffolders only)
  3. Apply Blazor-Specific Rules (Blazor scaffolders only)
  4. Generate Code
  5. Set Up Entity Framework (if applicable)
  6. Generate .http File (API scaffolders only)
  7. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 8d670fa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • learn.microsoft.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create Datadriven Aspnetcore loads about 3.2k tokens when it runs. Until then it costs about 166 tokens; SKILL.md has 1,402 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~166
When it runs · the whole SKILL.md, loaded when a task matches
~3.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dotnet/skills at commit 8d670fa, republished under its MIT licence (© dotnet). 1,402 words, ~3,174 tokens.

Download SKILL.mdSave it as .claude/skills/create-datadriven-aspnetcore/SKILL.md (or your agent's skills folder).
name
create-datadriven-aspnetcore
description
Generate or scaffold ASP.NET Core code — Razor Pages, Blazor components, MVC controllers, views, and Minimal API endpoints — without using ASP.NET Core CLI scaffolding/code-generation tools. Use when (1) adding CRUD pages, views, or API endpoints backed by Entity Framework (EF Core) and a database, (2) generating code to create, read, update, and delete data using a DbContext, (3) scaffolding UI components that match the project's existing CSS framework and coding patterns, or (4) creating data-driven forms, tables, and navigation for a model class. Do not use for non-ASP.NET projects or when CLI-based scaffolding is preferred.

Generate or Scaffold ASP.NET Core Code

Generate ASP.NET Core scaffolded code — controllers, views, Razor Pages, Blazor components, Minimal API endpoints. The generated code matches the project's existing CSS framework, layout conventions, and coding patterns. No CLI-based scaffolding/code-generation tools are used; standard dotnet CLI commands for build, restore, and migrations are still expected.

When to Use

  • Adding CRUD pages, views, or components for a model in an ASP.NET Core project
  • Scaffolding API controllers or Minimal API endpoints with Entity Framework Core
  • Generating Razor Pages, MVC views, or Blazor components backed by a DbContext

When Not to Use

  • The project is not an ASP.NET Core project
  • You need to scaffold non-web artifacts (class libraries, console apps, etc.)

Inputs

InputRequiredDescription
Scaffolding requestYesNatural-language description of what to scaffold (see format below)
Project file pathYesFull path to the target .csproj file
Solution root pathRecommendedPath to the solution root for multi-project solutions
Scaffolding Request Format

The scaffolding request should be a natural-language description of what to scaffold. The request must include the target project path and enough detail for the agent to generate the correct code. Examples:

Razor Pages with EF:

Scaffold Razor Pages with CRUD for the `<ModelName>` model (from `<Namespace>`) in project `<path-to-csproj>`.
Create a new DbContext `<DbContextName>` using <database-provider>.
Also scaffold CRUD for any entity that `<ModelName>` depends on via required foreign keys, so parent entities can be created first.

Blazor CRUD components:

Scaffold Blazor CRUD components for the `<ModelName>` model (from `<Namespace>`) in project `<path-to-csproj>`.
Create a new DbContext `<DbContextName>` using <database-provider>.

Minimal API endpoints:

Scaffold Minimal API endpoints for the `<ModelName>` model (from `<Namespace>`) in project `<path-to-csproj>`.
Name the endpoints class `<EndpointsClassName>`.
Create a new DbContext `<DbContextName>` using <database-provider>.
Enable OpenAPI support.

MVC Controller with views:

Scaffold an MVC controller with views and Entity Framework for the `<ModelName>` model (from `<Namespace>`) in project `<path-to-csproj>`.
Name the controller `<ControllerName>`.
Use existing DbContext `<DbContextName>`.
Generate views.

Empty items (no EF):

Scaffold an empty Razor Page named `<PageName>` in project `<path-to-csproj>`.

Workflow

Step 1: Understand the Scaffolding Request

Parse the scaffolding request to identify:

  • Scaffolder type: Razor Pages, Blazor components, MVC controller, Minimal API, empty page/view/component
  • Model class and its namespace
  • DbContext: new or existing, database provider (SQLite, SQL Server, etc.)
  • Named items: controller name, endpoints class name, page name, view name, area name
  • Options: OpenAPI, async actions, partial view, custom layout
  • FK scope: whether to also scaffold CRUD for parent entities referenced by required foreign keys
Execution Checklists

Complete the applicable checklist in order. Do not stop after creating only the requested child resource when a required foreign key makes a parent resource necessary.

All EF scaffolders

  1. Inspect the project file, Program.cs, target model, validation attributes, navigation properties, and foreign keys before editing.
  2. Reuse the requested existing DbContext; otherwise create the requested context. Add only the required provider package and register it with AddDbContext using the requested provider and connection string. You will need to add Microsoft.EntityFrameworkCore.Design (PrivateAssets="all") when migrations are needed and it's missing.
  3. Generate complete CRUD for the requested entity and every required parent entity: list, details, create, edit, and delete.
  4. Use the EF migration lifecycle: create a migration and apply it. Never call EnsureCreated or seed the database in Program.cs.
  5. Restore, build, and test the generated project. Fix errors before reporting completion.

MVC, Razor Pages, and Blazor

  1. Inspect the existing layout, CSS, and representative UI before generating markup.
  2. Generate the complete child and required-parent UI flows, including a navigation path to each resource so users can create a parent before creating a child.
  3. Match the existing UI framework and conventions; preserve existing render-mode configuration for Blazor.

Minimal APIs

  1. Use a route group for each resource and map GET (list and by ID), POST, PUT, and DELETE endpoints for both child and required-parent resources.
  2. Add OpenAPI metadata to every endpoint: unique name, tags, description, success/error response metadata, and WithOpenApi when OpenAPI is enabled.
  3. Create an executable .http file with every CRUD request. Create parent records first, capture or clearly reuse their returned IDs in child requests, and run the requests in dependency order.
Step 2: Discover UI Style (non-API scaffolders only)

Skip this step for API controllers and Minimal API endpoints.

  1. Inspect the project's layout file (_Layout.cshtml, MainLayout.razor, or equivalent)
  2. Inspect the main CSS file (site.css, app.css, Tailwind config, etc.)
  3. Inspect 1–2 existing pages, views, or components in the project

All generated files MUST match the existing UI framework, CSS classes, and conventions. If Bootstrap is used, generate Bootstrap markup. If Tailwind is used, generate Tailwind markup.

Step 3: Apply Blazor-Specific Rules (Blazor scaffolders only)

Skip this step for non-Blazor scaffolders.

  • [SupplyParameterFromForm] properties MUST use = new() (not null!) — prevents EditForm crash on initial GET
  • Program.cs must chain .AddInteractiveServerComponents() on AddRazorComponents() and .AddInteractiveServerRenderMode() on MapRazorComponents<App>(). only add interactive server services/render mode when the generated components actually use @rendermode InteractiveServer (or the project already does).
  • Do not replace existing chained render mode calls (e.g., .AddInteractiveWebAssemblyRenderMode())
Step 4: Generate Code

Generate all code files manually. Follow these constraints:

  • DO NOT use any scaffolding CLI tools
  • DO NOT add packages beyond those required for the scaffolded functionality (e.g., do not add RuntimeCompilation, or other convenience packages)
  • Match the coding style of existing files in the project (naming conventions, indentation, namespace patterns)
Enrich API Endpoints with OpenAPI Metadata (API scaffolders only)

When generating Minimal API or MVC API endpoints with OpenAPI support enabled, add rich metadata to every endpoint so the OpenAPI document is descriptive and useful:

  • .WithName("GetTodoItems") — unique operation ID for each endpoint
  • .WithTags("TodoItems") — group endpoints by resource
  • .WithDescription("Returns all todo items") — human-readable summary
  • .Produces<List<TodoItem>>(StatusCodes.Status200OK) — document success response type
  • .Produces(StatusCodes.Status404NotFound) — document error responses
  • .ProducesValidationProblem() — for endpoints that validate input
  • .WithOpenApi() — opt the endpoint into OpenAPI generation (if not already globally enabled)

Example for a Minimal API GET endpoint:

csharp
group.MapGet("/", async (TodoDbContext db) =>
        await db.TodoItems.ToListAsync())
    .WithName("GetAllTodoItems")
    .WithTags("TodoItems")
    .WithDescription("Returns all todo items")
    .Produces<List<TodoItem>>(StatusCodes.Status200OK);
Show full SKILL.md (555 more words)Show less
Step 5: Set Up Entity Framework (if applicable)

Skip this step if the scaffolding request does not involve Entity Framework.

  • DO NOT seed the database in Program.cs — always use migrations
  • For dotnet ef: prefer dotnet tool restore from a local tool manifest. Only install globally if no manifest exists
  • Inspect the model for navigation properties and foreign keys. Ensure CRUD endpoints/pages exist for referenced entities
  • For API scaffolders: the .http file MUST create parent entities before child entities. Use FK values consistent with creation order
Step 6: Generate .http File (API scaffolders only)

Skip this step for non-API scaffolders.

  1. Create a .http file named {ModelName}.http in the project directory. If a file with that name exists, append a numeric suffix (Product2.http, Product3.http) until unique
  2. Include sample requests for every CRUD endpoint scaffolded, including endpoints for parent/dependent entities
  3. Every request must target the correct URL path matching an actual mapped endpoint
  4. Request labels must accurately describe the action (e.g., "Create a category" must POST to the categories endpoint)
  5. Order requests by dependency: create parent entities before child entities
  6. When possible, capture IDs from parent creation responses using your HTTP client's variable/templating features and reuse them as foreign key values in child-entity POST payloads
  7. If your client cannot capture response values, add comments indicating which FK IDs must be updated after running the parent creation requests; do not leave unrealistic placeholder or assumed FK values that do not correspond to actual parent records when executing the requests
Step 7: Verify
  1. Run dotnet restore && dotnet build from the project directory
  2. If Entity Framework is used and this is the first verification:
    • Run dotnet ef migrations add InitialCreate
    • Run dotnet ef database update
    • You will need to change "InitialCreate" to something else if you run this more than once, as EF Core requires unique migration names.
  3. If API scaffolder:
    • Inspect Properties/launchSettings.json — if a profile named https exists, use dotnet run --launch-profile https
    • Execute EVERY .http request one at a time in dependency order
    • Report method, URL, and status code for each request
    • Stop and fix if any request returns non-2xx
  4. Fix all errors until a clean build succeeds

Validation

  • All generated files match the project's existing CSS framework and conventions
  • dotnet build succeeds with zero errors
  • EF migrations apply cleanly (if applicable)
  • All .http requests return 2xx status codes (if API scaffolder)
  • No forbidden packages were added (RuntimeCompilation, etc.)
  • No CLI scaffolding tools were invoked
  • Blazor [SupplyParameterFromForm] properties use = new() (if Blazor scaffolder)

Common Pitfalls

PitfallSolution
Generated UI doesn't match project's CSS frameworkAlways inspect layout and CSS files before generating code (Step 2)
Blazor EditForm crashes on initial GETUse = new() not null! for [SupplyParameterFromForm] properties
EF migration fails due to missing parent entity CRUDScaffold CRUD for FK-dependent entities when request mentions foreign keys
.http file has wrong FK valuesOrder requests by dependency; use values consistent with creation order
dotnet ef not foundTry dotnet tool restore first; only install globally as fallback
Added unnecessary packagesOnly add packages explicitly required for the scaffolded functionality
Generated code uses different naming conventionsInspect existing project files to match naming patterns before generating

References

© dotnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/dotnet-data/skills/create-datadriven-aspnetcore of dotnet/skills.

Open the folder on GitHubat commit 8d670fa

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in dotnet/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Create Datadriven Aspnetcore next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Datadriven Aspnetcore compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Datadriven Aspnetcore this skilldotnet/skills5.6k1 repos~3.2kAutomated safety check: PassMIT
C# and .NET DeveloperJeffallan/claude-skills12k—~1.3kAutomated safety check: PassMIT
Using Dotnetnovotnyllc/dotnet-artisan233—~2.3kAutomated safety check: WarnMIT
Aspnet Coremanagedcode/dotnet-skills486—~2.1kAutomated safety check: PassMIT
Writing Csharp Codemicrosoft-foundry/foundry-agent-webapp127—~3.2kAutomated safety check: NotesMIT
Chrome Devtools MCPmanagedcode/dotnet-skills486—~2.2kAutomated safety check: PassMIT

Similar skills

  • C# and .NET Developer

    Jeffallan/claude-skills

    Guides C# work on .NET 8+: ASP.NET Core APIs, Entity Framework Core data access, Blazor apps and CQRS with MediatR, following a five-step build workflow.

    12k GitHub stars~1.3k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Using Dotnet

    novotnyllc/dotnet-artisan

    Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…

    233 GitHub stars~2.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: warnings
  • Aspnet Core

    managedcode/dotnet-skills

    Build, debug, modernize, or review ASP.NET Core applications with correct hosting, middleware, security, configuration, logging, and deployment patterns on current .NET.

    486 GitHub stars~2.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Writing Csharp Code

    microsoft-foundry/foundry-agent-webapp

    Provides C and ASP.NET Core coding standards for this repository.

    127 GitHub stars~3.2k tokensUpdated 5 mo ago
    Backend & APIsAuto-check: notes
  • Chrome Devtools MCP

    managedcode/dotnet-skills

    Use Chrome DevTools MCP from .NET agents and .NET-focused repos to inspect, debug, and automate Chrome through an MCP client.

    486 GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Aspnet Core

    fanslead/ReverseProxy.Store

    Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development.

    163 GitHub starsUsed in 2 repos~1.4k tokens
    Backend & APIsAuto-check passed

More from dotnet/skills

All 91 skills in this repo
  • Official

    Resolves .NET runtime frames in Apple .ips crash logs to function names, source files and line numbers using dSYM symbols, atos and the Microsoft symbol server.

    5.6k GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed
  • Official

    Resolves native crash frames from .NET Android tombstones to function names, source files and line numbers using BuildIds, Microsoft's symbol server and llvm-symbolizer.

    5.6k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Official

    Scans C# and .NET code for about 50 performance anti-patterns and reports prioritized findings with concrete fixes, at a scan depth you choose.

    5.6k GitHub starsUsed in 3 repos~3.1k tokens
    Auto-check passed
  • Official

    Statically pairs source files with test files to list code that no test references, using Roslyn for C# or tree-sitter for many languages, with no build.

    5.6k GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check passed
  • Microbenchmarking

    dotnet/skills

    Official

    Activate this skill when BenchmarkDotNet (BDN) is involved in the task — creating, running, configuring, or reviewing BDN benchmarks.

    5.6k GitHub starsUsed in 3 repos~3.3k tokens
    Auto-check passed
  • Official

    Makes .NET projects compatible with Native AOT and trimming by resolving IL trim and AOT analyzer warnings through annotations rather than suppressions.

    5.6k GitHub starsUsed in 2 repos~4.2k tokens
    Auto-check passed

Questions about Create Datadriven Aspnetcore

What does Create Datadriven Aspnetcore do?

Generate or scaffold ASP.NET Core code — Razor Pages, Blazor components, MVC controllers, views, and Minimal API endpoints — without using ASP.NET Core CLI scaffolding/code-generation tools. Create Datadriven Aspnetcore is an agent skill from dotnet/skills, published by the product's own GitHub organization.NET Core CLI scaffolding/code-generation tools.

When should I use Create Datadriven Aspnetcore?

Create Datadriven Aspnetcore fits situations like: adding CRUD pages; API endpoints backed by Entity Framework (EF Core) and a database; generating code to create; delete data using a DbContext.

How do I install Create Datadriven Aspnetcore in Claude Code?

Run `npx skills add dotnet/skills --skill create-datadriven-aspnetcore -a claude-code`. Or copy the skill folder (plugins/dotnet-data/skills/create-datadriven-aspnetcore in dotnet/skills) into .claude/skills/create-datadriven-aspnetcore in your project. Claude Code loads it when a task matches its description.

How do I install Create Datadriven Aspnetcore in Codex?

Run `npx skills add dotnet/skills --skill create-datadriven-aspnetcore -a codex`. Or copy the skill folder (plugins/dotnet-data/skills/create-datadriven-aspnetcore in dotnet/skills) into .agents/skills/create-datadriven-aspnetcore in your project. Codex loads it when a task matches its description.

Can I use Create Datadriven Aspnetcore in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dotnet/skills --skill create-datadriven-aspnetcore -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-datadriven-aspnetcore, .gemini/skills/create-datadriven-aspnetcore, .github/skills/create-datadriven-aspnetcore and .opencode/skills/create-datadriven-aspnetcore in your project.

What does Create Datadriven Aspnetcore need to run?

Going by SKILL.md and its folder, Create Datadriven Aspnetcore needs the command-line tools its instructions call (dotnet).

Does Create Datadriven Aspnetcore access the network?

SKILL.md names 1 domain. As links in the text: learn.microsoft.com. This is read from the text; nothing was executed.

Is Create Datadriven Aspnetcore safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Datadriven Aspnetcore use?

Create Datadriven Aspnetcore is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Datadriven Aspnetcore use?

About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Datadriven Aspnetcore?

Skills that share tags, products or a category with Create Datadriven Aspnetcore: C# and .NET Developer (Jeffallan/claude-skills, 12k stars), Using Dotnet (novotnyllc/dotnet-artisan, 233 stars), Aspnet Core (managedcode/dotnet-skills, 486 stars) and Writing Csharp Code (microsoft-foundry/foundry-agent-webapp, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Datadriven Aspnetcore?

dotnet (a GitHub organization, an official publisher) maintains it in dotnet/skills, which has 5,568 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 7, 2026.

Source: dotnet/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.