Manages AI prompt templates in Orchard Core, including file-based prompts under Templates/Prompts, system prompt templates, profile templates, and the renderAITemplate scripting method. Useful when working with reusable instruction fragments, prompt selection, or ITemplateService in Orchard Core.
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.
Prompt templates are reusable, Liquid-rendered instruction fragments. Editors pick them on AI profiles, profile templates, chat interactions and the direct-config workflow task; they render, in order, before the entity's own system message.
| Need | Use |
|---|---|
| A reusable instruction fragment shipped with code | A prompt file under Templates/Prompts/ in a module |
| A reusable instruction fragment managed by administrators | A System Prompt template under Artificial Intelligence > Templates |
| Reusable defaults for creating whole profiles | A Profile template; see orchardcore-ai-profile-templates |
| Item | Value |
|---|---|
| Feature | AI Prompt Templates, CrestApps.OrchardCore.AI.Prompting |
| Depends on | CrestApps.OrchardCore.AI |
| Enabled by | CrestApps.OrchardCore.AI.Chat.Core (AI Chat Services) depends on it, so any chat feature turns it on |
{
"steps": [
{
"name": "Feature",
"enable": [ "CrestApps.OrchardCore.AI.Prompting" ],
"disable": []
}
]
}
The feature replaces ITemplateService with the Orchard-aware OrchardCoreTemplateService and adds a
module template provider. Module prompt files are filtered by the tenant's enabled features and IDs are
de-duplicated case-insensitively.
Templates/Prompts/customer-support-tone.md -> module's default feature
Templates/Prompts/MyCompany.OrchardCore.Support.Escalation/escalate.md -> only while that feature is enabled
A file at the root of Templates/Prompts/ belongs to the module's default feature; a file in a first-level
folder named after a feature ID is available only while that feature is enabled. The template ID is the
file name without its extension. Front matter describes the template in the picker:
---
Title: Customer support tone
Description: Friendly, concise tone for support assistants
Category: Support
IsListable: true
---
Keep answers short, friendly and factual.
Never promise refunds; offer to connect the customer with the team instead.
IsListable: false hides a template from the picker while code can still render it (the shipped
profile-builder-coach and sms-conclusion-analysis prompts do this). Templates can declare parameters
that editors fill in as JSON Template parameters; the front matter syntax for parameters and the Liquid
context are covered by crestapps-core-ai-templates.
The Prompt templates picker (Add prompt template) appears on the Instructions card of AI
profiles and profile templates, the Settings tab of chat interactions, and the AI Completion using
Direct Config workflow task (when chat interactions and workflows are enabled). It lists module prompt
files plus saved System Prompt templates. The selection is stored as PromptTemplateMetadata:
{
"steps": [
{
"name": "AIProfile",
"Profiles": [
{
"Name": "support-assistant",
"DisplayText": "Support Assistant",
"Type": "Chat",
"Properties": {
"PromptTemplateMetadata": {
"Templates": [
{ "TemplateId": "customer-support-tone" },
{ "TemplateId": "escalate", "Parameters": { "team": "Billing" } }
]
},
"AIProfileMetadata": {
"SystemMessage": "Answer questions about orders and shipping."
}
}
}
]
}
]
}
In code, set it with profile.Put(new PromptTemplateMetadata { Templates = [new PromptTemplateSelectionEntry { TemplateId = "customer-support-tone" }] })
(CrestApps.Core.AI.Models).
A template created under Artificial Intelligence > Templates with the System Prompt source holds
SystemPromptTemplateMetadata.SystemMessage. In 3.0 it is served by CrestApps.Core's
AIProfileSystemPromptTemplateProvider under its technical name, which is the ID the picker stores.
Saved templates are read on every request (not cached tenant-wide), so an edit applies on the next message.
A module prompt file with the same ID wins over a saved template.
{
"steps": [
{
"name": "AIProfileTemplate",
"Templates": [
{
"Name": "legal-disclaimer",
"DisplayText": "Legal disclaimer",
"Source": "SystemPrompt",
"Properties": {
"SystemPromptTemplateMetadata": {
"SystemMessage": "Never give legal advice. Suggest consulting a lawyer."
}
}
}
]
}
]
}
Speaking styles and guardrail topics are System Prompt templates too, in the categories
AISpeakingStyles.Category ("Speaking style") and AIGuardrailTopics.Category. They are not listable, so they
stay out of the prompt template picker; Artificial Intelligence > Speaking Styles and Guardrail Topics
list them, and the profile's Speaking style and Guardrails cards pick them. The eight default styles and
topics are seeded once per tenant (AISystemPromptTemplateDefaultsMigrations), so a deleted default stays
deleted. See orchardcore-ai-conversations.
PromptTemplateSelectionService lists and finds selectable templates through ITemplateService; resolve
ITemplateService (CrestApps.Core templates) to render a template by ID with arguments.CrestApps.OrchardCore.AI and OrchardCore.Recipes.Core enabled, Orchard scripting has
renderAITemplate:renderAITemplate("customer-support-tone")
renderAITemplate("customer-support-tone", { siteName: "Contoso" })
The one-argument form returns the stored content; the two-argument form renders it with the object as
Liquid variables. It reads prompt templates known to ITemplateService, not profile templates.
PromptTemplateSelectionService no longer takes an IAIProfileTemplateManager; custom subclasses or
callers must not depend on that constructor.| Symptom | Check |
|---|---|
| A prompt file is not in the picker | It is under Templates/Prompts/, its owning feature is enabled, and IsListable is not false |
| A selected template renders nothing | The stored TemplateId matches the file name or the System Prompt template's technical name |
| A saved template edit is ignored | A module prompt file with the same ID takes priority |
renderAITemplate is undefined | Enable CrestApps.OrchardCore.AI and OrchardCore.Recipes.Core |
orchardcore-ai-profile-templates for Profile templates and the New AI Profile picker.orchardcore-ai for the profile recipe and metadata.orchardcore-ai-workflows for the AI completion workflow tasks.crestapps-core-ai-templates for template parsing, parameters and Liquid rendering.What SKILL.md sets; muted values are Claude Code's defaults
/crestapps-orchardcore:orchardcore-ai-promptingfrom 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