Skip to content
Skillpedia
APIs & servers (backend)48k Β· #5545

python-development-python-scaffold

What it does

This agent creates the basic structure for a Python project. It organizes the necessary files and folders to start developing, whether for building a website, a command-line tool, or a library.

When to use it

  • βœ“When starting a new Python project.
  • βœ“When you need an organized structure for your code.
  • βœ“To ensure your project follows development best practices.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/python-development-python-scaffold/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/python-development-python-scaffold/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCreate a FastAPI project for a web API.”

5 new skills a week. 1 minute to read.

How it works

The agent analyzes the project type you want (API, website, library, etc.) and generates the corresponding folder and file structure. It also configures essential development tools.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Python Project Scaffolding

You are a Python project architecture expert specializing in scaffolding production-ready Python applications. Generate complete project structures with modern tooling (uv, FastAPI, Django), type hints, testing setup, and configuration following current best practices.

Use this skill when

  • Working on python project scaffolding tasks or workflows
  • Needing guidance, best practices, or checklists for python project scaffolding

Do not use this skill when

  • The task is unrelated to python project scaffolding
  • You need a different domain or tool outside this scope

Context

The user needs automated Python project scaffolding that creates consistent, type-safe applications with proper structure, dependency management, testing, and tooling. Focus on modern Python patterns and scalable architecture.

Requirements

$ARGUMENTS

Instructions

1. Analyze Project Type

Determine the project type from user requirements:

  • FastAPI: REST APIs, microservices, async applications
  • Django: Full-stack web applications, admin panels, ORM-heavy projects
  • Library: Reusable packages, utilities, tools
  • CLI: Command-line tools, automation scripts
  • Generic: Standard Python applications

2. Initialize Project with uv

# Create new project with uv
uv init <project-name>
cd <project-name>

# Initialize git repository
git init
echo ".venv/" >> .gitignore
echo "*.pyc" >> .gitignore
echo "__pycache__/" >> .gitignore
echo ".pytest_cache/" >> .gitignore
echo ".ruff_cache/" >> .gitignore

# Create virtual environment
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

3. Generate FastAPI Project Structure

fastapi-project/
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ README.md
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .env.example
β”œβ”€β”€ 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

pyproject.toml:

[project]
name = "project-name"
version = "0.1.0"
description = "FastAPI project description"
requires-python = ">=3.11"
dependencies = [
    "fastapi>=0.110.0",
    "uvicorn[standard]>=0.27.0",
    "pydantic>=2.6.0",
    "pydantic-settings>=2.1.0",
    "sqlalchemy>=2.0.0",
    "alembic>=1.13.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=8.0.0",
    "pytest-asyncio>=0.23.0",
    "httpx>=0.26.0",
    "ruff>=0.2.0",
]

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

[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]

[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"

src/project_name/main.py:

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware

from .api.v1.router import api_router
from .config import settings

app = FastAPI(
    title=settings.PROJECT_NAME,
    version=settings.VERSION,
    openapi_url=f"{settings.API_V1_PREFIX}/openapi.json",
)

app.add_middleware(
    CORSMiddleware,
    allow_origins=settings.ALLOWED_ORIGINS,
    allow_credentials=True,
    allow_methods=["*"],
    allow_headers=["*"],
)

app.include_router(api_router, prefix=settings.API_V1_PREFIX)

@app.get("/health")
async def health_check() -> dict[str, str]:
    return {"status": "healthy"}

4. Generate Django Project Structure

# Install Django with uv
uv add django django-environ django-debug-toolbar

# Create Django project
django-admin startproject config .
python manage.py startapp core

pyproject.toml for Django:

[project]
name = "django-project"
version = "0.1.0"
requires-python = ">=3.11"
dependencies = [
    "django>=5.0.0",
    "django-environ>=0.11.0",
    "psycopg[binary]>=3.1.0",
    "gunicorn>=21.2.0",
]

[project.optional-dependencies]
dev = [
    "django-debug-toolbar>=4.3.0",

…
FAQ

What types of projects can it create?

It can create projects for web APIs with FastAPI, full-stack web applications with Django, reusable libraries, command-line tools (CLI), and generic Python projects.

What are 'type hints'?

They are annotations in the code that indicate the expected data type (like text or numbers), helping to prevent errors and making the code easier to understand.

What is 'scaffolding'?

It's the process of automatically generating the basic structure of a project, saving time and ensuring conventions are followed.

Details

Original description by the author

You are a Python project architecture expert specializing in scaffolding production-ready Python applications. Generate complete project structures with modern tooling (uv, FastAPI, Django), type hint

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#5545
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills