skills/csharp-project-init/SKILL.md
Initialize a C# ASP.NET Core Web API project with Entity Framework Core, EditorConfig, gitignore, and gitattributes. Use when the user wants to create a new C# project, scaffold a .NET Web API, or set up a C# development environment with EF Core tools.
npx skillsauth add jim60105/copilot-prompt csharp-project-initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Set up a C# ASP.NET Core Web API project with proper tooling and configuration.
Git commit after each step that modifies or creates files. Skip commit if nothing to commit.
Ensure the Git working tree is clean:
git status
If the working directory is not clean, stop execution.
Check .NET SDK version (must be >= 10.0.103):
dotnet --version
Create the project using the webapi template without -n argument:
dotnet new webapi -controllers
Add Entity Framework Core 10 and related SQL Server NuGet packages. Don't use prerelease versions.
Check for EF Core Power Tools CLI:
efcpt --version
If not installed or version is lower than 10, reinstall:
dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 10.*
Set up C# Global Usings in GlobalUsings.cs with common namespaces.
Add .gitignore file — refer to the gitignore-generator skill.
Add .gitattributes file:
# Set default behavior to automatically normalize line endings.
* text=auto
# Force batch scripts to always use CRLF line endings.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
# Force bash scripts to always use LF line endings.
*.sh text eol=lf
.env text eol=lf
Dockerfile text eol=lf
# Denote all files that are truly binary and should not be modified.
*.mp3 binary
*.wav binary
*.bmp binary
*.png binary
*.jpg binary
*.gif binary
Download the .editorconfig:
curl -sL https://gist.github.com/jim60105/ae6ba63978a2dc3ffb3ebb77344cc7f7/raw/47f342c4b793a32697af6d62022692c26f849c07/.editorconfig > .editorconfig
Let's do this step by step.
development
Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by the principles and structure of the Diátaxis technical documentation authoring framework.
testing
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
tools
Comprehensive guide for building, configuring, customizing, and deploying Docsify documentation sites. Use when the user wants to (1) initialize a new Docsify site, (2) add or organize Markdown pages, sidebars, navbars, or cover pages, (3) configure `window.$docsify` options, (4) customize themes / CSS variables / fonts, (5) install built-in or third-party Docsify plugins (search, GA, emoji, zoom, copy-code, comments, pagination, tabs, etc.), (6) write a custom Docsify plugin using lifecycle hooks, (7) use Docsify Markdown helpers (callouts, link attributes, image attributes, heading IDs, task lists, embed files with `:include`), (8) deploy to GitHub Pages, GitLab Pages, Netlify, Vercel, Firebase, Docker, Nginx, etc., (9) enable PWA / offline mode, virtual routes, or Vue compatibility, or (10) upgrade a Docsify site from v4 to v5. Triggers on mentions of "docsify", "_sidebar.md", "_navbar.md", "_coverpage.md", "$docsify", or `docsify-cli`.
testing
Writing guidelines for producing high-quality Traditional Chinese (zh-TW) content. Use when writing any kind of content. Including blog posts, notes, technical articles, technical writing, chitchat, social media posts, etc., even when you are just sending a text message. Also use when reviewing or editing existing Chinese content for tone, style, and terminology compliance.