skills/python-style/SKILL.md
Enforce consistent Python typing (type hints + return types), concise Google-style docstrings, PEP 8/Black formatting, and unit tests when creating or editing Python code. Use when working on .py files, Python APIs, refactors, or bug fixes where maintainability and correctness matter.
npx skillsauth add janjaszczak/cursor python-styleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When writing or modifying Python, apply a “quality gate” aligned to this rule-set:
from __future__ import annotations.Activate this skill when:
**/*.py, orClarify (0–3 questions max) only if needed:
pyproject.toml, tox.ini, CI)Dynamic context discovery
pyproject.toml, setup.cfg, tox.ini, .ruff.toml, mypy.ini, CI config.Plan before large edits
Implement (incremental)
Any unless truly unavoidable; if used, explain why and consider narrower types.from __future__ import annotations in new modules; in existing modules, follow repo pattern.Docstrings (public surfaces)
Tests
Raises)Verification
Protocol, TypedDict, Mapping[str, Any] (as last resort), or narrow Any usage with justification.Input request: “Add a helper to parse an ISO date string and update callers.”
Expected actions:
parse_iso_date(value: str) -> datetime.dateIf a function violates cohesion (multiple responsibilities), propose:
data-ai
KeePassXC cursor.kdbx — natywny keyring per OS, keepass-db.path bez fallbacków, agent instaluje brakujące narzędzia.
development
Build or modify plain HTML/CSS/JavaScript (no framework) using modular ES modules (ESM), SRP, minimal global state, and shippable runnable files with lightweight verification. Use for static pages, small UI widgets, vanilla JS refactors, and quick prototypes without React/Vue/Angular.
testing
Perform root-cause analysis for bugs/errors/regressions using logs, repro steps, and hypothesis testing. Use when the user reports “nie działa”, stack traces, failing tests, or regressions.
tools
Plan, split, and track multi-step work using Shrimp Task Manager MCP (or equivalent). Use for multi-file refactors, migrations, or any work that benefits from task tracking.