Generative-AI-for-beginners-dotnet
Copilot instructions3.1k starsChanged 9 months agoMITView on GitHub
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/Generative-AI-for-beginners-dotnet
- @adnug.bsky.social“Despite the wet and windy weather, we had a great turnout for our "Move over Python, AI just got a new best …”Bluesky · Jul 10, 2025 · 2 likes
- dotnet-presentations/ai-workshop“Unit 10 - Microsoft Agent Framework essentials (single agent, tools, memory, multi-agent bridge)”GitHub · Jul 26, 2026 · 1 reactions
- @demir-lenk.bsky.social“Really helpful resource about .net with ai. It Help me a lot github.com/microsoft/Ge...”Bluesky · Mar 5, 2025 · 1 likes
- microsoft/generative-ai-with-javascript“Link Checker Report”GitHub · Oct 4, 2026
- microsoft/generative-ai-with-javascript“Link Checker Report”GitHub · Sep 27, 2026
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub and Bluesky (27 times).
On GitHub · 25
- Jul 26, 2026Unit 10 - Microsoft Agent Framework essentials (single agent, tools, memory, multi-agent bridge) — dotnet-presentations/ai-workshop1 reaction
- Oct 4, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Sep 27, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Sep 20, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Sep 13, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
20 more on GitHub
- Sep 6, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 30, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 23, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 16, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 9, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 2, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 26, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 19, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 12, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 5, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 28, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 21, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 14, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 7, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- May 31, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Mar 11, 2026Curso Gen AI 4 Beginners — MarioCodes/dotnet-ai-experiments0 reactions
- Feb 16, 2026Migrate Microsoft AgentFx AI Web Chat App to Fluent UI Blazor and Implement DocAssistant.Charty Architecture (Schema/Examples Memory + SQL Chat + Charting + Security Policies) — YuriyMorozyuk95/DocAssistant.Charty_20 reactions
- Feb 15, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Feb 15, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Nov 11, 2025Add Microsoft Agent Framework integration with three operational modes — elbruno/251112-netconf25-customavatar0 reactions
On Bluesky · 2
- Jul 10, 2025Despite the wet and windy weather, we had a great turnout for our "Move over Python, AI just got a new best friend! .NET!" event last… — @adnug.bsky.social2 likes and reposts
- Mar 5, 2025Really helpful resource about .net with ai. It Help me a lot github.com/microsoft/Ge... — @demir-lenk.bsky.social1 likes and repost
In this repository78 other files it gives its agents.
- AGENTS.mdAGENTS.md
- samples/CoreSamples/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-AG-UI/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-MutliAgent/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-Persisting/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-Simple/.github/copilot-instructions.mdCopilot instructions
- .squad/templates/copilot-instructions.mdCopilot instructions
- agent-collaborationSkill
- coordinator-init-modeSkill
- coordinator-response-modeSkill
- coordinator-source-of-truthSkill
- cross-squad-communicationSkill
- cross-squadSkill
- error-recoverySkill
- git-workflowSkill
- iterative-retrievalSkill
- reflectSkill
- reviewer-protocolSkill
- secret-handlingSkill
- session-recoverySkill
- squad-conventionsSkill
- squad-helpSkill
- squadSkill
- squad-version-checkSkill
- test-disciplineSkill
- tiered-memorySkill
- {skill-name}Skill
- agent-collaborationSkill
- agent-conductSkill
- architectural-proposalsSkill
- ci-validation-gatesSkill
- client-compatibilitySkill
- cli-wiringSkill
- coordinator-init-modeSkill
- coordinator-response-modeSkill
- coordinator-source-of-truthSkill
- cross-machine-coordinationSkill
- cross-squad-communicationSkill
- cross-squadSkill
- distributed-meshSkill
- docs-standardsSkill
- e2e-template-testingSkill
- economy-modeSkill
- error-recoverySkill
- external-commsSkill
- fact-checkingSkill
- gh-auth-isolationSkill
- github-multi-accountSkill
- git-workflowSkill
- history-hygieneSkill
- humanizerSkill
- init-modeSkill
- iterative-retrievalSkill
- model-selectionSkill
- napSkill
- notification-routingSkill
- personal-squadSkill
- project-conventionsSkill
- pr-review-responseSkill
- The first 60 shown.
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 7
All code samples live in the centralized samples/ directory, organized by category: CoreSamples/, MAF/, AppsWithGenAI/, PracticalSamples/.
- Very specific: line 23
Run dotnet format before committing any changes to ensure proper C# code formatting and style
- Very specific: line 24
Ensure all code builds with dotnet build and passes tests with dotnet test
- Very specific: line 25
Verify formatting with dotnet format --verify-no-changes if linting is enabled
- Very specific: line 27
Use standard .NET CLI: dotnet build, dotnet run from the relevant project folder (e.g., cd …
- Very specific: line 35
Run sample apps in the samples/ directory to verify model integration and workflow.
- Distinctive: line 38
Follow C# and .NET best practices (naming conventions, async/await patterns, nullable reference types)
- Distinctive: line 39
Use modern .NET features (top-level statements, file-scoped namespaces, pattern matching) where appropriate
- Distinctive: line 40
Write unit tests for new functionality when possible (use xUnit or MSTest)
- Distinctive: line 41
Document public APIs, sample usage, and complex logic
- Very specific: line 42
Prefer dependency injection and configuration via appsettings.json for new .NET projects
- Distinctive: line 43
Keep code and documentation accessible for beginners—add comments and links to docs where helpful
- Distinctive: line 47
All lessons include a short video, code sample, and step-by-step guide.
- Very specific: line 49
Use 01-IntroductionToGenerativeAI/setup-azure-openai.md and 01-IntroductionToGenerativeAI/setup-local-ollama.md for setup.
- Distinctive: line 51
Use key bindings in sample apps to toggle AI modes, save screenshots, and display FPS (see app README for details).
- Distinctive: line 80
Use key bindings to toggle AI modes, save screenshots, and display FPS during gameplay.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions for Generative-AI-for-beginners-dotnet
Project Purpose & Structure
- This repo is a hands-on .NET course for Generative AI, focused on real-world, runnable code and live coding.
- Lessons are organized in numbered folders (
01-IntroductionToGenerativeAI/through05-ResponsibleAI/), each with areadme.mdfor documentation. - All code samples live in the centralized
samples/directory, organized by category:CoreSamples/,MAF/,AppsWithGenAI/,PracticalSamples/. - Key technologies: .NET 10+, Microsoft.Extensions.AI (MEAI), Microsoft Agent Framework, Azure OpenAI, Ollama (local models).
- Multi-language support: see
translations/for localized docs.
Architecture & Patterns
- Each lesson folder contains documentation; code samples are in
samples/(e.g.,samples/AppsWithGenAI/SpaceAINet/demonstrates full-stack AI integration). - Samples are organized under
samples/by category:CoreSamples/,MAF/,AppsWithGenAI/,PracticalSamples/. - AI model calls are always abstracted behind service classes (e.g.,
SpaceAINet.GameActionProcessor), enabling easy provider swapping and testability. - API keys and endpoints are never hardcoded—use user secrets or environment variables (see lesson READMEs for details).
- For SpaceAINet and similar apps:
- AI providers (Ollama, Azure OpenAI) are toggled at runtime via key bindings.
- Game state is sent to the AI model, which returns a JSON action and explanation.
- Screenshots and FPS toggles are built-in for debugging and demonstration.
Developer Workflows
- Code Formatting (Required Before Each Commit):
- Run
dotnet formatbefore committing any changes to ensure proper C# code formatting and style - Ensure all code builds with
dotnet buildand passes tests withdotnet test - Verify formatting with
dotnet format --verify-no-changesif linting is enabled
- Run
- Build & Run:
- Use standard .NET CLI:
dotnet build,dotnet runfrom the relevant project folder (e.g.,cd samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Console). - For local AI: ensure Ollama is running and the required model is pulled (e.g.,
ollama pull phi4-mini). - For Azure: set secrets via
dotnet user-secretsor Codespaces secrets.
- Use standard .NET CLI:
- Switching AI Providers:
- Most samples support toggling between local (Ollama) and cloud (Azure OpenAI) models at runtime (see app key bindings and README tables).
- Codespaces:
- Dev containers are pre-configured for .NET, Azure, and Ollama workflows. Choose the right container for your use case.
- Testing:
- Run sample apps in the
samples/directory to verify model integration and workflow.
- Run sample apps in the
Code Standards & Best Practices
- Follow C# and .NET best practices (naming conventions, async/await patterns, nullable reference types)
- Use modern .NET features (top-level statements, file-scoped namespaces, pattern matching) where appropriate
- Write unit tests for new functionality when possible (use xUnit or MSTest)
- Document public APIs, sample usage, and complex logic
- Prefer dependency injection and configuration via
appsettings.jsonfor new .NET projects - Keep code and documentation accessible for beginners—add comments and links to docs where helpful
- For AI integrations (Azure OpenAI, Ollama, etc.), follow official SDK and security guidelines
Project-Specific Conventions
- All lessons include a short video, code sample, and step-by-step guide.
- The code samples can be found at the
samplesfolder - Use
01-IntroductionToGenerativeAI/setup-azure-openai.mdand01-IntroductionToGenerativeAI/setup-local-ollama.mdfor setup. - AI integration is always via service abstraction (never direct model calls in UI or game logic).
- Use key bindings in sample apps to toggle AI modes, save screenshots, and display FPS (see app README for details).
- For translations, update the corresponding
translations/<lang>/README.md. - Maintain existing code structure and organization—place new samples in the correct
samples/subfolder
Integration Points & External Dependencies
- Azure OpenAI: Requires endpoint, model name, and API key (see
01-IntroductionToGenerativeAI/setup-azure-openai.md). - Ollama: Requires local server running and model pulled (see
getting-started-ollama.md).
Key Files & Directories
README.md(root): Course overview, lesson map, and links to translations.01-IntroductionToGenerativeAI/through05-ResponsibleAI/: Lesson folders with documentation and guides.samples/CoreSamples/: Core technique samples (chat, vision, RAG, functions, etc.).samples/MAF/: Microsoft Agent Framework samples (25+ projects).samples/AppsWithGenAI/SpaceAINet/: AI-powered Space Battle game (seeREADME.mdinside for architecture).samples/AppsWithGenAI/HFMCP.GenImage/: Image generation Aspire app.samples/PracticalSamples/: Aspire MCP sample.translations/: Localized documentation.CONTRIBUTING.MD: Contribution and PR guidelines.
Example: Running SpaceAINet
- Pull Ollama model:
ollama pull phi4-mini - Set Azure secrets (if using cloud):
dotnet user-secrets set "AZURE_OPENAI_ENDPOINT" "<your-endpoint>"dotnet user-secrets set "AZURE_OPENAI_MODEL" "<your-model-name>"dotnet user-secrets set "AZURE_OPENAI_APIKEY" "<your-api-key>"
- Build & run:
cd samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Consoledotnet build && dotnet run
- Use key bindings to toggle AI modes, save screenshots, and display FPS during gameplay.
Contribution
- See
CONTRIBUTING.MDfor PR and issue guidelines. - Report issues or suggest improvements via GitHub Issues.
For more, see lesson READMEs and the root README.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

