Skip to main content
skill CX Codex

suggesting-path-cleaning-rules — Claude Code skill: setup and features

suggesting-path-cleaning-rules is a Claude Code skill that proposes URL path-cleaning rules for web analytics. It engages on requests to generate or inspect suggestions and troubleshoot path_cleaning_suggestions issues.

no license 148 installs ★ 101 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a claude-code
Open on GitHub

What suggesting-path-cleaning-rules does

The skill explains how path-cleaning suggestions are generated for web analytics teams. The process samples real paths, asks a language model for regex-and-alias pairs, then tests each rule against the sample. Rules that fail compilation or match no paths are discarded. The guide covers the suggest_path_cleaning_rules management command, health checks, and team eligibility.

The scheduled check runs weekly, and teams with existing rules or too few distinct paths can be skipped. Suggestions are saved for review, not applied automatically; applying them changes historical chart values and remains a human decision. Direct rule authoring or application belongs to the separate managing-path-cleaning-rules skill.

What it helps with

  • generate path-cleaning suggestions for a team
  • find out why a team was skipped
  • review suggestions before applying rules
  • inspect the path_cleaning_suggestions health check

Example prompts for the agent

  • Generate path-cleaning suggestions for team 2.
  • Run suggest_path_cleaning_rules for teams 2,19279 without storing results.
  • Explain why path_cleaning_suggestions skipped this team.

How to install suggesting-path-cleaning-rules

1Skills CLI (Vercel)

npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a claude-code

2Manually: put the files in place

~/.claude/skills/suggesting-path-cleaning-rules/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/suggesting-path-cleaning-rules/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about suggesting-path-cleaning-rules

How do I install suggesting-path-cleaning-rules in Claude Code?

Run npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a claude-code. The skill file is placed at ~/.claude/skills/suggesting-path-cleaning-rules/SKILL.md.

What does suggesting-path-cleaning-rules do?

It documents how to generate and validate URL path-cleaning rules for web analytics. It also covers team eligibility, health checks, and storing suggestions for review.

Does suggesting-path-cleaning-rules apply rules automatically?

No. It stores suggestions for review, while a person decides whether to apply them because application changes historical chart values.

Similar skills

All skills for Data and databases →

From the same set82

The whole set →
analyzing-task-runs analyzing-task-runs — a Claude Code skill that breaks down a completed task run from its log and records the activities. It starts when asked to analyze a run or review an attached log. CX Codex +1 148installs review-hog-resolution-criteria The review-hog-resolution-criteria Claude Code skill resolves open pull request review comments. It makes verifiable changes, explains declines, and hands risky decisions to a person. CX Codex +1 148installs working-with-scouts The working-with-scouts Claude Code skill helps manage PostHog Signals scouts that watch a project and send reports to the Signals inbox. Assign monitoring tasks, review findings, and steer the scouts with feedback. CX Codex +1 148installs setting-up-warehouse-properties The setting-up-warehouse-properties Claude Code skill maps warehouse columns to person or group properties in PostHog. It runs for reverse ETL setup or when replacing a recurring identify job. CX Codex +1 148installs authoring-data-quality-checks authoring-data-quality-checks is a Claude Code skill that adds and runs dbt-style data quality checks on warehouse tables and HogQL metrics. It runs when validating models or checking for nulls and duplicates. CX Codex +1 148installs querying-canvas-data The querying-canvas-data Claude Code skill helps put PostHog data into a canvas and make its metrics traceable to their source. It applies when a canvas needs charts, tables, analytics events, or data from GitHub or an MCP server. CX Codex +1 148installs creating-surveys The creating-surveys Claude Code skill creates PostHog surveys and forms through MCP. It activates for requests to build a survey or call survey-create. CX Codex +1 127installs checking-member-access The checking-member-access Claude Code skill explains member and role permissions in a PostHog project through access-control MCP tools. It answers who can view or edit dashboards, flags, and data. CX Codex +1 122installs

Project sponsors

Companies that keep this analytics open