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 creating-customer-analytics-account-widgetsgit 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/creating-customer-analytics-account-widgets)<a href="https://agentmods.dev/skills/posthog/posthog-foss/creating-customer-analytics-account-widgets"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/creating-customer-analytics-account-widgets/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/creating-customer-analytics-account-widgets"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/creating-customer-analytics-account-widgets.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.00147 | $0.01387 |
| Opus 5.5 | $0.00059 | $0.00555 |
| Sonnet 5.5 | $0.00029 | $0.00277 |
| Haiku 4.5 | $0.00015 | $0.00139 |
Grade A, and why
creating-customer-analytics-account-widgets 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 15d ago.
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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Creating Customer analytics account widgets
Account view widgets follow the composition pattern.
A view is an ordered list of independent widgets.
Shared code knows a widget only through its entry in ACCOUNT_VIEW_COMPONENTS.
The Accounts guide states the rules. Read that section first. This skill holds the steps.
Paths below are relative to products/customer_analytics/.
The rule that decides most questions
Do not add a kind === branch to shared code.
Shared code is AccountViewComponent, AccountViewTile, AccountViewTileEditorModal, AccountViewRenderer, accountViewsLogic, and validate_account_view_content.
When a widget needs something the others do not, add an optional field to AccountViewComponentBase and let shared code read it.
ConfigEditor, getConfigError, onConfigSaved, and tileInsetClassName are the precedent.
Decide first
- Tile only, or also a tab? A tile-only widget has no
systemTabId. A tab also appears in the account detail tabs. - Does it save settings? If the widget has a filter, search, or sort worth keeping, it reads and writes tile config.
- Does it need a settings editor? Only when the tile's own controls cannot set the config. Properties and SQL query are the precedents.
- Is it flag-gated? Ask the user. Do not invent a flag.
Steps
- Build the widget. Put the component and its logic in
frontend/components/Accounts/. Model them onAccountMeetingsExpansionandaccountMeetingsLogic. Key the logic by account andinstanceId, as in`${props.accountId}:${props.instanceId ?? 'default'}`. WithoutinstanceId, two tiles of one kind share state. - Add the kind. For a tile-only widget, add it to both unions in
accountViewComponents.tsx. For a tab, see Tabs. - Add the registry entry. Set
kind,tagName,label, andComponent.ComponenttakesAccountViewWidgetPropsand maps them to the widget. PassgetTileLogicProps(props)when the widget saves settings. - Add the tag to the backend. Add
tagNameand its label toACCOUNT_VIEW_COMPONENT_LABELSinbackend/logic/account_views.py. Without it, the API rejects every view that holds the widget. - Add the test rows. Add the tag to the parameterized
test_accepts_account_widgetinbackend/test/test_account_views.py. Invoke/writing-testsbefore you add anything more. - Update the Accounts guide. It asks for this in the same change.
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.
- 15d ago Changed · +1 lines 9a819cbcf595
- 22d ago First seen · 83 lines · 147 tokens per session scan A 014037d20b60
creating-customer-analytics-account-widgets is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 147 tokens to every session and 1,387 once invoked, about $0.0006 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-12.
creating-customer-analytics-account-widgets compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| creating-customer-analytics-account-widgetsPostHog/posthog-foss | Skill | 736 | today | MIT | A | 147 | 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 |