Configures reusable AI personas with instructions, name, language, voice, and avatar for CrestApps.Core 2.0. Covers registration, Markdown storage, linking, and resolution.
Ships in crestapps-core. 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.
A persona says who the assistant is: its instructions, the name it uses, its language, voice and avatar. The profile's system message and prompt templates still say what it does. A resource links to one optional persona by its technical name, so editing the persona changes every profile, interaction and template that links to it from the next message. Personas are not AI templates: a template is copied when used, a persona stays linked.
AddPersonas(...), persona links are kept but ignored and chats run with the profile's own instructions and voice.Name, never by item id. Names survive export and import across tenants; ids do not. A persona's name cannot change once saved.IAIPersonaResolver (or the service-provider helpers) so chat, chat interactions, realtime and voice behave the same.builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai
.AddOpenAI()
.AddPersonas(personas => personas
.AddYesSqlStores() // or .AddEntityCoreStores()
.AddEmbeddedPersonas(typeof(Program).Assembly))
)
);
AddPersonas (or services.AddCoreAIPersonas()) registers IAIPersonaManager, IAIPersonaResolver, the persona catalog handler, AIPersonaCompletionContextBuilderHandler and AIPersonaFileSystemProvider, which reads Templates/Personas in the content root. A YesSql host also creates the index table once with schemaBuilder.CreateAIPersonaIndexSchemaAsync(yesSqlStoreOptions) next to its other index tables.
AIPersona property | Purpose |
|---|---|
Name | Technical name links point to; fixed after save |
DisplayText, Description | Editor display |
Instructions | Required persona prompt, rendered as Liquid |
AssistantName | Name the assistant uses; shown on assistant messages |
Language | BCP-47 tag used as the speech language when the caller names none |
VoiceName, VoiceDeploymentName | Provider-specific voice and the deployment it was chosen from |
AvatarUrl | Optional avatar image |
IAIPersonaManager is an INamedCatalogManager<AIPersona>. Reads merge saved personas with every IAIPersonaProvider; a saved persona replaces a provided one with the same name. Only saved personas can be updated or deleted.
using System.Text.Json.Nodes;
using CrestApps.Core.AI.Profiles;
var persona = await personaManager.NewAsync("friendly-assistant", new JsonObject
{
["DisplayText"] = "Friendly assistant",
["Instructions"] = "You are a warm, patient assistant for {{ company }}. Keep answers short.",
["AssistantName"] = "Ava",
["Language"] = "en-US",
});
var validation = await personaManager.ValidateAsync(persona);
if (validation.Succeeded)
{
await personaManager.CreateAsync(persona);
}
Validation requires a unique name and instructions.
---
Title: Friendly assistant
Description: Warm, patient and plain-spoken.
AssistantName: Ava
Language: en-US
---
You are Ava, a warm and patient assistant. Use plain words, keep answers short,
and ask one question at a time when you need more detail.
Place files in Templates/Personas under the content root, or embed them under Templates/Personas in an assembly and call AddEmbeddedPersonas(assembly) (or services.AddCoreAIPersonasFromAssembly(assembly)). The path below that folder, without extension, becomes the technical name.
using CrestApps.Core.AI.Models;
profile.Put(new AIPersonaMetadata
{
PersonaId = "friendly-assistant",
Parameters = new Dictionary<string, object>
{
["company"] = "Contoso",
},
});
await profileManager.UpdateAsync(profile);
ChatInteraction and AIProfileTemplate.PersonaId: an empty value unlinks, an absent key keeps the current link.personaId hub setting through PersonaChatInteractionSettingsHandler.PersonaId: friendly-assistant to its front matter; profiles created from it copy the link.AIChatSession.PersonaId for reporting.AIPersonaCompletionContextBuilderHandler runs in BuiltAsync, after the profile or interaction handlers produced the system message. It resolves the persona and calls ResolvedAIPersona.PrependTo(systemMessage):
Your name is Ava.
persona instructions (Liquid, with link Parameters and assistant_name)
selected prompt templates
the profile's or interaction's own system message
The resolved persona is also stored under AICompletionContextKeys.Persona in AICompletionContext.AdditionalProperties, and realtime sessions read their instructions from the same completion context. A link parameter named assistant_name overrides the persona's name in the Liquid variables. A Liquid error drops the instructions but keeps the rest of the persona. A deleted or unknown persona is logged and the request carries on without it.
The chat hubs pick a voice in one order: the explicit voice (the caller's, or the profile's or interaction's own), then the persona's, then the deployment default.
var persona = await serviceProvider.ResolvePersonaAsync(profile, cancellationToken);
var voice = await serviceProvider.SelectPersonaVoiceAsync(
persona,
explicitVoice: requestedVoice,
speakingDeploymentName: speakingDeployment.Name,
defaultVoice: defaultVoice,
cancellationToken);
The persona's voice is skipped, with a warning, when its VoiceDeploymentName belongs to a different provider than the speaking deployment; for a cascaded realtime deployment the text-to-speech leg is compared. The persona's Language becomes the speech language when the caller names none. The IServiceProvider helpers return null (or the explicit and default voice) when personas are not registered, so shared code works in either kind of host.
using CrestApps.Core.AI.Profiles;
AIChatAssistantDisplay display = await serviceProvider.ResolveChatAssistantDisplayAsync(profile, cancellationToken);
var label = display.GetAssistantLabel("Assistant");
var avatarUrl = display.AvatarUrl;
Pass the values to @crestapps/ai-chat-ui as assistantLabel and assistantAvatarUrl (data-coreai-chat-assistant-avatar-url). A custom message template calls getAssistantAvatarUrl(message); a custom typing indicator can use the {{ assistantIcon }} token. Without a persona the chat keeps its label and robot icon. IAIPersonaResolver.ResolveChatAssistantDisplayAsync(resource) and ResolvedAIPersona.ToChatAssistantDisplay() return the same shape.
using CrestApps.Core.AI.Models;
using CrestApps.Core.AI.Profiles;
public sealed class BrandPersonaProvider : IAIPersonaProvider
{
public Task<IReadOnlyList<AIPersona>> GetPersonasAsync(CancellationToken cancellationToken = default)
{
IReadOnlyList<AIPersona> personas =
[
new AIPersona
{
Name = "brand-voice",
DisplayText = "Brand voice",
Instructions = "You speak for Contoso: friendly, concise, never salesy.",
AssistantName = "Contoso Assistant",
Language = "en-US",
},
];
return Task.FromResult(personas);
}
}
builder.Services.AddSingleton<IAIPersonaProvider, BrandPersonaProvider>();
Provided personas are read-only; saving one with the same name in the persona store replaces it.
crestapps-core-ai-profiles for the profile fields a persona complements.crestapps-core-context-builders for where the persona handler runs.orchardcore-ai-personas for the Orchard Core module wrapper.What SKILL.md sets; muted values are Claude Code's defaults
51 skills in this plugin
/crestapps-core-a2aSkill for Agent-to-Agent (A2A) protocol support in CrestApps.Core on the A2A 1.0 SDK. Covers AddA2AClient and AddCoreAIA2AClient with Entity Framework Core or YesSql connection stores, A2AConnection and A2AConnectionMetadata authentication, AIProfileA2AMetadata, the agent card cache and A2AToolRegistryProvider, the listAvailableAgents, findAgentForTask and findToolsForTask tools, building an A2A host with IAgentHandler, A2AServer, ITaskStore and MapA2A, A2A 1.0 agent cards with supportedInterfaces published at /.well-known/agent-card.json, A2AHostOptions authentication and ExposeAgentsAsSkill, system agents exposed through the host, and upgrading from the 0.3 SDK./crestapps-core-ag-uiSkill for running the CrestApps.Core 2.0 AI chat as an AG-UI agent. Covers the CrestApps.Core.AI.AGUI package (AGUIRunEventWriter, AGUIRunRequest, AGUIJson), AIChatHubCore.RunAgent over SignalR and MapAGUIChat with Server-Sent Events, the RunAgentInput members and streamed events, tool approvals with RequireApproval or an approval tool kind, ApprovalRequiredAIFunction, interrupts and resume, approvals inside agents, page context with crestAppsAGUI.registerContextProvider, shared state with registerStateProvider and update_shared_state, frontend tools, stored tool calls (ChatTurnToolActivity), runs that continue on the next page, AGUIChatOptions.DisconnectedRunTimeout, the protocol and sendPageContext chat options, and the AICompletionContextKeys and ChatResponseHandlerContext members. Use it when showing tool calls in the chat, asking a person before a tool runs, sharing page state with the agent, connecting CopilotKit or another AG-UI client, or troubleshooting approvals and continued runs./crestapps-core-ai-agentsSkill for AI agents in CrestApps.Core 2.0, specialized AIProfile records of type Agent that the primary model invokes as tools. Covers creating agent profiles with AgentMetadata availability (OnDemand or AlwaysAvailable), linking them with AgentInvocationMetadata, how AgentProxyTool runs an agent with tools disabled or through the orchestrator when AllowToolInvocation is set, the AgentInvocationDepth recursion guard, never offering an agent to itself (RunningAgentName), tools of an agent that require an approval and pause the agent, deployment inheritance and the chat slot, code-defined and system agents through IAIProfileProvider including the Tabular Data, PDF, Presentation and Word agents, chat-specific agents that read AIInvocationScope, exposing agents to MCP clients with McpServerOptions Agents and ExposeAllAgents, and SubAgent usage labels. Use it when delegating work to sub-agents, adding a framework-managed agent, publishing an agent over MCP, or troubleshooting an agent the model does not call./crestapps-core-ai-markdownSkill for Markdig-backed Markdown normalization in CrestApps.Core 2.0 AI document, data source and RAG flows. Covers the CrestApps.Core.AI.Markdown package, AddMarkdown on the AI suite builder and AddCoreAIMarkdown on IServiceCollection, MarkdownAITextNormalizer replacing the default IAITextNormalizer, RagTextNormalizer content, chunk and title normalization with HTML stripping and Microsoft.Extensions.DataIngestion.Markdig parsing, the gpt-4o tokenizer chunker with 500 tokens per chunk and 50 tokens of overlap, the plain-text fallback for unsupported inline types, where the normalizer is used (data source indexing, preemptive retrieval, reference titles), and pairing it with document processing. Use it when indexing Markdown-heavy content for retrieval, replacing the text normalizer, or troubleshooting chunk sizes and leftover markup in retrieved text./crestapps-core-ai-memorySkill for AI memory in CrestApps.Core. Covers AddAIMemory, AddCoreAIMemory and AddCoreAIMemoryIndexing, Entity Framework Core and YesSql memory stores, the AIMemory index profile on the Elasticsearch, Azure AI Search and PostgreSQL backends, AIMemoryOptions, the store fallback when no index is usable, background memory indexing, the three kinds of memory (session memory with AIConversationMemory summaries and search_conversation, past conversations with search_past_conversations and list_recent_conversations, durable user memory) switched by MemoryMetadata and ChatInteractionMemoryOptions, preemptive memory retrieval and RunsWhenPreemptiveRagIsDisabled, owner-only chat sessions, the user memory tools, IAIMemorySafetyService validation, and custom IMemoryVectorSearchService implementations./crestapps-core-ai-model-capabilitiesSkill for metadata-driven deployment capabilities in CrestApps.Core 2.0. Covers trained model features such as textGeneration, toolCalling, streaming, reasoning, realtime, textEmbedding, speechToText and textToSpeech, model parameters such as reasoningEffort, declaring them with AIDeploymentMetadata or the Features and Parameters configuration shorthand for Azure App Service settings, registering custom features, parameters and slots with AddAIDeploymentFeature, AddAIDeploymentParameter, AddAIDeploymentSlot and AIDeploymentCapabilityOptions, IAIDeploymentCapabilityService, deployment slots and their resolution chain, AIDeploymentParametersMetadata chat and utility values, IAIDeploymentParameterBinder, UseModelParameters, capability enforcement, the ChatApi Responses routing for reasoning with tools, capability-aware chat UIs, and migrating from AIDeploymentPurpose. Use it when declaring what a model supports, adding a new knob, or fixing stripped tools, missing pickers, or reasoning-effort errors./crestapps-core:crestapps-core-ai-personasfrom crestapps-core
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-coreOther plugins' skills for the same job