Configures schema.org JSON-LD structured data in Orchard Core sites. Covers SchemaOrgPart, property mappings, site settings, AI tools, and extensibility for rich results.
Ships in crestapps-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.
The Advanced SEO module describes the site and its content items with the schema.org vocabulary in JSON-LD. One engine, IStructuredDataManager, has two outputs:
<script type="application/ld+json"> holding one @graph: the publisher (Organization or Person), the WebSite, and the content item the page displays (or what code said about the page).StructuredDataPurpose.Answer). orchardcore-nlweb returns these objects.It builds on Orchard Core's SEO module (orchardcore-seo keeps meta tags, Open Graph, Twitter cards and robots.txt) and takes over only the JSON-LD.
CrestApps.OrchardCore.Seo (category Content Management), depending on OrchardCore.Contents and OrchardCore.Liquid. Install the CrestApps.OrchardCore.Seo package in the web/startup project; extension code only needs CrestApps.OrchardCore.Seo.Abstractions.[RequireFeatures] startups:| Enabled module | What it adds |
|---|---|
OrchardCore.Seo | Uses the SEO part's meta description and social image; merges the JSON-LD typed in the part's Google Schema field into the graph and stops Orchard Core writing it twice |
OrchardCore.Search | A SearchAction on the WebSite node pointing at /search?terms={search_term_string} |
CrestApps.OrchardCore.AI | The three AI tools below |
| Products | Product nodes with their Offer or AggregateOffer |
| Reviews | aggregateRating from approved reviews |
ManageAdvancedSeoSettings, Administrator by default).ProductPart. Other pages still describe the site. NLWeb answers describe every item.Layout shape renders, so views and Liquid templates can still describe the page. Values are HTML-escaped so they cannot close the script element.SchemaOrgPart is attachable. Its type settings (SchemaOrgPartSettings) hold SchemaType and Properties, a list of SchemaOrgPropertyMapping (Name, Source, Value). They are part of the content definition, so ContentDefinition recipes and deployment plans carry them.
Source | Value |
|---|---|
Content | Item:DisplayText, Item:Summary, Item:Body, Item:Url, Item:Author, Item:PublishedUtc, Item:ModifiedUtc, Item:CreatedUtc, Item:Language, Site:Publisher, Site:Name, or a field as Field:{Part}.{Field} |
Fixed | A constant for every item |
Editor | None; editors enter the value on the item's Schema.org tab (stored in SchemaOrgPart.Values) |
Liquid | A Liquid template receiving ContentItem (also the model), Url and BaseUrl |
offers.price sets a nested object, created with its type (Offer) when the vocabulary knows it.SchemaOrgVocabulary knows Google's rich result types and common types, each property's kind (text, URL, image, date, number, enumeration, object, JSON) and whether Google requires or recommends it. Values are written in that shape: media fields give absolute URLs, enumerations become https://schema.org/InStock, content pickers give names and URLs. Unknown types and properties are written as text, or JSON when the text is a JSON object or array.SchemaOrgSuggestions).{
"steps": [
{
"name": "ContentDefinition",
"ContentTypes": [
{
"Name": "BlogPost",
"ContentTypePartDefinitionRecords": [
{
"PartName": "SchemaOrgPart",
"Name": "SchemaOrgPart",
"Settings": {
"SchemaOrgPartSettings": {
"SchemaType": "BlogPosting",
"Properties": [
{ "Name": "headline", "Source": "Content", "Value": "Item:DisplayText" },
{ "Name": "image", "Source": "Content", "Value": "Field:BlogPost.Image" },
{ "Name": "author", "Source": "Content", "Value": "Item:Author" },
{ "Name": "articleSection", "Source": "Fixed", "Value": "News" },
{ "Name": "wordCount", "Source": "Editor" }
]
}
}
}
]
}
]
}
]
}
StructuredDataManager runs every IStructuredDataProvider in ascending Order; later providers override earlier properties.
StructuredDataProviderOrder | Provider | Sets |
|---|---|---|
Defaults (-1000) | Content item defaults | name, url, dates, inLanguage, description from the body |
Parts (0) | Module providers | Domain data, such as product offers |
SeoMeta (500) | Orchard Core SEO | description, image |
SchemaOrgPart (1000) | Schema.org part | The mappings and editor values |
EditorJsonLd (2000) | SEO part's Google Schema | Editor JSON-LD (wins over the mappings) |
Site (3000) | Site | Publisher and WebSite; publisher and isPartOf when missing |
A provider that refers to the site nodes (for example a course's provider) uses an Order above StructuredDataProviderOrder.Site and links them with StructuredDataNodeIds.Publisher(baseUrl) ({baseUrl}/#publisher) and StructuredDataNodeIds.WebSite(baseUrl) ({baseUrl}/#website) from CrestApps.OrchardCore.Seo.Abstractions.
Afterwards IPageStructuredData.MainEntity is merged in, an untyped node becomes WebPage (or Thing without a URL), and a node without @id gets {url}#{type}.
StructuredDataSettings is a site setting set by the Settings step. The Structured data settings deployment step exports it in the same shape. With CrestApps Recipes enabled the section has a JSON schema.
{
"steps": [
{
"name": "Settings",
"StructuredDataSettings": {
"RenderOnPages": true,
"PublisherType": "Organization",
"PublisherName": "Contoso",
"PublisherLogoUrl": "/media/logo.png",
"SameAs": [ "https://www.linkedin.com/company/contoso" ],
"IncludeWebSite": true,
"IncludeSearchAction": true
}
}
]
}
With AI enabled, three selectable tools in the Search Engine Optimization category let an agent (such as the admin AI chat) set up structured data. Each also needs Access AI tool.
| Tool | Arguments | Permission checked |
|---|---|---|
getSchemaOrgOptions | optional contentType, schemaType | None (read-only) |
configureContentTypeSchemaOrg | contentType, schemaType, properties (name, source, value), replace, addSuggested | Edit content types |
configureSiteStructuredData | publisherType, publisherName, publisherLogoUrl, sameAs, renderOnPages, includeWebSite, includeSearchAction | ManageAdvancedSeoSettings |
IPageStructuredData (scoped) describes pages that are not content items: set MainEntity, Add(node) other nodes such as a BreadcrumbList, or set Suppressed to drop the script. AddJsonLd(json) (extension) treats a node without @id as the page and adds nodes with @id to the graph. JsonLd.CreateNode, JsonLd.Reference and JsonLd.Merge help build nodes.
using System.Text.Json.Nodes;
using CrestApps.OrchardCore.Seo;
using Microsoft.AspNetCore.Mvc;
public sealed class AboutController : Controller
{
private readonly IPageStructuredData _pageStructuredData;
public AboutController(IPageStructuredData pageStructuredData)
=> _pageStructuredData = pageStructuredData;
public IActionResult Index()
{
var page = JsonLd.CreateNode("AboutPage");
page["name"] = "About Contoso";
page["mainEntity"] = JsonLd.Reference("#founder");
_pageStructuredData.MainEntity = page;
_pageStructuredData.Add(new JsonObject
{
["@type"] = "Person",
["@id"] = "#founder",
["name"] = "Ada Lovelace",
});
return View();
}
}
From views, with no code-behind:
@addTagHelper *, CrestApps.OrchardCore.Seo
<structured-data>
{ "@type": "ContactPage", "name": "Contact us", "telephone": "@Model.Phone" }
</structured-data>
{% capture page_json_ld %}{ "@type": "ContactPage", "name": "Contact {{ Site.SiteName }}" }{% endcapture %}
{{ page_json_ld | structured_data }}
| Type | Use it to |
|---|---|
IStructuredDataProvider (Order, BuildAsync(StructuredDataContext)) | Describe your own content or pages; when context.ContentItem is null, set context.MainEntity for route-based pages |
ContentPartStructuredDataProvider<TPart> | Run only for items with a part; override BuildAsync(context, part) |
StructuredDataOptions.SelfDescribingParts | Describe items of your part without the Schema.org part |
IStructuredDataManager | BuildPageDocumentAsync(...) for a page, BuildEntityAsync(item, purpose) for an agent |
StructuredDataContext | ContentItem, Purpose, BaseUrl, Url, MainEntity, Graph, SuggestType(type), ToAbsoluteUrl(url) |
Register providers in a startup marked [RequireFeatures("CrestApps.OrchardCore.Seo")] so nothing else has to be enabled:
using CrestApps.OrchardCore.Seo;
internal sealed class EventStructuredDataProvider : ContentPartStructuredDataProvider<EventPart>
{
protected override Task BuildAsync(StructuredDataContext context, EventPart part)
{
context.SuggestType("Event");
context.MainEntity["startDate"] = part.StartUtc.ToString("o");
if (context.Purpose == StructuredDataPurpose.Page)
{
context.Graph.Add(JsonLd.CreateNode("Place", $"{context.BaseUrl}/#venue"));
}
return Task.CompletedTask;
}
}
[RequireFeatures("CrestApps.OrchardCore.Seo")]
public sealed class SeoStartup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IStructuredDataProvider, EventStructuredDataProvider>();
services.Configure<StructuredDataOptions>(options => options.SelfDescribingParts.Add(nameof(EventPart)));
}
}
RenderOnPages) is off.OrchardCore.Seo enabled together with this module so SeoAspectJsonLdHandler clears SeoAspect.GoogleSchema.orchardcore-seo (Orchard Core's SEO part and meta tags).orchardcore-nlweb (natural-language answers built from these objects).orchardcore-products and orchardcore-reviews (product offers and ratings).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-advanced-seofrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job