Skip to main content
AI/MLCrestApps

crestapps-core-data-storage

Skill for choosing Entity Framework Core or YesSql stores and registering per-feature persistence in CrestApps.Core.

Stars
13
Source
CrestApps/CrestApps.AgentSkills
Updated
2026-05-29
Slug
CrestApps--CrestApps.AgentSkills--crestapps-core-data-storage
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/CrestApps/CrestApps.AgentSkills/HEAD/plugins/crestapps-core/skills/crestapps-core-data-storage/SKILL.md -o .claude/skills/crestapps-core-data-storage.md

Drops the SKILL.md into .claude/skills/crestapps-core-data-storage.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

CrestApps.Core Data Storage - Prompt Templates

Add Durable Storage

You are a CrestApps.Core expert. Generate code and guidance for storage registration in CrestApps.Core.

Guidelines

  • Pick Entity Framework Core or YesSql based on the host architecture.
  • Register the data store first, then add per-feature stores.
  • Keep storage registration close to the feature that needs it so required stores stay explicit.
  • Do not assume one global storage registration covers every feature automatically.

Entity Framework Core Example

builder.Services.AddCrestAppsCore(crestApps => crestApps
    .AddAISuite(ai => ai
        .AddEntityCoreStores()
        .AddOpenAI()
        .AddChatInteractions(ci => ci.AddEntityCoreStores())
        .AddDocumentProcessing(dp => dp
            .AddEntityCoreStores()
            .AddOpenXml()
            .AddPdf()
        )
        .AddAIMemory(memory => memory.AddEntityCoreStores())
    )
    .AddIndexingServices(indexing => indexing.AddEntityCoreStores())
    .AddEntityCoreSqliteDataStore("Data Source=App_Data\\crestapps.db")
);

YesSql Example

builder.Services.AddCrestAppsCore(crestApps => crestApps
    .AddAISuite(ai => ai
        .AddYesSqlStores()
        .AddOpenAI()
        .AddChatInteractions(ci => ci.AddYesSqlStores())
        .AddDocumentProcessing(dp => dp
            .AddYesSqlStores()
            .AddOpenXml()
            .AddPdf()
        )
        .AddAIMemory(memory => memory.AddYesSqlStores())
    )
);