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.
npx skills add CrestApps/CrestApps.AgentSkills --skill orchardcore-diagnosticsgit clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkillsWrote 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.
[](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics)<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics/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.
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00193 | $0.01834 |
| Opus 5.5 | $0.00077 | $0.00734 |
| Sonnet 5.5 | $0.00039 | $0.00367 |
| Haiku 4.5 | $0.00019 | $0.00183 |
Grade A, and why
orchardcore-diagnostics 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 3d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Orchard Core Diagnostics
OrchardCore.Diagnostics wires tenant-aware error handling into the Orchard
Core pipeline. Its startup filter uses /Error for unhandled exceptions outside
development and re-executes status code responses at /Error/{status}. The
module maps the Error/{status?} route to DiagnosticsController.Error.
Guidelines
- Enable the exact
OrchardCore.Diagnosticsfeature before relying on its error route and shapes. - In non-development environments it calls
UseExceptionHandler("/Error"). - It calls
UseStatusCodePagesWithReExecute("/Error/{0}")for status responses. - Do not expose exception details in theme templates or production error pages.
- Static-file paths are excluded from status page rendering when their extension maps to a content type.
- Override error rendering through theme shapes rather than changing the module controller.
- Use
IConfigureOptionsfor your own options registration, not to replace the diagnostic middleware order. - Error templates must tolerate an absent status code because
/Erroralso handles exceptions. - Responses that opt out of the HTML pages are not re-executed:
401/403challenges from theApiauthentication scheme and errors from endpoints marked[SkipStatusCodePages]get an RFC 9457 Problem Details JSON body instead (Orchard Core 4.0). 429 Too Many Requestsfromorchardcore-rate-limitsrenders throughHttpError__429/HttpError__TooManyRequests.- All C# classes in examples are sealed except View Models.
Enable Diagnostics
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Diagnostics"
],
"disable": []
}
]
}
Pipeline Behavior
The module registers DiagnosticsStartupFilter as an IStartupFilter. This
ensures the error handling runs in the correct tenant pipeline without an
application manually adding duplicate middleware.
| Situation | Result |
|---|---|
| Unhandled exception in production | Re-executes /Error. |
| Response with a 4xx or 5xx status | Re-executes /Error/{status}. |
| Development environment exception | The exception handler is not registered by this filter. |
| Missing static asset | Status page rendering is disabled for known file extensions. |
Api scheme 401/403, or endpoint with [SkipStatusCodePages] |
No HTML page; an application/problem+json body is written through IProblemDetailsService. |
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.
- 3d ago Changed · +36 lines · +36 tokens per session 7456aadb3a58
- 1mo ago First seen · 154 lines · 157 tokens per session scan A 416a499f9667
orchardcore-diagnostics is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (13 stars, last pushed 2d ago), licensed MIT. It adds 193 tokens to every session and 1,834 once invoked, about $0.0008 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-09-03.
Other skills, from other repositories
maf-fan-out-validator
Validates fan-out / fan-in workflow topology — detects the silent fan-in starvation pattern (handlers returning void / non-generic Task that produce no downstream message). Canonical rules + procedure for what the compiler cannot catch and the build cannot surface.
cratis-arc-observable-query-http
Inspect a Cratis Arc observable query from a terminal with curl or another plain HTTP client — snapshot GET, waiting for the first result, Server-Sent Events streaming, and long polling, plus the exact query-string keys, status codes, and payload shape. Use when debugging or exploring an observable query without…
diagnose-connectivity
Work out why a 3x-ui client cannot connect, in the order that finds the cause fastest — scope the outage, check the core, the inbound, the client's own limits, routing and outbounds, then the node. Use whenever someone reports "it stopped working", a client cannot connect, a site is unreachable through the proxy, or…
dev-tasks
Guides for common development tasks like adding facet fields, file format support, STDIO debugging, and performance tuning. Use when working on specific development recipes.
use-discatsharp
Build, explain, migrate, or troubleshoot Discord applications that use DisCatSharp. Use for DisCatSharp setup, configuration, clients, events, intents, slash commands, CommandsNext, interactivity, hosting, Lavalink, voice, entities, REST operations, exact API lookup, overload selection, and version-aware C# examples.
keycloak-migration-doctor
Preflight a Keycloak export, import or migration on a Skycloak-managed cluster against the known blockers, and diagnose a job that already failed by reading the failure reason the API records but the dashboard notice does not show. Use when an export or import fails, a migration stalls, or before moving realm data in…