python-backend-quality

python-backend-quality is a skill for Claude Code, Codex from priyanshuchawda/codeaudit. It costs 52 tokens per session (431 once invoked), scanned A, original, MIT.

A set of review and development rules for Python backends, including web services, command-line tools, libraries, and database code.

In plain words
What is it for?
Use it when reviewing or building Python projects with FastAPI, Django, Flask, pytest, databases, asynchronous code, or deployment setup.
Why use it?
It defines checks for packaging, input validation, type safety, tests, configuration, logging, and error handling so backend changes are easier to trust and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when reviewing or building Python projects with FastAPI, Django, Flask, pytest, databases, asynchronous code, or deployment setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/priyanshuchawda/codeaudit/python-backend-quality
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 priyanshuchawda/codeaudit --skill python-backend-quality
Clone the repo
git clone --depth 1 https://github.com/priyanshuchawda/codeaudit

Made for: Claude Code, Codex.

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-quality

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/priyanshuchawda/codeaudit/python-backend-quality"><img src="https://agentmods.dev/badge/skills/priyanshuchawda/codeaudit/python-backend-quality.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 431 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.00431
Opus 5.5 $0.00021 $0.00172
Sonnet 5.5 $0.00010 $0.00086
Haiku 4.5 $0.00005 $0.00043

Measured 1mo ago against content hash 57acbfbd95e0, 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-quality 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.

skills/python-backend-quality/SKILL.md · 35 lines

What it actually says

Python Backend Quality

Core Standard

Python projects need explicit packaging, typed boundaries, fast tests, and predictable runtime configuration. Prefer boring structure over clever dynamic behavior.

Required Checks

  • Packaging: pyproject.toml, lockfile (uv.lock or equivalent), clear scripts, Python version pin, and no ad-hoc global installs.
  • Boundaries: Pydantic/dataclasses/TypedDicts for request, config, tool, API, database, and external-service inputs.
  • Types: meaningful annotations, mypy/pyright/basedpyright where practical, no broad Any at trust boundaries.
  • Tests: pytest or equivalent with unit tests for pure logic and integration tests for API/auth/database boundaries.
  • Quality tools: Ruff format/lint, deterministic imports, CI command that runs lint, typecheck, and tests.
  • Runtime: env validation, secret redaction, structured logging, graceful startup/shutdown, and clear error models.
  • Frameworks: FastAPI dependencies and routers stay thin; Django views/serializers/services are separated; Flask routes validate inputs before business logic.
  • Data: migrations are explicit, sessions/transactions are scoped, and database errors do not leak raw internals.

Output

For each finding, include the file evidence, risk, smallest practical fix, and tests to run. Do not claim production-ready Python unless packaging, tests, typing, env handling, and deployment checks are evidenced.

Common Mistakes

  • Treating requirements.txt alone as a full project contract.
  • Putting business logic directly in FastAPI route functions, Django views, or Flask handlers.
  • Swallowing exceptions with except Exception: pass or returning None without context.
  • Logging raw request bodies, tokens, connection strings, prompts, or provider errors.
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 · 35 lines · 52 tokens per session scan A 57acbfbd95e0

Subscribe to this mod's changes

python-backend-quality is a skill published in the GitHub repository priyanshuchawda/codeaudit (1 stars, last pushed 5mo ago), licensed MIT. It adds 52 tokens to every session and 431 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

review-api-compat

Use when the user asks for an API compatibility review, breaking change review, proto breaking change review, buf breaking review, OpenAPI compatibility check, gRPC backwards compatibility audit, "are these API changes breaking", "did we break the wire", contract evolution review, or backwards-compatibility audit on…

paultyng/skill-issue · 69 tokens

review-reliability

Use when the user asks for a reliability review, production readiness assessment, stability analysis, graceful shutdown audit, drain or rollout review, timeout review, timeout budget check, deadline propagation review, circuit breaker or bulkhead review, retry and backoff review, goroutine leak or resource leak…

paultyng/skill-issue · 106 tokens

kafka-connector-review

Review Kafka Connect connector configurations for common misconfigurations using the Lenses MCP server. Checks error handling, DLQ setup, converters, transforms, task count and task health. Use when user says "review connectors", "check connector configs", "why is my connector failing" or asks about Kafka Connect…

lensesio/agentic-engineering-for-apache-kafka · 79 tokens

kafka-dlq-review

Review dead letter queue implementations for completeness using the Lenses MCP server. Checks DLQ topic existence, configuration, monitoring, metadata preservation, retry logic, reprocessing paths and connector DLQ alignment. Use when user says "review dead letter queues", "check DLQ setup", "DLQ audit" or asks about…

lensesio/agentic-engineering-for-apache-kafka · 93 tokens

kafka-perf-review

Review Kafka producer and consumer performance configurations in both the live cluster (via Lenses MCP) and the codebase. Flags un-tuned defaults, anti-patterns and missing best practices. Use when user says "review Kafka performance", "check producer configs", "tune Kafka settings" or asks about throughput, batching…

lensesio/agentic-engineering-for-apache-kafka · 82 tokens

kafka-schema-review

Review Kafka schema changes (Avro, Protobuf, JSON Schema) for compatibility and evolution best practices using the Lenses MCP server. Detects breaking changes, missing defaults, schema drift and naming issues. Use when user says "review schema changes", "check schema compatibility", "will this schema break consumers"…

lensesio/agentic-engineering-for-apache-kafka · 89 tokens