crestapps-core-custom-tools

crestapps-core-custom-tools is a skill for Claude Code, Codex from CrestApps/CrestApps.AgentSkills. It costs 26 tokens per session (713 once invoked), scanned A, original, MIT.

A guide for defining AI-callable tools in CrestApps.Core, meaning application functions an AI system can request. It covers tool descriptions, input schemas, registration, visibility, and error results.

In plain words
What is it for?
Use it to create code-defined tools, register them with names and metadata, control their visibility, or distinguish them from tools configured by end users.
Why use it?
It explains how to make application code available to AI while controlling which tools appear in shared listings or user interfaces. It also keeps tool failures understandable instead of exposing raw exceptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

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.

agentmods
npx agentmods add skills/crestapps/crestapps.agentskills/crestapps-core-custom-tools
Any agent
npx skills add CrestApps/CrestApps.AgentSkills --skill crestapps-core-custom-tools
Clone the repo
git clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for crestapps-core-custom-tools

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/crestapps-core-custom-tools.svg)](https://agentmods.dev/skills/crestapps/crestapps.agentskills/crestapps-core-custom-tools)
Your own site
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/crestapps-core-custom-tools"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/crestapps-core-custom-tools.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00713
Opus 5 $0.00013 $0.00357
Sonnet 5 $0.00005 $0.00143
Haiku 4.5 $0.00003 $0.00071

Measured 6d ago against content hash e45f5c57fdc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

crestapps-core-custom-tools 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 6d 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.

plugins/crestapps-core/skills/crestapps-core-custom-tools/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CrestApps.Core Custom Tools - Prompt Templates

Create Custom AI Tools

You are a CrestApps.Core expert. Generate tool classes and registration code for CrestApps.Core custom AI tools.

Guidelines

  • Inherit from AIFunction (from Microsoft.Extensions.AI) and override Name, Description, JsonSchema, and InvokeCoreAsync.
  • Register tools with AddCoreAITool<TTool>(name) and chain the metadata builder.
  • Use .Selectable() only for tools that should appear in UI assignment surfaces; use .Hidden() to keep a tool out of the shared MCP/agent listings while still available to explicitly configured profiles.
  • Prefer clear titles, descriptions, categories, and purpose tags.
  • Catch failures inside the tool and return descriptive results instead of throwing.
  • These code-registered tools are distinct from parameterized tool instances (AIToolInstance / IAIToolInstanceSource, prefixed tool_instance_); use tool instances when end users configure the tool, and AddCoreAITool<T> when the tool is defined in code.

Registration

builder.Services
    .AddCoreAIServices()
    .AddCoreAIOrchestration()
    .AddCoreAITool<WeatherTool>("get-weather")
        .WithTitle("Get Weather")
        .WithDescription("Returns current weather for a location.")
        .WithCategory("Utilities")
        .Selectable();

Tool Example

public sealed class WeatherTool : AIFunction
{
    public const string TheName = "get-weather";

    private static readonly JsonElement _jsonSchema = JsonSerializer.Deserialize<JsonElement>("""
    {
      "type": "object",
      "required": ["location"],
      "properties": {
        "location": { "type": "string", "description": "City name." },
        "units": { "type": "string", "enum": ["celsius", "fahrenheit"], "description": "Temperature units." }
      },
      "additionalProperties": false
    }
    """);

    public override string Name => TheName;

    public override string Description => "Returns current weather for a location.";

    public override JsonElement JsonSchema => _jsonSchema;

    protected override ValueTask<object> InvokeCoreAsync(
        AIFunctionArguments arguments,
        CancellationToken cancellationToken)
    {
        ArgumentNullException.ThrowIfNull(arguments);

        if (!arguments.TryGetValue("location", out var raw) || raw is not string location || string.IsNullOrWhiteSpace(location))
        {
            return ValueTask.FromResult<object>("""{"error":"A location is required."}""");
        }

        return ValueTask.FromResult<object>(
            JsonSerializer.Serialize(new { Temperature = 22, Condition = "Sunny", Location = location }));
    }
}

Read the full file on GitHub · 86 lines

Changes

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.

  1. 6d ago First seen · 86 lines · 26 tokens per session scan A e45f5c57fdc3

Subscribe to this mod's changes

crestapps-core-custom-tools is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (13 stars, last pushed 8d ago), licensed MIT. It adds 26 tokens to every session and 713 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.

Related

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…

modelcontextprotocol/csharp-sdk · 88 tokens

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…

modelcontextprotocol/csharp-sdk · 87 tokens

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…

modelcontextprotocol/csharp-sdk · 87 tokens

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…

modelcontextprotocol/csharp-sdk · 84 tokens

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…

modelcontextprotocol/csharp-sdk · 68 tokens

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.

modelcontextprotocol/csharp-sdk · 38 tokens