Builds AI profiles in Orchard Core by role-playing conversations and tuning system messages from feedback. Covers the Profile Builder feature, coach deployment, replay with verdicts, and session management.
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.
You are an Orchard Core expert. Help set up, use and troubleshoot the CrestApps AI Profile Builder, which turns feedback on role-played conversations into an AI profile's system message and parameters.
CrestApps.OrchardCore.AI.Chat.Interactions.ProfileBuilder (AI Profile Builder). It ships in the CrestApps.OrchardCore.AI.Chat.Interactions package and depends on CrestApps.OrchardCore.AI.Chat.Interactions.ManageAIProfiles and EditChatInteractions. The menu item Artificial Intelligence > Profile Builder is guarded by ManageAIProfiles.orchardcore-ai-chat-interactions.{ "steps": [...] } and C# classes are sealed, except view models.{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI.Chat.Interactions",
"CrestApps.OrchardCore.AI.Chat.Interactions.ProfileBuilder",
"CrestApps.OrchardCore.OpenAI"
],
"disable": []
}
]
}
A chat deployment that declares textGeneration must exist. See orchardcore-ai-model-capabilities.
The coach's system prompt is the profile-builder-coach template in the module's Templates/Prompts folder. Each request carries the current system message, opening message and parameters, the conversation so far, every earlier piece of feedback (oldest first, with each rejected or approved reply quoted, including replies regenerated away), the revision history, and the new feedback. It returns JSON with the complete system message and, when needed, new values for the opening message, temperature, top-p, frequency and presence penalties, maximum tokens and past message count. Values outside the ranges the settings panel accepts are clamped.
Because every request includes the whole history, a fix found on a later attempt keeps the earlier fixes.
Feedback is grouped by situation (the same user message at the same point in a conversation). Up to 20 of the most recent situations are answered again with the current settings, and the profile-builder-replay-judge template marks each Pass, Fail or Unknown (shown as Unclear). Tools are not offered during a replay, so nothing is sent or booked twice.
The Simulate tab lets models play the customer instead: up to five Customers to play (separated by a blank line), What every conversation must achieve (one criterion per line), a Customer model and a Judge model, Turns, Rounds and Passing score, and Rewrite the instructions when a conversation fails.
ProfileBuilderSimulator.RunRoundAsync runs one round of the session's SimulationSettings: each scenario through AIConversationSimulator (customer on CustomerDeploymentName, the assistant on a profile built from the session with ProfileBuilderProfileMapper.CopyToProfile, so linked knowledge and tools take part), judged by IAIConversationEvaluator on JudgeDeploymentName. The latest 60 results are kept in ProfileBuilderSession.Simulations.Improve is on, the lowest-scoring one becomes a ProfileBuilderFeedback listing every failure; the coach rewrites the settings as a revision with the source Simulation, which Revisions and Replay then see.POST Simulate?runId=); the page posts again until the response says finished (all passed, rounds ran out, the coach could not rewrite, or Stop after this round).Workflow.Input.Simulation set, so tool workflows that act on the outside world should return test data. See orchardcore-ai-conversations.With a conversation deployment, role-play can be spoken and spoken replies can receive feedback. They cannot be regenerated, because they were already heard. A realtime session keeps the instructions it started with; end and restart it to use new ones. See orchardcore-ai-realtime-voice.
| Action | Result |
|---|---|
| Create AI profile | New chat profile with the system message, opening message (AIProfileMetadata.InitialPrompt), parameters, chat and utility deployments, orchestrator, tools, agents, MCP and A2A connections, tool instances, data source and retrieval settings, model parameters and prompt templates |
| Update the AI profile | Writes the same values onto the profile the session started from or last saved to |
| Copy system message | Copies the current instructions |
A conversation deployment on the session sets the new profile's chat mode to Conversation with the same conversation deployment and voice.
| Piece | Detail |
|---|---|
| Conversation | A ChatInteraction marked with ProfileBuilderInteractionMetadata; the chat interaction hub is used unchanged |
| Ledger | A ProfileBuilderSession document in the AI collection, indexed by ProfileBuilderSessionIndex, holding feedback, revisions and the last replay. It is kept apart from the interaction so a settings autosave cannot overwrite it |
| Page | The chat interaction editor with a ChatInteractionChatClientOverrides request feature that adds Feedback and Looks good under each reply; profile-builder.js (resource ProfileBuilderApp) drives the chat client |
| Services | ProfileBuilderService, ProfileBuilderCoach, IProfileBuilderSessionStore |
| Routes | ai/profile-builder (list), and ai/profile-builder/{action}/{id?} for New, Session, State, Feedback, Restore, Replay, Settings, SaveProfile and Delete |
| Admin list | Orchard Core AdminList named AIProfileBuilderSessions (rows ProfileBuilderSessionEntry_SummaryAdmin; columns Name, Activity, Modified, Actions). Builder sessions are left out of the Chat Interactions list |
Coach calls are recorded under the usage purpose ProfileBuilderCoaching and replay and judge calls under ProfileBuilderReplay (AIUsageFeaturePurposes), so they can be told apart from conversation traffic. See orchardcore-ai-usage-analytics.
ManageAIProfiles, or the feature is off.EditChatInteractions on the interaction.What SKILL.md sets; muted values are Claude Code's defaults
/crestapps-orchardcore:orchardcore-ai-profile-builderfrom 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