Helps users work with Orchard Core 4.0 Assisted Templates and Shape Tracing: viewing, cloning, resetting, and deleting theme templates, inspecting alternates, and identifying which template renders a shape.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Help users find, view and clone the templates of themes and features, discover alternates, and inspect the shapes a content item renders.
Feature recipe step.OrchardCore.AdminTemplates is enabled. Local templates are still Liquid templates of OrchardCore.Templates (see orchardcore-templates)..cshtml) templates and templates of inactive themes can only be viewed; use Create override to write a Liquid template with the same name.ManageLiquidTemplates plus ManageTemplates (front end) or ManageAdminTemplates (admin), like the template editors.Templates recipe or deployment steps, so imported templates show as Overridden.| Feature | ID | Depends on |
|---|---|---|
| Assisted Templates | OrchardCore.Templates.Assisted | OrchardCore.Templates |
| Shape Tracing | OrchardCore.Templates.ShapeTracing | OrchardCore.Templates.Assisted, OrchardCore.Contents, OrchardCore.ContentFields |
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Templates.Assisted",
"OrchardCore.Templates.ShapeTracing"
]
}
]
}
Theme Templates (admin route TemplateSources/Theme) lists the templates of the site themes on Templates, of the admin themes on Admin Templates. A dropdown picks the theme (the active one by default, marked "(active)"); a theme's templates include those of its base themes. Each row shows the source file (for example TheBlogTheme Views/Content-BlogPost.liquid) and the template name that overrides it (Content__BlogPost).
On the active theme:
| Action | Effect |
|---|---|
| View | Shows the template content (any language, any theme). |
| Clone | Copies a Liquid template as a local template with the same name, which then overrides it; Edit it like any template. |
| Reset | Replaces a local template's content with the theme template. |
| Delete | Deletes the local template so the theme template renders again. |
Clone, Reset and Delete are also bulk actions; bulk Reset only applies to templates cloned from this list.
| Status | Meaning |
|---|---|
| Not overridden | The theme template renders. |
| Cloned | The local template equals the template it was cloned from. |
| Edited | The local template was edited since it was cloned. |
| Overridden | A local template overrides it but was not cloned from this list, so it is not monitored. |
| Cloned from theme | Cloned from another theme (for example the previously active one); review, reset, or delete it. |
| Source changed | The theme template changed since it was cloned (for example after a theme update). |
Filter by these statuses and by language (Liquid, Razor). Local templates are not tied to a theme: after switching the active theme, templates cloned from the old theme keep overriding the new one and show as Cloned from.
Feature Templates (TemplateSources/Feature) lists the templates of enabled features, all of them (All features) or one feature picked in the dropdown. They are mostly Razor, so use them as a reference and Create override shows the shape name to override.
TextField_Edit, Content_SummaryAdmin, workflow activities ending in _Design). The Renders filter defaults to the front end on Templates and to the admin on Admin Templates.The Alternates button of a template (in both lists and on the page viewing a template) lists the alternates of its shape for the site's content types, parts and fields: Detail and Summary display types on Templates, DetailAdmin and SummaryAdmin on Admin Templates. Content item alternates use Content or the type's stereotype (for example Widget). Each alternate shows whether a local template already has its name and whether the theme or a feature renders it:
The content alternates come from Shape Tracing (ContentTemplateAlternatesProvider); without it the button appears only for alternates other providers suggest.
With Shape Tracing, Inspect content (on Templates and Admin Templates, admin route TemplateInspector) and the Inspect templates item of a content item's actions menu in Content → Content Items (TemplateInspectorAction_SummaryAdmin, ActionsMenu:20) show the shapes the item renders in a display type:
Content__Alias__[Alias] and Content__Slug__[Slug]. The bound alternate is checked; clicking an alternate opens the editor of a local template with that name.bootstrap-select list since 4.0, no longer vue-multiselect) lists the 50 most recently modified items the user can view (ViewContent) and searches the rest by display text on the server. Published versions are inspected; a never-published draft also requires PreviewContent.Both services live in the OrchardCore.Templates module assembly (OrchardCore.Templates.Services, models in OrchardCore.Templates.Models); reference the module package from the module that registers them and gate the startup with [RequireFeatures("OrchardCore.Templates.Assisted")].
Each ITemplateSource is a button above the template lists, at /Admin/TemplateSources/{Name}. Scopes fill the dropdown (the first is the default); return none to list everything at once.
using Microsoft.Extensions.Localization;
using OrchardCore.Templates.Models;
using OrchardCore.Templates.Services;
namespace MyModule.Services;
public sealed class MyTemplateSource : ITemplateSource
{
private readonly ShapeTemplateFiles _shapeTemplateFiles;
public MyTemplateSource(ShapeTemplateFiles shapeTemplateFiles, IStringLocalizer<MyTemplateSource> stringLocalizer)
{
_shapeTemplateFiles = shapeTemplateFiles;
DisplayName = stringLocalizer["My Templates"];
}
public string Name => "My";
public LocalizedString DisplayName { get; }
public LocalizedString GetDescription(bool adminTemplates) => DisplayName;
public Task<IEnumerable<TemplateSourceScope>> GetScopesAsync(bool adminTemplates)
=> Task.FromResult(Enumerable.Empty<TemplateSourceScope>());
public async Task<IEnumerable<SourceTemplate>> GetTemplatesAsync(bool adminTemplates, string scope)
{
// Templates rendering the shapes of a theme, from the theme or an enabled module.
var templates = await _shapeTemplateFiles.GetTemplatesAsync("TheTheme");
return templates.Where(template => template.ExtensionId == "My.Module");
}
}
[RequireFeatures("OrchardCore.Templates.Assisted")]
public sealed class AssistedTemplatesStartup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<ITemplateSource, MyTemplateSource>();
}
}
SourceTemplate has Name (the template name that overrides it), ExtensionId, RelativePath, FilePath, IsInUse, OverriddenBy, IsAdmin (null when unknown), and computed IsLiquid and CanClone (Liquid, in use, not overridden by another extension). TemplateSourceScope has Name, DisplayName and IsInUse.
using OrchardCore.Templates.Models;
using OrchardCore.Templates.Services;
namespace MyModule.Services;
public sealed class CampaignTemplateAlternatesProvider : ITemplateAlternatesProvider
{
public Task<IEnumerable<TemplateAlternate>> GetAlternatesAsync(bool adminTemplates)
{
if (!adminTemplates)
{
return Task.FromResult(Enumerable.Empty<TemplateAlternate>());
}
IEnumerable<TemplateAlternate> alternates =
[
new TemplateAlternate
{
Name = "CampaignAction_SummaryAdmin__Email",
ShapeType = "CampaignAction",
DisplayType = "SummaryAdmin",
},
];
return Task.FromResult(alternates);
}
}
Register it with services.AddScoped<ITemplateAlternatesProvider, CampaignTemplateAlternatesProvider>();. ContentType and Element (HtmlBodyPart, or HtmlBodyPart.Description for a field) are optional and describe what the alternate targets.
The template source and alternates pages are admin lists named TemplateSources (rows SourceTemplateEntry) and TemplateAlternates (rows TemplateAlternateEntry); their columns can be extended with IAdminListColumnsProvider (see orchardcore-admin-lists).
| Symptom | Cause |
|---|---|
| No Theme Templates button | OrchardCore.Templates.Assisted disabled, or the user lacks ManageLiquidTemplates. |
| No Inspect content or content alternates | OrchardCore.Templates.ShapeTracing disabled. |
| Clone missing | Razor template, inactive theme, or a template overridden by another extension. |
| Cloned templates show Overridden on another tenant | Clone records are not exported with the templates. |
| Widgets missing from Inspect Content | The item is rendered without the page layout. |
orchardcore-templates for local templates, naming and recipes.orchardcore-theming and orchardcore-shape-discovery for how shapes bind to theme and module templates.orchardcore-placement for where shapes render.What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-assisted-templatesfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job