# Scaffolding

> Scaffolding is an Agent Skill for development published in the dotnet/dotnet repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Implementation details for EF Core scaffolding (reverse engineering). Use when changing ef dbcontext scaffold pipeline implementation, database schema reading, CSharpModelGenerator, or related classes.

- Skill name: `scaffolding`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/dotnet/dotnet/blob/HEAD/src/efcore/.agents/skills/scaffolding/SKILL.md
- Repository: dotnet/dotnet (1,183 GitHub stars when collected)

## SKILL.md

# Scaffolding

Generates C# code from database schemas (reverse engineering).

## When Not to Use

- Working on compiled model generation (`dotnet ef dbcontext optimize`)

## Reverse Engineering

Pipeline: `IDatabaseModelFactory` (reads schema) → `IScaffoldingModelFactory` (builds EF model) → `IModelCodeGenerator` (generates C#)
- `IReverseEngineerScaffolder` — orchestrates full pipeline

---

Source: https://www.openparable.com/skill/development/scaffolding (OpenParable). Cite the canonical URL above.
