python-skills: Skill for Claude Code

.agents/skills/python-standards/SKILL.md

python-standards is a skill for Claude Code, Codex from rishapgandhi/python-skills. It costs 16 tokens per session (503 once invoked), scanned A, original, MIT.

A set of enterprise coding standards for Python applications using FastAPI, Django, Django REST Framework, or Flask. It defines code style, project layers, typing, logging, security, database access, errors, and tests.

In plain words
What is it for?
It guides work on Python APIs and services, including choosing the correct framework instructions, organizing API-to-database layers, handling errors, logging, securing endpoints, and writing tests.
Why use it?
It gives generated and reviewed code consistent rules to follow across a Python project. This reduces inconsistent structure, unsafe shortcuts, and missing tests or type information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is rishapgandhi/python-skills's own configuration. It tells Claude Code and Codex how to work on python-skills 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 python-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rishapgandhi/python-skills. 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/rishapgandhi/python-skills/main/.agents/skills/python-standards/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rishapgandhi/python-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rishapgandhi/python-skills/python-standards"><img src="https://agentmods.dev/badge/skills/rishapgandhi/python-skills/python-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 503 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.00016 $0.00503
Opus 5.5 $0.00006 $0.00201
Sonnet 5.5 $0.00003 $0.00101
Haiku 4.5 $0.00002 $0.00050

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

Security

Grade A, and why

python-standards 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.

.agents/skills/python-standards/SKILL.md · 71 lines

What it actually says

Python AI-SDLC Standards

Overview

This skill provides the AurigaIT Python enterprise coding standards. All code generated must follow these standards.

Prerequisites

  • Python 3.11+ project
  • One of: FastAPI, Django, DRF, or Flask

Instructions

Before Writing Code

  1. Read skills/common/code-style.md — always loaded.
  2. Identify the framework and read skills/{framework}/SKILL.md.
  3. Follow layer discipline: API → Service → Repository → Model.

Non-Negotiable Rules

  • 4 spaces indentation, no tabs
  • Full type annotations on all function signatures
  • No hardcoded secrets — pydantic-settings only
  • structlog for all logging — never print()
  • ORM/repository for DB access — no raw SQL unless parameterised
  • Tests mandatory — 80% coverage minimum
  • All endpoints authenticated unless explicitly public
  • Never bare except: — catch specific exceptions
  • Monetary values: Decimal, never float

Skill Files

Load from skills/common/ based on task:

Task File
Any Python code-style.md
New project folder-structure.md
Errors error-handling.md
Logging logging.md
Security security.md, api-auth.md
Tests testing.md
Database db-design.md, data-migrations.md
Performance performance.md
CI/CD ci-cd.md
Deploy deployment.md
Monitoring observability.md
Async/Events async-patterns.md
Multi-service microservices.md
Feature flags feature-flags.md
Dependencies dependency-management.md
LLM/AI llm-patterns.md

Rules

  • rules/api-design.md — REST conventions
  • rules/git-workflow.md — Branching, releases
  • rules/code-review.md — Review process

Verification

  • Code passes ruff check .
  • Code passes mypy app/ --strict
  • Tests pass with pytest --cov-fail-under=80
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 · 71 lines · 16 tokens per session scan A 9a9135d7ff42

Subscribe to this mod's changes

python-standards is a skill published in the GitHub repository rishapgandhi/python-skills (5 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 503 once invoked, about $0.0001 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.