repoforge: Skill for Claude Code

.claude/skills/backend/SKILL.md

backend-layer is a skill for Claude Code from JNZader/repoforge. It costs 52 tokens per session (731 once invoked), scanned A, original, MIT.

A backend development guide for the RepoForge application’s server-side code, including API requests, authentication, request middleware, and database schema changes. It applies when working in the backend/ directory.

In plain words
What is it for?
Use it when adding or debugging API endpoints, adding authentication, configuring request logging or security middleware, or running Alembic database migrations.
Why use it?
It keeps server changes consistent and provides established patterns for handling requests and updating the database structure safely.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to JNZader/repoforge. 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/JNZader/repoforge/main/.claude/skills/backend/SKILL.md
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 backend-layer

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnzader/repoforge/backend/github.svg)](https://agentmods.dev/skills/jnzader/repoforge/backend)
Your own site
<a href="https://agentmods.dev/skills/jnzader/repoforge/backend"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/backend/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 backend-layer

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnzader/repoforge/backend"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 731 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.00052 $0.00731
Opus 5.5 $0.00021 $0.00292
Sonnet 5.5 $0.00010 $0.00146
Haiku 4.5 $0.00005 $0.00073

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

Security

Grade A, and why

backend-layer 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 24d 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/SKILL.md · 95 lines

How it starts

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

backend-layer

The Python FastAPI backend layer for RepoForge Web, handling HTTP routing, middleware, authentication, rate limiting, and database migrations. Owns all server-side request processing and API endpoints.

Trigger: When working in backend/ directory — adding routes, modifying middleware, debugging authentication, or extending API endpoints.

Quick Reference

Task Pattern
Run migrations cd apps/server && alembic upgrade head
Start server uvicorn apps.server.main:app --reload
Test endpoints pytest apps/server/tests/

Critical Patterns (Summary)

  • Middleware Chain: FastAPI middleware runs in order — correlation_id → request_logging → security_headers. Each must call call_next to pass control.
  • Settings Fail-Fast: Settings from config.py validates required env vars on startup; missing vars cause immediate exit.

Critical Patterns (Detailed)

Middleware Chain

FastAPI middleware executes in declaration order. Each handler must invoke call_next to forward the request; omitting this breaks the chain and returns 500 errors.

@app.middleware("http")
async def security_headers_middleware(request: Request, call_next):  # noqa: ANN001
    response = await call_next(request)
    response.headers["X-Content-Type-Options"] = "nosniff"
    return response

Settings Fail-Fast

from apps.server.app.config import Settings

settings = Settings()  # Raises ValueError if required vars missing

When to Use

  • Adding new HTTP routes or API endpoints
  • Modifying request validation or authentication flow
  • Configuring rate limits or adding middleware
  • Running or writing database migrations

Adding a New middleware

  1. Create <name>.py in apps/server/app/middleware/
  2. Export a FastAPI dependency or middleware function following existing pattern
  3. Add to middleware chain in apps/server/app/main.py if needed
  4. Verify with pytest apps/server/tests/middleware/

Read the full file on GitHub · 95 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 24d ago Changed · +32 lines · +18 tokens per session a8441313029e
  2. 25d ago Changed · -24 lines · -10 tokens per session bca7abbb1850
  3. 1mo ago First seen · 87 lines · 44 tokens per session scan A 184ce0095424

Subscribe to this mod's changes

backend-layer is a skill published in the GitHub repository JNZader/repoforge (5 stars, last pushed 24d ago), licensed MIT. It adds 52 tokens to every session and 731 once invoked, about $0.0002 per session on Opus 5.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

redis-patterns

Redis data structure patterns, caching strategies, distributed locks, rate limiting, pub/sub, and connection management for production applications.

ronmkr/PromptBook · 28 tokens

mysql-patterns

MySQL and MariaDB schema, query, indexing, transaction, replication, and connection-pool patterns for production backends.

ronmkr/PromptBook · 29 tokens

backend-patterns

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes. Use when building or reviewing Node.js, Express, or Next.js API routes and their data access.

affaan-m/ECC · 51 tokens

benchling-integration

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

synthetic-sciences/openscience · 44 tokens

groq-inference

Ultra-fast LLM inference on custom LPU hardware. OpenAI-compatible API at api.groq.com. Lowest latency in the industry (500-1000+ tok/s). Supports chat completions, vision, audio (Whisper STT + TTS), tool calling, JSON mode, and streaming. Free tier available. Inference only — no training.

synthetic-sciences/openscience · 77 tokens

stripe-projects

Use when the user wants to provision infrastructure or third-party services using Stripe Projects. Triggers: "I need a database", "set up auth", "add caching", "give me a Postgres", "provision Redis", "I need hosting", "add a vector DB", "get me an API key for X", "get credentials for X", "sign up for a service", "set…

stripe/ai · 213 tokens