Writing kea logics PostHog uses kea as the state container for the frontend. Almost all non-trivial business logic lives in a / file, not in React. We may be on a kea pre-release ahead of the version the keajs.org docs cover — when in doubt, check for the pinned version. This skill captures the PostHog-specific conventions on top of the upstream kea docs. When in doubt about a builder's signature, go upstream. When in doubt about whether to use it, read here. Use this skill when - Creating a new / file - Adding builders to an existing logic (actions, reducers, selectors, listeners, loaders, f…