python-scaffold

python-scaffold is a command for Claude Code from acaprino/daodan. It costs 64 tokens per session (1,184 once invoked), scanned A, original, MIT.

A command that creates the starting structure for a new Python project. It can set up FastAPI or Django web projects, reusable libraries, command-line tools, or general applications, with package, test, and lint configuration.

In plain words
What is it for?
Use it to bootstrap a Python project with uv for packages and environments, pytest for tests, Ruff for linting, and optional type hints and web-framework structure.
Why use it?
It removes the repetitive work of deciding folders and configuring common Python tools when starting from an empty directory. It is intended for new projects, not for adding structure to an existing one.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the python-development plugin — 9 skills, 3 commands, 3 agents shipped together

Good fit Use it to bootstrap a Python project with uv for packages and environments, pytest for tests, Ruff for linting, and optional type hints and web-framework structure.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/acaprino/daodan/python-scaffold
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.

agentmods
npx agentmods add commands/acaprino/daodan/python-scaffold
Clone the repo
git clone --depth 1 https://github.com/acaprino/daodan

Made for: Claude Code.

Or install python-development, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 3 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/acaprino/daodan/python-scaffold.svg)](https://agentmods.dev/commands/acaprino/daodan/python-scaffold)
Your own site
<a href="https://agentmods.dev/commands/acaprino/daodan/python-scaffold"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/python-scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 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,184 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00064 $0.01184
Opus 5 $0.00032 $0.00592
Sonnet 5 $0.00013 $0.00237
Haiku 4.5 $0.00006 $0.00118

Measured yesterday against content hash a28d142f6219, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

python-scaffold 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 yesterday.

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.

exports/claude/plugins/python-development/commands/python-scaffold.md · 176 lines

How it starts

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

Python Project Scaffolding

You are a Python project architecture expert. Generate complete project structures with modern tooling (uv, FastAPI, Django), type hints, testing setup, and configuration.

CRITICAL RULES

  1. Confirm before writing files. Present the project plan and get user approval before creating anything.
  2. Use uv for everything. Package management, virtual environments, running scripts.
  3. Never enter plan mode. Execute immediately.

Step 1: Determine Project Type

From $ARGUMENTS, identify:

  • Project name (required)
  • Project type from --type flag or infer from description:
    • fastapi: REST APIs, microservices, async applications
    • django: Full-stack web applications, admin panels
    • library: Reusable packages, utilities
    • cli: Command-line tools
    • generic: Standard Python applications

If type is unclear, ask:

Project: [name]

What type of project?
1. FastAPI -- REST APIs, microservices, async
2. Django -- Full-stack web, admin panels
3. Library -- Reusable package
4. CLI -- Command-line tool
5. Generic -- Standard Python application

Step 2: Present Plan & Confirm

Show the complete project structure before creating files:

Project: [name]
Type: [type]
Python: >=3.11

Directory structure:
[complete tree]

Key dependencies:
[list]

Tooling:
- Package manager: uv
- Linter: ruff
- Tests: pytest
- Type checking: mypy (library/cli only)

1. Create this project
2. Adjust -- change structure or dependencies
3. Cancel

Do NOT create any files until the user confirms.

Step 3: Scaffold

After approval, create the project:

FastAPI Project

fastapi-project/
├── pyproject.toml
├── .gitignore
├── .env.example
├── Makefile
├── src/
│   └── project_name/
│       ├── __init__.py
│       ├── main.py
│       ├── config.py
│       ├── api/
│       │   ├── __init__.py
│       │   ├── deps.py
│       │   └── v1/
│       │       ├── __init__.py
│       │       ├── endpoints/
│       │       │   ├── __init__.py
│       │       │   ├── users.py
│       │       │   └── health.py
│       │       └── router.py
│       ├── core/
│       │   ├── __init__.py
│       │   ├── security.py
│       │   └── database.py
│       ├── models/
│       │   ├── __init__.py
│       │   └── user.py
│       ├── schemas/
│       │   ├── __init__.py
│       │   └── user.py
│       └── services/
│           ├── __init__.py
│           └── user_service.py
└── tests/
    ├── __init__.py
    ├── conftest.py
    └── api/
        ├── __init__.py
        └── test_users.py

Read the full file on GitHub · 176 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. yesterday First seen · 176 lines · 64 tokens per session scan A a28d142f6219

Subscribe to this mod's changes

python-scaffold is a command published in the GitHub repository acaprino/daodan (8 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 1,184 once invoked, about $0.0003 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.