intervals-icu-mcp: Skill for Claude Code

.claude/skills/add-tool/SKILL.md

add-tool is a skill for Claude Code from hhopke/intervals-icu-mcp. It costs 61 tokens per session (3,365 once invoked), scanned A, original, MIT.

A step-by-step guide for adding a new MCP tool to an Intervals.icu server. MCP is a way for an AI agent to call tools provided by another application.

In plain words
What is it for?
It guides developers through checking the API specification, choosing a tool group, adding client methods when needed, and defining the tool.
Why use it?
It helps keep new tools consistent with the server's existing API, naming, response, and asynchronous code patterns.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is hhopke/intervals-icu-mcp's own configuration. It tells Claude Code how to work on intervals-icu-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything intervals-icu-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hhopke/intervals-icu-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hhopke/intervals-icu-mcp/main/.claude/skills/add-tool/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hhopke/intervals-icu-mcp

Made for: Claude Code.

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 add-tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/hhopke/intervals-icu-mcp/add-tool/github.svg)](https://agentmods.dev/skills/hhopke/intervals-icu-mcp/add-tool)
Your own site
<a href="https://agentmods.dev/skills/hhopke/intervals-icu-mcp/add-tool"><img src="https://agentmods.dev/badge/skills/hhopke/intervals-icu-mcp/add-tool/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-tool

Your own site · 80×15
<a href="https://agentmods.dev/skills/hhopke/intervals-icu-mcp/add-tool"><img src="https://agentmods.dev/badge/skills/hhopke/intervals-icu-mcp/add-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.03365
Opus 5 $0.00030 $0.01682
Sonnet 5 $0.00012 $0.00673
Haiku 4.5 $0.00006 $0.00336

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

Security

Grade A, and why

add-tool 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 11d 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.

.claude/skills/add-tool/SKILL.md · 284 lines

How it starts

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

What you're producing

An MCP tool is an LLM-consumed artifact. The tool's name and description are read by every Claude/GPT/etc. model that connects to this server, on every session, before the user has typed anything. Be ruthless about clarity and length. Write for the model, not for human readers (humans read docs/tools.md and the README).

Prerequisites

Before starting:

  • Verify the Intervals.icu API endpoint exists in openapi-spec.json — check the request/response schema, enum values, and required fields.
  • Decide the tier the tool belongs to: core (daily-use, exposed by default) or full (specialty/coach, opt-in via INTERVALS_ICU_TOOLSET=full). When tier work lands per issue #27, tag accordingly.
  • Check for confusable names in the existing tool surface. If your tool name shares a prefix or noun with another tool (e.g. get_activity_*, *_event, create_*), the opening sentence of the description MUST lead with the distinguishing access pattern, not the shared concept.
  • Decide whether a new API client method is needed in client.py.

Steps

1. Add the API client method (if needed)

File: src/intervals_icu_mcp/client.py

Add an async method to ICUClient following the existing pattern. Type the local variable so pyright doesn't widen Any:

async def get_something(self, athlete_id: str | None = None) -> list[dict[str, Any]]:
    """Fetch something from the API."""
    athlete_id = athlete_id or self.config.intervals_icu_athlete_id
    response = await self._request("GET", f"/athlete/{athlete_id}/something")
    result: list[dict[str, Any]] = response.json()
    return result

Trust the API contract — don't add if isinstance(data, list) else [] defensive ternaries unless there's a real reason. Pydantic models are preferred when the response shape is stable; raw dicts are fine for variable-shape endpoints (e.g. custom_items.content).

Read the full file on GitHub · 284 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. 11d ago First seen · 284 lines · 61 tokens per session scan A aee1db03f6a3

Subscribe to this mod's changes

add-tool is a skill published in the GitHub repository hhopke/intervals-icu-mcp (64 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 3,365 once invoked, about $0.0003 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

scraperapi-python-sdk

Best-practices reference for the ScraperAPI Python SDK (scraperapi-sdk package). Consult whenever the user is writing, debugging, or reviewing Python code that calls ScraperAPI. Use when user asks: "scrape a website with Python and ScraperAPI", "how do I use ScraperAPIClient", "ScraperAPI Python render example"…

scraperapi/scraperapi-skills · 177 tokens

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

django-patterns

Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps.

affaan-m/ECC · 32 tokens

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

mem0-status

Diagnoses mem0 connectivity, API key validity, and memory read/write functionality. Use when memory operations fail, searches return empty, addmemory errors occur, or to verify the plugin is working correctly.

mem0ai/mem0 · 44 tokens

status

Show whether Mem0 memory is working in this repository, covering configuration, capture state, pending flushes, and whether the Mem0 API key is valid. Use when the user asks whether memory is on, why a memory is missing, or anything looks broken.

mem0ai/mem0 · 54 tokens