Copilot instructions
.github/instructions/worker.instructions.mdCopilot instructions
Quality
51/100
Scores the file, not the repository.Length
182 words
6 headings · 0 code blocksRepository
7
— · pushed 173 days agoLast changed
3 days ago
First indexed 3 days ago.12345# Worker Layer Rules67These rules apply exclusively to the `Worker` project layer (background services, message handlers, batch processing).89## Consumer Design10- MassTransit consumers must be `sealed` classes11- One consumer per message type — no multi-message consumers12- Implement `IConsumer<TMessage>` explicitly1314## Observability15- Start an `Activity` for every consumer/handler entry point: `App.ActivitySource.StartActivity("OperationName")`16- Record exceptions on the activity span: `activity?.RecordException(ex)`17- Use source-generated logging (`[LoggerMessage]`) — never use string interpolation with `ILogger` directly1819## Error Handling20- Never swallow exceptions silently (`catch (Exception) { }`)21- Log the exception and let MassTransit's retry/error pipeline handle redelivery22- Use Polly retry policies for transient external calls (HTTP, database)23- Propagate `CancellationToken` through the entire call chain2425## Quartz Jobs26- Apply `[DisallowConcurrentExecution]` on jobs that must not overlap27- Apply `[PersistJobDataAfterExecution]` when job state must survive between runs28- Verify Cron schedule expressions — placeholder `{0}` must be replaced with actual values2930## Dependencies31- `Worker` → `Abstractions`, `Core` (same dependency rules as other layers)32- No direct database access — delegate to `Core` services or repository interfaces from `Abstractions`33
Also in AndreasKarz/Vibe-Coding-Dev-Setup
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| AndreasKarz/Vibe-Coding-Dev-Setup.github/instructions/tests.instructions.md · 7 | Copilot instructions | setupteststylearch+3 | 63/100 | 3 days ago | |
| AndreasKarz/Vibe-Coding-Dev-Setup.github/AGENTS.md · 7 | AGENTS.md | stylegitagent-behaviour | 66/100 | 3 days ago | |
| AndreasKarz/Vibe-Coding-Dev-Setup.github/instructions/general.instructions.md · 7 | Copilot instructions | stylearchapido-not | 77/100 | 3 days ago | |
| AndreasKarz/Vibe-Coding-Dev-Setup.github/instructions/graphql.instructions.md · 7 | Copilot instructions | typesapido-not | 57/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 3 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 3 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| dotnet/roslyn.github/instructions/Compiler.instructions.md · 21k | Copilot instructions | buildteststylearch+3 | 99/100 | 3 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| dotnet/roslyn.github/copilot-instructions.md · 21k | Copilot instructions | buildteststylearch+3 | 97/100 | 3 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 3 days ago |
