Sorcha
Copilot instructions2 starsChanged 10 months agoMITView on GitHub
Purpose: Give AI coding agents the minimal, actionable knowledge to be productive in this repo.
In this repository79 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms-full.txtllms.txt
- llms.txtllms.txt
- aspireSkill
- aspnet-coreSkill
- blazorSkill
- blueprint-builderSkill
- configuring-opentelemetry-dotnetSkill
- coverage-analysisSkill
- coverletSkill
- cryptographySkill
- database-expertSkill
- dockerSkill
- dotnetSkill
- entity-framework-coreSkill
- entity-frameworkSkill
- fluent-assertionsSkill
- frontend-designSkill
- grpcSkill
- jwtSkill
- mcpSkill
- microsoft-extensionsSkill
- migrate-xunit-to-xunit-v3Skill
- minimal-api-file-uploadSkill
- minimal-apisSkill
- mongodbSkill
- moqSkill
- nbitcoinSkill
- network-bootstrapSkill
- nunitSkill
- optimizing-ef-core-queriesSkill
- playwrightSkill
- postgresqlSkill
- prodexecSkill
- redisSkill
- scalarSkill
- signalrSkill
- sorcha-appSkill
- sorcha-architectureSkill
- sorcha-cliSkill
- sorcha-uiSkill
- speckit-agent-context-updateSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- verifiable-credentialsSkill
- walkthrough-builderSkill
- worker-servicesSkill
- The first 60 shown.
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- Distinctive: line 6
Run locally (recommended): use Aspire AppHost to start all services and Redis integration.
- Distinctive: line 12
If running services individually: prefer the AppHost for correctness, but individual services can be started with:
- Very specific: line 20
Use the Sorcha.ServiceDefaults extension methods.
- Very specific: line 42
Use SchemaLibraryService and ISchemaRepository for schema lookups.
- Very specific: line 50
Keep cross-cutting changes confined to Sorcha.ServiceDefaults when possible.
- Distinctive: line 51
Prefer extension methods and DI registration over scattering configuration across projects.
- Very specific: line 52
Add health checks to new services at /health and /alive for Aspire to aggregate.
- Distinctive: line 53
When adding HTTP endpoints follow minimal APIs style and register OpenAPI metadata.
- Very specific: line 65
Use xUnit, Moq, and FluentAssertions.
- Distinctive: line 72
Don't assume ports are fixed — AppHost or project launchSettings may override ports.
- Very specific: line 77
Keep PRs focused and limited to one area (engine, schemas, designer).
- Very specific: line 78
Run dotnet test and verify no regressions in unit tests for modified projects.
- Very specific: line 79
Run dotnet format before committing.
- Distinctive: line 81
If anything here is unclear or you'd like more examples (e.g., exact DI registration snippets or test harness examples), tell me which …
≈ “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 / AI Agent Instructions for Sorcha
Purpose: Give AI coding agents the minimal, actionable knowledge to be productive in this repo.
- Project Type: .NET 10 microservice platform using .NET Aspire for local orchestration. Key layers:
src/Apps,src/Common,src/Core,src/Services. Run locally (recommended): use Aspire AppHost to start all services and Redis integration.
- Command:
dotnet run --project src/Apps/Sorcha.AppHost - Aspire dashboard:
http://localhost:15888 - Common endpoints: API Gateway
https://localhost:7082, Designerhttps://localhost:7083, Engine (varies)
- Command:
- If running services individually: prefer the AppHost for correctness, but individual services can be started with:
dotnet run --project src/Services/Sorcha.ApiGatewaydotnet run --project src/Services/Sorcha.Blueprint.Servicedotnet run --project src/Services/Sorcha.Peer.Service
- Health endpoints: services expose
/healthand/alive. Use these for liveness checks and Aspire health aggregation. - Shared configuration / conventions:
- Use the
Sorcha.ServiceDefaultsextension methods. Seesrc/Common/Sorcha.ServiceDefaults/Extensions.csfor how services are wired (OpenTelemetry, health, resilience). - Map service endpoints with
MapDefaultEndpoints(WebApplication)where appropriate. - OpenTelemetry and resilience policies are configured centrally; avoid duplicating configuration.
- Use the
- Blueprint domain & code patterns:
- Domain models live in
src/Common/Sorcha.Blueprint.Models/(Blueprint, Action, Participant, Disclosure). Fluent builders are in
src/Core/Sorcha.Blueprint.Fluent/— prefer using builders for generating blueprints in tests and examples. Example:var blueprint = BlueprintBuilder.Create() .WithTitle("Purchase Order") .AddParticipant("buyer", p => p.Named("Buyer")) .AddAction(0, a => a .WithTitle("Submit Order") .SentBy("buyer") .RequiresData(d => d.AddProperty("itemName","string")) ) .Build();
- Domain models live in
- Schema handling:
- Schema services are under
src/Core/Sorcha.Blueprint.Schemas.Client/. - Use
SchemaLibraryServiceandISchemaRepositoryfor schema lookups; client caches schemas in local storage (LocalStorageSchemaCacheService) in the Designer.
- Schema services are under
- Tests & CI:
- Tests live under
tests/(unit, integration, E2E, performance). Rundotnet testat solution root or target a specific test project. - Integration tests require Docker (Redis). Ensure Docker Desktop is running for
Sorcha.Gateway.Integration.Testsand any tests that rely on Redis. - Formatting and checks:
dotnet format,dotnet list package --vulnerable,dotnet list package --outdated.
- Tests live under
- Conventions for changes:
- Keep cross-cutting changes confined to
Sorcha.ServiceDefaultswhen possible. - Prefer extension methods and DI registration over scattering configuration across projects.
- Add health checks to new services at
/healthand/alivefor Aspire to aggregate. - When adding HTTP endpoints follow minimal APIs style and register OpenAPI metadata.
- Keep cross-cutting changes confined to
- Where to look for common tasks:
- Service orchestration:
src/Apps/Sorcha.AppHost/AppHost.cs - Service defaults & telemetry:
src/Common/Sorcha.ServiceDefaults/(extension methods, MapDefaultEndpoints) - Blueprint models:
src/Common/Sorcha.Blueprint.Models/ - Fluent builders:
src/Core/Sorcha.Blueprint.Fluent/ - Schema library:
src/Core/Sorcha.Blueprint.Schemas.Client/ - API Gateway (YARP):
src/Services/Sorcha.ApiGateway/
- Service orchestration:
- Test naming and patterns:
- Unit tests follow
MethodName_Scenario_ExpectedBehavior(seedocs/architecture.mdTest Naming Convention). - Use
xUnit,Moq, andFluentAssertions.
- Unit tests follow
- Integration & E2E specifics:
- E2E Playwright tests live in
tests/Sorcha.UI.E2E.Tests/; follow Playwright setup in the README for headless/headed runs. - Performance tests (NBomber) are in
tests/Sorcha.Performance.Tests/and produce reports inperformance-reports/.
- E2E Playwright tests live in
- Common pitfalls (discoverable from repo):
- Don't assume ports are fixed — AppHost or project launchSettings may override ports. Verify console output or Aspire dashboard URLs.
- Redis-based features require Docker; skip or mock when Docker is unavailable.
- Peer service is work-in-progress; changes may be incomplete — check
peer-service-design.mdandpeer-service-implementation-plan.md.
- PR guidance for AI agents:
- Keep PRs focused and limited to one area (engine, schemas, designer). Update
docs/for behavioral changes. - Run
dotnet testand verify no regressions in unit tests for modified projects. - Run
dotnet formatbefore committing.
- Keep PRs focused and limited to one area (engine, schemas, designer). Update
If anything here is unclear or you'd like more examples (e.g., exact DI registration snippets or test harness examples), tell me which areas to expand and I will update this file accordingly.
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.

