loom-python

loom-python is a skill for Claude Code, Codex from cosmix/loom. It costs 14 tokens per session (9,372 once invoked), scanned A, original, MIT.

Python development guidance covers production Python code, including web applications, data processing, machine learning, asynchronous programs, typing, testing, packaging, and linting.

In plain words
What is it for?
Use it for FastAPI, Django, Flask, pandas, NumPy, scikit-learn, PyTorch, pytest, type hints, uv, Poetry, Ruff, mypy, and Black work.
Why use it?
It helps avoid common Python and tooling mistakes while fitting changes to the repository's existing package manager and configuration.

Skill for Claude CodeCodex

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

Good fit Use it for FastAPI, Django, Flask, pandas, NumPy, scikit-learn, PyTorch, pytest, type hints, uv, Poetry, Ruff, mypy, and Black work.

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

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 loom-python

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/loom-python"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,372 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 52
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
How audits are shown
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.00014 $0.09372
Opus 5.5 $0.00006 $0.03749
Sonnet 5.5 $0.00003 $0.01874
Haiku 4.5 $0.00001 $0.00937

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

Security

Grade A, and why

loom-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 22d 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/loom-python/SKILL.md · 638 lines

How it starts

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

Python Language Expertise

Overview

Idiomatic, production-grade Python: modern typing, async, packaging, and the web/data/ML ecosystem. Assumes competence — the value is in what is easy to get wrong (interning, mutable defaults, blocking the event loop, GIL, dataclass/Pydantic boundaries), not syntax tutorials.

Tooling (uv / ruff / mypy)

Ruff is a strong default for linting and formatting. uv is a capable project and environment manager, but preserve the repository's existing package manager and lockfile unless a migration is explicitly requested.

uv — a single tool for project environments, locking, Python installation, and pip-compatible workflows. Use it for new work or repositories that already use it; do not treat it as an implicit replacement for Poetry or another established workflow.

Task Command
New project uv init (writes pyproject.toml)
Add / remove dep uv add httpx / uv remove httpx (updates pyproject.toml + uv.lock)
Add dev dep uv add --dev pytest
Sync env from lock uv sync (creates .venv, exact/reproducible)
Run in project env uv run pytest (auto-syncs first; no manual activate)
Install a Python uv python install 3.12
Ephemeral tool uvx ruff check (= uv tool run)
pip shim uv pip install ... (drop-in, no project file)
  • In a uv-managed project, use uv add/uv remove so the manifest and uv.lock stay in sync; use uv sync --frozen in CI to fail on drift.

ruff — single linter+formatter replacing flake8, isort, pyupgrade, pydocstyle, autoflake, and much of bandit.

  • ruff check --fix (lint+autofix), ruff format (near-identical to black, replaces it).
  • Config lives under [tool.ruff.lint] since 0.1 — top-level select is deprecated and warns.
  • Useful rule groups: E/W pycodestyle, F pyflakes, I isort, UP pyupgrade (keeps typing current), B bugbear (catches mutable defaults, lru_cache on methods), SIM, S bandit-security, ASYNC, PL pylint, RUF. Suppress with # noqa: E501 (never bare # noqa).

Read the full file on GitHub · 638 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. 22d ago Changed · +29 lines 0e06fe32db6e
  2. 1mo ago Changed · -55 tokens per session 739a77be1ad0
  3. 1mo ago First seen · 609 lines · 69 tokens per session scan A 0a01052f7b3f

Subscribe to this mod's changes

loom-python is a skill published in the GitHub repository cosmix/loom (62 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 9,372 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-30.

Related

Other skills, from other repositories

authoring-dags

Workflow and best practices for writing Apache Airflow DAGs. Use when creating a new DAG, write pipeline code, handling questions about DAG patterns and conventions or extending an existing DAG with a follow-up/downstream task. ANY request shaped like 'add a DAG named X', 'write a pipeline', 'add a task that runs…

astronomer/agents · 93 tokens

aws-lambda-python-integration

Provides AWS Lambda integration patterns for Python with cold start optimization. Use when deploying Python functions to AWS Lambda, choosing between AWS Chalice and raw Python approaches, optimizing cold starts, configuring API Gateway or ALB integration, or implementing serverless Python applications. Triggers…

giuseppe-trisciuoglio/developer-kit · 94 tokens

fastmcp

Build, test, inspect, and deploy Python MCP servers with FastMCP.

metaspartan/cybara · 20 tokens

python-to-java

Convert Python scripts to zero-dependency Java 25 CLI programs. Use when asked to migrate, convert, port, or rewrite Python scripts (.py) to Java, or when translating a Python codebase to Java CLI scripts or apps. Triggers on "convert Python to Java", "migrate Python", "port to Java", "rewrite in Java", or when a .py…

AdamBien/airails · 118 tokens

idiomatic-go

Apply Go community idioms for API and package design, error and concurrency patterns, naming (initialisms, stutter, receivers), generics vs interfaces, and Go code review — including PR or diff review, questions about "the Go way", pointer vs value receivers, channels vs mutexes, and building Go language tooling…

TypeFox/agent-skills · 137 tokens

go-documentation

Write idiomatic Go doc comments that render correctly on pkg.go.dev — package comments, doc.go, exported-symbol comments, testable Example functions, deprecation notices — and publish or debug modules on pkg.go.dev (pkgsite, the module proxy). Use when writing or reviewing Go documentation, or when a developer used to…

TypeFox/agent-skills · 98 tokens