dotnet-hosted-service-review

dotnet-hosted-service-review is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 93 tokens per session (1,463 once invoked), scanned A, original, MIT.

A review checklist for .NET background services, which are programs that run work repeatedly without a user request. It checks cancellation, errors, repeated-run safety, registration, and logging in pull requests.

In plain words
What is it for?
It helps review polling loops, file watchers, synchronization jobs, extraction tasks, and cleanup services implemented with `BackgroundService` or `IHostedService`.
Why use it?
A missed exception or cancellation case can stop the whole application or leave repeated work unsafe. The checklist ties review findings to evidence in the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps review polling loops, file watchers, synchronization jobs, extraction tasks, and cleanup services implemented with BackgroundService or IHostedService.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/dotnet-hosted-service-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Arasz/ai-raccoon --skill dotnet-hosted-service-review
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-hosted-service-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-hosted-service-review/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-hosted-service-review)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-hosted-service-review"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-hosted-service-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-hosted-service-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-hosted-service-review"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-hosted-service-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.01463
Opus 5.5 $0.00037 $0.00585
Sonnet 5.5 $0.00019 $0.00293
Haiku 4.5 $0.00009 $0.00146

Measured yesterday against content hash 7fefe862f9e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-hosted-service-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ai-badger/skills/dotnet-workload/references/dotnet-hosted-service-review/SKILL.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dotnet-hosted-service-review

Reviewing a PR that adds or modifies a .NET BackgroundService / IHostedService (poll loops: background extraction, watchers, sync, sweep). Focus: robustness, cancellation, idempotency, registration, and logging invariants. Produces numbered findings with severity + file:line evidence and a claims-vs-code verdict.

Checklist

  1. ExecuteAsync try/catch coverage — every await except the cancellation wait must be inside a try/catch (or have its own). The classic miss: the interval re-read / config reload AFTER the run body (timer.Period = await ReadIntervalAsync(...)) and the startup config read sit outside the try. An unhandled non-OCE exception there faults ExecuteAsync → default BackgroundServiceExceptionBehavior.StopHost stops the WHOLE host, contradicting any "best-effort" claim in the class doc. As of .NET 11 Preview 3 the cost is louder: RunAsync/StopAsync/WaitForShutdownAsync (and their sync forms) now fault instead of completing, so the process exits non-zero — a single failure rethrows, several combine into an AggregateException (Microsoft Learn). Evidence: read the loop body and check what is outside the try block, not just that a try exists.

  2. Compare with the sibling hosted service in the same repo — same-repo precedent is the strongest review signal. If an existing service try/catches both its work body AND its delay, a new service that guards less is a finding. Cite the divergence explicitly, with file:line for both sides.

  3. Cancellation handling in per-item catches — catch (Exception ex) per project/item swallows OperationCanceledException: on shutdown each in-flight item logs a spurious Warning and the top-level catch (OCE) when (IsCancellationRequested) break never fires from the run body. Inner catches should filter OCE (when (!cancellationToken.IsCancellationRequested)) or rethrow.

Read the full file on GitHub · 49 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 49 lines · 93 tokens per session scan A 7fefe862f9e7

Subscribe to this mod's changes

dotnet-hosted-service-review is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 1,463 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

dotnet-hosted-service-review compared with skills from other repositories

dotnet-hosted-service-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-hosted-service-reviewArasz/ai-raccoonSkill7todayMITA93Claude Code, Codex
design-patternswaybarrios/opencode-power-packSkill5625d agoMITA46Claude Code
mcp-builderwaybarrios/opencode-power-packSkill5625d agoMITA68Claude Code
cartographer-kb-source-authorBeppeTemp/cartographerSkill74yesterdayApache-2.0A106Claude Code, Codex
qualityariaxhan/kernel-claudeSkill16yesterdayMITA41Claude Code
tearitapartariaxhan/kernel-claudeSkill16yesterdayMITA43Claude Code
huggingface-community-evalswaybarrios/opencode-power-packSkill5625d agoMITC71Claude Code