add-main-endpoint

add-main-endpoint is a skill for Claude Code from JNZader/repoforge. It costs 30 tokens per session (482 once invoked), scanned A, original, MIT.

A set of FastAPI patterns for adding service health-check endpoints. FastAPI is a Python framework for building web APIs.

In plain words
What is it for?
Use it when setting up a basic `/health` endpoint or a detailed `/health/detailed` endpoint in a FastAPI application.
Why use it?
It gives monitoring tools and operators a standard way to check whether the service is running and, when needed, inspect more detailed status information.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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/jnzader/repoforge/main
Any agent
npx skills add JNZader/repoforge --skill main
Clone the repo
git clone --depth 1 https://github.com/JNZader/repoforge

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-main-endpoint

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnzader/repoforge/main.svg)](https://agentmods.dev/skills/jnzader/repoforge/main)
Your own site
<a href="https://agentmods.dev/skills/jnzader/repoforge/main"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/main.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 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.00030 $0.00482
Opus 5 $0.00015 $0.00241
Sonnet 5 $0.00006 $0.00096
Haiku 4.5 $0.00003 $0.00048

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

Security

Grade A, and why

add-main-endpoint 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.

.claude/skills/backend/main/SKILL.md · 92 lines

What it actually says

add-main-endpoint

This skill covers adding main endpoints to the FastAPI application.

Trigger: When setting up the main entry point for the application.

Quick Reference

Task Pattern
Add health check health
Add detailed health health_detailed

Critical Patterns (Summary)

  • health: Implements a basic health check endpoint.
  • health_detailed: Implements a detailed health check endpoint.

Critical Patterns (Detailed)

health

Implements a basic health check endpoint to verify the service is running.

from fastapi import FastAPI

app = FastAPI()

@app.get("/health")
async def health():
    return {"status": "healthy"}

health_detailed

Implements a detailed health check endpoint providing more information about the service status.

from fastapi import FastAPI

app = FastAPI()

@app.get("/health/detailed")
async def health_detailed():
    return {"status": "healthy", "details": "All systems operational"}

When to Use

  • When you need to expose a health check endpoint for monitoring.
  • When you want to provide detailed service status for diagnostics.

Commands

docker run -d -p 8000:8000 your-image-name

Anti-Patterns

Don't: Expose sensitive data in health checks

Exposing sensitive information can lead to security vulnerabilities.

# BAD
@app.get("/health/detailed")
async def health_detailed():
    return {"status": "healthy", "db_status": "connected", "secret_key": "12345"}
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 · 92 lines · 30 tokens per session scan A dac5fbe0e546

Subscribe to this mod's changes

add-main-endpoint is a skill published in the GitHub repository JNZader/repoforge (5 stars, last pushed 12d ago), licensed MIT. It adds 30 tokens to every session and 482 once invoked, about $0.0002 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.