loopback-training-server: Instructions file for Claude Code

CLAUDE.md

loopback-training-server CLAUDE.md is an instructions file for Claude Code from aderaaij/loopback-training-server. It costs 8,551 tokens per session, scanned A, original, MIT.

Project instructions for the Loopback training server, a workout-tracking system with a web dashboard, APIs, and Apple Watch integration.

In plain words
What is it for?
Use them when changing the backend, frontend, database, training API, mobile-app data formats, or Docker setup.
Why use it?
They document the system structure and warn that the companion iOS app defines part of the shared API contract.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to aderaaij/loopback-training-server. 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/aderaaij/loopback-training-server/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/aderaaij/loopback-training-server

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 loopback-training-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aderaaij/loopback-training-server/claude-md/github.svg)](https://agentmods.dev/instructions/aderaaij/loopback-training-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/aderaaij/loopback-training-server/claude-md"><img src="https://agentmods.dev/badge/instructions/aderaaij/loopback-training-server/claude-md/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 loopback-training-server CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aderaaij/loopback-training-server/claude-md"><img src="https://agentmods.dev/badge/instructions/aderaaij/loopback-training-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,551 This file is loaded in full into every session.
When invoked 8,551 The same file — it is already loaded in full.
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.08551 $0.08551
Opus 5.5 $0.03420 $0.03420
Sonnet 5.5 $0.01710 $0.01710
Haiku 4.5 $0.00855 $0.00855

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

Security

Grade A, and why

loopback-training-server CLAUDE.md 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 1mo 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.md · 299 lines

How it starts

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

Training API

Personal workout tracking API with Apple Watch integration queue, training plans, health metrics, and a web dashboard.

The companion iOS app lives at aderaaij/loopback-training-app; a working copy is usually checked out as a sibling directory (../loopback-training-app). Cross-reference it for the client side of the API contract (WorkoutAPIClient.swift, SessionStore.swift, WorkoutScheduleManager.swift) before changing wire formats — and git pull it first, since development happens elsewhere.

Tech Stack

  • Backend: FastAPI (Python 3.13) with Uvicorn
  • Database: PostgreSQL 16 with SQLAlchemy 2.0 ORM, Alembic migrations
  • Package manager: uv
  • Frontend: React 19 + TypeScript SPA ("Loopback", in frontend/) — Vite 8, React Compiler, TanStack Query, react-router, hand-rolled SVG charts, Leaflet route maps
  • MCP Server: FastMCP 2.0 (in mcp/)
  • Infrastructure: Docker Compose (docker-compose.yml)

Project Structure

backend/
  app/
    main.py              # FastAPI app entry point (+ serves the SPA build, see below)
    auth.py              # Bearer token auth
    config.py            # Pydantic-settings
    database.py          # SQLAlchemy setup
    models/              # ORM models
    routes/              # API route handlers
    schemas/             # Pydantic request/response schemas
  migrations/            # Alembic migrations
  Dockerfile             # Multi-stage build: Node (frontend) + uv (backend); context = repo root
frontend/
  src/
    lib/                 # api client, wire types, auth context, query hooks, formatters
    components/          # layout, shared UI, SVG chart primitives, route map
    screens/             # one file per screen (Overview, Calendar, Workouts, Plans, Notes, Health, Queue, Settings, Users)
    styles/              # global design tokens + per-screen CSS
mcp/
  app/
    main.py              # FastMCP server entry point
    config.py            # MCP settings
    coaching/            # Coaching playbook content (core.md + goals/*.md) + loader
    tools/               # MCP tool routers (workouts, queue, actions, feedback, health, plans, coaching)
    services/            # HTTP client for backend API

Read the full file on GitHub · 299 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. 1mo ago Changed · +162 tokens per session c9065cecf68e
  2. 2mo ago First seen · 299 lines · 8,389 tokens per session scan A ff4af9e2c211

Subscribe to this mod's changes

loopback-training-server CLAUDE.md is an instructions file published in the GitHub repository aderaaij/loopback-training-server (4 stars, last pushed 1mo ago), licensed MIT. It adds 8,551 tokens to every session, about $0.0342 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

loopback-training-server CLAUDE.md compared with instructions from other repositories

loopback-training-server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loopback-training-server CLAUDE.mdaderaaij/loopback-training-serverInstructions file41mo agoMITA8,551Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot