Opik Analytics Instrumentation
comet-ml/opik
Shows how to add product analytics events to Opik's frontend, Java backend and Python SDK, all reporting through Segment to PostHog with an opik_ name prefix.
Consolidate PostHog error tracking issues that are the same actual error reported under different fingerprints.
$ npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PostHog/posthog-foss grouping-noisy-errors --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .claude/skills && cp -r skills-src/products/error_tracking/skills/grouping-noisy-errors .claude/skills/grouping-noisy-errors && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "grouping-noisy-errors" agent skill from https://github.com/PostHog/posthog-foss/tree/master/products/error_tracking/skills/grouping-noisy-errors into .claude/skills/grouping-noisy-errors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "grouping-noisy-errors", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PostHog/posthog-foss/tree/master/products/error_tracking/skills/grouping-noisy-errorsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PostHog/posthog-foss grouping-noisy-errors --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .agents/skills && cp -r skills-src/products/error_tracking/skills/grouping-noisy-errors .agents/skills/grouping-noisy-errors && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "grouping-noisy-errors" agent skill from https://github.com/PostHog/posthog-foss/tree/master/products/error_tracking/skills/grouping-noisy-errors into .agents/skills/grouping-noisy-errors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "grouping-noisy-errors", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PostHog/posthog-foss grouping-noisy-errors --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/products/error_tracking/skills/grouping-noisy-errors .cursor/skills/grouping-noisy-errors && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "grouping-noisy-errors" agent skill from https://github.com/PostHog/posthog-foss/tree/master/products/error_tracking/skills/grouping-noisy-errors into .cursor/skills/grouping-noisy-errors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "grouping-noisy-errors", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PostHog/posthog-foss.git --path products/error_tracking/skills/grouping-noisy-errors--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PostHog/posthog-foss grouping-noisy-errors --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/products/error_tracking/skills/grouping-noisy-errors .gemini/skills/grouping-noisy-errors && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "grouping-noisy-errors" agent skill from https://github.com/PostHog/posthog-foss/tree/master/products/error_tracking/skills/grouping-noisy-errors into .gemini/skills/grouping-noisy-errors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "grouping-noisy-errors", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PostHog/posthog-foss grouping-noisy-errorsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .github/skills && cp -r skills-src/products/error_tracking/skills/grouping-noisy-errors .github/skills/grouping-noisy-errors && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "grouping-noisy-errors" agent skill from https://github.com/PostHog/posthog-foss/tree/master/products/error_tracking/skills/grouping-noisy-errors into .github/skills/grouping-noisy-errors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "grouping-noisy-errors", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PostHog/posthog-foss grouping-noisy-errors --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PostHog/posthog-foss.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/products/error_tracking/skills/grouping-noisy-errors .opencode/skills/grouping-noisy-errors && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "grouping-noisy-errors" agent skill from https://github.com/PostHog/posthog-foss/tree/master/products/error_tracking/skills/grouping-noisy-errors into .opencode/skills/grouping-noisy-errors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "grouping-noisy-errors", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
grouping-noisy-errorsConsolidate PostHog error tracking issues that are the same actual error reported under different fingerprints.
Grouping Noisy Errors is an agent skill from PostHog/posthog-foss, published by the product's own GitHub organization. Consolidate PostHog error tracking issues that are the same actual error reported under different fingerprints. Use when the user asks "why do I have so many TypeError issues that look the same?", "merge these duplicates", "stop splitting this error into new issues", or wants to clean up fingerprint sprawl. Decides between a one-shot merge of existing issues and a durable grouping rule that keeps future events from creating new fingerprints. Does NOT group conceptually similar bugs across different runtimes…
Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It works with PostHog. The repository describes itself as: PostHog FOSS is a read-only mirror of PostHog, with all proprietary code removed. NOTE: This repo is synced automatically from the main PostHog repo. Please raise any issues and… The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 2c48221. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Grouping Noisy Errors loads about 3.5k tokens when it runs. Until then it costs about 139 tokens; SKILL.md has 1,661 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from PostHog/posthog-foss at commit 2c48221, republished under its MIT licence (© PostHog). 1,661 words, ~3,461 tokens.
.claude/skills/grouping-noisy-errors/SKILL.md (or your agent's skills folder).The same error can be reported as dozens of separate issues when stack frames or messages contain volatile data — random IDs, dynamic file paths, build hashes, anonymous function names. The fix is two-step: merge the existing issues into one target, then create a grouping rule so future events from the same call site share a single canonical fingerprint instead of spawning new ones.
Important up front: "same error" here is narrow. Two issues that share a name or
a sentence of message text but came from different code paths, different SDKs,
or different runtimes are different errors and should stay separate, even if
the user thinks of them as "the same kind of bug". Grouping a frontend
TypeError together with a backend TypeError because both messages contain
"undefined" destroys the signal that lets the team find each one. The criteria
in step 1 exist to keep that from happening.
| Tool | Purpose |
|---|---|
posthog:query-error-tracking-issues-list | Find candidate duplicate issues |
posthog:query-error-tracking-issue | Pull compact details for an individual issue |
posthog:query-error-tracking-issue-events | Sampled $exception events with stack and message |
posthog:error-tracking-issues-merge-create | Merge existing issues into a target |
posthog:error-tracking-issues-split-create | Surgically split fingerprints back out if a merge errs |
posthog:error-tracking-grouping-rules-create | Auto-group future events into one issue |
posthog:error-tracking-grouping-rules-list | Check existing grouping rules before adding new ones |
posthog:error-tracking-issues-partial-update | Rename or re-describe the target after a merge |
The two tools solve different halves of the problem:
custom-rule:<rule_id> at ingestion time, so all future matches
share one canonical fingerprint rather than spawning new ones. The first
match either creates a new issue keyed off that fingerprint, or routes to
whatever issue is already bound to it.Use both together when the issue is recurring: merge historical duplicates
into a target issue, then create the rule. The rule API does not accept a
target issue ID — once the rule starts firing, the resulting custom-rule:...
issue can be merged into the same target so the consolidation sticks. Use
merge alone for historical sprawl that you don't expect to recur. Use a
grouping rule alone for a brand-new pattern you're getting ahead of, when
you don't need to consolidate with an existing issue.
Search by exception type or message to find candidates:
posthog:query-error-tracking-issues-list
{
"searchQuery": "TypeError: Cannot read property",
"status": "active",
"limit": 50,
"orderBy": "occurrences",
"dateRange": { "date_from": "-30d" }
}For each candidate, pull one sampled exception event to compare stack, type, and message:
posthog:query-error-tracking-issue-events
{
"issueId": "<candidate_issue_id>",
"limit": 1,
"include": ["exception", "stacktrace", "environment"]
}Run this once per candidate. The tool defaults to onlyAppFrames: true, which
makes the top in-app frame stand out at a glance. If two candidates share the
same top frame and same exception type, they're likely the same error — but
verify against the full checklist below before merging.
Treat two issues as duplicates only when every one of these matches:
$lib is the same SDK. The browser/JS SDK captures $lib as web (not
posthog-js); server SDKs use posthog-python, posthog-node, etc. Confirm
the exact value with read-data-schema (event_property_values for $lib on
$exception) rather than assuming — a wrong value silently matches nothing.
Errors from different SDKs almost always come from different code paths even
when the exception type matches.$exception_types).$exception_handled agrees (both handled or both unhandled). A caught
variant and an uncaught variant are different code paths and benefit from
staying separate.If any single one of those differs, they are not duplicates — investigate
separately (investigating-error-issue).
These are the failure modes that destroy debugging signal. Do not group across any of them, even when the user describes them as "the same kind of bug":
TypeError
from a browser bundle and a TypeError from a Node service share a name and
often a message word, but the stack, the runtime, and the fix all differ.web (browser/JS) vs posthog-python vs
posthog-node are different call sites.NullPointerException thrown from OrderService.cancel is not the same bug
as one thrown from PaymentService.refund, even if both messages say
"user was null".$exception_handled
are usually a code path that swallows the error in one place and lets it
propagate in another — keeping them separate makes that visible.Pick the issue that should absorb the others:
first_seen — preserves the original timelineNote the target's ID. The other candidates become ids to merge in.
posthog:error-tracking-issues-merge-create
{
"id": "<target_issue_id>",
"ids": ["<duplicate_id_1>", "<duplicate_id_2>", "..."]
}Merge is destructive (annotation destructive: true) — once issues are merged
into a target, the source issues are gone from the active list. Confirm the
target with the user before calling. Cap each merge call at ~50 source IDs to
keep failures localized; for larger sprawl, batch.
Merged changes may not appear in the issue list immediately — re-listing right
after the call can still show the source issues for a short window. If a
follow-up error-tracking-issues-list call looks unchanged, wait a few seconds
and re-query rather than re-issuing the merge.
If after the merge the target's metadata looks wrong (a duplicate had a better
name), use error-tracking-issues-partial-update to fix the name or description
on the target rather than re-merging.
A grouping rule is worth creating when both are true:
The canonical exception properties ($exception_types, $exception_values
for messages, $exception_sources for file paths, $exception_functions for
function names) are arrays at capture time. PostHog's property filters
special-case them — each filter matches against the individual array
elements, so all the standard operators (exact, is_not, icontains,
not_icontains, regex, not_regex) work with the bare value:
exact "TypeError", not exact '["TypeError"]' or regex '"TypeError"'.
The singular forms ($exception_type, $exception_message) and
$exception_stack_trace_raw are emitted on a fraction of a percent of events;
filtering on them produces a rule that silently never matches.
If the volatility is in the message (e.g.,
TypeError at /static/main.<hash>.js), a regex filter on $exception_values
works. If the volatility is in line numbers within a known file, icontains
on $exception_sources does. $exception_handled is also a useful narrowing
dimension — separate handled vs unhandled rather than mixing them.
Skip the grouping rule when:
Translate the step 1 "same error" checklist into rule filters. A rule that
matches more loosely than the checklist will silently merge unrelated bugs
forever — the rule is more dangerous than the merge because it runs against
every future event. At a minimum, scope by SDK and exception type, and add
a third dimension (file path via $exception_sources, or a specific message
phrase via $exception_values) to pin the call site.
Confirm the $lib value first — the browser/JS SDK captures $lib="web", not
posthog-js, so a rule filtering on posthog-js silently never matches. Verify
with read-data-schema (event_property_values for $lib on $exception)
before baking a value into the rule:
posthog:error-tracking-grouping-rules-create
{
"filters": {
"type": "AND",
"values": [
{
"type": "event",
"key": "$lib",
"operator": "exact",
"value": "web"
},
{
"type": "event",
"key": "$exception_types",
"operator": "exact",
"value": "TypeError"
},
{
"type": "event",
"key": "$exception_sources",
"operator": "icontains",
"value": "/static/checkout/"
},
{
"type": "event",
"key": "$exception_values",
"operator": "icontains",
"value": "Cannot read property"
}
]
},
"description": "Cleanup: collapse noisy checkout TypeError fingerprints (web)"
}Rules are evaluated in order. List existing rules first
(posthog:error-tracking-grouping-rules-list) — if a rule already partially
covers the pattern, prefer adjusting its filter over stacking a near-duplicate.
The optional assignee field auto-assigns issues created by the rule. Skip it
unless the user explicitly wants ownership baked into the rule.
Sample the merged issue's recent events to confirm the merge succeeded.
Watch for the rule's custom-rule:<rule_id> fingerprint to start matching
events — the first match creates a new issue (or routes to whatever was
already bound to that fingerprint). To keep events under your historical
target rather than scattered across the new custom-rule issue, run a second
merge folding the custom-rule issue into the target.
If new (non-rule) fingerprints continue appearing despite the rule, its filter is too narrow — widen it.
TypeErrors in different files are different bugs.error-tracking-issues-split-create if you need to surgically
separate fingerprints back out of a merged issue.suppressing-noisy-errors — drop worthless events entirely instead of regrouping themtriaging-error-issues — re-rank the issue queue once grouping is cleaned upinvestigating-error-issue — inspect a merged issue end to end© PostHog, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in products/error_tracking/skills/grouping-noisy-errors of PostHog/posthog-foss.
Open the folder on GitHubat commit 2c48221
Grouping Noisy Errors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Grouping Noisy Errors this skillPostHog/posthog-foss | 721 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Opik Analytics Instrumentationcomet-ml/opik | 22k | — | ~4.4k | Automated safety check: Pass | Apache-2.0 | |
| C15tc15t/c15t | 1.9k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Define Feature Flagmacro-inc/macro | 4.6k | — | ~780 | Automated safety check: Pass | AGPL-3.0 | |
| Soku CLIAbout-Intelligence/soku-cli | 304 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Compare Array Bundle SizePostHog/posthog-js | 613 | — | ~599 | Automated safety check: Pass | Custom licence |
comet-ml/opik
Shows how to add product analytics events to Opik's frontend, Java backend and Python SDK, all reporting through Segment to PostHog with an opik_ name prefix.
c15t/c15t
Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript.
macro-inc/macro
Define a frontend feature flag with defineFlag and wire its readers.
About-Intelligence/soku-cli
Guides an agent through the soku command line tool for ads, GA4 and PostHog data reads, ads writes, SEO hosting, automations, files and skill management.
PostHog/posthog-js
Quickly compare the posthog-js array.js bundle size in the current working tree against a git baseline using the repository's esbuild proxy.
OpenHands/OpenHands
This skill should be used when the user asks to "add tracking", "add a PostHog event", "change telemetry consent", "instrument onboarding", "debug analytics", or changes telemetry.ts…
PostHog/posthog-foss
Author useful, low-noise log alerts on services in a PostHog project.
PostHog/posthog-foss
Operating procedure for the conflict-autoresolver agent: sweep open PostHog/posthog PRs that conflict with master, resolve the trivial conflicts (generated artifacts deterministically, source…
PostHog/posthog-foss
Help users debug PostHog Error Tracking stack-trace symbolication for any supported platform — JavaScript/TypeScript web, React Native (Hermes), Android (Proguard / R8), or iOS / macOS (dSYM).
PostHog/posthog-foss
Investigates distributed application performance using PostHog APM (OpenTelemetry span) data via MCP.
PostHog/posthog-foss
Debug and inspect LLM/AI agent traces using PostHog's MCP tools.
PostHog/posthog-foss
Diagnose why a product metric changed (dropped, spiked, or plateaued) by orchestrating breakdowns, actors, paths, lifecycle, retention, and annotations queries.
Works with
Consolidate PostHog error tracking issues that are the same actual error reported under different fingerprints. Grouping Noisy Errors is an agent skill from PostHog/posthog-foss, published by the product's own GitHub organization. Consolidate PostHog error tracking issues that are the same actual error reported under different fingerprints.
Grouping Noisy Errors fits situations like: the user asks why do I have so many TypeError issues that look the same?; merge these duplicates; stop splitting this error into new issues; wants to clean up fingerprint sprawl.
Run `npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a claude-code`. Or copy the skill folder (products/error_tracking/skills/grouping-noisy-errors in PostHog/posthog-foss) into .claude/skills/grouping-noisy-errors in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a codex`. Or copy the skill folder (products/error_tracking/skills/grouping-noisy-errors in PostHog/posthog-foss) into .agents/skills/grouping-noisy-errors in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PostHog/posthog-foss --skill grouping-noisy-errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/grouping-noisy-errors, .gemini/skills/grouping-noisy-errors, .github/skills/grouping-noisy-errors and .opencode/skills/grouping-noisy-errors in your project.
SKILL.md names no scripts, command-line tools or credentials: Grouping Noisy Errors is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Grouping Noisy Errors is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Grouping Noisy Errors: Opik Analytics Instrumentation (comet-ml/opik, 22k stars), C15t (c15t/c15t, 1.9k stars), Define Feature Flag (macro-inc/macro, 4.6k stars) and Soku CLI (About-Intelligence/soku-cli, 304 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PostHog (a GitHub organization, an official publisher) maintains it in PostHog/posthog-foss, which has 721 GitHub stars. The repository holds 213 skills in this directory. The repository was last updated on October 7, 2026.
Source: PostHog/posthog-foss on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.