loom-python

loom-python is a skill for Claude Code, Codex from cosmix/loom. It costs 14 tokens per session (9,405 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,405 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.09405
Opus 5.5 $0.00006 $0.03762
Sonnet 5.5 $0.00003 $0.01881
Haiku 4.5 $0.00001 $0.00941

Measured 13d ago against content hash 2c698460fec0, 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 13d 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 tests/test_x.py -k name (auto-syncs first; no manual activate; bare uv run pytest is the stage gate's)
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. 13d ago Changed 2c698460fec0
  2. 2mo ago Changed · +29 lines 0e06fe32db6e
  3. 2mo ago Changed · -55 tokens per session 739a77be1ad0
  4. 3mo 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 (66 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 9,405 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

loom-python compared with skills from other repositories

loom-python next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-pythoncosmix/loomSkill66yesterdayMITA14Claude Code, Codex
authoring-dagsastronomer/agentsSkill465todayApache-2.0A93Claude Code
fastmcpmetaspartan/cybaraSkill418d agoMITA20Claude Code, Codex
python-to-javaAdamBien/airailsSkill76todayMITA118Claude Code, Codex
aws-lambda-python-integrationgiuseppe-trisciuoglio/developer-kitSkill3732mo agoMITA94Claude Code
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code