neo-python

neo-python is a skill for Claude Code, Codex from Benknightdark/neo-skills. It costs 51 tokens per session (911 once invoked), scanned A, original, MIT.

A guide for building and maintaining Python 3.10 or newer code, including its structure, types, asynchronous work, and tests.

In plain words
What is it for?
Use it to write, review, debug, or design Python applications with type hints, asynchronous tasks, data classes, pattern matching, testing, and code checks.
Why use it?
It helps keep Python code readable and maintainable while accounting for the project's package setup and runtime needs.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/benknightdark/neo-skills/neo-python
Any agent
npx skills add Benknightdark/neo-skills --skill neo-python
Clone the repo
git clone --depth 1 https://github.com/Benknightdark/neo-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 neo-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-python.svg)](https://agentmods.dev/skills/benknightdark/neo-skills/neo-python)
Your own site
<a href="https://agentmods.dev/skills/benknightdark/neo-skills/neo-python"><img src="https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-python.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 911 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.00911
Opus 5 $0.00026 $0.00456
Sonnet 5 $0.00010 $0.00182
Haiku 4.5 $0.00005 $0.00091

Measured 5d ago against content hash 636b88d2b8dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

neo-python 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 5d 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/neo-python/SKILL.md · 66 lines

How it starts

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

Python 3.10+ Expert Skill

Trigger On

  • The user asks to write, debug, review, or refactor Python code.
  • Working in a repository containing *.py, pyproject.toml, requirements.txt, Pipfile, or poetry.lock.
  • Requires asynchronous programming (asyncio), type hinting, or modern Python feature recommendations.
  • The project needs setup for testing frameworks (pytest) or static analysis tools (ruff, mypy).

Workflow

  1. Perceive:
    • Inspect the project root to identify package management tools: pyproject.toml (Poetry/PDM/Ruff), requirements.txt (pip), or environment.yml (Conda).
    • Probe for Python version requirements (ensure compatibility with 3.10+ minimum).
    • Identify the application type: Web API (FastAPI, Flask, Django), Data Science (Pandas, PyTorch), or CLI tools.
  2. Reason:
    • Evaluate if the current code follows modern Python (3.10+) idioms (e.g., match/case, | union types).
    • Decide if type checking (MyPy/Pyright) or auto-formatting (Ruff/Black) needs to be introduced.
    • Recommend appropriate architectural patterns based on project scale.
  3. Act:
    • Write Python code with complete Type Hints, prioritizing the X | Y syntax.
    • Prefer modern language features: match statements (3.10+), TaskGroup (3.11+), and new generic syntax (3.12+).
    • Ensure code passes static analysis and unit tests.

Coding Standards

  • Type Hinting: Strongly recommended for all function signatures. Use 3.10+ union syntax like list[int | str].
  • PEP 8 Compliance: Follow official style guidelines. Recommended to use ruff as a linter and formatter for consistency.
  • Async Processing: Use 3.11+ asyncio.TaskGroup to manage concurrent tasks.
  • Error Handling: Use specific exception types and leverage 3.11+ ExceptionGroup and except* syntax.

Tooling Recommendations

  • Linter / Formatter: ruff (high performance and highly integrated).
  • Type Checker: mypy or pyright.
  • Testing: pytest with pytest-asyncio or pytest-cov.
  • Package Management: Poetry or uv to ensure dependency locking and environment consistency.

Read the full file on GitHub · 66 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 66 lines · 51 tokens per session scan A 636b88d2b8dd

Subscribe to this mod's changes

neo-python is a skill published in the GitHub repository Benknightdark/neo-skills (7 stars, last pushed 4d ago), licensed MIT. It adds 51 tokens to every session and 911 once invoked, about $0.0003 per session on Opus 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

rename-refs

Atomic rename of Python symbols or modules via the structural index — static callers, import sites, all re-exports, Sphinx cross-refs; optional deprecated alias (--deprecate) or hard-delete (--remove-if-no-callers). TRIGGER: "rename X to Y" (function/class/method/module), "move module X to Y", "update all references…

Borda/AI-Rig · 126 tokens

query-code

Query Codemap's Python structural index for dependencies, callers, paths, symbols, blast radius, test impact, mocks, fixtures, subprocesses, and static gaps. Trigger for "what depends on", "who calls", "imports of", "dependency graph", or "blast radius". Skip for renames, text search, non-Python repositories, or index…

Borda/AI-Rig · 78 tokens

pandas

Use when analyzing or transforming tabular data in Python. Covers vectorized operations, memory-efficient dtypes, correct joins, groupby patterns, and avoiding the silent errors pandas makes easy.

nimadorostkar/Claude-Skills-collection · 40 tokens

django

Use when building Django applications. Covers ORM query performance, model design, migrations, Django REST Framework, security defaults, and testing.

nimadorostkar/Claude-Skills-collection · 28 tokens

fastapi

Use when building APIs with FastAPI. Covers dependency injection, Pydantic v2 validation, async database access, authentication, background tasks, and testing.

nimadorostkar/Claude-Skills-collection · 34 tokens

python

Use when writing, reviewing, or modernizing Python 3.11+ code. Produces fully type-annotated modules, async I/O, dataclasses and protocols, pytest suites, and a lint/type gate built on ruff and mypy --strict.

nimadorostkar/Claude-Skills-collection · 55 tokens