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
npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a claude-codeWhat 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_suggestionshealth check
Example prompts for the agent
- Generate path-cleaning suggestions for team
2. - Run
suggest_path_cleaning_rulesfor teams2,19279without storing results. - Explain why
path_cleaning_suggestionsskipped 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-code2Manually: put the files in place
~/.claude/skills/suggesting-path-cleaning-rules/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/suggesting-path-cleaning-rules/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a codex2Manually: put the files in place
.agents/skills/suggesting-path-cleaning-rules/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a cursor2Manually: put the files in place
.cursor/skills/suggesting-path-cleaning-rules/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install PostHog/ai-plugin skills/suggesting-path-cleaning-rules2Manually: put the files in place
.github/skills/suggesting-path-cleaning-rules/SKILL.md1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a gemini-cli2Platform CLI
gemini skills install https://github.com/PostHog/ai-plugin --path skills/suggesting-path-cleaning-rulesManually: put the files in place
.devin/skills/suggesting-path-cleaning-rules/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill suggesting-path-cleaning-rules -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.