Configures SEO in Orchard Core: SeoMetaPart for meta tags, Open Graph, Twitter cards, JSON-LD, canonical URLs, robots.txt, and sitemaps. Use when implementing or troubleshooting Orchard Core SEO.
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 code and configuration for SEO optimization in Orchard Core.
OrchardCore.Seo module provides SeoMetaPart for managing the page title, meta tags, canonical URL, Open Graph, Twitter Card, and Google schema (JSON-LD) per content item, plus a settings-driven robots.txt.OrchardCore.Sitemaps module handles XML sitemap generation and sitemap indexes; see orchardcore-sitemaps for its recipe step format.SeoMetaPart to any routable content type that needs meta tag control, alongside AutoroutePart for SEO-friendly URLs.Detail display type, and never for widgets (stereotyped items).ManageSeoSettings permission (OrchardCore.Seo.SeoPermissions.ManageSeoSettings, granted to Administrator).{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Seo",
"OrchardCore.Sitemaps",
"OrchardCore.Autoroute"
],
"disable": []
}
]
}
using OrchardCore.Autoroute.Models;
using OrchardCore.ContentManagement.Metadata;
using OrchardCore.ContentManagement.Metadata.Settings;
using OrchardCore.Data.Migration;
using OrchardCore.Seo.Models;
namespace MyModule;
public sealed class SeoMigrations : DataMigration
{
private readonly IContentDefinitionManager _contentDefinitionManager;
public SeoMigrations(IContentDefinitionManager contentDefinitionManager)
{
_contentDefinitionManager = contentDefinitionManager;
}
public async Task<int> CreateAsync()
{
await _contentDefinitionManager.AlterTypeDefinitionAsync("{{ContentTypeName}}", type => type
.WithPart("TitlePart", part => part
.WithPosition("0")
)
.WithPart("AutoroutePart", part => part
.WithPosition("1")
.WithSettings(new AutoroutePartSettings
{
AllowCustomPath = true,
Pattern = "{{ Model.ContentItem | display_text | slugify }}",
})
)
.WithPart("SeoMetaPart", part => part
.WithPosition("5")
.WithSettings(new SeoMetaPartSettings
{
DisplayKeywords = true,
DisplayCustomMetaTags = true,
DisplayOpenGraph = true,
DisplayTwitter = true,
DisplayGoogleSchema = true,
})
)
);
return 1;
}
}
{
"steps": [
{
"name": "ContentDefinition",
"ContentTypes": [
{
"Name": "{{ContentTypeName}}",
"DisplayName": "{{DisplayName}}",
"Settings": {
"ContentTypeSettings": {
"Creatable": true,
"Listable": true,
"Draftable": true
}
},
"ContentTypePartDefinitionRecords": [
{
"PartName": "TitlePart",
"Name": "TitlePart",
"Settings": {
"ContentTypePartSettings": {
"Position": "0"
}
}
},
{
"PartName": "AutoroutePart",
"Name": "AutoroutePart",
"Settings": {
"ContentTypePartSettings": {
"Position": "1"
},
"AutoroutePartSettings": {
"AllowCustomPath": true,
"Pattern": "{{ Model.ContentItem | display_text | slugify }}"
}
}
},
{
"PartName": "SeoMetaPart",
"Name": "SeoMetaPart",
"Settings": {
"ContentTypePartSettings": {
"Position": "5"
},
"SeoMetaPartSettings": {
"DisplayKeywords": true,
"DisplayCustomMetaTags": true,
"DisplayOpenGraph": true,
"DisplayTwitter": true,
"DisplayGoogleSchema": true
}
}
}
]
}
]
}
]
}
The Display* settings (DisplayKeywords, DisplayCustomMetaTags, DisplayOpenGraph, DisplayTwitter, DisplayGoogleSchema) only control which editor tabs/fields are shown; they default to false.
| Field | Description |
|---|---|
Render | Default true. Set to false to suppress all SEO output for the item. |
PageTitle | Replaces the whole <title> (fixed title, shortcodes processed). |
MetaDescription | <meta name="description">. |
MetaKeywords | <meta name="keywords">. |
Canonical | Custom <link rel="canonical">. |
MetaRobots | Robots directives (e.g., noindex, nofollow). |
CustomMetaTags | Array of MetaEntry (Name, Property, Content, HttpEquiv, Charset). |
DefaultSocialImage | MediaField used for both Open Graph and Twitter when their own image is empty. |
OpenGraphType | og:type (e.g., website, article). |
OpenGraphTitle / OpenGraphDescription | og:title / og:description. |
OpenGraphImage | MediaField for og:image (alt text from the media text). |
TwitterCard | twitter:card (summary, summary_large_image). |
TwitterTitle / TwitterDescription | twitter:title / twitter:description. |
TwitterImage | MediaField for twitter:image. |
TwitterCreator / TwitterSite | twitter:creator / twitter:site handles. |
GoogleSchema | JSON-LD string (shortcodes processed, must be valid JSON). |
SeoMetaPartHandler builds a SeoAspect from the part, then a final handler fills missing values:
AutoroutePart).PageTitle and MetaDescription.DefaultSocialImage. Image URLs are mapped through the media store and made absolute; when media is served from a CDN (MapPathToPublicUrl already returns https://...), the CDN URL is used as-is (fixed in 4.0, it used to be prefixed with the site URL).SocialMetaSettings custom settings content item when one exists (create it with the Custom Settings feature, a SocialMetaSettings part with fields such as DefaultSocialImage, OpenGraphImage, TwitterImage, DefaultMetaDescription, OpenGraphType, OpenGraphSiteName, OpenGraphAppId, TwitterCard, TwitterCreator, TwitterSite, and GoogleSchema).Custom code can read the computed values with await contentManager.PopulateAspectAsync<SeoAspect>(contentItem).
SeoMetaPart.Canonical empty to use the item's own absolute URL.Open Graph tags control how content appears when shared on Facebook, LinkedIn, and other platforms. og:url, og:site_name, and og:locale are emitted from the item URL, site defaults, and current culture.
Set TwitterCard to summary (small thumbnail) or summary_large_image (large banner). Empty Twitter title and description fall back to the page title and meta description (not to the Open Graph values).
The GoogleSchema field accepts raw JSON-LD (an object or an array). It is rendered in a <script type="application/ld+json"> block. Invalid JSON is not rendered.
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "{{ArticleTitle}}",
"description": "{{ArticleDescription}}",
"author": {
"@type": "Person",
"name": "{{AuthorName}}"
},
"datePublished": "{{PublishedDate}}",
"image": "{{ImageUrl}}"
}
OrchardCore.Seo serves a dynamic /robots.txt through endpoint routing (so the OrchardCore.RateLimits limiter applies). Edit it at Settings > Search > Search Engine Optimization > Robots or with the settings step:
{
"steps": [
{
"name": "settings",
"RobotsSettings": {
"AllowAllAgents": true,
"DisallowAdmin": true,
"AdditionalRules": "Disallow: /private/"
}
}
]
}
| Property | Purpose |
|---|---|
AllowAllAgents | Writes User-agent: * (default true). |
DisallowAdmin | Adds Disallow: /{AdminUrlPrefix} (default true). |
AdditionalRules | Appended verbatim. |
A physical robots.txt in the tenant's static files takes precedence. With Sitemaps enabled, sitemap URLs are added by its robots provider (SitemapsRobotsSettings.IncludeSitemaps). Add your own lines by implementing IRobotsProvider:
using OrchardCore.Seo;
namespace MyModule.Seo;
public sealed class AiCrawlersRobotsProvider : IRobotsProvider
{
public Task<string> GetContentAsync()
=> Task.FromResult("User-agent: GPTBot\nDisallow: /");
}
services.AddTransient<IRobotsProvider, AiCrawlersRobotsProvider>();
Sitemaps are created under Tools > Search Engine Optimization > Sitemaps or with the Sitemaps recipe step, which uses data with $type discriminators. See orchardcore-sitemaps for complete recipes, sitemap indexes, and Skip/Take splitting.
| Pattern | Example Output |
|---|---|
{{ Model.ContentItem | display_text | slugify }} | my-blog-post |
blog/{{ Model.ContentItem | display_text | slugify }} | blog/my-blog-post |
{{ Model.ContentItem.CreatedUtc | date: '%Y/%m' }}/{{ Model.ContentItem | display_text | slugify }} | 2025/01/my-blog-post |
products/{{ Model.ContentItem.Content.ProductPart.Category.Text | slugify }}/{{ Model.ContentItem | display_text | slugify }} | products/electronics/wireless-headphones |
See orchardcore-autoroute for settings, permalink numbering, and the home route.
SeoMetaPart.PageTitle sets a fixed title that replaces all title segments. When empty, the layout renders the title segments (item display text plus site name). Control the format in the theme layout:
<title>@RenderTitleSegments(Site.SiteName, "before")</title>
<title>{% page_title Site.SiteName, position: "before", separator: " - " %}</title>
{
"steps": [
{
"name": "Content",
"data": [
{
"ContentType": "{{ContentTypeName}}",
"ContentItemId": "{{ContentItemId}}",
"DisplayText": "{{PageTitle}}",
"Latest": true,
"Published": true,
"TitlePart": {
"Title": "{{PageTitle}}"
},
"SeoMetaPart": {
"Render": true,
"PageTitle": "{{CustomBrowserTitle}}",
"MetaDescription": "{{Description}}",
"MetaKeywords": "{{Keywords}}",
"Canonical": "https://{{YourDomain}}/{{CanonicalPath}}",
"MetaRobots": "index, follow",
"OpenGraphType": "article",
"OpenGraphTitle": "{{OgTitle}}",
"OpenGraphDescription": "{{OgDescription}}",
"OpenGraphImage": {
"Paths": ["{{OgImagePath}}"]
},
"TwitterCard": "summary_large_image",
"TwitterTitle": "{{TwitterTitle}}",
"TwitterDescription": "{{TwitterDescription}}",
"TwitterImage": {
"Paths": ["{{TwitterImagePath}}"]
},
"TwitterCreator": "@{{TwitterHandle}}",
"TwitterSite": "@{{SiteTwitterHandle}}",
"GoogleSchema": "{\"@context\":\"https://schema.org\",\"@type\":\"WebPage\",\"name\":\"{{PageTitle}}\"}",
"CustomMetaTags": [
{
"Name": "author",
"Content": "{{AuthorName}}"
},
{
"Name": "theme-color",
"Content": "#{{HexColor}}"
}
]
}
}
]
}
]
}
OrchardCore.Seo.SeoPermissionProvider.ManageSeoSettings was removed. Use OrchardCore.Seo.SeoPermissions.ManageSeoSettings (in OrchardCore.Seo.Abstractions). Role claims are unchanged.Official Orchard Core videos shown on the documentation page:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core-seo, seo-meta-part, open-graph, json-ld, robots-txt, sitemaps
140 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./orchardcore:orchardcore-seofrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcoreOther plugins' skills for the same job