writing-dataclasses
Claude Code skill by @PostHog
House rules for Python dataclasses in PostHog: when to reach for one instead of a tuple or `dict[str, Any]`, which decorator to use (`@frozen` from `posthog.dataclasses`), how to name, construct, consume and evolve them, how to keep secrets out of `repr`, and when a function should accept a dataclass instead of its unpacked fields. Use when adding or changing a dataclass, returning or passing several values from a function, converting a tuple or dict payload, deciding `frozen=`/`slots=`/`kw_only=`, or passing a facade contract DTO through internal layers. Not for pydantic models used as HogQL/query schema, DRF serializers, or Django models.
- Price: Free
- Signal index: 0/100
- Source: posthog/posthog
- Updated:
Related topics
- Legal skills
- Python skills
- Django skills
- Logo and brand design skills
- MCP servers skills
- UI design skills
- Security skills
- ComfyUI skills
- Software architecture skills
- Prisma and Drizzle skills
- iOS and Swift skills
- Translation skills
- Firebase skills
- Email marketing skills
- Accessibility skills
- Redis skills
- Slides and presentations skills
- Android skills
- Blender skills
- Data visualization skills
- Finance skills
- Market research skills
- Education skills
- Markdown skills
- Investing skills
- Go-to-market skills
- Music skills
- Word documents skills
- Video generation skills
- CSS skills
Create a free account to install this skill or run it from Claude Code or Codex.