Marketplace

Writing python services

Writing a class with encapsulated logic that interfaces with an external system. Logging, APIs, etc.

$ Instalar

git clone https://github.com/jack-michaud/faire /tmp/faire && cp -r /tmp/faire/jack-software/skills/writing-python-services ~/.claude/skills/faire

// tip: Run this command in your terminal to install the skill


name: Writing python services description: Writing a class with encapsulated logic that interfaces with an external system. Logging, APIs, etc.

  • Use python 3.12+ syntax for types

    • e.g. | for unions, | None for optional
  • No side effects in constructor

    • Use @cached_property and lazily evaluate properties needing IO
  • Methods use dataclasses for arguments and responses