Skip to content
Back to skills

Project Setup

ASecurity

Python project setup guide. Use when creating a new Python project, configuring uv, setting up pyproject.toml, or bootstrapping a FastAPI service.

  • 30 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 8, 2026
ai-agentspythongofastapiapi

Works with

  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill project-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Project Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Project Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-project-setup/badge)](https://www.skillsdirectory.com/skills/majiayu000-project-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: python-project-setup
description: Python project setup guide. Use when creating a new Python project, configuring uv, setting up pyproject.toml, or bootstrapping a FastAPI service.
---

# Python Project Setup

## New Project Checklist

1. `uv init --package my-project`
2. Set `.python-version` to `>= 3.12`
3. Configure `pyproject.toml` (see `references/pyproject.template.toml`)
4. Create `src/{package}/` layout
5. Set up `tests/` with `conftest.py`
6. Add CI checks for `ruff format`, `ruff check`, `ty check`

## Rules

- **Must** use `uv` for package management
- **Must** use `src/` layout with package name matching project
- **Must** use lifespan for FastAPI startup/shutdown (not `@app.on_event`)
- **Must** add health check endpoint at `/health`
- **Must** use `pydantic-settings` with `.env` file support for config
- **Must** validate all environment variables at startup (fail fast)
- **Never** use `os.getenv()` directly—always go through settings model
- **Should** use versioned routers (`/api/v1/`)

See `references/pyproject.template.toml` for full project configuration.
See `references/fastapi-bootstrap.md` for minimal working FastAPI app.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.