Individual skill

crestapps-core-context-builders

Skill for enriching CrestApps.Core 2.0 completion and orchestration contexts with handler pipelines. Covers IAICompletionContextBuilder and IAICompletionContextBuilderHandler producing AICompletionContext, IOrchestrationContextBuilder and IOrchestrationContextBuilderHandler producing OrchestrationContext, the BuildingAsync, configure delegate and BuiltAsync phases, reverse registration order, the built-in profile, chat interaction, persona, tool instance, data source and MCP handlers, chat and utility model parameters copied onto the context, SystemMessageBuilder, reading the chat from AIInvocationScope during a build, error isolation that logs and skips a failing handler, and one-off configuration through the caller delegate. Use it when injecting tenant, user or policy context into every AI request, adding orchestration behavior, or debugging a profile whose system message, tools or parameters vanish.

plugins/crestapps-core/skills/crestapps-core-context-builders/SKILL.md

Read pinned source

Source commit d86d04f234b1b2bd8145368a2544490f9d557596

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Instructions only
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
13
Repository last updated
Oct 21, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# CrestApps.Core Context Builders

Two handler pipelines prepare every AI request:

| Level | Builder | Handler | Produces |
|---|---|---|---|
| Completion | `IAICompletionContextBuilder.BuildAsync(resource, configure, cancellationToken)` | `IAICompletionContextBuilderHandler` | `AICompletionContext` (deployments, system message, tools, agents, model parameters, data source) |
| Orchestration | `IOrchestrationContextBuilder.BuildAsync(resource, configure, cancellationToken)` | `IOrchestrationContextBuilderHandler` | `OrchestrationContext` (user message, history, documents, `SystemMessageBuilder`, completion context) |

## Guidelines

- Use a completion handler for anything every completion of a resource needs, including non-orchestrated calls and sub-agents. Use an orchestration handler for work that only belongs to orchestrated chat.
- Both builders run `BuildingAsync` on every handler, then the caller's `configure` delegate, then `BuiltAsync` on every handler.
- Handlers run in reverse registration order: the last registered runs first. Register an override after the handler whose values it replaces.