orchardcore-sanitizer

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

A guide to cleaning user-provided HTML before displaying it in Orchard Core. HTML sanitization removes unsafe markup that could enable cross-site scripting (XSS), an attack that runs unwanted code in a visitor’s browser.

In plain words
What is it for?
Use it to configure allowed HTML tags, attributes, and URL schemes, or to sanitize content in Razor views and Orchard Core fields.
Why use it?
It helps prevent unsafe HTML from reaching pages while preserving the tags and attributes your site allows.

Skill for Claude CodeCodex

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

Good fit Use it to configure allowed HTML tags, attributes, and URL schemes, or to sanitize content in Razor views and Orchard Core fields.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crestapps/crestapps.agentskills/orchardcore-sanitizer
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-sanitizer
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-sanitizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-sanitizer/github.svg)](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-sanitizer)
Your own site
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-sanitizer"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-sanitizer/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-sanitizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-sanitizer"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-sanitizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,372 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.00207 $0.01372
Opus 5.5 $0.00083 $0.00549
Sonnet 5.5 $0.00041 $0.00274
Haiku 4.5 $0.00021 $0.00137

Measured 1mo ago against content hash aac1dfbd0ab3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orchardcore-sanitizer 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 1mo 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-sanitizer/SKILL.md · 151 lines

How it starts

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

Orchard Core Sanitizer - Prompt Templates

Configure HTML Sanitization

You are an Orchard Core expert. Generate HTML sanitization configurations and custom sanitizer settings for Orchard Core.

Guidelines

  • The HTML Sanitizer is part of Orchard Core's infrastructure — no additional feature needs to be enabled.
  • The sanitizer prevents XSS attacks by cleaning user-provided HTML content.
  • It is used by default for HtmlBodyPart, HtmlField, HtmlMenuItemPart, MarkdownBodyPart, and MarkdownField.
  • Sanitization can be disabled per field/part via the Sanitize Html option in field or part settings.
  • Use the @Orchard.SanitizeHtml() Razor helper to sanitize HTML in views.
  • Orchard Core customizes the default HtmlSanitizer by allowing the class attribute, allowing mailto and tel schemes, and removing the form tag.
  • Configure the sanitizer using ConfigureHtmlSanitizer during service registration.
  • Multiple ConfigureHtmlSanitizer calls can be chained in the startup pipeline.
  • The sanitizer is based on the HtmlSanitizer library.
  • Always seal classes.

Parts and Fields Using the Sanitizer

Part / Field Description
HtmlBodyPart Rich HTML content body.
HtmlField HTML content field attached to any content type.
HtmlMenuItemPart HTML content in menu items.
MarkdownBodyPart Markdown rendered to HTML, then sanitized.
MarkdownField Markdown field rendered to HTML, then sanitized.

Orchard Core Default Sanitizer Customizations

Orchard Core modifies the base HtmlSanitizer defaults:

Change Description
Allow class attribute The class attribute is added to the allowed attributes list.
Allow mailto scheme The mailto: URI scheme is allowed in links.
Allow tel scheme The tel: URI scheme is allowed in links.
Remove form tag The <form> tag is removed from the allowed tags list.

Read the full file on GitHub · 151 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. 1mo ago First seen · 151 lines · 207 tokens per session scan A aac1dfbd0ab3

Subscribe to this mod's changes

orchardcore-sanitizer is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (13 stars, last pushed 2d ago), licensed MIT. It adds 207 tokens to every session and 1,372 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-12.

Related

Other skills, from other repositories

powerpoint-mcp

Use the configured PowerPoint MCP server to inspect or edit presentations on Windows. Covers session safety, live tool discovery, saving, and visual verification; not general presentation design. Triggers: PowerPoint MCP, presentation tools, edit a PowerPoint deck.

sbroenne/mcp-server-powerpoint · 55 tokens

powerpoint-cli

Discover and use the PowerPoint CLI plugin to automate a live PowerPoint desktop session. Use for terminal, PowerShell, batch, and coding-agent tasks; not general presentation design. Triggers: pptcli, PowerPoint command line, presentation automation script.

sbroenne/mcp-server-powerpoint · 55 tokens

powerpoint-deck-design

Plan or improve the visual design of a PowerPoint presentation: layout, typography, color, hierarchy, accessibility, and consistency. Use when the user asks to create, redesign, or review how a deck looks; not for general PowerPoint automation or content-only edits.

sbroenne/mcp-server-powerpoint · 59 tokens

publish-release

Releases a new McpOrchestrator version end to end — version bump PR, tag, and the automated deploy to GitHub Releases, NuGet, and the MCP Registry. Use when asked to release, publish, deploy, ship, or bump the version of McpOrchestrator.

Byggarepop/dotnet-mcp-orchestrator · 63 tokens

release-notes

Writes user-facing release notes from a git commit range. Use when asked to draft release notes, a changelog entry, or "what's new" text for a release.

Byggarepop/dotnet-mcp-orchestrator · 39 tokens

home-memory-documentation

Do not load unless the request or established context explicitly identifies Home Memory (HM) and requires a documentation decision about record boundaries, relationships or information placement. If the product is ambiguous, ask whether the user means Home Memory or Smartconstruct and load neither product skill first.…

impactjo/home-memory · 112 tokens