# Crestapps Core AI Templates

> Skill for Liquid-based prompt templates, template discovery, and prompt composition in CrestApps.Core.

- Skill: `crestapps/crestapps-core-ai-templates` (Agent Skill)
- Install (CLI): `npx skillmds@latest add crestapps/crestapps-core-ai-templates`
- Raw SKILL.md: https://api.skillmd.com/api/skills/crestapps/crestapps-core-ai-templates/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: CrestApps (https://skillmd.com/u/crestapps)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/crestapps/crestapps-core-ai-templates

---


# CrestApps.Core AI Templates - Prompt Templates

## Build Prompt Templates

You are a CrestApps.Core expert. Generate template files and registration code for CrestApps.Core prompt templates.

### Guidelines

- `AddCoreAIServices()` already chains `AddCoreAITemplating()`.
- Use markdown files with YAML front matter for reusable prompts.
- Use Liquid syntax for dynamic values.
- Store prompt templates under `Templates/Prompts/` when they are system prompts.
- Use generic `Templates/` plus `Kind` when the template is not prompt-only.
- Merge templates when multiple prompt fragments need to become one final system message.

### Direct Registration

```csharp
builder.Services.AddCoreAITemplating();
```

### Embedded Template Registration

```csharp
builder.Services.AddTemplatesFromAssembly(typeof(MyClass).Assembly, source: "MyApp");
```

### Template Example

```markdown
---
Title: Customer Support Assistant
Description: Prompt for a customer support chatbot
Category: Support
IsListable: true
---
You are a customer support assistant for {{ company_name | default: "our company" }}.

{% if support_hours %}
Support hours are {{ support_hours }}.
{% endif %}
```

### Key Template Service Methods

| Method | Use |
|---|---|
| `ListAsync()` | Discover templates |
| `GetAsync(id)` | Load one template |
| `RenderAsync(id, args)` | Render one template |
| `MergeAsync(ids, args)` | Combine multiple templates |

