metric-auditor
Skill36 starsChanged 16 days agoMITView on GitHub
Audit existing metrics and segments for staleness, duplicates, bad configuration, and naming issues. Use when the user wants to clean up their Fullstory account, find redundant objects, or understand what already exists.
In this repository45 other files it gives its agents.
- a11y-analyzerSkill
- annotation-opsSkill
- anomaly-detectorSkill
- api-monitorSkill
- benchmark-analyzerSkill
- campaign-trackerSkill
- changelog-detectiveSkill
- cohort-compassSkill
- comparisonsSkill
- customer-360Skill
- dashboard-builderSkill
- deploy-radarSkill
- error-forensicsSkill
- experiment-analyzerSkill
- feature-adoptionSkill
- form-analyzerSkill
- frustration-hunterSkill
- funnel-doctorSkill
- general-analysisSkill
- heatmap-generatorSkill
- incident-responderSkill
- jira-bug-reporterSkill
- journey-builderSkill
- lifecycle-analyzerSkill
- mobile-analyzerSkill
- nps-proxySkill
- onboarding-tutorSkill
- page-performanceSkill
- persona-builderSkill
- predictive-alertsSkill
- privacy-auditorSkill
- query-translatorSkill
- quick-statsSkill
- report-deckSkill
- retention-analyzerSkill
- revenue-impactSkill
- scroll-depth-analyzerSkill
- segment-wizardSkill
- session-playlistSkill
- session-reviewSkill
- session-searchSkill
- slack-reporterSkill
- user-journeySkill
- webhook-healthSkill
- weekly-digestSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Search broadly to get the lay of the land:
- Very specific: line 34
If the account is large, narrow by keyword: fullstory:get_metric(regex="checkout").
- Distinctive: line 90
Never delete anything without explicit confirmation.
- Distinctive: line 91
When ranking by view count, treat anything with 5x or more views than the next candidate as canonical.
- Distinctive: line 92
If the account has >50 metrics or segments, don't list them all in the response.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Metric Auditor
Audit your Fullstory account — find duplicate metrics, stale segments nobody uses, misconfigured objects, and naming inconsistencies. Keeps the shared workspace clean so the team trusts the numbers.
When This Runs
Invoked automatically when general-analysis finds multiple candidates for a search and needs to determine which one is canonical. Also runs when the user explicitly asks:
- "Are there duplicate metrics in our account?"
- "Clean up our segments — which ones are stale?"
- "What metrics exist for checkout?"
- "Is anyone actually using this segment?"
Mental Model
Fullstory accounts accumulate cruft over time — metrics built for a one-off question, segments created for a meeting three months ago, copies of copies with slightly different names. This skill finds and diagnoses that cruft.
Workflow
Step 1: Discover everything
Search broadly to get the lay of the land:
fullstory:get_metric(regex="") → list all metrics
fullstory:get_segment(regex="") → list all segmentsIf the account is large, narrow by keyword: fullstory:get_metric(regex="checkout").
Step 2: Check popularity
For every object found, call fullstory:get_view_count (up to 10 IDs at a time):
- High view count: Actively used — canonical, trusted.
- Low view count: Maybe stale — built once, never referenced again.
- Zero views: Almost certainly stale — safe to flag for cleanup.
Step 3: Identify issues
Duplicates: Two metrics with nearly identical names and the same output type. Example: "checkout conversion" and "checkout conversion rate" both returning single_number. Flag: pick the one with higher view count as canonical.
Stale objects: Zero views and created more than 30 days ago. Flag for deletion.
Naming problems: "Untitled metric", "Segment 1", "Copy of checkout funnel". Suggest renaming.
Misconfigured: A segment that filters by a property that no longer exists, or a trend metric built as single_number. These are harder to detect without computing — flag if the name doesn't match the output type.
Orphans: A metric that references a segment that no longer exists (the segment_id was deleted). These will error on compute — flag them.
Step 4: Present the audit
## Metric Audit
### Duplicates (2 pairs)
1. "checkout conversion" (247 views) vs "checkout conversion rate" (12 views)
→ Keep the first, delete or rename the second
2. "signup page views" (89 views) vs "Signup Page views" (3 views)
→ Keep the first (consistent casing), delete the second
### Stale (5 objects, 0 views)
- "Q1 experiment metric" (created Jan 15, never viewed)
- "Test segment for meeting" (created Mar 3, never viewed)
- ... (3 more)
### Naming issues (3 objects)
- "Untitled metric" → rename to describe what it measures
- "Segment 1" → rename to describe the cohort
- "Copy of checkout funnel" → merge with original or rename
### Total: 47 metrics, 23 segments. 5 objects flagged.
Want me to rename the canonic, delete the stale ones, or dig into any specific object?Step 5: Clean up (if user says yes)
For duplicates: rename the canonical one (if needed), flag the duplicate for deletion.
For stale objects: confirm before deleting — the user might know something you don't.
For naming: suggest a new name and apply it with fullstory:update_metric or fullstory:update_segment.
Guidelines
- Never delete anything without explicit confirmation. Flagging is safe; deleting is not.
- When ranking by view count, treat anything with 5x or more views than the next candidate as canonical.
- If the account has >50 metrics or segments, don't list them all in the response. Summarize with stats (total, stale count, duplicate count) and offer to drill into specific categories.
- An object with zero views might be important — it could be brand new, or used via the API (which doesn't increment view count). Flag with a warning, don't assume it's garbage.
- Focus on actionable findings. A clean audit with nothing to fix is a good audit — report that and move on.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

