feat(skills): add int-clarity — Microsoft Clarity Data Export integration#104
Open
mt-alarcon wants to merge 1 commit into
Open
feat(skills): add int-clarity — Microsoft Clarity Data Export integration#104mt-alarcon wants to merge 1 commit into
mt-alarcon wants to merge 1 commit into
Conversation
…tion Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Sorry @mt-alarcon, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
int-clarity, an integration skill for the Microsoft Clarity Data Export API (web analytics / UX friction). Clarity is free and complements GA4/Tag Manager with signals they don't expose: rage/dead/quickback clicks, scroll depth, script errors — and cross-references them with traffic dimensions.Commands
live-insights --project <p> [--days 1|2|3] [--dim1 X --dim2 Y --dim3 Z] [--json]— query theproject-live-insightsendpoint; prints a readable table or raw JSON.list-projects— list configured projects (names only, never token values).smoke [--project <p>]— standard exit-0 + JSON health-check ({overall, steps[], duration_ms}).--all— sweep every configured project (mind the per-project daily quota).Configuration
Token is per-project, read from env — never hardcoded, never printed:
CLARITY_API_TOKEN— single project, orCLARITY_TOKEN_<PROJECT>— multiple projects (selected via--project).CLARITY_API_BASE— optional override (defaulthttps://www.clarity.ms/export-data/api/v1).Design notes
urllibclient following the existingint-stripepattern (no external deps).dict(passesmake lint-http-types).numOfDays∈ {1,2,3}; dimension allowlist (Browser, Device, Country, OS, Source, Medium, Campaign, Channel, URL); max 3 dimensions.Tests
35
unittestcases (no pytest), including adversarial token-leak tests that fail if redaction is removed.Use cases
Source/Medium/Campaigndimensions.totalBotSessionCountalongsidetotalSessionCount).