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.
npx agentmods add skills/lugassawan/swe-workbench/language-pythonnpx skills add lugassawan/swe-workbench --skill language-pythongit clone --depth 1 https://github.com/lugassawan/swe-workbenchWrote 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.
[](https://agentmods.dev/skills/lugassawan/swe-workbench/language-python)<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-python"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-python.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.01273 |
| Opus 5 | $0.00030 | $0.00636 |
| Sonnet 5 | $0.00012 | $0.00255 |
| Haiku 4.5 | $0.00006 | $0.00127 |
Grade A, and why
language-python scanned grade A with 2 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 2d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
tasks = [tg.create_task(fetch(u)) for u in urls] Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- `subprocess.run(shell=True)` with user-controlled input — use the list form. How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python
Type hints
- Annotate all function signatures;
Anyis a smell unless at a genuine boundary. - Use
dataclassfor data containers with behavior;TypedDictfor dict-shaped data at boundaries. - Prefer
Protocolover ABC when duck typing suffices — no inheritance required. from __future__ import annotationsfor forward refs in 3.9 and earlier.
from dataclasses import dataclass, field
@dataclass
class Order:
id: str
items: list[str] = field(default_factory=list)
total: float = 0.0
Errors and exceptions
- Use exceptions for exceptional paths, not flow control.
- Raise specific subclasses; catch the narrowest class you can handle.
except Exception:is almost always wrong — at minimum log and re-raise.contextlib.suppress(SomeError)for intentional ignore; bareexcept:never.
try:
result = load(path)
except FileNotFoundError:
raise MissingConfigError(path) from None
Context managers
withfor any resource with a cleanup obligation: files, locks, DB connections.@contextlib.contextmanagerfor ad-hoc managers without a full class.- Never hold a resource longer than the
withblock.
@contextlib.contextmanager
def managed_resource():
r = acquire()
try:
yield r
finally:
release(r)
Generators and iterators
- Prefer generators over materializing full lists when you only iterate once.
yield fromto delegate to sub-generators.- Reach for
itertoolsbefore writing loops:chain,islice,groupby,product.
def read_chunks(path: Path, size: int = 4096):
with open(path, "rb") as f:
while chunk := f.read(size): # walrus operator, 3.8+
yield chunk
Concurrency
- GIL caveat: threads don't parallelize CPU-bound work — use
ProcessPoolExecutorormultiprocessing. asynciofor IO-bound concurrency;asyncio.TaskGroup(3.11+) for structured fan-out.ThreadPoolExecutorfor legacy sync IO or blocking C extensions.- One event loop per process; never nest or mix loops.
What ships with it
1 file 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.
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.
- 2d ago First seen · 137 lines · 60 tokens per session scan A 4501a9b42668
language-python is a skill published in the GitHub repository lugassawan/swe-workbench (2 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,273 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
functions-development
Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…
Python Clean Architecture
This skill should be used when the user asks to "scaffold a FastAPI project", "set up clean architecture", "refactor to clean architecture", "add a new endpoint", "add a router", "add an operation", "add a repository", "review my code structure", "apply design patterns in Python", "decouple my code", "improve code…
fastapi
FastAPI best practices and conventions. Use when working with FastAPI APIs and Pydantic models for them. Keeps FastAPI code clean and up to date with the latest features and patterns, updated with new versions. Write new code or refactor and update old code.
update-public-docs
Update public API reference docs to match Python source code. Compares client.py, schema files, and config models against MDX docs and fixes any gaps. Triggers on: update docs, sync docs, update public docs, update api reference, refresh documentation.
cloudflare-workers-multi-lang
Multi-language Workers development with Rust, Python, and WebAssembly. Use when building Workers in languages other than JavaScript/TypeScript, or when integrating WASM modules for performance-critical code.
language-idioms-refiner
Facilitate a structured conversation to define language-specific idioms and patterns for a repository. Produces a language-idioms.md document consumed by multiple atoms to adapt pseudocode defaults to the project's language. Use when setting up a new project, switching languages, or when the user says 'setup…