python-uv: Instructions file for Claude Code

CLAUDE.md

python-uv CLAUDE.md is an instructions file for Claude Code from a5chin/python-uv. It costs 1,259 tokens per session, scanned A, original, MIT.

Development instructions for a Python project template and utility package managed with uv, a Python package and environment manager, and Ruff, a code checker and formatter.

In plain words
What is it for?
Installing dependencies, running tests with coverage, formatting Python and SQL, and checking code quality.
Why use it?
They collect the project’s setup, dependency, testing, formatting, and code-quality commands in one place.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is a5chin/python-uv's own configuration. It tells Claude Code how to work on python-uv itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything python-uv configures →

Reuse

Borrowing it

Nothing to install: this file belongs to a5chin/python-uv. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/a5chin/python-uv/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/a5chin/python-uv

Made for: Claude Code.

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 python-uv CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/a5chin/python-uv/claude-md/github.svg)](https://agentmods.dev/instructions/a5chin/python-uv/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/a5chin/python-uv/claude-md"><img src="https://agentmods.dev/badge/instructions/a5chin/python-uv/claude-md/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 python-uv CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/a5chin/python-uv/claude-md"><img src="https://agentmods.dev/badge/instructions/a5chin/python-uv/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,259 This file is loaded in full into every session.
When invoked 1,259 The same file — it is already loaded in full.
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.01259 $0.01259
Opus 5.5 $0.00504 $0.00504
Sonnet 5.5 $0.00252 $0.00252
Haiku 4.5 $0.00126 $0.00126

Measured 29d ago against content hash 02f4d9110afa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-uv CLAUDE.md 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 29d 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.

CLAUDE.md · 85 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. It only holds agent-specific rules and the minimum commands; everything else is in docs/ (see Documentation Map).

Project Overview

A Python development environment template using uv (package manager), Ruff (linter/formatter), and ty (type checker). It also ships a reusable tools/ package (Logger, Settings, Timer).

Essential Commands

uv sync                                     # Install dependencies
uv add <package>                            # Add a dependency (--dev for dev dependencies); never use pip
uv run nox -s fmt -- --ruff --sqruff        # Format (without flags, nothing runs)
uv run nox -s lint -- --ruff --sqruff --ty  # Lint and type check (without flags, nothing runs)
uv run nox -s test                          # Tests with coverage (75% minimum)
uv run pre-commit run --all-files           # All pre-commit hooks

Run all of the above before opening a PR. Other options: Task Automation with nox.

Rules for Claude Code

Code and tests

  • Follow Code Standards: type hints and docstrings on public APIs, line length 88.
  • Name test files test__*.py (double underscore) and mirror tools/ in tests/. Coverage must stay at 75% or above (branch coverage included).
  • When adding a utility to tools/, add or update its page in docs/guides/tools/.

Documentation

  • Each topic has exactly one source of truth under docs/ (see Documentation Map). Edit only that page.
  • Never copy documentation content into README.md, CONTRIBUTING.md, or this file; link to the docs/ page instead.
  • Configuration pages include the real config files with --8<-- snippets; do not paste config contents into docs.
  • After changing docs, run uv run mkdocs build --strict. Register new pages in the nav of mkdocs.yml.

Read the full file on GitHub · 85 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. 29d ago Changed · -209 lines · -906 tokens per session 02f4d9110afa
  2. 2mo ago First seen · 294 lines · 2,165 tokens per session scan A 82e38420914c

Subscribe to this mod's changes

python-uv CLAUDE.md is an instructions file published in the GitHub repository a5chin/python-uv (372 stars, last pushed 5d ago), licensed MIT. It adds 1,259 tokens to every session, about $0.0050 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.

Related

python-uv CLAUDE.md compared with instructions from other repositories

python-uv CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-uv CLAUDE.mda5chin/python-uvInstructions file3725d agoMITA1,259Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode