What problem does it solve?
PostHog products that expose internals (models, logic, views) across boundaries create tight coupling, slow CI, and unsafe test skipping. This Skill guides the migration of a product to the isolated architecture used by Visual review: a pure contracts layer, a thin facade, and presentation separated behind enforced import boundaries.
Core Features & Use Cases
- Recon and baseline: Uses
hogli product:isolate:scan, product:maturity, and product:lint to classify cross-boundary references, measure core coupling, and detect which migration phase a product is in.
- Structured migration workflow: Defines contracts in
facade/contracts.py, builds a thin facade/api.py, migrates callers in one pass, and moves presentation to consume the facade with hogli product:isolate:move.
- Boundary enforcement: Turns on tach interfaces, import-linter contracts, the
backend:contract-check CI skip, and narrowed turbo.json inputs only when isolation is sound.
- Use Case: A product like web_analytics still has core importing its models and test fixtures. Use this Skill to scan the coupling, build facade read/write functions, reroute callers, seal reverse accessors, and enable the CI skip once
ignore_imports debt is drained.
Quick Start
Ask the AI to run the isolation scan for a PostHog product and plan its migration to the facade and contracts architecture following this skill.