crestapps/crestapps.agentskills/crestapps-core-ai-profiles
Claude Code and agent skill by crestapps/crestapps.agentskills
- community
Checking that the SKILL.md file is still in the repository.
Skill for designing CrestApps.Core 2.0 AI Profiles, the reusable contract that controls prompts, deployments, tools, agents, retrieval, memory, persona, chat mode and session behavior. Covers AIProfile types, deployment selection through slots, AIProfileMetadata, FunctionInvocationMetadata, AgentInvocationMetadata, PromptTemplateMetadata, AIDeploymentParametersMetadata, ChatModeProfileSettings, IAIProfileManager and IAIProfileProvider, Markdown profile templates, the opt-in speaking styles, guardrails, conversation privacy and profile versions (AddSpeakingStyles, AddGuardrails, AddConversationPrivacy, AddProfileVersions), AIProfileSpeechSettings, AIProfileLanguageSettings, typed DataExtractionEntry fields, the profile as the tool authorization boundary, and upgrading notes. Use it when creating or editing profiles in code, choosing what belongs on a profile versus a deployment, redacting or versioning profiles, or troubleshooting profile behavior.
Install
npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-ai-profilesSKILL.md
The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-ai-profiles.
CrestApps.Core AI Profiles
A deployment answers "which model runs". An AI Profile answers "how should this experience behave": instructions, deployments, orchestrator, tools, agents, knowledge, memory, persona, chat mode and post-session rules. AI Chat sessions, agents and orchestrators all read the profile.
Guidelines
- Validate a connection and deployment with Chat Interactions first; move to a profile when the behavior must be reusable.
- Keep model choice in deployments and behavior in the profile. Reference deployments by name; the runtime resolves them through slots.
- Prefer several focused profiles over one overloaded profile. Use agents (
crestapps-core-ai-agents) to delegate specialized work. - Put identity and tone in a persona (
crestapps-core-ai-personas) when several profiles should share it. - The profile is the tool authorization boundary for AI sessions: every tool, MCP connection and agent the author attached runs for any caller allowed to use the profile, including anonymous ones. Only attach what every caller may use.
Building Blocks
| Concept | Question it answers | |
|---|---|---|
| Connection | How do I talk to a provider | |
| Deployment | Which model runs and what can it do | |
| Chat Interaction | Let me test this setup quickly | |
| AI Profile | How should this experience behave | |
| Persona | Who is the assistant |
Profile Types
AIProfile.Type is AIProfileType.Chat, Utility, TemplatePrompt or Agent. The type changes how the framework uses the same record; agents are profiles of type Agent with a strong Description.
Creating a Profile in Code
IAIProfileManager is an INamedCatalogManager<AIProfile> plus GetAsync(AIProfileType type). Register a profile store (crestapps-core-yessql-stores or crestapps-core-entitycore-stores).
What Lives on a Profile
| Need | Where | |
|---|---|---|
| Chat model and background model | ChatDeploymentName, UtilityDeploymentName (utility falls back to chat) | |
| System prompt and sampling | AIProfileMetadata | |
| Reusable prompt fragments | PromptTemplateMetadata.Templates (TemplateId plus Parameters) | |
| Tools and agents | FunctionInvocationMetadata.Names, AgentInvocationMetadata.Names, AIToolInstanceMetadata.ToolInstanceNames | |
| Model parameters | AIDeploymentParametersMetadata (Values for chat, UtilityValues for utility) | |
| Persona | AIPersonaMetadata (or top-level PersonaId in profile JSON) | |
| Voice and chat mode | ChatModeProfileSettings via WithSettings(...) | |
| Anti-spam throttles | PromptSecurityProfileSettings via WithSettings(...) | |
| First response handler | ResponseHandlerProfileSettings.InitialResponseHandlerName | |
| Orchestrator | OrchestratorName (empty or unknown uses the default) | |
| Speaking styles | AIProfileSpeakingStyleSettings.Styles (needs AddSpeakingStyles()) | |
| Refused topics | AIProfileGuardrailSettings (needs AddGuardrails()) | |
| Redaction and retention | AIProfileDataPrivacySettings (needs AddConversationPrivacy()) | |
| Speaking rate, pronunciation, fallback TTS, recognition, barge-in | AIProfileSpeechSettings | |
| Allowed and starting languages | AIProfileLanguageSettings | |
| Extracted fields and their types | AIProfileDataExtractionSettings.DataExtractionEntries |
Settings objects use the profile settings helpers:
The chat deployment means only "the text model this profile talks to". ChatMode (TextInput, AudioInput, Conversation) decides whether the conversation is spoken. In Conversation mode the realtime slot is resolved first (ConversationDeploymentName, then DefaultRealtimeDeploymentName, then the first realtime-capable deployment); the speech-to-text plus text-to-speech cascade is used only when no realtime-capable deployment resolves.
Opt-In Profile Features
Four features moved from the Orchard Core modules into the framework. Each is added on the AI suite and configured per profile through settings:
| Feature | Settings | What it does | |
|---|---|---|---|
| Speaking styles | AIProfileSpeakingStyleSettings | Appends System Prompt templates of the Speaking style category to the system message (AISpeakingStyleCompletionContextBuilderHandler) | |
| Guardrails | AIProfileGuardrailSettings | AIGuardrailService asks the utility deployment whether a customer message or reply falls under a refused Guardrail topic template and answers with PlaceholderReply; IAIGuardrailHandler is told | |
| Conversation privacy | AIProfileDataPrivacySettings | AIConversationPrivacyService.ProcessAsync, run by the host on a schedule, redacts (RedactPersonalData) or strips (MetadataOnly) ended conversations and deletes them after RetentionDays; NamesToKeep protects the assistant's and business's names | |
| Profile versions | none | Every save becomes an AIProfileVersion in IAIProfileVersionStore; compare with AIProfileVersionComparer, restore with AIProfileVersionRestorer |
The eight default speaking styles and eight guardrail topics are seeded as editable System Prompt templates by IAISystemPromptTemplateSeeder.SeedAsync(); call it once from a migration or setup step (see crestapps-core-ai-templates). Guardrails sit behind prompt security and the output filter in the chat hub (see crestapps-core-prompt-security). Full examples are in profile-features-examples.md.
Speech, Language and Typed Extraction
These settings need no registration and are ignored until set:
AIProfileSpeechSettings:SpeakingRate,SpeakingEmotion,PronunciationEntries,FallbackTextToSpeechDeploymentName,BoostedKeywords,RecognitionLanguages,InterruptionSensitivity,EnableBackchannelingandBackchannelPhrases. The chat hub and the cascaded realtime pipeline apply them (seecrestapps-core-realtime-voice).AIProfileLanguageSettings:AllowedLanguagesandStartingLanguage.AICompletionContextKeys.ConversationLanguageoverrides the starting language per conversation, andIConversationLanguageService.ReportDetectedLanguageAsyncruns everyIConversationLanguageHandlerwhen the host reports a different allowed language.DataExtractionEntry.FieldType(Text,Number,Boolean,Date,Enum,List) andAllowedValues.DataExtractionValueNormalizernormalizes each value before it is stored and drops values that do not fit. AListcollects items across messages, without duplicates.
Code-Defined Profiles
Implement IAIProfileProvider to contribute profiles that are not stored. IAIProfileManager.GetAsync(type) merges them in and a stored profile with the same name wins. During a chat the provider can read AIInvocationScope.Current?.ChatInteraction or ChatSession, because the chat response handler sets them before the context is built.
Profile Templates
Markdown profile templates live in Templates/Profiles under the content root or are embedded under Templates/Profiles. Front matter can set ProfileType, ChatDeploymentName, UtilityDeploymentName, ConversationDeploymentName, ChatMode, VoiceName, OrchestratorName, WelcomeMessage, PromptTemplate, PromptSubject, TitleType, Temperature, TopP, MaxOutputTokens, PastMessagesCount, ToolNames, AgentNames, AgentAvailability, AllowToolInvocation, PersonaId, ModelParameters and UtilityModelParameters; the body is the system message.
Troubleshooting
- The profile lost its system message, tools and model parameters: a context builder handler failed and was skipped; check the log for "Error in completion context building handler".
- A selected system prompt template does not render: in 2.0
AIProfileSystemPromptTemplateProviderships withAddCoreAITemplating(); storedai-profile:identifiers still resolve as aliases. - The profile speaks with a realtime model unexpectedly: it is in
Conversationmode and a realtime-capable deployment resolved. Remove therealtimefeature from deployments to keep the cascade. - A guardrail never triggers:
AddGuardrails()was not called,CheckCustomerandCheckRepliesare both off, or the profile has no utility deployment (the check is skipped with a warning). - No speaking styles or guardrail topics to pick: the defaults are not served read-only; run
IAISystemPromptTemplateSeeder.SeedAsync()once. - Conversations are never redacted or deleted:
AddConversationPrivacy()schedules nothing; the host must callProcessAsyncper profile and commit afterwards.
Upgrading Within 2.0 Previews
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 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 repositoryCheckingsrc/CrestApps.AgentSkills/crestapps-core/crestapps-core-ai-profiles/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-profiles)