Langsung ke konten
Skillpedia
API & server (backend)48k Β· #5545

python-development-python-scaffold

Fungsinya

Agent ini membuat struktur dasar untuk proyek Python. Agent ini menyusun file dan folder yang dibutuhkan agar Anda bisa mulai mengembangkan, baik untuk membuat website, alat command-line, maupun library.

Kapan dipakai

  • βœ“Saat memulai proyek Python baru.
  • βœ“Saat Anda membutuhkan struktur yang rapi untuk kode Anda.
  • βœ“Untuk memastikan proyek Anda mengikuti praktik terbaik pengembangan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/python-development-python-scaffold/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan proyek FastAPI untuk web API.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent ini menganalisis jenis proyek yang Anda inginkan (API, website, library, dll.), lalu membuat struktur folder dan file yang sesuai. Agent ini juga mengonfigurasi alat pengembangan yang penting.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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",

…
Pertanyaan umum

Jenis proyek apa saja yang bisa dibuat?

Agent ini bisa membuat proyek web API dengan FastAPI, aplikasi web full-stack dengan Django, library yang bisa digunakan ulang, alat command-line (CLI), dan proyek Python umum.

Apa itu 'type hints'?

Type hints adalah anotasi dalam kode yang menunjukkan tipe data yang diharapkan (seperti teks atau angka). Ini membantu mencegah kesalahan dan membuat kode lebih mudah dipahami.

Apa itu 'scaffolding'?

Scaffolding adalah proses membuat struktur dasar proyek secara otomatis. Cara ini menghemat waktu dan memastikan konvensi yang berlaku tetap diikuti.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
48k
Peringkat
#5545
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa