repoforge: Skill for Claude Code

.claude/skills/backend/SKILL.md

backend-layer is a skill for Claude Code from JNZader/repoforge. It costs 44 tokens per session (464 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 464 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.00044 $0.00464
Opus 5 $0.00022 $0.00232
Sonnet 5 $0.00009 $0.00093
Haiku 4.5 $0.00004 $0.00046

Measured 7d ago against content hash 184ce0095424, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 7d 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 · 87 lines

What it actually says

backend-layer

This skill covers the backend functionality of the RepoForge application.

Trigger: When working in backend/ directory and its main responsibility is to manage server-side logic.

Quick Reference

Task Pattern
Configure logging configure_logging()
Run migrations run_migrations_online()

Critical Patterns (Summary)

  • Middleware Configuration: Set up custom middleware for request handling.
  • Database Migration: Manage database schema changes using Alembic.

Critical Patterns (Detailed)

Middleware Configuration

Set up custom middleware for handling requests, such as logging and authentication.

# apps/server/app/main.py
app.add_middleware(correlation_id_middleware)
app.add_middleware(request_logging_middleware)
app.add_middleware(security_headers_middleware)

Database Migration

Manage database schema changes using Alembic for version control.

# apps/server/alembic/env.py
run_migrations_online()

When to Use

  • When implementing new API endpoints that require authentication.
  • When modifying database schemas and needing to run migrations.

Commands

# To run the server
uvicorn apps.server.app.main:app --reload

# To run migrations
alembic upgrade head

Anti-Patterns

Don't: Change API response formats without updating the frontend

This can lead to broken integrations and user-facing errors.

# BAD
return {"message": "success"}  # Frontend expects a different structure
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. 7d 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 12d ago), licensed MIT. It adds 44 tokens to every session and 464 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.

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