orchardcore-diagnostics

orchardcore-diagnostics is a skill for Claude Code from CrestApps/CrestApps.AgentSkills. It costs 193 tokens per session (1,834 once invoked), scanned A, original, MIT.

A guide to handling errors and status responses in Orchard Core applications. It covers custom error pages for exceptions and HTTP statuses such as 404 or 500.

In plain words
What is it for?
Use it to configure error middleware, status-code routes, custom error shapes, alternate templates, and production-safe diagnostics.
Why use it?
It provides consistent production error handling without exposing private exception details to visitors.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the orchardcore plugin — 115 skills shipped together

Good fit Use it to configure error middleware, status-code routes, custom error shapes, alternate templates, and production-safe diagnostics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crestapps/crestapps.agentskills/orchardcore-diagnostics
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 CrestApps/CrestApps.AgentSkills --skill orchardcore-diagnostics
Clone the repo
git clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkills

Made for: Claude Code.

Or install orchardcore, the plugin that ships this one along with the rest of its 115 skills.

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 orchardcore-diagnostics

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics/github.svg)](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics)
Your own site
<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.

agentmods 80×15 button for orchardcore-diagnostics

Your own site · 80×15
<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>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,834 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00193 $0.01834
Opus 5.5 $0.00077 $0.00734
Sonnet 5.5 $0.00039 $0.00367
Haiku 4.5 $0.00019 $0.00183

Measured 3d ago against content hash 7456aadb3a58, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/orchardcore/skills/orchardcore-diagnostics/SKILL.md · 190 lines

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.Diagnostics feature 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 IConfigureOptions for your own options registration, not to replace the diagnostic middleware order.
  • Error templates must tolerate an absent status code because /Error also handles exceptions.
  • Responses that opt out of the HTML pages are not re-executed: 401/403 challenges from the Api authentication scheme and errors from endpoints marked [SkipStatusCodePages] get an RFC 9457 Problem Details JSON body instead (Orchard Core 4.0).
  • 429 Too Many Requests from orchardcore-rate-limits renders through HttpError__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.

Read the full file on GitHub · 190 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. 3d ago Changed · +36 lines · +36 tokens per session 7456aadb3a58
  2. 1mo ago First seen · 154 lines · 157 tokens per session scan A 416a499f9667

Subscribe to this mod's changes

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.

Related

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.

joslat/maf-doctor · 55 tokens

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…

Cratis/AI · 82 tokens

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…

pyworkload/3x-ui-mcp · 83 tokens

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.

mirkosertic/MCPLuceneServer · 35 tokens

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.

Aiko-IT-Systems/DisCatSharp · 71 tokens

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…

sky-cloak/skycloak-mcp · 72 tokens