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.
git clone --depth 1 https://github.com/acaprino/daodanWrote 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/commands/acaprino/daodan/python-audit)<a href="https://agentmods.dev/commands/acaprino/daodan/python-audit"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/python-audit.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.00111 | $0.01242 |
| Opus 5 | $0.00056 | $0.00621 |
| Sonnet 5 | $0.00022 | $0.00248 |
| Haiku 4.5 | $0.00011 | $0.00124 |
Grade A, and why
python-audit 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 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.
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 — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Audit
End-to-end Python code-quality audit. Runs the five tools that matter most, aggregates findings, and outputs a prioritized fix list.
CRITICAL RULES
- Use uv for tool execution --
uvx ruff,uvx mypy,uvx vulturewhen not in project deps;uv run ...when they are. - Run all phases in parallel where possible -- ruff + vulture + complexity can run concurrently; type-check is separate.
- Never auto-fix without approval -- always show the diff / finding count first, ask before applying.
- Scale output to scope -- for small modules report everything; for 10K+ file repos summarize and prioritize.
Procedure
Phase 1 -- Lint (ruff)
uvx ruff check "$ARGUMENTS" --output-format=json > .python-audit/ruff.json
uvx ruff format --check "$ARGUMENTS"
Summarize:
- Total issues by rule category (E/F/W/B/I/N/UP/PL/RUF/PERF)
- Top 5 rules by frequency
- Auto-fixable count (
ruff check --fixpreview)
Phase 2 -- Types (mypy or pyright)
Detect the project's type checker:
mypy.ini,[tool.mypy]in pyproject -> mypypyrightconfig.json,basedpyrightin deps -> pyright / basedpyright- Neither -> run mypy in strict mode
uvx mypy --config-file pyproject.toml "$ARGUMENTS" > .python-audit/mypy.txt
# or
uvx pyright "$ARGUMENTS" --outputjson > .python-audit/pyright.json
Summarize:
- Total errors / warnings
- Hot files (top 5 by error count)
- Missing-annotation clusters (
disallow_untyped_defsviolations)
Phase 3 -- Dead Code (vulture + ruff unused)
uvx vulture "$ARGUMENTS" --min-confidence 80 > .python-audit/vulture.txt
uvx ruff check "$ARGUMENTS" --select F401,F811,F841 --output-format=json > .python-audit/ruff-unused.json
Apply framework-aware filtering:
- Django: ignore
admin.pyhandlers,models.Meta,signals.py - FastAPI: ignore
@app.*/@router.*decorated functions - pytest: ignore
conftest.pyfixtures,test_*functions - click: ignore
@click.command()/@click.group()targets
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 · 133 lines · 111 tokens per session scan A 1f0baa15305f
python-audit is a command published in the GitHub repository acaprino/daodan (8 stars, last pushed yesterday), licensed MIT. It adds 111 tokens to every session and 1,242 once invoked, about $0.0006 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-09-05.
Other commands, from other repositories
validate-content
Run all content validators locally — same gates the CI workflow pack-content.yml enforces.
comprehensive-unit-testing-with-pytest
Aims for high test coverage using pytest, testing both common and edge cases.
CLAUDE_CODE_F090_SDK_ONLY
A software-maintenance task covering JavaScript and Python software development kits, or SDKs. An SDK is a package that helps developers use a service from their own code.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.