adding-dashboard-v2-panel-types

adding-dashboard-v2-panel-types is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 122 tokens per session (1,711 once invoked), scanned A, original, MIT.

A development guide for adding a new dashboard panel type in a React and TypeScript codebase. A panel type is the content shown inside a dashboard tile, such as a chart or markdown.

In plain words
What is it for?
Use it when adding or changing a dashboard v2 panel type, including its configuration schema, display states, menu actions, customization options, and lazy loading.
Why use it?
It keeps the panel's configuration, loading behavior, components, and validation aligned with the dashboard's existing structure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding or changing a dashboard v2 panel type, including its configuration schema, display states, menu actions, customization options, and lazy loading.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/adding-dashboard-v2-panel-types
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill adding-dashboard-v2-panel-types
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adding-dashboard-v2-panel-types

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/adding-dashboard-v2-panel-types/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/adding-dashboard-v2-panel-types)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/adding-dashboard-v2-panel-types"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/adding-dashboard-v2-panel-types/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adding-dashboard-v2-panel-types

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/adding-dashboard-v2-panel-types"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/adding-dashboard-v2-panel-types.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.01711
Opus 5.5 $0.00049 $0.00684
Sonnet 5.5 $0.00024 $0.00342
Haiku 4.5 $0.00012 $0.00171

Measured yesterday against content hash f542c323a21f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adding-dashboard-v2-panel-types scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/adding-dashboard-v2-panel-types/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adding a dashboards v2 panel type

A panel type is the content a tile shows, such as a chart or markdown. The tile owns the frame: title, description, menu, dragging, resizing and the error boundary. Read products/dashboards_v2/.agents/primitives.md, .agents/performance.md and .agents/filters.md first.

Decide before you build

A panel type is the most expensive way to add content, so check the cheaper ones first ("Which to build for new content" in primitives.md). Then answer each question, because each answer becomes part of the type's contract:

  • What does the document save? The type and every config field are saved forever. Keep config to what a person or a dashboard written as code sets, and work everything else out at render.
  • Where does data come from? The dashboard never fetches. A type that loads data takes the loader from the host through a factory, as createChartPanel({ runQuery }) does, and supports sampleData.
  • How do filters and the time range apply? Read them from FiltersContext. Decide which kinds the type ignores, and say so to the host. See filters.md.
  • What does it cost on a 200-tile dashboard? It mounts only when in view, may mount late after a filter changed, and must not run work per tile on load. See performance.md.
  • What does it look like in each state? Loading before it mounts, empty, error, sample data, and a broken config. The tile shows the broken config message, and the type supplies the rest.
  • What does it look like in a snapshot? Images and printed pages render it without interaction. Use showOnInteractiveOnly when it means nothing there.
  • What can a person do to it? Menu entries, refresh, duplicate, move, background color. Each is off unless the type turns it on.
  • How big is it? size gives the default and the minimum; sizeFor when the size depends on config.

Give the type its own folder, frontend/panels/<type>/:

  • <type>Spec.ts holds the config schema, the PanelSpec and the definePanel call.
  • Each component has its own file, such as <Type>Panel.tsx.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +12 lines f542c323a21f
  2. 2d ago Changed · +1 lines 941f9a8359eb
  3. 5d ago Changed · +5 lines 818db6a2f815
  4. 6d ago Changed · -3 tokens per session 8e05c46eba2f
  5. 7d ago First seen · 80 lines · 125 tokens per session scan A 91fd89288140

Subscribe to this mod's changes

adding-dashboard-v2-panel-types is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 1,711 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

adding-dashboard-v2-panel-types compared with skills from other repositories

adding-dashboard-v2-panel-types next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adding-dashboard-v2-panel-typesPostHog/posthog-fossSkill736todayMITA122Claude Code, Codex
build-ghost-appTryGhost/GhostSkill56ktodayMITA44Claude Code, Codex
material-ui-tailwindmui/material-uiSkill99kyesterdayMITA67Claude Code, Codex
fuzzy-rankingTanStack/tableSkill29k2d agoMITA62Claude Code, Codex
r3f-best-practiceszebbern/claude-code-guideSkill4.7ktodayMITA74Claude Code, Codex
git-safetytamagui/tamaguiSkill14k3d agoMITA42Claude Code
remotion-best-practicesguanyang/open-agent-hubSkill1.0ktodayMITA116Claude Code