Agent skill

Python Best Practices

by c0x12c in c0x12c/ai-toolkit

Python/FastAPI coding standards including async patterns, Pydantic v2, SQLAlchemy 2.0, and project structure.

No licenceAuto-check passedBackend & APIs

Install Python Best Practices

skills CLI
$ npx skills add c0x12c/ai-toolkit --skill python-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install c0x12c/ai-toolkit python-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/c0x12c/ai-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/toolkit/skills/python-best-practices .claude/skills/python-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
python-best-practices
GitHub stars
106
Token cost
~676 tokens
SKILL.md length
301 words
Files
2
Skills in repo
33
Repo updated
First seen
Licence
None found

At a glance

Python/FastAPI coding standards including async patterns, Pydantic v2, SQLAlchemy 2.0, and project structure.

  • Writing Python code
  • SKILL.md covers Layered Architecture, Pydantic v2, Async Patterns and Soft Delete, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Reviewing FastAPI projects

What it does

Python Best Practices is an agent skill from c0x12c/ai-toolkit. Python/FastAPI coding standards including async patterns, Pydantic v2, SQLAlchemy 2.0, and project structure. Use when writing Python code, reviewing FastAPI projects, or learning FastAPI conventions.

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `code-patterns.md`).

It sits in Backend & APIs, covering Backend development, ORMs and data access and Code quality. It works with Python, FastAPI, Pydantic and SQLAlchemy.

When your agent uses it

  • Writing Python code
  • Reviewing FastAPI projects
  • Learning FastAPI conventions

Example prompts

  • “/python-best-practices”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 96b2c9d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Python Best Practices loads about 676 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 301 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~676

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 301 words (~676 tokens).

“Router → Service → Repository → Database. Each layer only calls the one below it.”

— opening of SKILL.md by c0x12c
name
python-best-practices

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in toolkit/skills/python-best-practices of c0x12c/ai-toolkit.

  • SKILL.md
  • code-patterns.md

Open the folder on GitHubat commit 96b2c9d

Compare with similar skills

Python Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Python Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Python Best Practices this skillc0x12c/ai-toolkit106—~676Automated safety check: PassNone
Fastcrudbenavlabs/fastcrud1.6k—~5kAutomated safety check: PassMIT
Backend Fastapi Pythonavibebuilder/claude-prime120—~997Automated safety check: PassMIT
PythonMadAppGang/claude-code283—~2.8kAutomated safety check: NotesMIT
Fastapi Appccplugins/awesome-claude-code-plugins967—~1.1kAutomated safety check: NotesApache-2.0
Mastering Python SkillSpillwaveSolutions/agent-brain120—~1.4kAutomated safety check: NotesMIT

Similar skills

  • Fastcrud

    benavlabs/fastcrud

    A skill your agent uses when building or modifying CRUD endpoints with FastCRUD (the fastcrud PyPI package) in a FastAPI project — covers FastCRUD, crudrouter, EndpointCreator, FilterConfig…

    1.6k GitHub stars~5k tokensUpdated 13 days ago
    Backend & APIsAuto-check passed
  • Backend Fastapi Python

    avibebuilder/claude-prime

    A skill your agent uses for any Python backend work in this project: building FastAPI endpoints, writing service functions, defining Pydantic/SQLModel schemas, running Alembic migrations, or…

    120 GitHub stars~997 tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Python

    MadAppGang/claude-code

    A skill your agent uses when building FastAPI applications, implementing async endpoints, setting up Pydantic schemas, working with SQLAlchemy, or writing pytest tests for Python backend services.

    283 GitHub stars~2.8k tokensUpdated 6 mo ago
    Backend & APIsAuto-check: notes
  • Fastapi App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs.

    967 GitHub stars~1.1k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • Mastering Python Skill

    SpillwaveSolutions/agent-brain

    Modern Python coaching covering language foundations through advanced production patterns.

    120 GitHub stars~1.4k tokensUpdated 18 days ago
    DevelopmentAuto-check: notes
  • Fastapi Pro

    davila7/claude-code-templates

    Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2.

    32k GitHub starsUsed in 7 repos~1.6k tokens
    Backend & APIsAuto-check passed

More from c0x12c/ai-toolkit

All 33 skills in this repo
  • UI UX Pro Max

    c0x12c/ai-toolkit

    UI/UX design intelligence with searchable style, palette, typography, and chart databases.

    106 GitHub stars~2.1k tokensUpdated 3 mo ago
    Auto-check passed
  • API Endpoint Creator

    c0x12c/ai-toolkit

    Creates RPC-style endpoint following layered architecture (Controller → Manager → Repository).

    106 GitHub stars~3.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Backend API Design

    c0x12c/ai-toolkit

    Design RPC-style APIs with layered architecture (Controller → Manager → Repository).

    106 GitHub stars~814 tokensUpdated 3 mo ago
    Auto-check passed
  • CI CD Patterns

    c0x12c/ai-toolkit

    CI/CD pipeline patterns for GitHub Actions, PR automation, and deployment workflows.

    106 GitHub stars~833 tokensUpdated 3 mo ago
    Auto-check passed
  • Content Engine

    c0x12c/ai-toolkit

    Turn one idea into platform-native content for X, LinkedIn, TikTok, YouTube, newsletters.

    106 GitHub stars~986 tokensUpdated 3 mo ago
    Auto-check passed
  • Database Table Creator

    c0x12c/ai-toolkit

    Creates database table with full Kotlin synchronization (SQL migration → Table → Entity → Repository → Tests).

    106 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Python Best Practices

What does Python Best Practices do?

Python/FastAPI coding standards including async patterns, Pydantic v2, SQLAlchemy 2.0, and project structure. Python Best Practices is an agent skill from c0x12c/ai-toolkit.0, and project structure.

When should I use Python Best Practices?

Python Best Practices fits situations like: writing Python code; reviewing FastAPI projects; learning FastAPI conventions.

How do I install Python Best Practices in Claude Code?

Run `npx skills add c0x12c/ai-toolkit --skill python-best-practices -a claude-code`. Or copy the skill folder (toolkit/skills/python-best-practices in c0x12c/ai-toolkit) into .claude/skills/python-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Python Best Practices in Codex?

Run `npx skills add c0x12c/ai-toolkit --skill python-best-practices -a codex`. Or copy the skill folder (toolkit/skills/python-best-practices in c0x12c/ai-toolkit) into .agents/skills/python-best-practices in your project. Codex loads it when a task matches its description.

Can I use Python Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add c0x12c/ai-toolkit --skill python-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-best-practices, .gemini/skills/python-best-practices, .github/skills/python-best-practices and .opencode/skills/python-best-practices in your project.

What does Python Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Python Best Practices is instructions for the agent only. Our summary lists: Python 3.

Does Python Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Python Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Python Best Practices use?

No licence was found for Python Best Practices or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Python Best Practices use?

About 676 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Python Best Practices?

Skills that share tags, products or a category with Python Best Practices: Fastcrud (benavlabs/fastcrud, 1.6k stars), Backend Fastapi Python (avibebuilder/claude-prime, 120 stars), Python (MadAppGang/claude-code, 283 stars) and Fastapi App (ccplugins/awesome-claude-code-plugins, 967 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Python Best Practices?

c0x12c (a GitHub organization) maintains it in c0x12c/ai-toolkit, which has 106 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on June 18, 2026.

Source: c0x12c/ai-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.