Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

python-project

Skill by majiayu000

Python Project Architecture is a guide skill that sets out a modern project layout for APIs, CLI tools and data pipelines. It covers uv, Ruff, Pydantic, FastAPI and async patterns. It suits developers starting new Python projects in 2025.

  • Score 64
  • 301 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install python-project

Built from the published package, never by AI.

git clone --depth 1 https://github.com/majiayu000/spellbook /tmp/spellbook && mkdir -p ~/.claude/skills && cp -r /tmp/spellbook/skills/python-project ~/.claude/skills/python-project

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install python-project in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a written architecture guide for Python projects. It sets core rules such as using uv for package management, Ruff as the only linter and formatter, a src layout, and a pyproject.toml-only configuration. It also gives code examples for a FastAPI app, Pydantic settings and models, a service and repository layering, custom exception handling, and calls to LLMs through a LiteLLM proxy.

The guide is meant for developers who are creating new Python projects such as APIs, CLI tools or data pipelines. It includes a recommended tech stack table and a standard folder structure with tests and a Makefile. Detailed testing material, command catalogs and checklists are stated to live in a separate reference file, which the skill loads when needed.

Written from the project's SKILL.md and checked against it.

What it can do

  • Project setup with uvShows how to initialize a project, set a Python version and add dependencies with uv.
  • Standard src layoutProvides a folder structure for models, services, repositories, API routes and core utilities.
  • FastAPI applicationGives an example main.py with a lifespan handler, router include and health endpoint.
  • Pydantic settings and modelsShows a BaseSettings config class and Pydantic models for create, update and read operations.
  • Ruff and mypy configurationProvides pyproject.toml sections for Ruff lint rules, isort and strict mypy settings.
  • LiteLLM client exampleShows an async OpenAI SDK client pointed at a LiteLLM proxy for LLM calls.
  • Custom exception handlingDefines base and specific application errors and maps them to HTTP status codes.
  • Clean code rulesExplains removing deprecated code and compatibility layers instead of keeping them.

What you need

  • uv
  • Python 3.12

Try asking

  • Set up a new FastAPI project with uv and the standard src layout
  • Create a Pydantic settings class for my app with a database URL
  • Configure Ruff and mypy in pyproject.toml for a Python 3.12 project

Good to know

  • Detailed testing material is in a separate reference file that is not part of this source.
  • The guide sets opinionated rules, such as no pinned versions in templates and no setup.py or requirements.txt.

Security check

C
  • Downloads a script from the internet and runs itIn skills/python-project/SKILL.md: curl -LsSf https://astral.sh/uv/install.sh | sh

Checked automatically: skills/python-project/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to python-project

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

python-project: common questions

Which tools does this Python guide recommend?

The guide recommends uv for packages and environments, Ruff for linting and formatting, mypy for type checking, Pydantic v2, FastAPI, SQLAlchemy 2.0 with asyncpg, httpx, pytest and structlog.

Does it cover LLM API calls?

Yes. It says to use a LiteLLM proxy for all LLM integrations and includes an example client built on the OpenAI SDK.

Does it keep backwards compatibility code?

No. The guide says to delete unused code and change usages directly instead of adding deprecation warnings or aliases.

How do I install python-project?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is python-project free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is python-project safe to use?

It scores 64 of 100. Grades: maintenance A, licence A, quality B. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to python-project?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

python-project Install

Add to stack

Loading.