crestapps/crestapps.agentskills/crestapps-core-ai-templates
Claude Code and agent skill by crestapps/crestapps.agentskills
- community
Checking that the SKILL.md file is still in the repository.
Skill for Liquid prompt templates in CrestApps.Core 2.0. Covers AddCoreAITemplating and AddTemplating registration, Markdown templates with front matter under Templates and Templates Prompts, AddTemplatesFromAssembly, code and discovery-path templates through TemplateOptions, ITemplateService ListAsync, GetAsync, RenderAsync and MergeAsync, ITemplateEngine validation, custom ITemplateProvider and IDynamicTemplateProvider sources, template Aliases, the AIProfileSystemPromptTemplateProvider that exposes SystemPrompt AI profile templates by name, selecting templates on a profile with PromptTemplateMetadata, seeding editable defaults embedded under SystemPromptDefaults with IAISystemPromptTemplateSeeder and AddCoreAISystemPromptTemplateDefaults, listing a template category with AITemplateCategoryExtensions, and how templates compose with personas. Use it when authoring reusable system prompts, loading templates from a database, or fixing a selected template that does not render.
Install
npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-ai-templatesSKILL.md
The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-ai-templates.
CrestApps.Core AI Templates
Prompts are Markdown files with YAML front matter, rendered with Liquid (Fluid) and discovered from embedded resources, the file system, code, or custom providers.
Guidelines
AddCoreAIServices()already chainsAddCoreAITemplating(); call it directly only when using templating on its own.- Keep each template to one concern (tone, safety, RAG rules) and compose at runtime with
MergeAsyncor profile selections. - Put system prompts under
Templates/Prompts/(theirKinddefaults toSystemPrompt). Files directly underTemplates/must declareKind. GenericTemplates/discovery is not recursive. - Use a persona (
crestapps-core-ai-personas) for identity and voice instead of copying the same persona prompt into many templates. - All
ITemplateServiceandITemplateProvidermethods take an optionalCancellationToken; pass it through.
Registration
AddCoreAITemplating() builds on AddTemplating() and adds the Profile and SystemPrompt template sources, the AI profile template manager, and AIProfileSystemPromptTemplateProvider.
| Service | Purpose | |
|---|---|---|
ITemplateService (DefaultTemplateService) | Discover, render and merge | |
ITemplateEngine (FluidTemplateEngine) | Render and validate Liquid | |
ITemplateParser | Parse Markdown front matter | |
OptionsTemplateProvider, FileSystemTemplateProvider, PromptsFileSystemTemplateProvider | Code, Templates/, Templates/Prompts/ | |
AIProfileSystemPromptTemplateProvider | SystemPrompt AI profile templates from the profile template store |
Template Example
Front matter fields are Title, Description, Category, IsListable (default true) and Kind. The file name without extension is the template id. ITemplateParser.Parse(content) returns a TemplateParseResult with Metadata and Body.
Using Templates
Validate user-authored Liquid before saving:
Selecting Templates on a Profile
The profile context handler renders the selections into the system message. A linked persona's block is placed before them, and the profile's own system message after them.
Seeded System Prompt Defaults
Speaking styles and guardrail topics are System Prompt templates in their own category (Speaking style, Guardrail topic). Their defaults are not served read-only: they ship as Markdown embedded under SystemPromptDefaults and are copied once into the saved AI profile templates, where users can edit or delete them. AddSpeakingStyles() and AddGuardrails() register the framework's defaults.
- A saved template with the same name is never overwritten; one deleted after seeding comes back if the seeder runs again.
GetDefaultsAsync(category)reads the defaults without saving. - Ship your own defaults: embed Markdown under
SystemPromptDefaults(for example<EmbeddedResource Include="SystemPromptDefaults\**\*" />) and callservices.AddCoreAISystemPromptTemplateDefaults(typeof(Startup).Assembly), optionally with a category to read only that category. Front matter setsTitle,Description,CategoryandIsListable; the body is the system message.
Fill a picker from one category, file-based and saved templates together, deduplicated by id and ordered by title:
AITemplateOption is (Id, Title, Description); AITemplateCategoryExtensions.GetTitle(template) falls back to the id.
Custom Providers
IPromptRecordStore stands for the application's own storage. Use plain ITemplateProvider for templates that never change while the app runs.
IDynamicTemplateProvideradds no members.DefaultTemplateServicereads every static provider first, so a dynamic template cannot replace a shipped template with the same id, and dynamic providers are read again each scope so edits apply on the next request.- A service that caches templates longer than a scope overrides the protected
GetStaticTemplatesAsyncand caches only those. GetAsyncandRenderAsyncmatchIdfirst andAliasessecond. Among static providers, the first template with an id wins.
Troubleshooting
- `KeyNotFoundException` rendering a selected system prompt template: hosts on 1.x had no
AIProfileSystemPromptTemplateProvider. In 2.0 it ships withAddCoreAITemplating(); without a profile template store it returns nothing. - A template under `Templates/` is ignored: it lacks
Kind, or it sits in a subfolder.
Upgrading from 1.x
AIProfileSystemPromptTemplateProvidermoved from the sample hosts intoCrestApps.Core.AIand is registered byAddCoreAITemplating(). Remove any copied provider from your host.- A
SystemPromptprofile template's identifier is now its name. Earlierai-profile:identifiers are kept asTemplate.Aliases, so stored selections still render. - Implement
IDynamicTemplateProviderfor user-editable templates so they cannot shadow shipped ones and are re-read every scope.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/crestapps-core/skills/crestapps-core-ai-templates/SKILL.md
Popularity
- 7-day trend score
- 5
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-ai-templates)