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 skills add CrestApps/CrestApps.AgentSkills --skill crestapps-core-prompt-securitygit 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-prompt-security)<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/crestapps-core-prompt-security"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/crestapps-core-prompt-security.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.1 | $0.00024 | $0.00811 |
| Opus 5 | $0.00012 | $0.00405 |
| Sonnet 5 | $0.00005 | $0.00162 |
| Haiku 4.5 | $0.00002 | $0.00081 |
Grade A, and why
crestapps-core-prompt-security 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 8d 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 — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CrestApps.Core Prompt Security - Prompt Templates
Harden AI Profile Chat
You are a CrestApps.Core expert. Generate code and guidance for the built-in prompt-security layer used by AI Profile chat.
Guidelines
AddAISuite(...)registers the orchestration layer, including prompt-security services. Do not invent a publicAddPromptSecurity(...)registration method.IPromptSecurityService.ValidateInputAsync(PromptSecurityContext, CancellationToken)evaluates user input. It returnsPromptSecurityResult, which can be safe, flagged, or blocked.- Implement
IPromptSecurityRulefor organization-specific detection. A rule evaluates a normalizedPromptSecurityEvaluationContextand returnsnullwhen it does not match. - Configure global guards through
PromptSecurityOptions. Profile settings can alter anti-spam throttles, but not the global injection, output, preamble, delimiter, length, or blocking controls. - Keep tool authorization independent of prompt detection. Prompt security is defense in depth, not an authorization replacement.
Configure Site Policy
builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai.AddOpenAI()));
builder.Services.Configure<PromptSecurityOptions>(options =>
{
options.MaxPromptLength = 6000;
options.BlockingThreshold = PromptRiskLevel.High;
options.MaxMessagesPerWindow = 12;
options.RateLimitWindow = TimeSpan.FromMinutes(2);
options.CustomBlockedPatterns.Add(@"\binternal-canary-123\b");
});
PromptSecurityOptions enables injection detection, output filtering, a security preamble, input delimiters, and audit logging by default. It also provides aggregate-score thresholds and anonymous-session rate limits.
Add a Custom Rule
using CrestApps.Core.AI.Security;
public sealed class CanaryPromptSecurityRule : IPromptSecurityRule
{
public string RuleId => "canary-token";
public ValueTask<PromptSecurityRuleResult> EvaluateAsync(
PromptSecurityEvaluationContext context,
CancellationToken cancellationToken = default)
{
if (context.NormalizedInput.Contains(
"internal-canary-123",
StringComparison.OrdinalIgnoreCase))
{
return ValueTask.FromResult(new PromptSecurityRuleResult
{
RuleId = RuleId,
Categories = ["data-exfiltration"],
Severity = PromptRiskLevel.Critical,
Score = 50,
Reason = "Detected the internal canary token.",
});
}
return ValueTask.FromResult<PromptSecurityRuleResult>(null);
}
}
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.
- 8d ago First seen · 92 lines · 24 tokens per session scan A 7b50fce04a0f
crestapps-core-prompt-security is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (13 stars, last pushed 10d ago), licensed MIT. It adds 24 tokens to every session and 811 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
powerpoint-cli
PowerPoint CLI automation skill for Windows presentations. Use when a coding agent needs token-efficient, scriptable, or unattended PowerPoint automation via pptcli commands. Best for CI/CD, scheduled jobs, batch processing, PowerShell workflows, and bulk deck edits. Supports slides, shapes, text frames, tables…
powerpoint-mcp
PowerPoint MCP Server skill for Windows presentation automation via a live PowerPoint desktop instance (COM/PIA). Use when an assistant needs rich MCP tools to create, open, build, format, and export PowerPoint (.pptx/.pptm) presentations — slides, shapes, text boxes, tables, native charts, images, audio, video…
publish-release
Releases a new McpOrchestrator version end to end — version bump PR, tag, and the automated deploy to GitHub Releases, NuGet, and the MCP Registry. Use when asked to release, publish, deploy, ship, or bump the version of McpOrchestrator.
dotnet-debugging
Debug .NET applications using debug-mcp MCP tools — launch processes, set breakpoints, step through code, inspect variables, evaluate expressions, and analyze exceptions. Use this skill when debugging .NET/C# applications, investigating runtime behavior, diagnosing exceptions, inspecting object state, or performing…
release-notes
Writes user-facing release notes from a git commit range. Use when asked to draft release notes, a changelog entry, or "what's new" text for a release.
sast-fileupload
Detect insecure file upload vulnerabilities in a codebase using a three-phase approach: discovery (find all upload sites), batched verify (check extension bypass and related issues in parallel subagents, 3 sites each), and merge (consolidate batch results). Requires sast/architecture.md (run sast-analysis first).…