Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/crestapps/crestapps.agentskills/crestapps-core-context-buildersnpx skills add CrestApps/CrestApps.AgentSkills --skill crestapps-core-context-buildersgit clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/crestapps/crestapps.agentskills/crestapps-core-context-builders)<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/crestapps-core-context-builders"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/crestapps-core-context-builders.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00022 | $0.00762 |
| Opus 5 | $0.00011 | $0.00381 |
| Sonnet 5 | $0.00004 | $0.00152 |
| Haiku 4.5 | $0.00002 | $0.00076 |
Grade A, and why
crestapps-core-context-builders scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CrestApps.Core Context Builders - Prompt Templates
Enrich AI Request Context
You are a CrestApps.Core expert. Generate code and guidance for context-builder handlers that add request-specific AI settings and orchestration behavior.
Guidelines
IAICompletionContextBuilder.BuildAsync(...)producesAICompletionContext; use completion handlers for deployment settings, system messages, tools, and completion metadata.IOrchestrationContextBuilder.BuildAsync(...)producesOrchestrationContext; use orchestration handlers for work that belongs to the orchestrated pipeline.- Both builders run
BuildingAsync, then the optional caller configuration delegate, thenBuiltAsync. - Handlers run in reverse registration order. Register an override after a handler whose values it must replace.
- The default builders log and continue after non-cancellation handler exceptions. Keep handlers focused and fail explicitly only when the calling flow must stop.
- Completion-handler methods have no cancellation-token parameter. Orchestration-handler methods accept an optional
CancellationToken.
Completion Context Handler
using CrestApps.Core.AI.Completions;
using CrestApps.Core.AI.Models;
public sealed class TenantCompletionContextHandler : IAICompletionContextBuilderHandler
{
public Task BuildingAsync(AICompletionContextBuildingContext context)
{
context.Context.SystemMessage = string.Join(
"\n\n",
[context.Context.SystemMessage, "Respect the active tenant data boundary."]);
context.Context.AdditionalProperties["tenant-mode"] = "restricted";
return Task.CompletedTask;
}
public Task BuiltAsync(AICompletionContextBuiltContext context)
{
return Task.CompletedTask;
}
}
Register it with the existing completion pipeline:
builder.Services.AddScoped<IAICompletionContextBuilderHandler, TenantCompletionContextHandler>();
AICompletionContextBuildingContext exposes the source Resource and mutable Context. Pattern-match Resource when a handler applies only to a known source type, for example if (context.Resource is AIProfile profile) { ... }.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 104 lines · 22 tokens per session scan A 0cc00c66c3f9
crestapps-core-context-builders is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (13 stars, last pushed 7d ago), licensed MIT. It adds 22 tokens to every session and 762 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
prepare-release
Prepare a new release for the C# MCP SDK. Assesses Semantic Versioning level (PATCH/MINOR/MAJOR), bumps the version, runs ApiCompat and ApiDiff, reviews documentation, updates changelogs, drafts release notes, and creates a pull request with all release artifacts. Use when asked to prepare a release, start a release…
publish-release
Publish a GitHub release for the C# MCP SDK after a prepare-release PR has been merged. Refreshes release notes to include any PRs merged since preparation, warns about version or breaking change impacts from late-arriving PRs, and creates a draft GitHub release. Use when asked to publish a release, finalize a…
verify-release
Verify a published release of the C# MCP SDK. Monitors the Release and Publish Docs workflows triggered by publishing a GitHub release, confirms the packages are listed on NuGet.org, and confirms the versioned documentation site reflects the release. Use when asked to verify a release, check whether a release…
bump-version
Assess and bump the SDK version using Semantic Versioning 2.0.0. Evaluates queued changes to recommend PATCH/MINOR/MAJOR, updates src/Directory.Build.props, and creates a pull request. Owns the SemVer assessment logic shared by prepare-release and publish-release. Use when asked to bump the version, assess the…
breaking-changes
Audit pull requests for breaking changes in the C# MCP SDK. Examines PR descriptions, review comments, and diffs to identify API and behavioral breaking changes, then reconciles labels with user confirmation. Use when asked to audit breaking changes, check for breaking changes, or review a set of PRs for breaking…
run-conformance-from-branch
Run MCP conformance tests in the C# SDK against a conformance branch (including forks) instead of the published npm version, then restore pinned dependencies.