RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Copilot instructions/AndreasKarz/Vibe-Coding-Dev-Setup

Copilot instructions

.github/instructions/worker.instructions.md
Copilot instructions

Quality

51/100

Scores the file, not the repository.

Length

182 words

6 headings · 0 code blocks

Repository

7

— · pushed 173 days ago

Last changed

3 days ago

First indexed 3 days ago.
AndreasKarz/Vibe-Coding-Dev-Setup/.github/instructions/worker.instructions.mdRawGitHub
1---
2applyTo: "**/Worker/**/*.cs"
3---
4 
5# Worker Layer Rules
6 
7These rules apply exclusively to the `Worker` project layer (background services, message handlers, batch processing).
8 
9## Consumer Design
10- MassTransit consumers must be `sealed` classes
11- One consumer per message type — no multi-message consumers
12- Implement `IConsumer<TMessage>` explicitly
13 
14## Observability
15- 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` directly
18 
19## Error Handling
20- Never swallow exceptions silently (`catch (Exception) { }`)
21- Log the exception and let MassTransit's retry/error pipeline handle redelivery
22- Use Polly retry policies for transient external calls (HTTP, database)
23- Propagate `CancellationToken` through the entire call chain
24 
25## Quartz Jobs
26- Apply `[DisallowConcurrentExecution]` on jobs that must not overlap
27- Apply `[PersistJobDataAfterExecution]` when job state must survive between runs
28- Verify Cron schedule expressions — placeholder `{0}` must be replaced with actual values
29 
30## Dependencies
31- `Worker` → `Abstractions`, `Core` (same dependency rules as other layers)
32- No direct database access — delegate to `Core` services or repository interfaces from `Abstractions`
33 

Sections

  • Worker Layer Rules
  • Consumer Design
  • Observability
  • Error Handling
  • Quartz Jobs
  • Dependencies

What it covers

dependenciesdo-not

Stack — with the evidence

javascript

(1.00)

csharp

(0.90)

Glob targeting

  • **/Worker/**/*.cs

Format

Copilot instructions

Two layers: one always-on repo file, plus optional glob-scoped instruction files. Lives under .github/ rather than the repo root, which is the tell that it is aimed at the GitHub platform surface as much as the editor.

What the corpus says about it

Repository

Owner
AndreasKarz
Language
—
License
—
Archived
no

All configs in this repo

Also in AndreasKarz/Vibe-Coding-Dev-Setup

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
AndreasKarz/Vibe-Coding-Dev-Setup.github/instructions/tests.instructions.md · 7Copilot instructionsjavascriptcsharpsetupteststylearch+363/1003 days ago
AndreasKarz/Vibe-Coding-Dev-Setup.github/AGENTS.md · 7AGENTS.mdjavascriptcsharpstylegitagent-behaviour66/1003 days ago
AndreasKarz/Vibe-Coding-Dev-Setup.github/instructions/general.instructions.md · 7Copilot instructionsjavascriptcsharpstylearchapido-not77/1003 days ago
AndreasKarz/Vibe-Coding-Dev-Setup.github/instructions/graphql.instructions.md · 7Copilot instructionsjavascriptcsharptypesapido-not57/1003 days ago
Diff against .github/instructions/tests.instructions.md Diff against .github/AGENTS.md Diff against .github/instructions/general.instructions.md Diff against .github/instructions/graphql.instructions.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17Copilot instructionsnodejavascriptsetupbuildtestlint-format+7100/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63Copilot instructionstypescriptreact+7buildlint-formatstylearch+4100/1003 days ago
louislam/uptime-kuma.github/copilot-instructions.md · 90kCopilot instructionstypescriptjavascript+10setupbuildtestlint-format+9100/1003 days ago
dotnet/roslyn.github/instructions/Compiler.instructions.md · 21kCopilot instructionscsharpdotnet+1buildteststylearch+399/1003 days ago
bagisto/bagisto.github/copilot-instructions.md · 28kCopilot instructionsphplaravel+8setupbuildteststyle+597/1003 days ago
JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31kCopilot instructionstypescriptnode+7buildlint-formatstylearch+397/1002 days ago
dotnet/roslyn.github/copilot-instructions.md · 21kCopilot instructionscsharpdotnet+1buildteststylearch+397/1003 days ago
nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32Copilot instructionstypescriptnode+8setupbuildtestlint-format+1196/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack