crestapps/crestapps.agentskills/crestapps-core-extensible-entities
Claude Code and agent skill by crestapps/crestapps.agentskills
- community
Checking that the SKILL.md file is still in the repository.
Skill for storing typed extension data on CrestApps.Core extensible entities (ExtensibleEntity, CatalogItem, AIProfile, AIDeployment, ChatInteraction and others). Covers the Properties bag and JsonExtensionDataConverter, the Put, TryGet, GetOrCreate, Get, Alter, Has and Remove extension methods with their generic constraints, key naming by type name, supplying the same metadata from configuration or recipes through the Properties object (for example AIDeploymentMetadata capabilities), and confi…
Install
npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-extensible-entitiesSKILL.md
The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-extensible-entities.
CrestApps.Core Extensible Entities
You are a CrestApps.Core expert. Generate code for typed metadata stored in ExtensibleEntity.Properties.
Guidelines
ExtensibleEntity(namespaceCrestApps.Core) exposesProperties, an ordinal-ignore-caseIDictionary<string, object>.CatalogItemderives from it, so every catalog model (profiles, deployments, connections, interactions, personas, data sources) carries a property bag.Propertiesserializes as a nestedPropertiesJSON object throughJsonExtensionDataConverter, which keeps JSON values asJsonNode. Do not replace it with[JsonExtensionData]; flattened root-level values are not read back as metadata.- Use the extension methods in
ExtensibleEntityExtensionsinstead of casting dictionary values. - The default key is the type name (
typeof(T).Name), so keep one metadata object per type. UsePut(name, value)andGet<T>(name)for explicit keys. - Name metadata classes uniquely; two classes with the same name in different namespaces share a key.
Methods
| 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.
Typed Metadata
GetOrCreate<T>() does not store the new instance. Call Put(...) after mutating it, or use Alter<T>(...).
Framework Metadata Uses the Same Bag
Framework features keep their settings in the bag. For example, deployment capabilities are an AIDeploymentMetadata entry:
Because the key is the type name, configuration and recipes supply the same data under Properties:
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.
Configure Serialization
AddCrestAppsCore(...) registers ExtensibleEntityJsonOptions and an internal hosted service that copies ExtensibleEntityJsonOptions.SerializerOptions into the static ExtensibleEntityExtensions.JsonSerializerOptions when the host starts.
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:
JsonSerializerOptions becomes read-only after its first use, so configure it during startup only.
Troubleshooting
- Metadata comes back empty after a save: the entity was mutated through
GetOrCreate<T>()withoutPut, or the change never reached a commit boundary. - Values appear at the JSON root: a custom serializer bypassed
JsonExtensionDataConverter; serialize the entity with the property's converter intact. - A custom converter is ignored: the static options were already used before the hosted service ran; set
ExtensibleEntityExtensions.JsonSerializerOptionsearlier or avoid reading entities before host start.
Upgrading from 1.x
AIDeployment.PurposeandAIDeployment.Typeare gone; capabilities live in theAIDeploymentMetadataentry of the bag. Records that still carry a legacy purpose are projected ontoAIDeploymentMetadatafeatures when they are deserialized.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/CrestApps.AgentSkills/crestapps-core/crestapps-core-extensible-entities/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 4
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/crestapps/crestapps.agentskills/crestapps-core-extensible-entities)