Creates and manages Orchard Core widgets including content types, zones, layers, layer rules, placement configuration, shape templates, and safe HTML rendering.
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.
Read when SKILL.md points to them.
You are an Orchard Core expert. Generate widget definitions, layer configurations, and zone placement for Orchard Core.
Widget stereotype.OrchardCore.Widgets and OrchardCore.Layers for widget support.orchardcore-layers and orchardcore-rules.LiquidPart, LiquidField, or FacebookPluginPart can only be edited or published by users with ManageLiquidTemplates, and so can the pages that embed them in a FlowPart, BagPart, or WidgetsListPart.Html with raw.FlowPart to allow widgets inside content items.WidgetsListPart editor wrapper placement uses ContentPart_Edit with differentiator {ContentType}-{PartName}.WidgetsListPart does not render its own front-end display shape; it injects widgets directly into layout zones.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Widgets",
"OrchardCore.Layers",
"OrchardCore.Flows"
],
"disable": []
}
]
}
public sealed class Migrations : DataMigration
{
private readonly IContentDefinitionManager _contentDefinitionManager;
public Migrations(IContentDefinitionManager contentDefinitionManager)
{
_contentDefinitionManager = contentDefinitionManager;
}
public async Task<int> CreateAsync()
{
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{WidgetName}}", type => type
.DisplayedAs("{{WidgetDisplayName}}")
.Stereotype("Widget")
.WithPart("{{WidgetName}}", part => part
.WithPosition("0")
)
);
await _contentDefinitionManager.AlterPartDefinitionAsync("{{WidgetName}}", part => part
.WithField("{{FieldName}}", field => field
.OfType("{{FieldType}}")
.WithDisplayName("{{FieldDisplayName}}")
.WithPosition("0")
)
);
return 1;
}
}
{
"steps": [
{
"name": "Layers",
"Layers": [
{
"Name": "Always",
"LayerRule": {
"Conditions": [
{
"Name": "BooleanCondition",
"Value": true
}
]
},
"Description": "Widgets on this layer are always displayed."
},
{
"Name": "Homepage",
"LayerRule": {
"Conditions": [
{
"Name": "HomepageCondition",
"Value": true
}
]
},
"Description": "Widgets on this layer are displayed on the homepage."
},
{
"Name": "Authenticated",
"LayerRule": {
"Conditions": [
{
"Name": "IsAuthenticatedCondition",
"Value": true
}
]
},
"Description": "Widgets on this layer are displayed for authenticated users."
}
]
}
]
}
Common layer rule conditions:
UrlCondition - Match by URL pattern (regex): ^/$ (homepage), ^/blog/.* (blog section).IsAuthenticatedCondition - Visible for authenticated users.IsAnonymousCondition - Visible for anonymous users.RoleCondition - Visible for specific roles.CultureCondition - Visible for specific cultures.BooleanCondition - Always true/false.HomepageCondition - Visible when the request targets the homepage.JavascriptCondition - Custom JavaScript expression.Widgets are assigned to zones and layers via the admin UI or recipes:
{
"steps": [
{
"name": "Content",
"data": [
{
"ContentItemId": "widget-hero-banner",
"ContentType": "HeroBanner",
"DisplayText": "Welcome Banner",
"Latest": true,
"Published": true,
"LayerMetadata": {
"Layer": "Homepage",
"Zone": "Header",
"Position": 0
},
"HeroBanner": {
"Heading": {
"Text": "Welcome to Our Site"
},
"Description": {
"Html": "<p>Your one-stop solution.</p>"
}
}
}
]
}
]
}
The Widget shape exposes Model.ContentItem, the Model.Content zone with
the shapes of its parts and fields, and Model.Header, Model.Meta,
Model.Footer, Model.Classes. Create Views/Widget-{{WidgetName}}.liquid
(Widget__{{WidgetName}}):
<div class="{{ Model.Classes | join: " " }}">
<h3>{{ Model.ContentItem.Content.{{WidgetName}}.Heading.Text }}</h3>
<div class="widget-body">
{{ Model.Content["{{WidgetName}}-Body"] | shape_render }}
</div>
</div>
Rendering the {PartName}-{FieldName} field shape processes shortcodes and
sanitizes the HTML. The built-in themes render Paragraph and RawHtml the
same way ({{ Model.Content.Paragraph-Content | shape_render }}).
Create a template at Views/Widget-{{WidgetName}}.cshtml:
<div class="@string.Join(" ", Model.Classes)">
<h3>@Model.ContentItem.Content.{{WidgetName}}.Heading.Text</h3>
<div class="widget-body">
@await DisplayAsync(Model.Content.Named("{{WidgetName}}-Body"))
</div>
</div>
Widgets rendered by Layers are wrapped by Widget_Wrapper
(Widget.Wrapper.cshtml) that adds the title container. Override it, or the
Widget-{{WidgetName}}.Wrapper / Widget-Zone-Footer.Wrapper alternates, to
remove the wrapper markup:
{{ Model.Content | shape_render }}
Allow widgets inside content items using FlowPart:
await _contentDefinitionManager.AlterTypeDefinitionAsync("Page", type => type
.WithPart("FlowPart")
);
FlowPart allows editors to add widgets inline within content item editing.
To hide or move the whole WidgetsListPart editor row in the admin UI:
{
"ContentPart_Edit": [
{
"differentiator": "PlacementTest-WidgetsListPart",
"place": "-"
}
]
}
If the part is attached as a named part, replace WidgetsListPart with the part name.
On Design → Widgets, each widget in a zone renders as Widget.SummaryAdmin. Since 4.0 that template renders its Actions and ActionsMenu zones through @await DisplayAsync(await Factory.CreateAdminListActionsAsync((IShape)Model)), so the widget's buttons follow Settings → Admin → Appearance → Actions layout (Buttons, or one ellipsis Menu) like admin list rows. An override of Widget.SummaryAdmin.cshtml must render the actions the same way instead of a hand-written btn-group with an "Actions" dropdown, and place extra buttons as shapes in Actions/ActionsMenu (see orchardcore-admin-lists).
The default recipes (Blog, Agency) create widget types such as:
Paragraph (an HtmlField named Content)RawHtml (an HtmlField named Content)BlockquoteMediaWidget / ImageContainerWidget stereotype for all widget content types.FlowPart for content-embedded widgets.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-widgetsfrom 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