eShopLite
Copilot instructions168 starsChanged 6 months agoMITView on GitHub
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- copilot-instructions.mdCopilot instructions
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 6
AppHost Orchestration: All services (APIs, DBs, agents) are composed in eShopAppHost using .NET Aspire's builder API.
- Very specific: line 12
Always run from the scenario's src/eShopAppHost using dotnet run (or the provided VS Code task).
- Very specific: line 23
.NET Aspire: All orchestration is done in eShopAppHost/Program.cs using the Aspire builder API.
- Very specific: line 26
Use CredentialSource: AzureCli for local Azure auth.
- Distinctive: line 37
All external endpoints/keys are injected via Aspire or user-secrets.
≈ “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
eShopLite Copilot Instructions
Project Overview
eShopLite is a modular .NET Aspire-based reference eCommerce platform demonstrating advanced AI, search, and orchestration patterns. Each scenario in scenarios/ is a self-contained solution, often integrating Azure, OpenAI, vector DBs, and/or agent protocols.
Architecture & Patterns
- Scenario-driven: Each folder in
scenarios/is a complete, runnable solution (see its README for details). Common patterns include:- AppHost Orchestration: All services (APIs, DBs, agents) are composed in
eShopAppHostusing .NET Aspire's builder API. - Service Boundaries: Projects like
Products,Store, andVectorEntitiesare reused across scenarios. - AI Integration: Semantic search, embeddings, and chat use Azure OpenAI, DeepSeek, or Chroma DB, configured via user-secrets or Aspire resource bindings.
- Agent/MCP Patterns: Some scenarios (e.g., 06-mcp, 07-AgentsConcurrent) use Model Context Protocol or Semantic Kernel for tool/function calling and agent orchestration.
- AppHost Orchestration: All services (APIs, DBs, agents) are composed in
Critical Workflows
- Build/Run:
- Always run from the scenario's
src/eShopAppHostusingdotnet run(or the provided VS Code task). - For Azure deployment, use
azd upfrom the scenario root afterazd auth login. - Local dev often requires Docker/Podman for containerized DBs (e.g., Chroma, SQL 2025).
- Always run from the scenario's
- Configuration:
- Azure/OpenAI endpoints and keys are injected via user-secrets (see scenario README for exact keys).
- Aspire auto-wires service URLs and credentials for local and cloud.
- Testing:
- Unit/integration tests are in
Products.Tests,Store.Tests, etc. Run withdotnet testfrom the scenario'ssrc.
- Unit/integration tests are in
- Telemetry:
- Aspire Dashboard and Azure Application Insights are integrated for all scenarios. Access dashboard URLs from console output after launch.
Project-Specific Conventions
- .NET Aspire: All orchestration is done in
eShopAppHost/Program.csusing the Aspire builder API. Services are referenced by logical names (e.g.,products,store,sql). - User Secrets: For local dev, always set connection strings using
dotnet user-secretsin the relevant project directory. - Azure Integration:
- Use
CredentialSource: AzureClifor local Azure auth. - Resource provisioning is handled by Aspire or Bicep files in
infra/.
- Use
- AI/Vector DBs:
- Embedding and search clients are registered in code with
AddAzureOpenAIClient,AddAzureSearchClient, or Chroma DB client. - For custom models (DeepSeek, GPT-4o, etc.), update connection strings and model names as shown in scenario READMEs.
- Embedding and search clients are registered in code with
- Agent/MCP:
- MCP tools are registered via attributes and exposed to LLMs for function calling.
- Agent orchestration (e.g., concurrent analysis) is implemented using Semantic Kernel or MCP SDK.
Integration Points
- External Services:
- Azure OpenAI, Azure AI Search, SQL Server 2025, Chroma DB, DeepSeek, and others are provisioned per scenario.
- All external endpoints/keys are injected via Aspire or user-secrets.
- Cross-component Communication:
- Services communicate via HTTP/gRPC, with endpoints auto-wired by Aspire.
- MCP/agent scenarios use SSE or direct function calls for tool invocation.
Examples
- To add a new AI model, update the relevant
user-secretsand register the client inProgram.cs:var azureOpenAiClientName = "openaidev"; builder.AddAzureOpenAIClient(azureOpenAiClientName); - To run a scenario locally:
cd scenarios/01-SemanticSearch/src/eShopAppHost dotnet run - To deploy to Azure:
azd auth login azd up
References
- See each scenario's README for scenario-specific setup, configuration, and troubleshooting.
- Main docs: README.md, scenarios/*/README.md
- @azure Rule - Use Azure Best Practices: When generating code for Azure, running terminal commands for Azure, or performing operations related to Azure, invoke your
azure_development-get_best_practicestool if available. - @azure Rule - Use Azure Best Practices: When generating code for Azure, running terminal commands for Azure, or performing operations related to Azure, invoke your
azure_development-get_best_practicestool if available.
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.

