Files
Juliano Barbosa 7a1fc30bbb Claude Code skills collection
Public collection of Claude Code skills. Organization-specific
infrastructure references and identifiers have been removed or genericized.
2026-07-12 10:45:41 -03:00

8.1 KiB
Raw Permalink Blame History

Claude Code Skills for Python - Reference Links

Created: 2025-11-28 Purpose: Reference collection for Claude Code Skills related to Python specifications and best practices


Official Documentation

Anthropic/Claude Official


Python Package Management

uv - Modern Python Package Manager

Key Features

  • 🚀 Single tool replacing pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv
  • ⚡️ 10-100x faster than pip
  • 🗂️ Universal lockfile for comprehensive project management
  • ❇️ Inline script dependency metadata support
  • 🐍 Python version management (install/switch versions)
  • 🛠️ Tool execution (uvx for ephemeral environments)
  • 🏢 Cargo-style workspaces for scalable projects
  • 💾 Global cache for disk-space efficient dependency deduplication

Quick Reference

# Installation
curl -LsSf https://astral.sh/uv/install.sh | sh

# Project management
uv init example          # Initialize new project
uv add ruff              # Add dependency
uv run ruff check        # Run in project environment
uv lock                  # Generate lockfile
uv sync                  # Sync dependencies

# Scripts with inline dependencies
uv add --script example.py requests
uv run example.py

# Tools (like pipx)
uvx pycowsay 'hello!'    # Run tool in ephemeral env
uv tool install ruff     # Install tool globally

# Python version management
uv python install 3.10 3.11 3.12
uv python pin 3.11
uv venv --python 3.12.0

# pip-compatible interface
uv pip compile requirements.in -o requirements.txt
uv pip sync requirements.txt

GitHub Repositories

Python Project Templates

Skills Collections

Advanced Frameworks


Community Skills (claude-plugins.dev)


Technical Deep Dives & Tutorials

Architecture & Implementation

Optimization & Best Practices

Guides & Tutorials


Key Concepts Summary

SKILL.md Structure

my-skill/
├── SKILL.md           # Core instructions (YAML frontmatter + markdown)
├── scripts/           # Python/Bash executables
├── references/        # Documentation files
└── assets/            # Templates and binary files

Frontmatter Requirements

  • name: lowercase letters, numbers, hyphens only (max 64 chars)
  • description: what the skill does AND when to use it (max 1024 chars)

Best Practices

  1. Use progressive disclosure - load files only when needed
  2. Provide defaults with escape hatches for alternatives
  3. Match instruction specificity to task fragility
  4. Use forward slashes in paths (cross-platform)
  5. Include concrete examples in skill instructions

Web Frameworks

Flask - Python Micro Web Framework

Overview

Flask is a lightweight WSGI web application framework. It's a "micro-framework" that provides essentials for web development without unnecessary complexity. Built on Werkzeug (WSGI toolkit) and Jinja2 (template engine).

Core Dependencies

  • Werkzeug: WSGI interface between applications and servers
  • Jinja2: Template language for rendering pages
  • MarkupSafe: Escapes untrusted input for security
  • ItsDangerous: Securely signs data (session cookies)
  • Click: CLI framework for flask commands
  • Blinker: Support for Signals

Quick Reference (with uv)

# Installation with uv
uv add flask

# Or with pip
pip install Flask

# Minimal application (app.py)
from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"

# Run development server
flask run
# Or with debug mode
flask run --debug

# Run on specific host/port
flask run --host=0.0.0.0 --port=8080

Project Structure

my_flask_app/
├── app.py              # Application entry point
├── static/             # CSS, JS, images
│   └── style.css
├── templates/          # Jinja2 HTML templates
│   ├── base.html
│   └── index.html
├── requirements.txt    # Dependencies
└── .env               # Environment variables

Key Features

  • URL routing with decorators (@app.route())
  • Jinja2 templating with template inheritance
  • Request/Response handling
  • Session management (cookie-based)
  • Static file serving
  • Debug mode with auto-reload
  • Extensible via Flask extensions
  • Flask-SQLAlchemy: Database ORM integration
  • Flask-Login: User authentication
  • Flask-WTF: Form handling and CSRF protection
  • Flask-RESTful: REST API building
  • Flask-Migrate: Database migrations

Learning Resources


  • MCP (Model Context Protocol) integration with Skills
  • Subagents vs Skills decision matrix
  • Custom slash commands in Claude Code
  • CLAUDE.md optimization techniques
  • Python-specific testing skills (pytest integration)
  • DevOps/Kubernetes skills for infrastructure management

This document is part of the Claude Code Skills research project.