docs(dashboards): add agent skills and contributing docs for dashboard widgets (1/4)#60516
Conversation
ac7f208 to
ca8308d
Compare
cf1fe09 to
bb15662
Compare
|
@gewenyu99 if i could get some of your quick scanning if this is the optimum way to write a skill here for the widgets, that would be much appreciated |
|
Reviews (1): Last reviewed commit: "chore(dashboards): add agent skills and ..." | Re-trigger Greptile |
56d18fa to
d374b34
Compare
05b6772 to
9c2ab4d
Compare
a31a1d0 to
ef958f5
Compare
eb3dc99 to
dcf2941
Compare
d88ec05 to
46da118
Compare
0dbf944 to
c7cc186
Compare
a97cc56 to
e4d7d2a
Compare
4831687 to
456423e
Compare
1d9143e to
64db5b4
Compare
456423e to
8fde0cf
Compare
f2c2fa2 to
b960c05
Compare
vdekrijger
left a comment
There was a problem hiding this comment.
Curious to see the value of these kind of skills in due time 😃!
Good call to explore this! In my mind I feel like "readable/maintainable" code helps the LLM reach similar goals and avoids the need for a dedicated skill, but TBH the landscape is so new that anything is possible, thus super curious to see the results over time vs the potential to get outdated:smiley:
vdekrijger
left a comment
There was a problem hiding this comment.
Not sure if valuable, but here is some output from my review skill:
┌─────┬──────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────┬──────────┬──────────────────────────────────────┐
│ # │ File │ Line │ Sev │ Finding │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
│ ✅1 │ .agents/skills/dashboard-widgets/references/checklist-new-widget-type.md │ checklist step 5b ↔ composition ~661 │ 🟠 HIGH │ direct contradiction on exporting │
│ │ ↔ .agents/skills/dashboard-widgets/references/composition.md │ │ │ Kea decorators from *.stories.tsx │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
│ │ │ │ │ points agents to │
│ ✅2 │ .agents/skills/dashboard-widgets/references/mcp.md │ move-tile rows (diff ~1044/1068) │ 🔵 LOW │ dashboards-move-tile-partial-update, │
│ │ │ │ │ which is enabled: false │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
│ ✅3 │ .agents/skills/dashboard-widgets/ (whole skill) │ general │ 🟠 HIGH │ per-type touch-list duplicated │
│ │ │ │ (xp) │ across 5 files │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
│ │ │ │ │ required_scopes docs-only / RBAC │
│ ✅ │ .agents/skills/dashboard-widgets/references/permissions-and-sharing.md │ general │ 🟡 MED │ rule restated ~8× (twice in single │
│ │ │ │ │ files) │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
│ ✅ │ .agents/skills/dashboard-widgets/references/layout-and-ux.md │ general │ 🟡 MED │ tile min/max-size rule restated ~7× │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
│ ✅ │ .agents/skills/dashboard-widgets/references/architecture.md │ ~167–180 │ 🔵 LOW │ registry code snippet duplicated │
│ │ │ │ │ verbatim with checklist §7 │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
│ │ │ │ │ frontmatter description / "when to │
│ ✅ │ .agents/skills/dashboard-widgets/SKILL.md │ ~9–14 / ~25–39 │ 🔵 LOW │ use" overlap; hardcoded counts │
│ │ │ │ │ (11/11, migration anchor, constants) │
│ │ │ │ │ will rot │
├─────┼──────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────┼──────────┼──────────────────────────────────────┤
In general it claims that there is a lot of duplication that can be improved. But again as things change fast, I don't know how "bad" this in terms of context clutter is, or if this helps agents give priority to things.
MCP UI Apps size report
|
|
Re-enabled |
Query snapshots: Backend query snapshots updatedChanges: 1 snapshots (1 modified, 0 added, 0 deleted) What this means:
Next steps:
|
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
Query snapshots: Backend query snapshots updatedChanges: 1 snapshots (1 modified, 0 added, 0 deleted) What this means:
Next steps:
|
|
🎭 Playwright report · View test results →
These issues are not necessarily caused by your changes. |

Problem
Agents and contributors need a single playbook for adding dashboard widget types — file paths, catalog/registry wiring, availability gating, client-side composition patterns, and a checklist for new types.
This PR is 1/4 in the open dashboard widgets stack (docs → placeholders → SLOs → OpenAPI), rebased onto
masterafter #60497 merged.Changes
.agents/skills/dashboard-widgets/skill with architecture, composition, availability, permissions, pitfalls, and new-widget checklist referencesproducts/dashboards/CONTRIBUTING.mdfor widget type authorsupdateWidgetTile/updateDashboardWidgetTile+buildWidgetTileMetadataPatch(not split config/metadata loaders)tryGetDashboardWidgetCatalogEntryheader fallback + body-onlyErrorBoundarywidgetProductAccess.ts/WIDGET_PRODUCT_ACCESS_CHECKS(not a switch inDashboardWidgetItem)dashboard tile addedanddashboard widget addedon first insertrefreshDashboardWidgetsWidgetCardProductIntroductionfor catalog setup promptseditWidgetModalBuilders.ts(spread actions, inline reducers); shared validation viawidgetConfigValidation.tsgroupId+DASHBOARD_WIDGET_GROUP_LABELS; omit redundantheaderLayout/headerMetadefaults; previews inDASHBOARD_WIDGET_PREVIEWSHow did you test this code?
error_tracking_listandsession_replay_listimplementations; no runtime doc verification👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Automatic notifications
Docs update
This PR is the docs update. Add the
skip-inkeep-docslabel.🤖 Agent context
masterafter feat(dashboards): add MCP tools for dashboard widgets (10/11) #60497 merged; downstream PRs are placeholders (feat(dashboards): show widget placeholders on shared dashboards (2/4) #61416), SLOs (feat(dashboards): add slo for widget data delivery (3/4) #61431), and OpenAPI (feat(dashboards): discriminate widget batch-add openapi schema (4/4) #61457)