tools-python

tools-python is a skill for Claude Code, Codex from alexei-led/architect. It costs 118 tokens per session (1,016 once invoked), scanned A, original, MIT.

A set of tools for examining Python projects through dependency graphs, import rules, type checking, linting, complexity measures, and dead-code detection. These checks show how Python modules depend on one another and where maintenance risks may exist.

In plain words
What is it for?
It is for reviewing Python architecture, import-layer rules, module graphs, type errors, code quality, dependency hygiene, complexity hotspots, and unused code.
Why use it?
It helps verify module boundaries and dependency direction, find type or bug warnings, identify overly complex code, and detect unused code or unhealthy dependencies. The checks provide evidence for judging how well the project is divided into parts.

Skill for Claude CodeCodex

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

Good fit It is for reviewing Python architecture, import-layer rules, module graphs, type errors, code quality, dependency hygiene, complexity hotspots, and unused code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexei-led/architect/tools-python
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 alexei-led/architect --skill tools-python
Clone the repo
git clone --depth 1 https://github.com/alexei-led/architect

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexei-led/architect/tools-python"><img src="https://agentmods.dev/badge/skills/alexei-led/architect/tools-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,016 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.
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.00118 $0.01016
Opus 5.5 $0.00047 $0.00406
Sonnet 5.5 $0.00024 $0.00203
Haiku 4.5 $0.00012 $0.00102

Measured 1mo ago against content hash edd1d282d0c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tools-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.

src/skills/tools-python/SKILL.md · 107 lines

How it starts

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

Python tools

Dependency, complexity, and quality evidence for Python targets. These cover the import graph, layering contracts, type state, dead code, and dependency hygiene.

Evidence dimensions: dependency, structural, semantic (type checkers), and complexity hotspots.

When to use

Use when the system map shows pyproject.toml / setup.py / requirements. Pick to the question: layering contracts (import-linter), module graph (pydeps), types (pyright/basedpyright), lint (ruff), dependency hygiene (deptry, pipdeptree, uv tree), complexity/size (radon, lizard), dead code (vulture). Use the results to judge module boundaries, dependency direction, cohesion, and architecture fitness.

Commands

Redirect caches to $TMPDIR (RUFF_CACHE_DIR=$TMPDIR/ruff). Prefer uv run/uvx so the target env is untouched.

# Layering / boundary contracts (config in .importlinter or pyproject)
uvx --from import-linter lint-imports

# Import/module dependency graph (DOT for the system map)
uvx pydeps src/pkg --max-bacon 2 --noshow -T dot

# Type errors (semantic)
uvx pyright            # or: uvx basedpyright

# Lint (style + many bug classes)
RUFF_CACHE_DIR=$TMPDIR/ruff uvx ruff check .

# Declared-vs-used dependency mismatches
uvx deptry src

# Installed dependency tree
uvx pipdeptree            # or, for a uv project: uv tree

# Cyclomatic complexity / maintainability hotspots
uvx radon cc -s src      # or: uvx lizard src

# Dead code (unused functions/vars — confirm before trusting)
uvx vulture src

Evidence output

Record:

  • dimension: dependency, structural, semantic, or complexity hotspot.
  • source: Python command, package path, environment/tool runner, and cache location.
  • facts: import contracts, module edges, cycles, type/lint findings, dead-code hypotheses, or clean scope.
  • limits: missing deps, dynamic imports, optional deps, cache failures, or partial package coverage.

Confidence impact

  • import-linter contracts and pydeps cycles are direct dependency/boundary evidence: tools_used, raises dependency_graph_health and boundary_integrity confidence.
  • An existing import-linter contract run in CI is an enforced fitness check — count it toward architecture_fitness. A contract you'd recommend is not.
  • radon/lizard complexity flags cohesion/size hotspots (god modules); pair with the dependency graph before scoring cohesion_modularity.
  • vulture and deptry have false positives (dynamic imports, optional deps) — treat their output as hypotheses to confirm, not settled findings.

Read the full file on GitHub · 107 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. 1mo ago First seen · 107 lines · 118 tokens per session scan A edd1d282d0c7

Subscribe to this mod's changes

tools-python is a skill published in the GitHub repository alexei-led/architect (3 stars, last pushed 3mo ago), licensed MIT. It adds 118 tokens to every session and 1,016 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

python-performance-optimization

Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.

zebbern/termstack · 40 tokens

python-code-quality

Code quality checks, linting, formatting, and type checking commands for the Agent Framework Python codebase. Use this when running checks, fixing lint errors, or troubleshooting CI failures.

microsoft/agent-framework · 40 tokens

plugin-architecture-patterns

Design, implement, or diagnose Xberg plugin traits, typed registries, priority collisions, lifecycle, native extractors, and Alef-generated Python plugin bridges. Load for plugin-system work, not ordinary extractor parsing.

xberg-io/xberg · 43 tokens

test-corpus

The testdocuments submodule is a bucket-fetched fixture corpus that is not committed. This skill covers readtestfixture, missing fixtures, valid A/B controls, and submodule push order. Load before running Rust tests on a fresh clone, setting up an A/B control, adding a fixture-backed test, or diagnosing…

xberg-io/xberg · 68 tokens

idapython

IDA Pro Python scripting for reverse engineering. Use when writing IDAPython scripts, analyzing binaries, working with IDA's API for disassembly, decompilation (Hex-Rays), type systems, cross-references, functions, segments, or any IDA database manipulation. Covers ida modules (50+), idautils iterators, and common…

mrexodia/ida-pro-mcp · 77 tokens

stack-trace-python-probe

Internal helper for meta-stack-trace-investigator. Use when a Python traceback needs Python-specific root-cause checks, pytest reproducer guidance, and defensive patch targets.

opensquilla/opensquilla · 40 tokens