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.
npx skills add PostHog/posthog-foss --skill adding-dashboard-v2-panel-typesgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote 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.
[](https://agentmods.dev/skills/posthog/posthog-foss/adding-dashboard-v2-panel-types)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
typeand 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 supportssampleData. - How do filters and the time range apply? Read them from
FiltersContext. Decide which kinds the type ignores, and say so to the host. Seefilters.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
showOnInteractiveOnlywhen 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?
sizegives the default and the minimum;sizeForwhen the size depends on config.
Give the type its own folder, frontend/panels/<type>/:
<type>Spec.tsholds the config schema, thePanelSpecand thedefinePanelcall.- Each component has its own file, such as
<Type>Panel.tsx.
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.
- yesterday Changed · +12 lines f542c323a21f
- 2d ago Changed · +1 lines 941f9a8359eb
- 5d ago Changed · +5 lines 818db6a2f815
- 6d ago Changed · -3 tokens per session 8e05c46eba2f
- 7d ago First seen · 80 lines · 125 tokens per session scan A 91fd89288140
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.
adding-dashboard-v2-panel-types compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| adding-dashboard-v2-panel-typesPostHog/posthog-foss | Skill | 736 | today | MIT | A | 122 | Claude Code, Codex |
| build-ghost-appTryGhost/Ghost | Skill | 56k | today | MIT | A | 44 | Claude Code, Codex |
| material-ui-tailwindmui/material-ui | Skill | 99k | yesterday | MIT | A | 67 | Claude Code, Codex |
| fuzzy-rankingTanStack/table | Skill | 29k | 2d ago | MIT | A | 62 | Claude Code, Codex |
| r3f-best-practiceszebbern/claude-code-guide | Skill | 4.7k | today | MIT | A | 74 | Claude Code, Codex |
| git-safetytamagui/tamagui | Skill | 14k | 3d ago | MIT | A | 42 | Claude Code |
| remotion-best-practicesguanyang/open-agent-hub | Skill | 1.0k | today | MIT | A | 116 | Claude Code |