crestapps/crestapps.agentskills/crestapps-core-claude-orchestrator
Claude Code and agent skill by crestapps/crestapps.agentskills
- community
Checking that the SKILL.md file is still in the repository.
Skill for the Claude orchestrator in CrestApps.Core 2.0, a named IOrchestrator ("anthropic") built on the official Anthropic C# SDK. Covers AddClaudeOrchestrator and AddCoreAIClaudeOrchestrator registration, binding ClaudeOptions (ApiKey, BaseUrl, DefaultModel, EnablePromptCaching) yourself because the package reads no configuration section, the ClaudeOptionsValidator and the requirement that both ApiKey and DefaultModel are set, per-profile and per-interaction overrides with ClaudeSessionMetadata ClaudeModel and ClaudeEffortLevel, ClaudeClientService model discovery, resolving it with IOrchestratorResolver, sending scoped tools through IToolMaterializer and the function-invocation loop, Anthropic prompt caching breakpoints, and Anthropic usage metering through AIUsageMetering. Use it when running AI profiles or chat interactions on Anthropic Claude models, or when Claude reports it is not configured.
Install
npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-claude-orchestratorSKILL.md
The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-claude-orchestrator.
CrestApps.Core Claude Orchestrator
CrestApps.Core.AI.Claude adds ClaudeOrchestrator, an IOrchestrator named "anthropic" (title Claude). It talks to Anthropic through the official Anthropic NuGet package, so there is no CLI or external executable to install.
Guidelines
- Use it when a profile or chat interaction should run on Anthropic models with the CrestApps tool pipeline. Claude does not use AI connections or deployments; the model comes from
ClaudeSessionMetadata.ClaudeModelorClaudeOptions.DefaultModel. - The package does not bind configuration. Bind
ClaudeOptionsfrom your own section or site settings. - Both
ApiKeyandDefaultModelmust be set, or every turn answers "Claude is not configured and cannot be used until it has been configured." A per-profile model override does not replace the default-model requirement. - Deployment model parameters such as
reasoningEffortdo not apply; Claude usesClaudeEffortLevelon the session metadata.
Registration
Raw form: builder.Services.AddCoreAIClaudeOrchestrator(); after AddCoreAIServices() and AddCoreAIOrchestration().
ClaudeOptionsValidator (an IValidateOptions<ClaudeOptions>) fails when ApiKey is empty. Keep the key in user secrets or a key vault.
Registered Services
| Service | Implementation | |
|---|---|---|
IOrchestrator | ClaudeOrchestrator (ClaudeOrchestrator.OrchestratorName = "anthropic") | |
ClaudeClientService | Creates SDK clients and lists models from the Anthropic Models API | |
IChatInteractionSettingsHandler | ClaudeChatInteractionSettingsHandler persists chat interaction overrides | |
IOrchestrationContextBuilderHandler | ClaudeOrchestrationContextHandler copies ClaudeSessionMetadata into OrchestrationContext.Properties |
Use It
Or resolve it directly: var orchestrator = resolver.Resolve(ClaudeOrchestrator.OrchestratorName);.
ClaudeEffortLevel is None, Low, Medium or High; anything other than None is sent as the reasoning_effort additional property.
How a Turn Runs
- The model is
ClaudeSessionMetadata.ClaudeModel, elseClaudeOptions.DefaultModel. - Tools come from
IToolRegistry.GetAllAsync(context.CompletionContext), the same scoped registry the default orchestrator uses, and are materialized intoChatOptions.ToolsthroughIToolMaterializer. For a Chat Interaction the listable tools are re-checked against the current user (IUserAccessor) and denied ones are left out with a warning; AI sessions run the profile's tools as configured.DisableToolssends none. - The Anthropic chat client is wrapped with
AIUsageMetering.Meter(..., AIUsagePurposes.Conversation)beforeUseFunctionInvocation, so every round trip is a usage record with client nameanthropic. WithDefaultAIOptions.EnableOpenTelemetryon,UseOpenTelemetrysits below the tool loop, so every round trip also gets agen_aispan (seecrestapps-core-observability). - Temperature, top-p, penalties and max tokens come from the completion context (a
nullvalue is not sent); the iteration cap fromDefaultAIOptions.MaximumIterationsPerRequest(default 30). - A provider failure ends the stream with "An unexpected error occurred while communicating with Anthropic. Please try again." and is logged.
Prompt Caching
With ClaudeOptions.EnablePromptCaching on (the default), each request marks ephemeral cache breakpoints on the last function tool, the end of the system prompt and the last block of the latest message. Later turns, and later round trips of the tool-calling loop within five minutes, read that prefix at the cache-read rate. Three of Anthropic's four breakpoints are used, and marked messages and tools are copies, so the caller's history is never changed. A prefix shorter than the model's minimum cacheable length is sent uncached without an error. Cache reads are metered as CachedInputTokenCount and cache writes as CacheWriteInputTokenCount. Turn it off only for workloads that never repeat a prefix within five minutes, since a cache write costs more than an uncached request.
Model Discovery
ClaudeClientService.CreateClient() returns a configured AnthropicClient, and ListModelsAsync(cancellationToken) returns ClaudeModelInfo entries for the API key so editors can offer a picker; fall back to free text when discovery is unavailable. The MVC and Blazor sample hosts wire Claude into settings, AI profiles, profile templates and chat interactions.
Troubleshooting
- "Claude is not configured...":
ClaudeOptions.ApiKeyorDefaultModelis empty, usually because nothing bound the options. Set a default model even when every profile overrides it. - No usage records: register usage tracking with
AddCoreAIUsageTracking()or.AddUsageTracking()(seecrestapps-core-ai-usage-metering). - "Claude is configured, but no default model or override has been selected.": the model resolved to empty.
- Claude never calls tools: before the scoped-tools fix the orchestrator sent no tools at all; update to a current 2.0 preview.
Upgrading Within 2.0 Previews
- The Claude orchestrator cannot pause for tool approvals, so tools registered with
RequireApproval()are left out of its requests.
- The orchestrator now sends the scoped tools, so profile, interaction, system and MCP tools are called on Claude.
ClaudeOrchestratortakesIToolMaterializerandIUserAccessoras new constructor parameters; code that constructs it directly passes them. - Prompt caching is on by default. Set
EnablePromptCachingtofalseto restore uncached requests. ClaudeOrchestratortakes the scopedDefaultAIOptionsinstead ofIOptions<DefaultAIOptions>, so a site's Enable OpenTelemetry setting reaches it. Code that constructs it directly passes aDefaultAIOptions.
Upgrading from 1.x
- Anthropic usage is now metered through
AIUsageMetering.Meter. - Deployments and their capabilities do not affect Claude; nothing changes for the removed deployment purpose.
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-claude-orchestrator/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-claude-orchestrator)