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/antoinebou12/uml-mcp/modern-pythonnpx skills add antoinebou12/uml-mcp --skill modern-pythongit clone --depth 1 https://github.com/antoinebou12/uml-mcpWrote 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/antoinebou12/uml-mcp/modern-python)<a href="https://agentmods.dev/skills/antoinebou12/uml-mcp/modern-python"><img src="https://agentmods.dev/badge/skills/antoinebou12/uml-mcp/modern-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 | $0.00138 | $0.01053 |
| Opus 5 | $0.00069 | $0.00526 |
| Sonnet 5 | $0.00028 | $0.00211 |
| Haiku 4.5 | $0.00014 | $0.00105 |
Grade A, and why
modern-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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Modern Python
Modern Python tooling and practices: uv for dependencies, ruff for lint/format, ty for type checking, pytest for tests. Use for this project and when setting up or refactoring Python codebases.
When to Use
- Setting up or changing Python project structure and tooling
- Replacing pip/virtualenv with uv
- Replacing flake8/black/isort with ruff, or mypy with ty
- Adding pre-commit hooks and security scanning
- Writing or reviewing tests with pytest and coverage
Legacy Command Guidance
Prefer uv over raw python/pip. When about to run legacy commands, use:
| Legacy command | Use instead |
|---|---|
python |
uv run python |
python script.py |
uv run script.py |
pip install pkg |
uv add pkg or uv run --with pkg |
pip uninstall pkg |
uv remove pkg |
pip freeze |
uv export |
python -m pip install |
uv add / uv sync |
Commands that already use uv run (e.g. uv run pytest) do not need changing.
Project Structure and pyproject.toml
- Layout: Prefer a
src/layout (package undersrc/<package_name>/). This project uses top-level packages (mcp_core,tools); when adding new packages, keep them at repo root or under a clear namespace. - Config: Single
pyproject.tomlat repo root. - Python: This repo targets Python 3.12 only (
requires-pythoninpyproject.toml). - Dependency groups (PEP 735): Put dev/test/lint deps in dependency groups where the tool supports them.
Linting and Formatting (ruff)
- Use ruff for both linting and formatting (replaces flake8, black, isort, pyupgrade).
- Configure in
pyproject.tomlunder[tool.ruff]and[tool.ruff.format].
Run:
uv run ruff check .uv run ruff format .
Fix auto-fixable issues: uv run ruff check --fix .
Type Checking (ty)
- Use ty instead of mypy/pyright for faster type checking when introducing it.
- Configure in
pyproject.tomlunder[tool.ty]if needed.
Run: uv run ty check
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.
- 4d ago First seen · 93 lines · 138 tokens per session scan A f3163ae4a4d4
modern-python is a skill published in the GitHub repository antoinebou12/uml-mcp (97 stars, last pushed yesterday), licensed MIT. It adds 138 tokens to every session and 1,053 once invoked, about $0.0007 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-30.
Other skills, from other repositories
detailed-design
Skill for detailed design — class diagrams, sequence diagrams, API contracts, database schema design, and error handling strategy.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
finishing-a-development-branch
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work.
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code.