agentleFS
Azure-SamplesAzure-Samples/eShopLite/copilot-instructions.md

eShopLite

Copilot instructions168 starsChanged 6 months agoMITView on GitHub

This repository contains practical, beginner-friendly samples and lessons for building Generative AI applications using .NET 10 and Blazor. It is focused on the eShopLite scenario, demonstrating modern .NET, Generative AI, Blazor, MCP, Semantic Search integration and more.

The file

We split this copilot-instructions.md into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run dotnet format to ensure C# code style and formatting

    line 17
  2. Very specific:

    Ensure all code builds and passes tests: dotnet build and dotnet test

    line 18
  3. Distinctive:

    Follow C# and .NET best practices (naming, async/await, nullability, etc.)

    line 28
  4. Distinctive:

    Use modern .NET features (e.g., top-level statements, nullable reference types, dependency injection)

    line 29
  5. Distinctive:

    Write unit tests for new features (prefer xUnit or MSTest)

    line 31
  6. Distinctive:

    Document public APIs, sample usage, and complex logic.

    line 32
  7. Very specific:

    Use configuration via appsettings.json and dependency injection for new .NET code

    line 34
  8. Distinctive:

    Keep code and documentation accessible for beginners—add comments and links to docs where helpful

    line 35
  9. Distinctive:

    Use Azure AI Search and Generative AI services following Microsoft best practices

    line 39
  10. Distinctive:

    Do not hardcode secrets or credentials—use configuration and environment variables

    line 40

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Copilot Coding Instructions for eShopLite

This repository contains practical, beginner-friendly samples and lessons for building Generative AI applications using .NET 10 and Blazor. It is focused on the eShopLite scenario, demonstrating modern .NET, Generative AI, Blazor, MCP, Semantic Search integration and more.

Repository Intent & Goals

  • Provide hands-on, accessible code samples for integrating Generative AI in a sample eCommerce .NET 10 application.
  • Showcase best practices for Blazor, .NET 10, Azure AI Search, MCP, and Semantic Search in a multi-project solution.
  • Enable beginners to learn, build, and extend AI-powered .NET applications.

Repository Structure

  • scenarios/ — Main scenarios for eShopLite
  • images/ — Course and lesson images

Code Standards & Contribution Guidelines

Required Before Each Commit

  • Run dotnet format to ensure C# code style and formatting
  • Ensure all code builds and passes tests: dotnet build and dotnet test

Development Flow

  • Build: dotnet build
  • Test: dotnet test
  • Format: dotnet format
  • Lint (if enabled): dotnet format --verify-no-changes
  • For other tools (e.g., Python, Docker), follow the relevant lesson's readme.md

Best Practices

  1. Follow C# and .NET best practices (naming, async/await, nullability, etc.)
  2. Use modern .NET features (e.g., top-level statements, nullable reference types, dependency injection)
  3. Maintain the existing solution structure—add new samples to the correct project or lesson folder
  4. Write unit tests for new features (prefer xUnit or MSTest)
  5. Document public APIs, sample usage, and complex logic. Update lesson readme.md files as needed
  6. For Azure AI integrations (Azure OpenAI, Azure AI Search, etc.), follow official SDK and security guidelines
  7. Use configuration via appsettings.json and dependency injection for new .NET code
  8. Keep code and documentation accessible for beginners—add comments and links to docs where helpful
  9. Prioritize Blazor and .NET 10 patterns over older ASP.NET approaches

AI & Azure Guidelines

  • Use Azure AI Search and Generative AI services following Microsoft best practices
  • Do not hardcode secrets or credentials—use configuration and environment variables
  • Reference official Microsoft documentation for SDK usage and security

Additional Notes

  • This repository is intended for educational purposes and rapid prototyping
  • Contributions should be clear, well-documented, and beginner-friendly

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.