orchardcore-razor

orchardcore-razor is a skill for Claude Code from CrestApps/CrestApps.AgentSkills. It costs 187 tokens per session (4,181 once invoked), scanned A, original, MIT.

A guide to building Razor views for Orchard Core themes and modules. Razor is a .NET template language that combines HTML with server-side C# code.

In plain words
What is it for?
Use it to create theme and module views, render Orchard Core shapes, add tag helpers, and load scripts and styles.
Why use it?
It helps views use the required imports, tag helpers, layouts, shapes, and resource APIs instead of missing or incorrect setup.

Skill for Claude Code

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

Part of the orchardcore plugin — 116 skills shipped together

Good fit Use it to create theme and module views, render Orchard Core shapes, add tag helpers, and load scripts and styles.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-razor"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-razor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,181 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.00187 $0.04181
Opus 5.5 $0.00075 $0.01672
Sonnet 5.5 $0.00037 $0.00836
Haiku 4.5 $0.00019 $0.00418

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

Security

Grade A, and why

orchardcore-razor 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-razor/SKILL.md · 532 lines

How it starts

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

Orchard Core Razor Views - Prompt Templates

_ViewImports.cshtml Setup

Every Orchard Core theme or module should include a _ViewImports.cshtml file at the root of its Views folder.

Minimum Required Directives

@inherits OrchardCore.DisplayManagement.Razor.RazorPage<TModel>
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, OrchardCore.DisplayManagement
@addTagHelper *, OrchardCore.ResourceManagement
@addTagHelper *, OrchardCore.Menu
@addTagHelper *, OrchardCore.Contents.TagHelpers
@addTagHelper *, OrchardCore.Media
@addTagHelper *, OrchardCore.DynamicCache
@using OrchardCore.DisplayManagement
@using OrchardCore.DisplayManagement.Shapes
@using OrchardCore.ContentManagement
@using Microsoft.AspNetCore.Html

Guidelines

  • @inherits OrchardCore.DisplayManagement.Razor.RazorPage<TModel> gives access to Orchard (IOrchardDisplayHelper), New, DisplayAsync, Site, T, ThemeLayout, and the title helpers. Do not @inject another Orchard property.
  • Add only the @addTagHelper lines for assemblies your theme or module actually uses, and reference the matching packages (for example OrchardCore.ResourceManagement and OrchardCore.Contents.TagHelpers).
  • @using OrchardCore.DisplayManagement.Razor is not needed when @inherits already references that namespace.
  • No @using OrchardCore directive is needed to access content helpers from IOrchardHelper.

_ViewStart.cshtml Conventions

@{
    Layout = "Layout";
}
  • Place _ViewStart.cshtml in the Views folder to set the default layout.
  • "Layout" references the shape named Layout which resolves to Layout.cshtml (or Layout.liquid) in the active theme.
  • Modules typically do not set a layout in _ViewStart.cshtml because their views render inside the theme's layout automatically.
  • Override per-view by setting Layout = null; for partial or layoutless pages.

Layout Rendering Patterns

A theme's Layout.cshtml renders the zones of the Layout shape with RenderSectionAsync and the main content with RenderBodyAsync. The <zone> tag helper does the opposite: it adds content to a zone and renders nothing where it is declared.

Read the full file on GitHub · 532 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -8 lines · -4 tokens per session 3ffbe42753f3
  2. 2mo ago First seen · 540 lines · 191 tokens per session scan A c4857803b82b

Subscribe to this mod's changes

orchardcore-razor is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (14 stars, last pushed 5d ago), licensed MIT. It adds 187 tokens to every session and 4,181 once invoked, about $0.0007 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

orchardcore-razor compared with skills from other repositories

orchardcore-razor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orchardcore-razorCrestApps/CrestApps.AgentSkillsSkill145d agoMITA187Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code