hpo-link: Skill for Claude Code

.claude/skills/fastapi-route-change/SKILL.md

fastapi-route-change is a skill for Claude Code from berntpopp/hpo-link. It costs 29 tokens per session (203 once invoked), scanned A, original, MIT.

Instructions for changing routes in a FastAPI backend, a Python web service framework. They cover route structure, request and response validation, upstream calls, logging, CORS, tests, and CI.

In plain words
What is it for?
Use them when adding, renaming, or modifying FastAPI routes, dependencies, middleware, or responses. They guide model validation, service-layer design, route tests, and final CI checks.
Why use it?
They help route changes remain consistent and avoid common security and maintenance problems such as unsafe URLs, unvalidated identifiers, leaked sensitive queries, and overly large handlers.

Skill for Claude Code

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

This is berntpopp/hpo-link's own configuration. It tells Claude Code how to work on hpo-link 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 hpo-link configures →

Reuse

Borrowing it

Nothing to install: this file belongs to berntpopp/hpo-link. 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/berntpopp/hpo-link/main/.claude/skills/fastapi-route-change/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/berntpopp/hpo-link

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 fastapi-route-change

README.md
[![agentmods](https://agentmods.dev/badge/skills/berntpopp/hpo-link/fastapi-route-change/github.svg)](https://agentmods.dev/skills/berntpopp/hpo-link/fastapi-route-change)
Your own site
<a href="https://agentmods.dev/skills/berntpopp/hpo-link/fastapi-route-change"><img src="https://agentmods.dev/badge/skills/berntpopp/hpo-link/fastapi-route-change/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 fastapi-route-change

Your own site · 80×15
<a href="https://agentmods.dev/skills/berntpopp/hpo-link/fastapi-route-change"><img src="https://agentmods.dev/badge/skills/berntpopp/hpo-link/fastapi-route-change.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 203 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.
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.00029 $0.00203
Opus 5 $0.00015 $0.00102
Sonnet 5 $0.00006 $0.00041
Haiku 4.5 $0.00003 $0.00020

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

Security

Grade A, and why

fastapi-route-change 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 10d 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.

Origin

Copies of this mod

5 near-identical copies found in the catalogue:

.claude/skills/fastapi-route-change/SKILL.md · 19 lines

What it actually says

FastAPI Route Change

Follow AGENTS.md first.

Workflow

  1. Inspect neighboring route / service modules under hpo_link/ and follow their structure.
  2. Keep route handlers thin; put behavior in the service / manager layer.
  3. Use Pydantic models for public request/response shapes; validate identifiers (gene / variant / HGVS / build / accession) before calling upstream.
  4. The upstream base URL is a fixed config constant — never construct it from user input (SSRF).
  5. Never log full query payloads or identifiers that may be patient-derived (PHI); log correlation id + route + timings only.
  6. Don't pair CORS allow_origins=* with allow_credentials=True.
  7. Add / refresh route tests, then run make ci-local.
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. 10d ago First seen · 19 lines · 29 tokens per session scan A 69ff5907788a

Subscribe to this mod's changes

fastapi-route-change is a skill published in the GitHub repository berntpopp/hpo-link (1 stars, last pushed 3d ago), licensed MIT. It adds 29 tokens to every session and 203 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-31.

Related

Other skills, from other repositories

async-python-patterns

Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.

FridrichMethod/awesome-skills · 42 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

optimize-for-gpu

GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster. Use for CUDA/GPU optimization; CPU-bound NumPy, SciPy, pandas, scikit-learn, NetworkX, scikit-image, vector-search, image-processing, graph, simulation, or file-I/O workloads; CuPy, cuDF, cuML, cuGraph, cuVS…

K-Dense-AI/scientific-agent-skills · 151 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

stripe-projects

Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.

e2b-dev/E2B · 51 tokens

azure-messaging-webpubsubservice-py

Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".

microsoft/skills · 64 tokens