Agent skill
forge-lang-python
Python development standards including pytest, ruff, black, and mypy. Use when working with Python files, tests, or dependencies.
Install this agent skill to your Project
npx add-skill https://github.com/martimramos/claude-forge/tree/main/skills/languages/python
SKILL.md
Python Development
Testing
# Run all tests
pytest
# Run with coverage
pytest --cov=src --cov-report=term-missing
# Run specific test
pytest tests/test_module.py::test_function
# Run with verbose output
pytest -v
Linting
# Check with ruff
ruff check .
# Fix auto-fixable issues
ruff check --fix .
# Type checking
mypy src/
Formatting
# Format with ruff (or black)
ruff format .
# Check without changing
ruff format --check .
# Sort imports
ruff check --select I --fix .
Project Structure
project/
├── src/
│ └── package/
│ ├── __init__.py
│ └── module.py
├── tests/
│ ├── __init__.py
│ ├── conftest.py
│ └── test_module.py
├── pyproject.toml
└── README.md
pyproject.toml Template
[project]
name = "package-name"
version = "0.1.0"
requires-python = ">=3.10"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra -q"
[tool.ruff]
line-length = 88
select = ["E", "F", "I", "N", "W"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.10"
strict = true
TDD Cycle Commands
# RED: Write test, run to see it fail
pytest tests/test_new_feature.py -v
# GREEN: Implement, run to see it pass
pytest tests/test_new_feature.py -v
# REFACTOR: Clean up, ensure tests still pass
pytest && ruff check . && ruff format --check .
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
forge-lang-c
C development standards including make, gcc/clang, valgrind, and cppcheck. Use when working with C files, Makefiles, or CMakeLists.txt.
forge-lang-terragrunt
Terragrunt wrapper for Terraform with DRY configurations. Enforces plan-before-apply workflow. Use when working with terragrunt.hcl files.
forge-lang-cpp
C++ development standards including make/cmake, g++/clang++, and static analysis. Use when working with C++ files (.cpp, .hpp, .cc, .hh).
forge-lang-rust
Rust development standards including cargo test, clippy, and rustfmt. Use when working with Rust files, Cargo.toml, or Rust tests.
forge-lang-ansible
Ansible automation safety practices. Enforces check-mode-first workflow. Use when working with playbooks, roles, or inventory files.
forge-lang-typescript
TypeScript development standards including type checking, jest/vitest, eslint, and prettier. Use when working with TypeScript files, tsconfig.json, or .ts/.tsx files.
Didn't find tool you were looking for?