Python Style

Enforce Python code style conventions (Black, isort, type hints)

yiweiren123-arch Updated

File contents

Python Style Skill

Rules

  1. Format all Python code with Black (line length 88).
  2. Sort imports with isort (profile: black).
  3. Add type hints to all function signatures.
  4. Use pathlib.Path instead of os.path for file operations.
  5. Prefer f-strings over .format() or % formatting.
  6. Use dataclasses or pydantic models instead of plain dicts for structured data.

yiweiren123-arch/skill-conflict-poc/tree/main/fixtures/scenario_d/skill_a commit b9d78f66aa

Frequently asked questions

npx skillmds@latest add yiweiren123-arch/python-style