orchardcore-content-preview

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

A guide to showing an unpublished Orchard Core draft before it is made public. It covers the preview button, draft-specific URLs, temporary preview storage, and frontend handling.

In plain words
What is it for?
Use it to configure live draft previews, create custom preview paths for decoupled frontends, and adjust code that runs during preview requests.
Why use it?
It lets editors check changes without publishing them or exposing unfinished content to visitors.

Skill for Claude CodeCodex

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

Good fit Use it to configure live draft previews, create custom preview paths for decoupled frontends, and adjust code that runs during preview requests.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-content-preview.svg)](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-content-preview)
Your own site
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-content-preview"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-content-preview.svg" alt="Measured on agentmods" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,436 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.00143 $0.01436
Opus 5 $0.00072 $0.00718
Sonnet 5 $0.00029 $0.00287
Haiku 4.5 $0.00014 $0.00144

Measured 5d ago against content hash 6a098bad4966, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

orchardcore-content-preview 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 5d 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-content-preview/SKILL.md · 158 lines

How it starts

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

Orchard Core Content Preview - Prompt Templates

Preview Unpublished Content

You are an Orchard Core expert. Generate configuration and content definitions for live preview of an editor's in-memory draft without publishing it.

Guidelines

  • Enable the OrchardCore.ContentPreview feature. Its module dependency is OrchardCore.Contents.
  • The feature adds a preview button to content editors and requires the standard PreviewContent permission.
  • Attach PreviewPart only when a decoupled frontend needs a custom URL that should render the draft. The core preview UI works without it.
  • Set PreviewPartSettings.Pattern to a Liquid path. The pattern is rendered with Model and ContentItem.
  • Patterns should return a relative path such as /articles/{{ ContentItem.ContentItemId }}. Do not include a host, scheme, or line breaks.
  • Preview drafts are stored in distributed cache for five minutes with sliding expiration and are keyed by a preview token.
  • ContentPreviewFeature.Instance is placed in the current request features during a preview request. Drivers and handlers can inspect it to change preview-specific behavior.
  • A configured PreviewPart causes PreviewStartupFilter to re-execute the frontend pipeline with the preview path. This lets the real frontend route, theme, and scripts render the draft.
  • All recipe JSON must be wrapped in the root { "steps": [...] } format.
  • All C# classes must use the sealed modifier, except View Models.

Enabling Content Preview

{
  "steps": [
    {
      "name": "Feature",
      "enable": [
        "OrchardCore.ContentPreview"
      ],
      "disable": []
    }
  ]
}

Attaching PreviewPart with a Migration

PreviewPart has no persisted fields. Its type-part setting supplies the frontend path pattern.

using OrchardCore.ContentManagement.Metadata;
using OrchardCore.ContentPreview.Models;
using OrchardCore.Data.Migration;

namespace MyModule;

public sealed class Migrations : DataMigration
{
    private readonly IContentDefinitionManager _contentDefinitionManager;

    public Migrations(IContentDefinitionManager contentDefinitionManager)
    {
        _contentDefinitionManager = contentDefinitionManager;
    }

    public async Task<int> CreateAsync()
    {
        await _contentDefinitionManager.AlterTypeDefinitionAsync("LandingPage", type => type
            .Draftable()
            .Versionable()
            .WithPart("TitlePart")
            .WithPart(nameof(PreviewPart), part => part
                .WithSettings(new PreviewPartSettings
                {
                    Pattern = "/landing-pages/{{ ContentItem.ContentItemId }}",
                })));

        return 1;
    }
}

Read the full file on GitHub · 158 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. 5d ago First seen · 158 lines · 143 tokens per session scan A 6a098bad4966

Subscribe to this mod's changes

orchardcore-content-preview is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (13 stars, last pushed 10d ago), licensed MIT. It adds 143 tokens to every session and 1,436 once invoked, about $0.0007 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.