managing-dashboards
Skill721 starsChanged 59 days agoMITView on GitHub
Guides PostHog engineers through dashboard platform and scene changes. Use when changing Dashboard, DashboardTile, dashboardLogic, dashboard layouts, dashboard sharing or embeds, public dashboards, templates, filters, variables, refresh behavior, tile loading, dashboard lists, or dashboard permissions. Covers normal, shared, embedded, export, product-embedded, and template surfaces; RBAC; cache and query behavior; responsive layouts; and large or small dashboards. Use manage-dashboard-widgets instead for a widget_type or WidgetCard change.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- PostHog/posthogword for word, first seen Oct 4, 2026
Other versions1 project uses a version of this.
Word for word · 1
- PostHog/posthog★ 40k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- common/AGENTS.mdAGENTS.md
- proto/AGENTS.mdAGENTS.md
- rust/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- common/CLAUDE.mdCLAUDE.md
- proto/CLAUDE.mdCLAUDE.md
- rust/CLAUDE.mdCLAUDE.md
- .cursor/rules/django-python.mdcCursor rule
- .cursor/rules/react-typescript.mdcCursor rule
- .cursor/rules/rust.mdcCursor rule
- adding-activity-loggingSkill
- adding-api-scopesSkill
- adding-inbound-webhooksSkill
- adding-inbox-sourcesSkill
- adding-ingestion-warningsSkill
- adding-mcp-store-serversSkill
- adding-personhog-rpcSkill
- adding-product-alertingSkill
- adding-project-secret-api-key-authSkill
- adopting-generated-api-typesSkill
- analyzing-experiment-precompute-canarySkill
- analyzing-experiment-query-performanceSkill
- analyzing-insights-across-teamsSkill
- announcing-behavior-changesSkill
- auditing-llm-gateway-paritySkill
- auditing-warehouse-source-coverageSkill
- authenticating-to-clickhouseSkill
- authoring-ci-workflowsSkill
- autoresolving-pr-conflictsSkill
- building-product-empty-statesSkill
- clickhouse-migrationsSkill
- debugging-ci-failuresSkill
- debugging-local-replaySkill
- debugging-local-task-agent-runsSkill
- debugging-mcp-analyticsSkill
- debugging-signals-pipelineSkill
- debugging-table-access-deniedSkill
- depot-ciSkill
- depot-container-buildsSkill
- depot-github-runnersSkill
- developing-subscriptionsSkill
- django-migrationsSkill
- django-startup-timeSkill
- documenting-warehouse-sourcesSkill
- editing-agents-mdSkill
- establishing-code-ownershipSkill
- extending-hobby-smoke-testsSkill
- extending-personhog-test-harnessSkill
- finding-llm-gateway-migration-candidatesSkill
- fixing-flaky-testsSkill
- gating-production-deploysSkill
- gating-sensitive-actionsSkill
- generating-clickhouse-query-performance-reportsSkill
- hogliSkill
- implementing-mcp-toolsSkill
- implementing-mcp-ui-appsSkill
- implementing-warehouse-sourcesSkill
- improving-drf-endpointsSkill
- improving-mcp-toolsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 16 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill for a dashboard change that affects the dashboard platform, dashboard scene, or an existing non-widget tile type.
- Very specific: line 16
Use manage-dashboard-widgets for a new widget_type or a WidgetCard change.
- Very specific: line 27
Before coding, decide the effect on each surface.
- Distinctive: line 37
Read surfaces and ownership before you select files.
- Distinctive: line 41
Do this before implementation for a new dashboard feature.
- Distinctive: line 51
If the feature adds persisted state or relations, define migration, cleanup, and concurrent-edit behavior.
- Distinctive: line 52
Check whether the user-facing API, setting, or workflow needs a documentation update.
- Distinctive: line 54
Read feature lifecycle and rollout before you choose a persisted feature contract.
- Distinctive: line 68
If templates apply, define scope, portability, copy semantics, and later edits.
- Distinctive: line 72
Use this checklist as a design gate.
- Distinctive: line 88
Keep dashboard and tile data team-scoped.
- Distinctive: line 89
Update each placement deliberately.
- Distinctive: line 91
Keep query work bounded. Do not turn dashboard load into unbounded tile queries or concurrent requests.
- Distinctive: line 92
Keep grid updates stable during drag, resize, and tile refresh.
- Distinctive: line 93
Add observability when a change creates a new loading, query, cache, access, or refresh path.
- Distinctive: line 95
After a selector rename, search every dashboard consumer and test for the old name.
- Distinctive: line 96
Keep dashboard mutation actions on the authenticated dashboard placement unless another placement has an explicit contract.
- Distinctive: line 117
Run the focused tests for each edited layer.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Managing dashboards
Use this skill for a dashboard change that affects the dashboard platform, dashboard scene, or an existing non-widget tile type.
Use manage-dashboard-widgets for a new widget_type or a WidgetCard change.
1. Route the request
| Request | Primary path |
| Dashboard metadata, tile lifecycle, filters, variables, refresh, list, or layout | This skill |
| Public links, sharing settings, embeds, exports, or product-embedded dashboards | This skill |
| Dashboard template creation, editing, scope, or copying | This skill |
New or changed widget_type, widget config, widget query, or WidgetCard | manage-dashboard-widgets |
Before coding, decide the effect on each surface. Record affected, unaffected, or not applicable.
- Authenticated dashboard
- Public shared dashboard
- Embedded dashboard
- Exported dashboard
- Product-embedded dashboard
- Dashboard template
- Dashboard list and project homepage, if the change changes metadata or visibility
Read surfaces and ownership before you select files.
2. Define feature intake and acceptance criteria
Do this before implementation for a new dashboard feature. Skip it for a narrow bug fix with an existing contract.
- State the user problem, intended actor, and explicit non-goals.
- State the feature action and its default behavior.
- State where the feature stores its state: dashboard, tile, request, user, URL, or a separate team-scoped resource.
- State the availability, read permission, and mutation permission.
- State behavior for new rows, existing rows, and invalid or absent state.
- State the acceptance criteria for allowed, denied, shared, and failure paths.
- State the expected query, cache, and database-write effect.
- State the metric or event that shows adoption, failure, or regression.
- If the feature adds persisted state or relations, define migration, cleanup, and concurrent-edit behavior.
- Check whether the user-facing API, setting, or workflow needs a documentation update.
Read feature lifecycle and rollout before you choose a persisted feature contract.
3. Define the change contract
State these decisions before implementation.
- Name the user action and the persisted data that changes.
- Name every placement that renders the affected UI.
- Define view, edit, and mutation permissions for each actor.
- Define shared and embedded behavior. Never assume the authenticated behavior is safe there.
- Define the result when the dashboard has zero, one, and hundreds of tiles.
- Define the result at narrow and wide widths.
- Define filter, variable, quick-filter, and tile-override precedence.
- Define cache, refresh, query, and failure behavior.
- If templates apply, define scope, portability, copy semantics, and later edits.
- Define lifecycle, API, streaming, quota, audit, and project-tree effects.
- For a new API, add MCP tools for its supported operations. Exclude an operation only with a documented reason. Record required scopes.
Use this checklist as a design gate. Read the linked reference when an item applies.
| Area | Check |
| Access | RBAC, sharing, and embeds |
| Filter state | Filters, variables, and tile overrides |
| Configuration editing | Dashboard configuration editing and URL overrides |
| Data and scale | Querying, caching, and scale |
| Layout and templates | Layout, responsive behavior, and templates |
| Backend and operations | Backend contracts and operations |
| Feature lifecycle | Feature lifecycle and rollout |
| New state or relation | Data models and collaboration |
4. Implement across layers
- Change the product model, serializer, API action, and generated types together when the persisted contract changes.
- Keep dashboard and tile data team-scoped. Use the dashboard’s project context for every lookup and mutation.
- Update each placement deliberately. Do not hide a feature only in the frontend when the API still permits it.
- Preserve old rows and old layouts. Treat existing layout JSON and template payloads as versioned input.
- Keep query work bounded. Do not turn dashboard load into unbounded tile queries or concurrent requests.
- Keep grid updates stable during drag, resize, and tile refresh. Avoid a full grid relayout for each tile result.
- Add observability when a change creates a new loading, query, cache, access, or refresh path.
- For list-only state, render controls only where that state applies.
- After a selector rename, search every dashboard consumer and test for the old name. Then run TypeScript.
- Keep dashboard mutation actions on the authenticated dashboard placement unless another placement has an explicit contract.
5. Test the boundary, not only the happy path
Cover each affected boundary.
- View versus edit access.
- Authenticated, shared, embedded, and export rendering.
- Public output contains no private metadata or live data that public viewers cannot access.
- Cache hit, cache miss, stale result, forced refresh, query error, and request cancellation.
- Empty dashboard, a single tile, and a dense dashboard.
- Narrow layout, wide layout, drag, resize, insertion, duplication, and persisted layout reload.
- Template scope, permissions, variable substitution, and project-specific references.
- API schema and generated types after serializer changes.
- Paginated list ordering, each page, and client continuation when the UI loads every result.
- Filter and variable precedence, shared-token behavior, and quick-filter validation.
- Soft-delete, restore, move, copy, and project-transfer behavior.
- Streaming completion, disconnect, and individual tile failure behavior.
- Resource limits, audit events, and subscription behavior.
- Schema rollout, relation cleanup, concurrent edits, accessibility, and public content safety.
Run the focused tests for each edited layer. Then run the relevant checks from the verification guide.
6. Code map
| Concern | Start here |
| Dashboard API, serializers, tile operations, insight and widget runners | products/dashboards/backend/api/dashboard.py |
| Dashboard model and tile model | products/dashboards/backend/models/dashboard.py, models/dashboard_tile.py |
| Sharing and collaborator routes | products/dashboards/backend/routes.py |
| Templates | products/dashboards/backend/api/dashboard_templates.py, models/dashboard_templates.py |
| Main scene, state, refresh, and layout persistence | frontend/src/scenes/dashboard/Dashboard.tsx, dashboardLogic.tsx, DashboardItems.tsx |
| Layout geometry and tile size constraints | frontend/src/scenes/dashboard/tileLayouts.ts, dashboardUtils.ts |
| Shared and export rendering | frontend/src/exporter/scenes/ExporterDashboardScene.tsx, frontend/src/exporter/Exporter.tsx |
| Refresh defaults and shared safety clamp | posthog/hogql_queries/refresh_policy.py |
| Resource transfer | posthog/models/resource_transfer/visitors/dashboard.py, dashboard_tile.py, dashboard_widget.py |
| MCP tool definitions | products/dashboards/mcp/tools.yaml |
Companion skills
| Skill | Use when |
manage-dashboard-widgets | Change a widget_type, its config, query, catalog, or WidgetCard |
django-migrations | Change dashboard, tile, template, or widget schema |
improving-drf-endpoints | Change viewsets, serializer contracts, or OpenAPI output |
adopting-generated-api-types | Consume changed generated dashboard API types |
writing-kea-logics | Change dashboardLogic or another Kea logic |
writing-tests | Decide the lowest-cost regression test |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

