Skip to content
Back to skills

Developer Python

ASecurity

Python development standards and best practices. Provides type safety requirements, code organization patterns, testing standards, and Pythonic coding guidelines.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 7, 2026
developmentpythontesting

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add suxxes/resin.ai --skill developer-python --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Developer Python?

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

Security grade badge for Developer Python
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/suxxes-developer-python/badge)](https://www.skillsdirectory.com/skills/suxxes-developer-python)

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: developer-python
description: Python development standards and best practices. Provides type safety requirements, code organization patterns, testing standards, and Pythonic coding guidelines.
---

<!-- Updated: 2025-11-11 19:15:00 UTC -->

# Python Development Skill

This skill provides Python-specific standards and best practices for TDD-based development.

## PYTHON STANDARDS

### Type Safety Requirements
- **Type Hints**: Use type hints for all function signatures and class attributes
- **Static Typing**: Run mypy in strict mode for type checking
- **Generic Types**: Use generics from typing module for reusable, type-safe code
- **Protocol Types**: Use Protocol for structural subtyping
- **Type Guards**: Implement proper type narrowing with isinstance checks

### Code Organization
- **Naming**: Use snake_case for functions/variables, PascalCase for classes
- **Imports**: Use absolute imports, avoid circular dependencies
- **Module Structure**: Group imports (stdlib, third-party, local) with blank lines between groups

### Testing Standards
- **Test Isolation**: Each test must be independent
- **Clear Names**: Test names describe behavior being tested (test_function_should_do_something)
- **Fixtures**: Use pytest fixtures for test setup
- **Test Coverage**: Minimum 80% code coverage
- **Fast Tests**: Keep tests fast and focused
- **Test Files**: `tests/test_*.py` or `tests/*_test.py`
- **Test Functions**: `def test_function_name():`
- **Test Classes**: `class TestClassName:`
- **Test Methods**: `def test_method_name(self):`

### Best Practices
- **Pythonic Code**: Follow PEP 8 and write idiomatic Python
- **Context Managers**: Use with statements for resource management
- **Comprehensions**: Prefer list/dict comprehensions for clarity
- **Generators**: Use generators for memory-efficient iteration
- **Dataclasses**: Use dataclasses or Pydantic models for data structures
- **F-Strings**: Use f-strings for string formatting (not % or .format())

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.

Comments

Loading comments…

Newsletter

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