python-backend-expert

python-backend-expert is a skill for Claude Code from mathisk2095/jko-claude-plugins. It costs 183 tokens per session (2,642 once invoked), scanned A, original, MIT.

A design and code-review guide for Python backend services built with FastAPI or Litestar, database libraries, and SQLAlchemy.

In plain words
What is it for?
It helps design or review APIs, service and repository layers, dependency wiring, asynchronous code, database access, and domain models.
Why use it?
It helps keep business logic separate from web and database details, making services easier to test, maintain, and change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the python-backend plugin — 1 skill, 3 commands shipped together

Good fit It helps design or review APIs, service and repository layers, dependency wiring, asynchronous code, database access, and domain models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mathisk2095/jko-claude-plugins/python-backend-expert
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.

Any agent
npx skills add mathisk2095/jko-claude-plugins --skill python-backend-expert
Clone the repo
git clone --depth 1 https://github.com/mathisk2095/jko-claude-plugins

Made for: Claude Code.

Or install python-backend, the plugin that ships this one along with the rest of its 1 skill, 3 commands.

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 python-backend-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/mathisk2095/jko-claude-plugins/python-backend-expert/github.svg)](https://agentmods.dev/skills/mathisk2095/jko-claude-plugins/python-backend-expert)
Your own site
<a href="https://agentmods.dev/skills/mathisk2095/jko-claude-plugins/python-backend-expert"><img src="https://agentmods.dev/badge/skills/mathisk2095/jko-claude-plugins/python-backend-expert/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 python-backend-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/mathisk2095/jko-claude-plugins/python-backend-expert"><img src="https://agentmods.dev/badge/skills/mathisk2095/jko-claude-plugins/python-backend-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,642 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.00183 $0.02642
Opus 5.5 $0.00073 $0.01057
Sonnet 5.5 $0.00037 $0.00528
Haiku 4.5 $0.00018 $0.00264

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

Security

Grade A, and why

python-backend-expert 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.

plugins/python-backend/skills/python-backend-expert/SKILL.md · 175 lines

How it starts

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

Write production-grade Python backends. Not scripts. Not notebooks. Not prototypes. Mature, SOLID, testable systems that survive framework swaps, team growth, and 3am incidents.

Design Direction

Commit to an architectural stance before writing code:

  • Purpose: What domain does this service own? What is its single bounded context?
  • Boundaries: Where does the domain end and infrastructure begin? Draw the line.
  • DI Strategy: How do dependencies flow? Constructor injection, framework DI, or container?
  • Data Flow: Request -> Controller -> Service -> Repository -> Domain Entity -> Response DTO. Never skip layers.

CRITICAL: The architecture serves the domain, not the framework. If replacing Litestar with FastAPI would require rewriting business logic, the boundaries are wrong.

Architecture

Consult architecture reference for hexagonal patterns, layer rules, and directory structure.

Dependencies point inward. Domain imports nothing from infrastructure. Controllers are thin. Services orchestrate. Repositories hide persistence. The composition root wires everything together.

DO: Separate domain entities from ORM models with explicit mapping DO: Use Protocol or ABC for all ports -- repository interfaces, encryption, email, external APIs DO: Keep controllers under 150 lines -- they parse input, call a service, shape output DON'T: Import SQLAlchemy in your domain layer DON'T: Put business logic in route handlers -- that's a fat controller (AP-01) DON'T: Let framework types (Request, Response, AsyncSession) leak into services

SOLID Principles

Consult SOLID reference for Python-specific patterns and file size guidelines.

Every class has one reason to change. New behavior arrives via new code, not modified old code. Subtypes honor parent contracts. Interfaces stay small. High-level modules depend on abstractions.

DO: Split services by domain -- UserService, OrderService, not AppService DO: Use Protocol for structural typing at boundaries -- no inheritance required DO: Inject abstractions, never concretions DON'T: Create god modules >500 lines -- split by responsibility DON'T: Add raise NotImplementedError stubs -- that's ISP violation, split the interface DON'T: Pass concrete repository classes through your service constructors

Read the full file on GitHub · 175 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 First seen · 175 lines · 183 tokens per session scan A 0fda8fa2775c

Subscribe to this mod's changes

python-backend-expert is a skill published in the GitHub repository mathisk2095/jko-claude-plugins (3 stars, last pushed 6d ago), licensed MIT. It adds 183 tokens to every session and 2,642 once invoked, about $0.0007 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.