Stores typed extension data on CrestApps.Core extensible entities (ExtensibleEntity, CatalogItem, AIProfile, AIDeployment, ChatInteraction). Covers Properties bag, JsonExtensionDataConverter, and extension methods (Put, TryGet, GetOrCreate, Get, Alter, Has, Remove).
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.
You are a CrestApps.Core expert. Generate code for typed metadata stored in ExtensibleEntity.Properties.
ExtensibleEntity (namespace CrestApps.Core) exposes Properties, an ordinal-ignore-case IDictionary<string, object>. CatalogItem derives from it, so every catalog model (profiles, deployments, connections, interactions, personas, data sources) carries a property bag.Properties serializes as a nested Properties JSON object through JsonExtensionDataConverter, which keeps JSON values as JsonNode. Do not replace it with [JsonExtensionData]; flattened root-level values are not read back as metadata.ExtensibleEntityExtensions instead of casting dictionary values.typeof(T).Name), so keep one metadata object per type. Use Put(name, value) and Get<T>(name) for explicit keys.| Method | Constraint | Behavior |
|---|---|---|
Put<T>(value) | T : new() | Stores under typeof(T).Name and returns the entity |
Put(name, value) | none | Stores under an explicit key |
TryGet<T>(out value) | T : class | Returns false when the key is missing or null; no allocation |
GetOrCreate<T>() | T : new() | Returns the stored value or a new, unstored instance |
Get<T>(name) | none | Reads an explicit key, or default |
Alter<T>(action) | T : new() | Gets or creates, runs the action, and stores the result |
Has<T>() | none | Checks for the type-name key |
Remove<T>() | none | Removes the type-name key |
TryGet, GetOrCreate, Get and Alter accept an optional JsonSerializerOptions to override the shared options for one call.
using CrestApps.Core;
namespace MyApp.Metadata;
public sealed class BillingMetadata
{
public string InvoicePrefix { get; set; }
public decimal MonthlyBudget { get; set; }
}
profile.Put(new BillingMetadata
{
InvoicePrefix = "INV",
MonthlyBudget = 250m,
});
if (profile.TryGet<BillingMetadata>(out var billing))
{
logger.LogInformation("Budget {Budget}", billing.MonthlyBudget);
}
profile.Alter<BillingMetadata>(metadata => metadata.MonthlyBudget = 300m);
// Persist the change through the manager or catalog; the bag is only in memory until saved.
await profileManager.UpdateAsync(profile);
GetOrCreate<T>() does not store the new instance. Call Put(...) after mutating it, or use Alter<T>(...).
Framework features keep their settings in the bag. For example, deployment capabilities are an AIDeploymentMetadata entry:
using CrestApps.Core;
using CrestApps.Core.AI.Models;
deployment.Put(new AIDeploymentMetadata
{
Features =
[
AIDeploymentFeatureNames.TextGeneration,
AIDeploymentFeatureNames.ToolCalling,
AIDeploymentFeatureNames.Streaming,
],
});
Because the key is the type name, configuration and recipes supply the same data under Properties:
{
"Name": "gpt-4.1",
"ConnectionName": "primary-openai",
"ModelName": "gpt-4.1",
"Properties": {
"AIDeploymentMetadata": {
"Features": [ "textGeneration", "toolCalling", "streaming" ]
}
}
}
Configured deployments also accept Features and Parameters directly on the entry as a shorter form of the same keys; see crestapps-core-ai-model-capabilities.
AddCrestAppsCore(...) registers ExtensibleEntityJsonOptions and an internal hosted service that copies ExtensibleEntityJsonOptions.SerializerOptions into the static ExtensibleEntityExtensions.JsonSerializerOptions when the host starts.
builder.Services.Configure<ExtensibleEntityJsonOptions>(options =>
{
options.SerializerOptions.Converters.Add(new MoneyJsonConverter());
});
ExtensibleEntityJsonOptions.CreateDefaultSerializerOptions() sets WhenWritingNull, JsonObjectCreationHandling.Populate, case-insensitive names, skipped comments, trailing commas, number reading from strings, and JsonStringEnumConverter.
Without a started host (a console tool, a unit test that builds a ServiceProvider directly, or a host that does not call AddCrestAppsCore), assign the static options before the first read or write:
var options = ExtensibleEntityJsonOptions.CreateDefaultSerializerOptions();
options.Converters.Add(new MoneyJsonConverter());
ExtensibleEntityExtensions.JsonSerializerOptions = options;
JsonSerializerOptions becomes read-only after its first use, so configure it during startup only.
GetOrCreate<T>() without Put, or the change never reached a commit boundary.JsonExtensionDataConverter; serialize the entity with the property's converter intact.ExtensibleEntityExtensions.JsonSerializerOptions earlier or avoid reading entities before host start.AIDeployment.Purpose and AIDeployment.Type are gone; capabilities live in the AIDeploymentMetadata entry of the bag. Records that still carry a legacy purpose are projected onto AIDeploymentMetadata features when they are deserialized.What SKILL.md sets; muted values are Claude Code's defaults
/crestapps-core:crestapps-core-extensible-entitiesfrom crestapps-core
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-core51 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.Other plugins' skills for the same job