aidenlx/zotlit / .agents/skills/cloudflare-web-analytics
cloudflare-web-analytics
VerifiedQuery Cloudflare Web Analytics RUM and Core Web Vitals through the GraphQL Analytics API. Use when a Web Analytics dashboard URL or site tag is supplied, or when diagnosing CLS, LCP, or INP by page, element, browser, device, country, or host.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.4 KB |
| schema-discovery.md | markdown | 2.1 KB |
schema-discovery.md
View on GitHub# GraphQL schema discovery
Use this branch when a RUM query fails validation or when the required grouping is absent from
the standard query. Cloudflare's introspection names are case-sensitive; the root object types
are currently `viewer` and `account`.
## Find RUM datasets
```graphql
query {
__type(name: "account") {
fields {
name
description
args {
name
type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
```
Filter the returned fields to names containing `rum`. Read the selected field's `filter` and
`orderBy` type names from its arguments.
## Inspect one dataset
For `rumWebVitalsEventsAdaptiveGroups`, inspect these types:
```graphql
query {
result: __type(name: "AccountRumWebVitalsEventsAdaptiveGroups") {
fields {
name
description
type {
kind
name
ofType {
kind
name
}
}
}
}
filter: __type(
name: "AccountRumWebVitalsEventsAdaptiveGroupsFilter_InputObject"
) {
inputFields {
name
description
type {
kind
name
ofType {
kind
name
}
}
}
}
order: __type(name: "AccountRumWebVitalsEventsAdaptiveGroupsOrderBy") {
enumValues {
name
description
}
}
}
```
Then inspect the object types returned by `avg`, `dimensions`, `quantiles`, and `sum`. Select
only fields that the live schema returns.
## Validate access
Run a minimal account query before debugging a large operation:
```graphql
query($accountTag: string!) {
viewer {
accounts(filter: { accountTag: $accountTag }) {
__typename
}
}
}
```
A returned `account` object proves that the connector can read that account. An empty account
list points to the account ID or authorization. A GraphQL validation error points to the query
shape and should lead back to introspection.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |