python-setup

python-setup is a command for Claude Code from tasanakorn/cc-marketplace. It costs 0 tokens per session (1,962 once invoked), scanned C, original, MIT.

A setup assistant for modern Python projects using uv, a tool for managing Python environments and packages. It detects the current folder and Python version, then helps create a project with a selected project style and basic development tools.

In plain words
What is it for?
Use it to start a command-line, terminal-interface, or general Python project, choose its framework, check that uv is installed, and create the initial structure.
Why use it?
It removes repetitive setup decisions and keeps the initial project configuration small and consistent.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the python-dev plugin — 2 skills, 1 command shipped together

Good fit Use it to start a command-line, terminal-interface, or general Python project, choose its framework, check that uv is installed, and create the initial structure.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tasanakorn/cc-marketplace/python-setup
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.

Clone the repo
git clone --depth 1 https://github.com/tasanakorn/cc-marketplace

Made for: Claude Code.

Or install python-dev, the plugin that ships this one along with the rest of its 2 skills, 1 command.

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/tasanakorn/cc-marketplace/python-setup/github.svg)](https://agentmods.dev/commands/tasanakorn/cc-marketplace/python-setup)
Your own site
<a href="https://agentmods.dev/commands/tasanakorn/cc-marketplace/python-setup"><img src="https://agentmods.dev/badge/commands/tasanakorn/cc-marketplace/python-setup/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-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/tasanakorn/cc-marketplace/python-setup"><img src="https://agentmods.dev/badge/commands/tasanakorn/cc-marketplace/python-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,962 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00000 $0.01962
Opus 5.5 $0.00000 $0.00785
Sonnet 5.5 $0.00000 $0.00392
Haiku 4.5 $0.00000 $0.00196

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

Security

Grade C, and why

python-setup scanned grade C with 2 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **macOS/Linux**: `curl -LsSf https://astral.sh/uv/install.sh | sh`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **macOS/Linux**: `curl -LsSf https://astral.sh/uv/install.sh | sh`
plugins/python-dev/commands/python-setup.md · 356 lines

How it starts

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

You are a Python project setup assistant specializing in modern Python development practices with uv tooling.

IMPORTANT DEFAULTS - DO NOT ASK:

  • Work in current directory (don't create new folder)
  • Package name from current folder name (auto-convert to valid identifier)
  • Python version from current environment (detect with python --version)
  • No tests by default (skip tests/ directory)
  • Minimal dependencies (only ruff + mypy for dev)

When this command is invoked, follow these steps:

Step 1: Auto-Detect Defaults

Automatically detect without asking:

  1. Current directory as project root
  2. Package name from folder name (e.g., my-app → my_app)
  3. Python version from environment:
    python --version  # Use this version
    

Step 2: Ask Single Merged Question

Ask ONE question that combines project type and libraries:

What type of project? (press Enter for CLI with click+rich)
[1] CLI with click+rich (default)
[2] CLI with argparse
[3] CLI with typer
[4] TUI with textual
[5] Generic Python Project

User can just press Enter to select [1] CLI with click+rich as default.

Step 3: Check Prerequisites

Verify that uv is installed:

uv --version

If not installed, provide installation instructions:

  • macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh
  • Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Step 4: Skip - Question Already Asked

(Project type and libraries were already selected in Step 2)

Step 5: Create Minimal Project Structure

Create in current directory (./), not in a new subfolder!

./                               # Current directory (project root)
├── src/
│   └── package_name/
│       ├── __init__.py          # Package initialization
│       └── __main__.py          # Entry point
├── pyproject.toml               # Minimal configuration
├── README.md                    # Documentation
└── .gitignore                   # Git ignore patterns

Read the full file on GitHub · 356 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 · 356 lines · 0 tokens per session scan C 87cb836dd56e

Subscribe to this mod's changes

python-setup is a command published in the GitHub repository tasanakorn/cc-marketplace (2 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,962 tokens. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.