orchardcore-diagnostics

orchardcore-diagnostics is a skill for Claude Code, Codex from CrestApps/CrestApps.AgentSkills. It costs 157 tokens per session (1,275 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 CodeCodex

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-diagnostics.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,275 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.00157 $0.01275
Opus 5 $0.00078 $0.00638
Sonnet 5 $0.00031 $0.00255
Haiku 4.5 $0.00016 $0.00128

Measured 4d ago against content hash 416a499f9667, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 4d 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 · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 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.
  • 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.

Avoid calling UseExceptionHandler or UseStatusCodePagesWithReExecute again for the same tenant unless you deliberately replace this behavior and have verified pipeline order.

Read the full file on GitHub · 154 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. 4d 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 9d ago), licensed MIT. It adds 157 tokens to every session and 1,275 once invoked, about $0.0008 per session on Opus 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

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

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

observable-query-curl

Practical guidance for debugging and exploring Cratis Arc observable queries with cURL or other plain HTTP clients. Use this whenever the user mentions observable queries together with cURL, curl, HTTP GET debugging, waiting for the first payload, Server-Sent Events, SSE, streaming JSON, or long polling. Also use it…

Cratis/AI · 82 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