Skip to main content

AI skill for Python backend development - FastAPI, SQLAlchemy, Redis, security patterns

Project description

Open Python Skills

๐Ÿง  Supercharge your AI code editor with Python development skills

One command to make Cursor / Claude Code / Windsurf / Kiro / Copilot understand FastAPI best practices, commit conventions, architecture diagrams, and type checking.

Why Use This?

Scenario Before ๐Ÿ˜… After โœจ
Writing commits fix stuff feat(auth): add JWT refresh token rotation
Drawing architecture Spend 2 hours in draw.io Describe it, AI generates Excalidraw
Asking FastAPI questions AI gives outdated answers AI searches local knowledge base
Type checking # type: ignore everywhere ty handles it, zero errors

Quick Start

# No pip install needed, just run with uvx
uvx open-python-skills init --cursor      # Cursor
uvx open-python-skills init --claude      # Claude Code
uvx open-python-skills init --windsurf    # Windsurf
uvx open-python-skills init --kiro        # Kiro
uvx open-python-skills init --copilot     # GitHub Copilot
uvx open-python-skills init --all         # All of them!

Available Skills

Skill What It Does
python-backend FastAPI + SQLAlchemy + Redis + Security patterns
commit-message Analyze git changes, generate conventional commits
excalidraw-ai Generate diagrams from natural language
ty-skills Complete guide for Astral's ty type checker

Skill Details

๐Ÿ”ง python-backend โ€” Python Backend Knowledge Base

Includes

  • ๐Ÿš€ FastAPI best practices
  • ๐Ÿ” Security patterns (JWT, CORS, Rate Limiting)
  • ๐Ÿ—„๏ธ SQLAlchemy database patterns
  • โšก Redis / Upstash caching strategies
  • ๐Ÿ“Š Performance optimization tips

Usage

# Search knowledge base
python3 .shared/python-backend/scripts/knowledge_db.py "jwt authentication"

# Filter by category
python3 .shared/python-backend/scripts/knowledge_db.py "caching" --category upstash

Categories: fastapi security database upstash performance api template

๐Ÿ“ commit-message โ€” Smart Git Commit Generator

Features

  • โœ… Conventional Commits format (feat, fix, refactor, etc.)
  • โœ… Auto-grouping by directory/module
  • โœ… Batch commit suggestions for large changesets

Usage

# Analyze all changes
python3 .shared/commit-message/scripts/analyze_changes.py --analyze

# Get batch commit suggestions
python3 .shared/commit-message/scripts/analyze_changes.py --batch

# Generate message for specific files
python3 .shared/commit-message/scripts/analyze_changes.py --generate "src/*.py"
๐ŸŽจ excalidraw-ai โ€” AI Diagram Generator

Features

  • โœ… Natural language โ†’ Excalidraw JSON
  • โœ… Supports flowcharts, architecture diagrams, mindmaps
  • โœ… Can analyze project code to auto-generate architecture

Usage

# Generate flowchart
python3 .shared/excalidraw-ai/scripts/excalidraw_generator.py "User Login -> Auth -> Access Data" --type flowchart

# Generate architecture diagram
python3 .shared/excalidraw-ai/scripts/excalidraw_generator.py "API Gateway -> Microservice -> Database" --type architecture

# Analyze project and generate architecture
python3 .shared/excalidraw-ai/scripts/excalidraw_generator.py --project . --type architecture --output arch.json

Types: flowchart architecture mindmap

๐Ÿ” ty-skills โ€” Python Type Checking Guide

Includes

  • ๐Ÿ“– typing_cheatsheet.md โ€” Quick reference for Python typing
  • ๐Ÿ“– ty_rules_reference.md โ€” All ty error codes and fixes
  • ๐Ÿ“– migration_guide.md โ€” Migrating from mypy/pyright
  • ๐Ÿ“– advanced_patterns.md โ€” Advanced typing patterns
  • ๐Ÿ“– common_errors.md โ€” Common errors and solutions
  • ๐Ÿ“– editor_setup/ โ€” VSCode / Cursor / Neovim setup guides

Project Structure After Install

your-project/
โ”œโ”€โ”€ .shared/                      # Skills (shared across all IDEs)
โ”‚   โ”œโ”€โ”€ python-backend/
โ”‚   โ”œโ”€โ”€ commit-message/
โ”‚   โ”œโ”€โ”€ excalidraw-ai/
โ”‚   โ””โ”€โ”€ ty-skills/
โ”œโ”€โ”€ .cursor/commands/             # Cursor commands
โ”œโ”€โ”€ .claude/                      # Claude Code config
โ”œโ”€โ”€ .windsurf/rules.md            # Windsurf rules
โ”œโ”€โ”€ .kiro/rules.md                # Kiro rules
โ””โ”€โ”€ .github/copilot/instructions.md  # Copilot instructions

CLI Commands

open-python-skills init [--cursor|--claude|--windsurf|--all]  # Install skills
open-python-skills search "query"                              # Search knowledge
open-python-skills get <entry-id>                              # Get full entry
open-python-skills categories                                  # List categories
open-python-skills stats                                       # Show statistics

Requirements

  • Python 3.8+

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_python_skills-0.1.5.tar.gz (527.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_python_skills-0.1.5-py3-none-any.whl (564.4 kB view details)

Uploaded Python 3

File details

Details for the file open_python_skills-0.1.5.tar.gz.

File metadata

  • Download URL: open_python_skills-0.1.5.tar.gz
  • Upload date:
  • Size: 527.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.4

File hashes

Hashes for open_python_skills-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9b3dfc7de6d02a87160ce3a8ec5604c107027e1cc8591d385efbcde90d29ed7c
MD5 7002fdb19c8da3a2496ba6c9ea0d868b
BLAKE2b-256 bb7db054d246bd66bbb54a731aca789e92eb1e6ebc3c23f754cc0eac9443a6e4

See more details on using hashes here.

File details

Details for the file open_python_skills-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for open_python_skills-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 96f0ac59dae92a3ceba0b5d1b3f1bf5bf200587e319caf55d113f434ceb92ef4
MD5 7d1f4810cbbfdde8fcf5e3aa82f01312
BLAKE2b-256 0d52bd2addf0fabded0328458aec046465779aaf1cae6b4c5710eaae58f7d987

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page