All skills
writing-kea-logics
Write or review a PostHog kea logic file, choosing the right builders and wiring React components.
- Part of PostHog/posthog
- 145 installs
- Developer Tools · Frontend
When to use it
You're adding a new *Logic.ts file or a reducer, selector, loader, or listener to an existing one and aren't sure which container fits.
For example
You say
Use writing-kea-logics to create a fooLogic.ts that loads a Foo by fooId from the API, exposes an uppercased name selector, and wires a FooPanel component with useValues.
You get
- fooLogic.ts with loaders and selectors
- Inline typegen blocks
- FooPanel wired with useValues
How it works
- A decision flow picks loader, selector, reducer, or cache before any builder is written.
- Listeners are preferred over kea-subscriptions for reacting to value changes.
- Typegen can be scoped to a single logic file while iterating.
More Frontend skills
See all- bmad-agent-ux-designer17.7kActs as Sally the UX designer and UI specialist for design guidance.
- daisyui13.9kWrites HTML and JSX markup using daisyUI components whenever you build a page or interface.
- nextjs-developer6.2kBuilds Next.js apps with App Router, server components, route handlers, middleware and Vercel deployment.
- react-expert5.9kCreates React components and hooks, fixes rendering issues and handles state, forms and performance.
Also in this pack
- react-doctor511Diagnoses and fixes React codebase health issues, including performance problems, security gaps and code quality.
- hogli267Explains the PostHog developer CLI and repo tooling for running, building, testing, and linting.
- clickhouse-migrations266Writes and modifies ClickHouse database migrations following project rules.
- survey-sdk-audit255Audits survey SDK features and version requirements, then implements survey changes across backend, UI, and SDKs.