agentskills.codes

Python development tooling configuration and best practices

Install

mkdir -p .claude/skills/tooling && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17021" && unzip -o skill.zip -d .claude/skills/tooling && rm skill.zip

Installs to .claude/skills/tooling

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Python development tooling configuration and best practices
59 charsno explicit “when” trigger

About this skill

Python Tooling

A comprehensive guide to Python development tools. Configuration best practices for analysis, linters, type checkers, formatters, test frameworks, and package managers.

Why These Tools Matter

To write high-quality Python code, we recommend adopting these tools:

  • pyscn - Detect dead code, duplicates, and circular dependencies to prevent technical debt
  • ruff - Catch bugs and style violations early with fast static analysis
  • mypy - Find errors before runtime with type checking, also improves IDE completion
  • pytest - Build confidence in changes with reliable tests
  • uv - Improve developer experience with fast dependency management

Integrating these into CI/CD reduces code review burden and maintains consistent quality.

Categories

Analysis [HIGH]

Structural code analysis for quality assessment.

RuleDescription
analysis-pyscnDead code, clones, dependencies, complexity with pyscn

Linting [CRITICAL]

Static code analysis with ruff for consistent, high-quality code.

RuleDescription
lint-ruffFast, comprehensive linting with ruff

Type Checking [HIGH]

Static type checking with mypy for type safety and better IDE support.

RuleDescription
type-mypyStatic type checking with mypy

Formatting [HIGH]

Consistent code formatting with ruff format and import sorting.

RuleDescription
fmt-ruffCode formatting and import sorting with ruff

Testing [HIGH]

Test framework configuration with pytest for reliable testing.

RuleDescription
test-pytestTesting with pytest, fixtures, and coverage

Package Management [MEDIUM]

Modern Python packaging with uv and pyproject.toml.

RuleDescription
pkg-uvFast package management with uv
pkg-pyprojectProject configuration with pyproject.toml

Quick Reference

Minimal pyproject.toml

[project]
name = "myproject"
version = "0.1.0"
requires-python = ">=3.11"
dependencies = []

[project.optional-dependencies]
dev = ["ruff", "mypy", "pytest", "pytest-cov", "pyscn"]

[tool.ruff]
target-version = "py311"
line-length = 88

[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "PTH"]

[tool.mypy]
python_version = "3.11"
strict = true

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["-v", "--tb=short"]

[tool.pyscn]
max_complexity = 15

Common Commands

# Analysis
pyscn analyze .                 # Full quality analysis
pyscn check .                   # CI quality gate

# Linting
ruff check .                    # Check for issues
ruff check . --fix              # Auto-fix issues

# Formatting
ruff format .                   # Format code

# Type checking
mypy .                          # Type check

# Testing
pytest                          # Run tests
pytest --cov=src                # With coverage

# Package management (uv)
uv pip install -e ".[dev]"      # Install with dev deps
uv pip compile pyproject.toml -o requirements.lock

More by diegosouzapw

View all by diegosouzapw

helm-chart-scaffolding-v2

diegosouzapw

Helm Chart Scaffolding workflow skill. Use this skill when the user needs Comprehensive guidance for creating, organizing, and managing Helm charts for packaging and deploying Kubernetes applications and the operator should preserve the upstream workflow, copied support files, and provenance before

00

cc-skill-coding-standards-v2

diegosouzapw

Coding Standards & Best Practices workflow skill. Use this skill when the user needs Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development and the operator should preserve the upstream workflow, copied support files, and provenance before

00

worktree-setup

diegosouzapw

Automatically invoked after `git worktree add` to create data/shared symlink and data/local directory. Required before starting work in any new worktree.

00

parsehub-automation

diegosouzapw

Automate Parsehub tasks via Rube MCP (Composio). Always search tools first for current schemas.

00

signalwire-agents-sdk

diegosouzapw

Expert assistance for building SignalWire AI Agents in Python. Automatically activates when working with AgentBase, SWAIG functions, skills, SWML, voice configuration, DataMap, or any signalwire_agents code. Provides patterns, best practices, and complete working examples.

00

agent-sales-engineer

diegosouzapw

Expert sales engineer specializing in technical pre-sales, solution architecture, and proof of concepts. Masters technical demonstrations, competitive positioning, and translating complex technology into business value for prospects and customers.

00

Search skills

Search the agent skills registry