Declares AI model capabilities in CrestApps.Core 2.0: features (textGeneration, toolCalling, streaming, reasoning, realtime, embeddings, speech), parameters (reasoningEffort), slots, and metadata-driven deployment configuration.
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.
Read when SKILL.md points to them.
A deployment declares what its model can do. Two kinds of definitions are registered once at startup and referenced by name:
| Concept | Shape | Example |
|---|---|---|
| Feature | A trained capability the model has or lacks | toolCalling, reasoning, realtime |
| Parameter | A configurable option with a kind, allowed values, range and default | reasoningEffort |
| Slot | What this installation uses a deployment for; pairs a required feature with a site default | chat, embedding, realtime |
Capabilities live on the deployment. Slots are derived from them: declaring textEmbedding is what puts a model in the embedding picker. There is no purpose flag to set.
AddCoreAIServices() already calls AddCoreAIDeploymentCapabilities(), which calls AddCoreAIDeploymentSlots(). Call them directly only in hosts that compose raw registrations.textGeneration is opt-out: a deployment with no metadata counts as text-capable and is unconstrained. Every other feature is opt-in. Once a deployment declares any metadata, everything it omits is enforced as unsupported.speechToText and textToSpeech mean a dedicated transcription or synthesis endpoint. audioInput and audioOutput mean a chat model that accepts or emits audio inline. Never mix them.IAIDeploymentCapabilityService to ask what a deployment supports. Do not read AIDeploymentMetadata directly in business code.crestapps-core-ai-runtime for slot resolution in everyday code and the provider skills for provider-specific features.| Feature | Constant | Default on new deployments |
|---|---|---|
textGeneration | AIDeploymentFeatureNames.TextGeneration | yes |
toolCalling | AIDeploymentFeatureNames.ToolCalling | yes |
streaming | AIDeploymentFeatureNames.Streaming | yes |
structuredOutputs, reasoning, imageInput, imageOutput, audioInput, audioOutput, videoInput, videoOutput, realtime, textEmbedding, speechToText, textToSpeech | matching AIDeploymentFeatureNames constants | no |
reasoningEffort (AIDeploymentParameterNames.ReasoningEffort) is a Choice parameter with values None (shown as Minimal), Low, Medium, High, ExtraHigh, default Medium, and RequiredFeature = reasoning. It binds to ChatOptions.Reasoning.Effort.
In configuration, use the shorthand on the entry. It merges with Properties:AIDeploymentMetadata (shorthand features are added; each shorthand parameter overrides the declared one field by field):
{
"CrestApps": {
"AI": {
"Deployments": [
{
"ClientName": "OpenAI",
"Name": "gpt-5-chat",
"ModelName": "gpt-5",
"ConnectionName": "openai",
"Features": [ "textGeneration", "toolCalling", "streaming", "reasoning" ],
"Parameters": {
"reasoningEffort": { "AllowedValues": [ "None", "Low", "Medium", "High" ], "DefaultValue": "None" }
}
},
{
"ClientName": "OpenAI",
"Name": "gpt-realtime",
"ModelName": "gpt-realtime",
"ConnectionName": "openai",
"Features": [ "realtime" ]
}
]
}
}
}
The shorthand exists because Azure App Service rejects setting names over 100 characters:
CrestApps__AI__Deployments__0__Features__0 = textGeneration
CrestApps__AI__Deployments__0__Features__1 = toolCalling
CrestApps__AI__Deployments__0__Features__2 = reasoning
CrestApps__AI__Deployments__0__Parameters__reasoningEffort__DefaultValue = None
CrestApps__AI__Deployments__0__Parameters__reasoningEffort__AllowedValues__0 = None
In code, put AIDeploymentMetadata on the deployment's Properties:
deployment.Put(new AIDeploymentMetadata
{
Features = [AIDeploymentFeatureNames.TextGeneration, AIDeploymentFeatureNames.ToolCalling, AIDeploymentFeatureNames.Reasoning],
Parameters = new Dictionary<string, AIDeploymentParameter>(StringComparer.OrdinalIgnoreCase)
{
[AIDeploymentParameterNames.ReasoningEffort] = new AIDeploymentParameter
{
AllowedValues = ["Low", "Medium", "High"],
DefaultValue = "Medium",
},
},
});
A deployment-level AIDeploymentParameter may narrow AllowedValues, override DefaultValue (ignored when invalid), and override Minimum, Maximum and Step. DefaultValue and AllowedValues are kept as the exact text written, and numbers are read culture-invariantly.
A speech-to-speech-only model declares realtime and omits textGeneration. The chat and utility slots exclude realtime, so it never fills a text slot.
using CrestApps.Core.AI.Capabilities;
using CrestApps.Core.AI.Models;
var capabilities = await capabilityService.GetCapabilitiesAsync("gpt-5-chat");
if (capabilities.SupportsFeature(AIDeploymentFeatureNames.Reasoning))
{
var effort = capabilities.GetParameter(AIDeploymentParameterNames.ReasoningEffort);
}
var isTextCapable = capabilityService.SupportsFeatureOrUnconstrained(deployment, AIDeploymentFeatureNames.TextGeneration);
var isRealtime = await capabilityService.IsRealtimeDeploymentAsync("gpt-realtime");
var realtimeDeployments = await capabilityService.GetDeploymentsWithFeatureAsync(AIDeploymentFeatureNames.Realtime);
var vision = await capabilityService.ResolveDeploymentWithFeatureAsync(AIDeploymentFeatureNames.ImageInput, "gpt-5-chat");
GetCapabilities drops a parameter whose RequiredFeature is not declared, so a reasoningEffort value is never applied to a non-reasoning model. Descriptors are cloned; deployment overrides never mutate the registry.
| Slot | Required | Excluded | Falls back to |
|---|---|---|---|
chat | textGeneration | realtime | |
utility | textGeneration | realtime | chat |
embedding | textEmbedding | ||
image | imageOutput | ||
vision | imageInput | ||
speechToText | speechToText | ||
textToSpeech | textToSpeech | ||
realtime | realtime |
ResolveSlotAsync walks one chain: explicit name, slot site default (DefaultAIDeploymentSettings), explicit name for the fallback slot, fallback site default, and only then the first capable deployment. GetAllBySlotAsync lists every eligible deployment for pickers.
services.AddAIDeploymentSlot("moderation", new LocalizedString("moderation", "Moderation"), slot =>
{
slot.RequiredFeature = AIDeploymentFeatureNames.TextGeneration;
slot.ExcludedFeature = AIDeploymentFeatureNames.Realtime;
slot.GetDefaultDeploymentName = static settings => settings.DefaultUtilityDeploymentName;
slot.FallbackSlotName = AIDeploymentSlotNames.Utility;
slot.AllowUnconstrained = true;
});
AllowUnconstrained lets a deployment with no metadata fill the slot; set it only for text slots.
AddAIDeploymentFeature and AddAIDeploymentParameter configure AIDeploymentCapabilityOptions. Registering an existing name updates its descriptor, so a provider module can refine another module's definition. You can also call services.Configure<AIDeploymentCapabilityOptions>(o => o.AddFeature(...).AddParameter(...)) directly.
Parameter kinds (AIDeploymentParameterKind) are Choice (needs AllowedValues), Number, Integer (both honor Minimum, Maximum, Step), Boolean and Text. Values that are not valid for the kind fall back to the deployment default with a warning.
A complete custom parameter with its binder, declaration and stored value is in model-capabilities-examples.md.
Profiles, profile templates and chat interactions store selections in AIDeploymentParametersMetadata: Values for the chat deployment and UtilityValues for the utility deployment. Context builder handlers copy them onto AICompletionContext.ModelParameters and UtilityModelParameters. Setting AICompletionContext.IsUtilityCompletion makes the completion client resolve the utility deployment (falling back to chat) and apply the utility values.
Markdown profile templates accept ModelParameters and UtilityModelParameters front-matter keys with name=value pairs separated by ; or new lines.
At request time:
ModelParametersAICompletionServiceHandler calls IAIDeploymentParameterApplier.ApplyAsync(options, deployment, context, scope) with AIDeploymentParameterScope.Chat or Utility.IAIDeploymentParameterBinder shapes the request; otherwise the value goes to ChatOptions.AdditionalProperties as its primitive type.ModelFeaturesAICompletionServiceHandler and the terminal CapabilityEnforcingChatClient remove tools and ToolMode without toolCalling, a JSON response format without structuredOutputs, and reasoning options without reasoning, and coerce an unsupported effort to the default. Without streaming, a streaming call is completed once and replayed as one update.Code that resolves an IChatClient directly applies the same selections through the pipeline:
var client = await clientFactory.CreateChatClientAsync(utilityDeployment, builder => builder
.UseDefaultResilience()
.UseUtilityModelParameters(parameterApplier, utilityDeployment, profile));
var chatClient = await clientFactory.CreateChatClientAsync(chatDeployment, builder => builder
.UseModelParameters(parameterApplier, chatDeployment, completionContext, AIDeploymentParameterScope.Chat));
AzureOpenAICompletionClient builds SDK options directly, so a custom parameter without a binder cannot be forwarded there and is logged as a warning. reasoningEffort works on both paths; ExtraHigh is clamped to High on Azure and None is sent as none.
The Copilot and Claude orchestrators keep their own effort settings (CopilotReasoningEffort, ClaudeEffortLevel); deployment parameters do not apply to them.
Reasoning models reject function tools together with a reasoning effort on /v1/chat/completions. On OpenAI's own endpoint and on Azure OpenAI, a request with tools and an effort other than None is sent to the Responses API (with store: false); everything else stays on Chat Completions. The connection's ChatApi setting (OpenAIChatApis.Auto, ChatCompletions, Responses) controls this; Auto keeps other OpenAI-compatible endpoints on Chat Completions. A reasoning deployment must declare the reasoningEffort parameter, or no effort is sent and Chat Completions rejects the tools.
Choose the chat input from the effective deployment, not a global setting. Render a text box for text-capable deployments and only a "Start speaking" control when IsRealtimeDeploymentAsync is true. When the deployment picker can change without a reload, send the client the names returned by GetDeploymentsWithFeatureAsync(AIDeploymentFeatureNames.Realtime) and switch the input on change.
toolCalling. Look for the warning "does not declare the 'toolCalling' feature".reasoning and reasoningEffort (a None default for models that need it), and keep ChatApi at Auto or Responses.realtime feature.Features, or one of its values could not be read; the log names the entry.AIDeploymentPurpose and AIDeploymentType are replaced by capabilities plus slots. Replace ResolveOrDefaultAsync(AIDeploymentPurpose.X, ...) with ResolveSlotAsync(AIDeploymentSlotNames.X, ...) and GetByPurposeAsync or GetAllByPurposeAsync with GetAllBySlotAsync.Purpose, Capability or Type are projected when read (AIDeployment.OnDeserialized and AIDeploymentCatalogHandler): Embedding, Image, Vision, SpeechToText and TextToSpeech add textEmbedding, imageOutput, imageInput, speechToText and textToSpeech; Chat or Utility adds textGeneration unless realtime is declared. Nothing else is added, so declare toolCalling and streaming on chat deployments.AddAIModelFeature, IAIModelCapabilityService, AIModelFeatureDescriptor) shipped as AddAIDeploymentFeature, IAIDeploymentCapabilityService and AIDeploymentFeatureDescriptor.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-personasSkill for AI personas in CrestApps.Core 2.0, reusable characters with instructions, an assistant name, language, voice and avatar that AI profiles, chat interactions and profile templates link to by name. Covers opting in with AddPersonas and AddYesSqlStores or AddEntityCoreStores, CreateAIPersonaIndexSchemaAsync, IAIPersonaManager, persona Markdown files under Templates Personas and AddEmbeddedPersonas, linking with AIPersonaMetadata or the top-level PersonaId, how the persona block is prepended to the system message with the assistant_name Liquid variable, voice selection with IAIPersonaResolver SelectVoiceAsync, the ResolvePersonaAsync and SelectPersonaVoiceAsync service-provider helpers, showing the assistant name and avatar with AIChatAssistantDisplay, and custom IAIPersonaProvider sources. Use it when giving assistants a consistent identity across profiles, or when a persona's instructions, name or voice do not apply./crestapps-core:crestapps-core-ai-model-capabilitiesfrom crestapps-core
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-coreOther plugins' skills for the same job