project-scaffolder: Command for Claude Code

.claude/commands/scaffold-python.md

scaffold-python is a command for Claude Code from fltman/project-scaffolder. It costs 0 tokens per session (814 once invoked), scanned A, original, MIT.

A command that sets up a new Python API project using FastAPI, with Claude Code configuration. FastAPI is a Python framework for building web APIs.

In plain words
What is it for?
Use it to start a new FastAPI project in Python.
Why use it?
It removes the initial setup work for the API and its Claude Code instructions.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is fltman/project-scaffolder's own configuration. It tells Claude Code how to work on project-scaffolder 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 project-scaffolder configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fltman/project-scaffolder. 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/fltman/project-scaffolder/main/.claude/commands/scaffold-python.md
Clone the repo
git clone --depth 1 https://github.com/fltman/project-scaffolder

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/fltman/project-scaffolder/scaffold-python"><img src="https://agentmods.dev/badge/commands/fltman/project-scaffolder/scaffold-python.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 814 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.00000 $0.00814
Opus 5.5 $0.00000 $0.00326
Sonnet 5.5 $0.00000 $0.00163
Haiku 4.5 $0.00000 $0.00081

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

Security

Grade A, and why

scaffold-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 2mo 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/commands/scaffold-python.md · 138 lines

How it starts

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

Quick Python API Project Scaffold

Quickly scaffold a new Python API project (FastAPI) with Claude Code configuration.

Arguments

$ARGUMENTS should contain: <project-name> [target-directory]

Process

1. Create Project Structure

mkdir -p $PROJECT_NAME
cd $PROJECT_NAME

Create the following structure:

$PROJECT_NAME/
├── app/
│   ├── __init__.py
│   ├── main.py
│   ├── config.py
│   ├── api/
│   │   ├── __init__.py
│   │   └── v1/
│   │       ├── __init__.py
│   │       └── endpoints/
│   ├── models/
│   │   └── __init__.py
│   ├── schemas/
│   │   └── __init__.py
│   └── services/
│       └── __init__.py
├── tests/
│   ├── __init__.py
│   └── conftest.py
├── pyproject.toml
├── requirements.txt
└── .env.example

2. Create pyproject.toml

[project]
name = "$PROJECT_NAME"
version = "0.1.0"
description = "A FastAPI application"
requires-python = ">=3.11"
dependencies = [
    "fastapi>=0.100.0",
    "uvicorn[standard]>=0.22.0",
    "pydantic>=2.0.0",
    "pydantic-settings>=2.0.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=7.0.0",
    "pytest-asyncio>=0.21.0",
    "httpx>=0.24.0",
    "ruff>=0.1.0",
    "mypy>=1.0.0",
]

[tool.ruff]
line-length = 88
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "B", "C4"]

[tool.mypy]
python_version = "3.11"
strict = true

3. Create Basic App Files

app/main.py:

from fastapi import FastAPI

app = FastAPI(title="$PROJECT_NAME")

@app.get("/health")
async def health_check():
    return {"status": "healthy"}

app/config.py:

from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    debug: bool = False
    
    class Config:
        env_file = ".env"

settings = Settings()

4. Set Up Virtual Environment

python -m venv venv
source venv/bin/activate  # or .\venv\Scripts\activate on Windows
pip install -e ".[dev]"

5. Generate CLAUDE.md

Use the python-api.md template from /templates/claude-md/. Customize for:

  • Actual project name
  • Detected package manager (pip/poetry/uv)
  • Adjusted commands

Read the full file on GitHub · 138 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. 2mo ago First seen · 138 lines · 0 tokens per session scan A 880a5fe91866

Subscribe to this mod's changes

scaffold-python is a command published in the GitHub repository fltman/project-scaffolder (88 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 814 tokens. 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

scaffold-python compared with commands from other repositories

scaffold-python next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scaffold-pythonfltman/project-scaffolderCommand889d agoMITA0Claude Code
viewsJustdvp/claude-code-templatesCommand725d agoMITA0Claude Code
fastapimfmezger/ai_agent_dotfilesCommand73mo agoMITA84Claude Code, Gemini CLI
project-builderpluginagentmarketplace/custom-plugin-pythonCommand610mo agononeA10Claude Code
api-endpointsswesmith/davila7__claude-code-templates.734b8a50Command210mo agoMITA0Claude Code
app-factoryswesmith/davila7__claude-code-templates.734b8a50Command210mo agoMITA0Claude Code
blueprintswesmith/davila7__claude-code-templates.734b8a50Command210mo agoMITA0Claude Code