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 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/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.
<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="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00138 | $0.01068 |
| Opus 5.5 | $0.00055 | $0.00427 |
| Sonnet 5.5 | $0.00028 | $0.00214 |
| Haiku 4.5 | $0.00014 | $0.00107 |
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 1mo 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 supports Python 3.12–3.15 (
requires-python = ">=3.12,<3.16"; Docker and CI use 3.15). - 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.
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.
- 1mo ago Changed 709ad8e8c3b8
- 3mo 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 (111 stars, last pushed today), licensed MIT. It adds 138 tokens to every session and 1,068 once invoked, about $0.0006 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.
modern-python compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| modern-pythonantoinebou12/uml-mcp | Skill | 111 | today | MIT | A | 138 | Claude Code, Codex |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 60k | 4d ago | MIT | A | 44 | Claude Code |
| pennylaneK-Dense-AI/scientific-agent-skills | Skill | 60k | 4d ago | MIT | A | 74 | Claude Code |
| holoscan-install-wheelNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 34 | Claude Code, Codex |
| python-engineering-guidelinesanywhere-labs/Agents-Anywhere | Skill | 4.0k | today | Apache-2.0 | A | 75 | Codex |
| future-self-liteTHU-MAIC/OpenMAIC | Skill | 46k | today | MIT | A | 20 | Claude Code, Codex |
| rocm-kernelshuggingface/kernels | Skill | 804 | today | Apache-2.0 | A | 93 | Claude Code |