Generates and validates Orchard Core recipe JSON schemas using the CrestApps Recipes module. Covers custom IRecipeStep providers, Settings, content definitions, Layers, Sitemaps, deployment, AdminMenu, Queries, UrlRewriting, Placements, WorkflowType, AI, and Contact Center step schemas.
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.
Read when SKILL.md points to them.
You are an Orchard Core expert. The CrestApps Recipes module publishes JSON Schema for Orchard Core and CrestApps recipe steps, one schema per step, composed into a single recipe schema with a steps array. It does not replace Orchard Core's recipe handlers; it describes the payloads they accept so that recipes generated by people or AI agents can be validated before they run.
CrestApps.OrchardCore.Recipes in the web or startup project and enable the CrestApps.OrchardCore.Recipes feature. It depends on OrchardCore.Recipes.Core.{ "steps": [ ... ] } format.[RequireFeatures(...)] startup, so the composed schema lists only what the tenant can import.IRecipeStep as a scoped service. A step schema must declare a name property with a const value; that const keys the step's branch in the composed schema.Layers, Sitemaps, deployment, AdminMenu, Queries, UrlRewriting, Placements, WorkflowType) with a per-type contribution and its Add...Schema<T>() extension. Do not replace the step.examples, never as enum, so custom values stay valid.| Feature ID | Purpose |
|---|---|
CrestApps.OrchardCore.Recipes | JSON Schema services, feature-gated step schemas, schema-aware JSON import editor |
OrchardCore.Recipes.Core | Orchard Core recipe infrastructure (dependency) |
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Recipes"
],
"disable": []
}
]
}
settings, custom-settings, command and recipes step schemas (step names match case insensitively), RecipeSchemaService, RecipeExecutionService, IRecipeSchemaExampleService and IContentItemSchemaService.Feature, Themes, ContentDefinition, ReplaceContentDefinition, DeleteContentDefinition, Content, Users, Roles, media, templates, Lucene, Elasticsearch, Azure AI Search, index profiles, OpenID and external login settings, translations and feature profiles.Layers, Sitemaps, deployment, AdminMenu, Queries, UrlRewriting, Placements, WorkflowType).PhoneField, AddressField, RolePickerPart, UserFullNamePart, AIProfilePart, OmnichannelContactPart, ProductPart, SubscriptionPart, TaxationPart, and the RolePickerPartContentAccessControlSettings envelope).Settings step contributions (ISiteSettingsSchemaDefinition) for Orchard Core and CrestApps site settings, such as DisplayNameSettings and UserAvatarOptions.AIProfile, CreateAIProfileFromTemplate, AIProfileTemplate, AIDeployment, DeleteAIDeployments, AIProviderConnections, AIDataSource, AIToolInstances, McpConnection, McpPrompt, McpResource, A2AConnection, AIPersonas, TimeZoneMaps, IndexUsers, Currencies, StripeSettings, and the Contact Center, Omnichannel, Telephony, Telnyx and Asterisk configuration steps. See references/crestapps-step-schemas.md.CrestApps.OrchardCore.Recipes (for example Business Hours, Tickets, Knowledge Base, Service Levels, Timeline, Invoicing, Payroll, Banking, Approvals, Learning, Staff, Reports, Webhooks and Tenant Hierarchy), so they appear in the composed schema only when both are on.ContactCenterBusinessHoursCalendar is kept only for older recipes (each calendar is imported as a Business Hours schedule with the same id; new recipes use BusinessHoursSchedules); OmnichannelLeadStatus gained IsContacted; OmnichannelMessageTemplate gained Scope and FillsPlaceholders; the AIChatAdminWidgetSettings section gained SendPageContext; the AICostSettings section is gone (the carrier price is TelephonyCostSettings, set through the Settings step with no schema).With the feature enabled, the Orchard Core Tools > Deployments > JSON Import screen is replaced (through a view location expander) by a Monaco editor fed with RecipeSchemaService.GetRecipeSchemaAsync(), so administrators get autocomplete and validation for every registered step.
RecipeSchemaService (namespace CrestApps.OrchardCore.Recipes.Core.Services) is scoped.
| Member | Returns |
|---|---|
GetRecipeSchemaAsync(cancellationToken) | The full recipe schema with every registered step |
GetRecipeSchemaAsync(requestedStep, cancellationToken) | The recipe schema narrowed to one step, or null when no registered step has that name |
GetStepSchemaAsync(stepName, cancellationToken) | The schema of one step, or null |
GetStepNames() | Names of the steps with a registered IRecipeStep |
using CrestApps.OrchardCore.Recipes.Core.Services;
using Json.Schema;
namespace MyModule;
public sealed class RecipeSchemaLookup
{
private readonly RecipeSchemaService _recipeSchemaService;
public RecipeSchemaLookup(RecipeSchemaService recipeSchemaService)
{
_recipeSchemaService = recipeSchemaService;
}
public ValueTask<JsonSchema> GetContentDefinitionRecipeSchemaAsync(CancellationToken cancellationToken)
=> _recipeSchemaService.GetRecipeSchemaAsync("ContentDefinition", cancellationToken);
}
How the composed schema behaves:
examples on steps[].name, so an unknown step name still validates as an open object.GetSchemaAsync returns null gets a permissive fallback (name const, additional properties allowed).IRecipeStep is not listed.Implement IRecipeStep (namespace CrestApps.OrchardCore.Recipes.Core), or derive from RecipeStepSchemaBase (namespace ...Schemas.Steps), which caches the result of CreateSchema().
using CrestApps.OrchardCore.Recipes.Core.Schemas.Steps;
using Json.Schema;
namespace MyModule.Recipes;
public sealed class ProductSettingsRecipeStep : RecipeStepSchemaBase
{
public override string Name => "ProductSettings";
protected override JsonSchema CreateSchema()
=> new JsonSchemaBuilder()
.Type(SchemaValueType.Object)
.Properties(
("name", new JsonSchemaBuilder()
.Type(SchemaValueType.String)
.Const("ProductSettings")),
("AllowBackorders", new JsonSchemaBuilder()
.Type(SchemaValueType.Boolean)
.Description("Whether out-of-stock products can still be ordered.")))
.Required("name")
.AdditionalProperties(false)
.Build();
}
using CrestApps.OrchardCore.Recipes.Core;
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;
namespace MyModule;
[RequireFeatures("CrestApps.OrchardCore.Recipes")]
public sealed class RecipesSchemaStartup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IRecipeStep, ProductSettingsRecipeStep>();
}
}
Put the registration in a startup gated on both your feature and CrestApps.OrchardCore.Recipes so your module does not require the Recipes feature at runtime. Pair the schema with an Orchard Core recipe handler (see the framework orchardcore-recipes skill) when the step is executable.
The Settings step composes one property per registered ISiteSettingsSchemaDefinition. Derive from SiteSettingsSchemaBase (namespace ...Schemas.SiteSettings); Name is the property name under the step, normally the settings class name.
using CrestApps.OrchardCore.Recipes.Core.Schemas.SiteSettings;
using Json.Schema;
namespace MyModule.Recipes;
public sealed class ProductSettingsSchema : SiteSettingsSchemaBase
{
public override string Name => "ProductSettings";
protected override JsonSchemaBuilder BuildSchemaCore()
=> new JsonSchemaBuilder()
.Type(SchemaValueType.Object)
.Properties(
("AllowBackorders", new JsonSchemaBuilder().Type(SchemaValueType.Boolean)))
.AdditionalProperties(false);
}
Register it with services.AddScoped<ISiteSettingsSchemaDefinition, ProductSettingsSchema>(); behind the feature whose SiteDisplayDriver<TSettings> owns the settings.
A step or settings property that holds a "match all/any of these conditions" rule (CrestApps.OrchardCore.Conditions) describes it with ConditionRuleSchema.Build(description, sourceDescription) (namespace CrestApps.OrchardCore.Recipes.Core.Schemas). The schema is an object (or null) with Match (ConditionMatch: All or Any) and Conditions, each with Source, Operator (ConditionOperator names) and string Values in the invariant culture. Conditional fields (ShowWhen) and work order rules use it.
("ShowWhen", ConditionRuleSchema.Build(
"When the field is shown. Empty shows it always.",
"The technical name of the field whose value is tested."))
IContentSchemaDefinition contributes the Settings envelope of a part or field to ContentDefinition and ReplaceContentDefinition. PartSchemaDefinitionBase and FieldSchemaDefinitionBase also contribute the payload used by the Content step. Contributions are grouped by Name, so several contributors to the same part or field merge instead of replacing each other.
using CrestApps.OrchardCore.Recipes.Core.Schemas.Fields;
using Json.Schema;
namespace MyModule.Schemas;
public sealed class RatingFieldSchemaDefinition : FieldSchemaDefinitionBase
{
public override string Name => "RatingField";
protected override JsonSchemaBuilder BuildSettingsCore()
=> new JsonSchemaBuilder()
.Type(SchemaValueType.Object)
.Properties(
("RatingFieldSettings", new JsonSchemaBuilder()
.Type(SchemaValueType.Object)
.Properties(
("Maximum", new JsonSchemaBuilder().Type(SchemaValueType.Integer)))
.AdditionalProperties(false)))
.AdditionalProperties(true);
protected override JsonSchemaBuilder BuildFieldSchemaCore()
=> new JsonSchemaBuilder()
.Type(SchemaValueType.Object)
.Properties(
("Value", new JsonSchemaBuilder().Type(SchemaValueType.Integer)))
.AdditionalProperties(true);
}
services.AddScoped<IContentSchemaDefinition, RatingFieldSchemaDefinition>();
Read references/content-schemas.md for part schemas, the two settings surfaces (ContentParts[].Settings and ContentTypePartDefinitionRecords[].Settings), container parts (IContainedContentPartSchemaDefinition), and complete ContentDefinition and Content examples.
Each polymorphic step composes its schema from one contribution per condition, source, step, node, filter or activity. The base class adds the shared members; you describe only the type's own members. Register the contribution behind the feature that owns the type.
| Step | Base class | Registration | Keyed by | Recipes gate |
|---|---|---|---|---|
Layers conditions | RuleConditionSchemaDefinitionBase, OperandConditionSchemaDefinitionBase, ConditionGroupSchemaDefinitionBase | AddRuleConditionSchema<T>() | Name + $type | OrchardCore.Layers |
Layers operators | RuleConditionOperatorSchemaDefinitionBase, StringOperatorSchemaDefinitionBase | AddRuleConditionOperatorSchema<T>() | $type | OrchardCore.Layers |
Sitemaps | SitemapSourceSchemaDefinitionBase | AddSitemapSourceSchema<T>() | $type | OrchardCore.Sitemaps |
deployment | DeploymentStepSchemaDefinitionBase | AddDeploymentStepSchema<T>() | StepType (the Type value) | OrchardCore.Deployment |
AdminMenu | AdminNodeSchemaDefinitionBase | AddAdminNodeSchema<T>() | $type | OrchardCore.AdminMenu |
Queries | QuerySourceSchemaDefinitionBase | AddQuerySourceSchema<T>() | Name (the Source value) | OrchardCore.Queries |
UrlRewriting | RewriteRuleSourceSchemaDefinitionBase | AddRewriteRuleSourceSchema<T>() | Name (the Source value) | OrchardCore.UrlRewriting |
Placements | PlacementNodeFilterSchemaDefinitionBase | AddPlacementNodeFilterSchema<T>() | Key | OrchardCore.Placements |
WorkflowType | WorkflowActivitySchemaDefinitionBase | AddWorkflowActivitySchema<T>() | activity Name | OrchardCore.Workflows |
Base classes live in CrestApps.OrchardCore.Recipes.Core.Schemas.<Family> (Rules, Rules.Conditions, Rules.Operators, Sitemaps, Deployment, AdminMenu, Queries, UrlRewriting, Placements, Workflows). The Add...Schema<T>() extensions live in Microsoft.Extensions.DependencyInjection. When two definitions share a name, the last registered wins, which lets you override a built-in description.
Example, a deployment step contribution:
using CrestApps.OrchardCore.Recipes.Core.Schemas.Deployment;
using Json.Schema;
namespace MyModule.Schemas;
public sealed class ProductCatalogDeploymentStepSchema : DeploymentStepSchemaDefinitionBase
{
public override string StepType => "ProductCatalogDeploymentStep";
protected override string DisplayText => "Product catalog";
protected override string Description => "Exports the product catalog.";
protected override IEnumerable<(string Name, JsonSchemaBuilder Schema)> GetPropertyDefinitions(DeploymentStepSchemaContext context)
{
yield return ("IncludeArchived", DeploymentSchemaBuilders.Boolean("When true, archived products are included."));
yield return ("ContentTypes", DeploymentSchemaBuilders.StringArray("Content types to export.", context.Examples.ContentTypeNames));
}
}
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;
namespace MyModule;
[RequireFeatures("CrestApps.OrchardCore.Recipes", "OrchardCore.Deployment")]
public sealed class DeploymentSchemaStartup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddDeploymentStepSchema<ProductCatalogDeploymentStepSchema>();
}
}
Read these references for the full contract, built-in coverage and examples of each family:
IRecipeSchemaExampleService.GetExamplesAsync() returns a RecipeSchemaExamples snapshot with ContentTypeNames, ContentPartNames, CultureNames, RoleNames and IndexProfileNames. Family definitions receive it as context.Examples (admin menu, deployment, query, rule, sitemap and workflow contexts).
GetValueExamples(RecipeSchemaExamples examples).DeploymentSchemaBuilders.StringArray(description, itemExamples), WorkflowActivitySchemaBuilders.String(description, examples) and WorkflowActivitySchemaBuilders.StringArray(description, itemExamples)..Examples(...) yourself. The internal WithSuggestions helper is not public.Never turn an example list into an enum. Examples are non-restrictive, so a recipe that references a type, role, culture or index added later still validates.
RecipeExecutionService.ExecuteRecipeAsync(JsonNode data) writes the JSON to a temporary Recipe.json under the tenant temp directory and imports it through every registered IDeploymentTargetHandler in sequence. It returns false and logs the exception when anything fails.
using System.Text.Json.Nodes;
using CrestApps.OrchardCore.Recipes.Core.Services;
namespace MyModule;
public sealed class GeneratedRecipeExecutor
{
private readonly RecipeExecutionService _recipeExecutionService;
public GeneratedRecipeExecutor(RecipeExecutionService recipeExecutionService)
{
_recipeExecutionService = recipeExecutionService;
}
public Task<bool> ExecuteAsync(JsonObject recipe)
=> _recipeExecutionService.ExecuteRecipeAsync(recipe);
}
Validate generated JSON against RecipeSchemaService first, authorize the caller for every operation the recipe performs, and never run untrusted Command or deployment payloads without review.
RecipeSchemaService no longer reflects over NamedRecipeStepHandler registrations and no longer caches step names in IMemoryCache for an hour. Step names now come only from registered IRecipeStep services, so register an IRecipeStep for every custom step you want listed.name property with a const, so it is not keyed into the composed union.ContentDefinition: the IContentSchemaDefinition was not registered while Recipes is enabled.Content schema composes attached fields through their own definitions.Add...Schema<T>() call sits behind the right [RequireFeatures(...)] gate.StepType, a query or rewrite rule on its Source value, and a placement filter on its Key.IContentDefinitionManager, ILocalizationService, IRoleService or IIndexProfileStore). Missing examples never fail validation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-crestapps-recipesfrom 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./orchardcore-addressesSkill for the CrestApps Orchard Core Addresses module (CrestApps.OrchardCore.Addresses, Addresses.Countries, Addresses.GooglePlaces). Covers the immutable Address value shared by customers, checkout, orders, shipping and taxation, per-country address formats from Google address data with AddAddressesCore, IAddressFormatProvider and AddressFormat, IAddressValidator and AddressProblem, IAddressFormatter, the AddressEditor shape with IAddressEditorService and AddressEditorOptions, CreateAddressEditorAsync and CreateAddressDisplayAsync, ICountryService and managed Country content items, address suggestions through IAddressAutocompleteProvider, ContactInfo, NamedAddress and IShippingAddressBook, the Google Places provider with its protected API key, the address-autocomplete rate-limit group, and the ManageAddressSuggestions permission. Use it when requests mention Orchard Core addresses, international address formats, address validation, a country list, address autocomplete or Google Places./orchardcore-advanced-seoSkill for the CrestApps Orchard Core Advanced SEO module (CrestApps.OrchardCore.Seo), which publishes schema.org structured data as one JSON-LD graph per page and for NLWeb answers. Covers the Schema.org part (SchemaOrgPart, SchemaOrgPartSettings with SchemaType and property mappings from Content, Fixed, Editor or Liquid sources), the StructuredDataSettings site settings and their deployment step, the ManageAdvancedSeoSettings permission, Orchard Core SEO, Search, Products and Reviews integration, the getSchemaOrgOptions, configureContentTypeSchemaOrg and configureSiteStructuredData AI tools, describing pages in code with IPageStructuredData, the structured-data tag helper and the structured_data Liquid filter, and extending with IStructuredDataProvider, ContentPartStructuredDataProvider and SelfDescribingParts. Use this skill when requests mention schema.org, JSON-LD, structured data, rich results, Google required properties, product or article markup, or Advanced SEO in Orchard Core./orchardcore-agentic-commerceSkill for the CrestApps Orchard Core Agentic Commerce module (CrestApps.OrchardCore.AgenticCommerce), which lets AI agents such as Gemini and ChatGPT buy from the store with the Universal Commerce Protocol (UCP), the Agentic Commerce Protocol (ACP) and the AP2 mandates extension (preview). Covers every feature (UCP, account linking, catalog and cart, MCP and A2A bindings, ACP, Agent Product Feeds, AP2), the /.well-known/ucp and /.well-known/acp.json discovery documents, checkout session endpoints, agent platforms and their sign-in, AgenticCommerceSettings, store signing keys in Secrets, idempotency, payment handlers (Stripe shared payment tokens, Google Pay, test credentials), delegated 3-D Secure, embedded checkout, signed order updates, the AgentPlatforms recipe step, and extending with IAgentPaymentHandler, IUcpProfileContributor, IUcpCheckoutExtension and IAgentOrderPublisher. Use it when requests mention agentic commerce, selling through AI agents, UCP, ACP, AP2, agent checkout or agent product feeds./orchardcore-agreementsSkill for the CrestApps Orchard Core Agreements module (CrestApps.OrchardCore.Agreements), support and maintenance contracts with accounts. Covers the Agreement record with its SA- number, status, period and covered hours (a block or a monthly allowance with rounding), Content > Agreements, the account Service tab, the ManageAgreements and ViewAgreements permissions, the Agreements recipe and deployment step, module terms in Properties with IAgreementTermsValidator, IAgreementUsageProvider and IAgreementBalanceService, the hourly lifecycle task with IAgreementObserver, account manager notifications, and the Agreement Usage and Burn-down reports. Use this skill when requests mention service agreements, support contracts, prepaid or retainer hours, entitlements or agreement expiry. Strong matches include Agreement, AgreementHours, AgreementStatus, AgreementBalance, AgreementUsage, IAgreementManager, IAgreementObserver and TicketAgreementTerms.Other plugins' skills for the same job