python-linting

python-linting is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 45 tokens per session (714 once invoked), scanned A, original, Apache-2.0.

A Python code-checking and formatting skill. Python is a programming language; these tools find style and type problems and check whether files follow the project's formatting rules.

In plain words
What is it for?
Use it to check Python files with Ruff or, when unavailable, Flake8, Black, isort, and mypy. It reports findings by file and line and displays proposed formatting differences.
Why use it?
It finds common code-quality issues before review or deployment and shows formatting changes without applying them automatically. It can also run mypy when the project uses type hints, which describe the kinds of values code should accept.

Skill for Claude CodeCodex

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

Good fit Use it to check Python files with Ruff or, when unavailable, Flake8, Black, isort, and mypy. It reports findings by file and line and displays proposed formatting differences.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/python-linting"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/python-linting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 714 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.00045 $0.00714
Opus 5.5 $0.00018 $0.00286
Sonnet 5.5 $0.00009 $0.00143
Haiku 4.5 $0.00005 $0.00071

Measured 15d ago against content hash 86d2161c11d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-linting 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 15d 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-linting/SKILL.md · 97 lines

How it starts

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

Python Linting Skill

Run this skill when asked to lint, format, check style, or check types for Python code.

Step 1 — Detect available tooling

Check which linting/formatting tools are configured or installed, in order of preference:

# Config files (indicate which tool the project already uses)
ls pyproject.toml setup.cfg .flake8 mypy.ini 2>/dev/null

# Installed tools
which ruff black flake8 mypy isort 2>/dev/null

Prefer ruff if configured or installed — it replaces flake8, isort, and much of pylint with a single fast tool. Fall back to flake8 + black + isort if ruff is not available. Do not install new tools without asking the user first.


Step 2 — Run linting (read-only check)

# Preferred
ruff check .

# Fallback
flake8 .

Report all findings grouped by file, with line numbers and rule codes.


Step 3 — Run formatting check

# Preferred
ruff format --check --diff .

# Fallback
black --check --diff .
isort --check-only --diff .

Show the proposed diff to the user before applying any formatting changes.


Step 4 — Run type checking (if type hints are used)

mypy .

Skip this step if the project has no type hints and no mypy configuration.


Step 5 — Apply fixes (only with user confirmation)

# Preferred
ruff check --fix .
ruff format .

# Fallback
black .
isort .

Only run auto-fix commands after showing the user what will change and getting explicit confirmation. Never auto-fix mypy type errors — these require manual code changes.


Standard conventions enforced

  • Line length: 88 (black/ruff default) or 79 (PEP 8 strict) — follow whatever the project's config specifies; do not override it.
  • Import order: standard library, then third-party, then local — grouped and alphabetized (isort/ruff default).
  • Naming: snake_case for functions/variables, PascalCase for classes, UPPER_SNAKE_CASE for constants (PEP 8).
  • No unused imports or variables.
  • No bare except: clauses — always catch specific exceptions.

Read the full file on GitHub · 97 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. 15d ago First seen · 97 lines · 45 tokens per session scan A 86d2161c11d0

Subscribe to this mod's changes

python-linting is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 15d ago), licensed Apache-2.0. It adds 45 tokens to every session and 714 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-09-23.

Related

Other skills, from other repositories

prismer-python-debugpy

Debug Python: pdb REPL + debugpy remote (DAP).

Prismer-AI/PrismerCloud · 19 tokens

python-performance-optimization

Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.

beel-collab/presets.dev · 35 tokens

python-code-quality

Code quality checks, linting, formatting, and type checking commands for the Agent Framework Python codebase. Use this when running checks, fixing lint errors, or troubleshooting CI failures.

microsoft/agent-framework · 40 tokens

plugin-architecture-patterns

Design, implement, or diagnose Xberg plugin traits, typed registries, priority collisions, lifecycle, native extractors, and Alef-generated Python plugin bridges. Load for plugin-system work, not ordinary extractor parsing.

xberg-io/xberg · 49 tokens

test-corpus

The testdocuments submodule is a bucket-fetched fixture corpus that is not committed. This skill covers readtestfixture, missing fixtures, valid A/B controls, and submodule push order. Load before running Rust tests on a fresh clone, setting up an A/B control, adding a fixture-backed test, or diagnosing…

xberg-io/xberg · 72 tokens

agents-sdk-dotnet-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (Microsoft.Agents.Hosting.AspNetCore and related packages) in C# / .NET. Trigger on any of these symptoms: build or C# compile errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, appsettings.json…

microsoft/Agents · 136 tokens