Install
$ agentstack add skill-agenkin-telemetrydeck-analytics-analytics ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
TelemetryDeck Analytics
Answers product-analytics questions against the TelemetryDeck v3 API via the bundled tdq CLI. Stdlib-only, cross-platform, OS-native secret storage, no .env, no repo-local files.
This skill ships as part of the telemetrydeck-analytics Claude plugin. While the plugin is enabled, the tdq wrapper is on PATH, so you can call it directly as tdq . If the wrapper isn't available (e.g. running outside Claude Code), fall back to python3 "$SKILL_DIR/tdq.py" .
User-invokable slash skills
The plugin exposes focused slash commands for common tasks — prefer them when the user's intent maps cleanly to one:
| Slash command | What it does | |---|---| | /telemetrydeck-analytics:setup | First-run login + app picker. | | /telemetrydeck-analytics:doctor | End-to-end health check. | | /telemetrydeck-analytics:apps [list\|use\|add\|remove\|refresh] | Manage registered apps. | | /telemetrydeck-analytics:dau [args] | Daily active users. | | /telemetrydeck-analytics:mau [args] | Monthly active users. | | /telemetrydeck-analytics:groupby [args] | Breakdown by a dimension. | | /telemetrydeck-analytics:events | Schema discovery (7d + 30d event counts). | | /telemetrydeck-analytics:signals [args] | Top-N events, raw pipeline triage. | | /telemetrydeck-analytics:query | Run raw TQL. | | /telemetrydeck-analytics:report | Generate a markdown analytics report. |
This main skill handles the ambient / conversational case ("is the Pro share growing?", "why aren't signals arriving?") — it's model-invoked when a question needs analytics but doesn't match a slash command exactly.
First-run setup (once per machine)
tdq login
Prompts for email and password, mints a bearer, then lists the apps on your TelemetryDeck account and asks you to pick one. No need to know the app UUID up front. If the listing endpoint isn't exposed for your account, the CLI falls back to a manual UUID prompt.
Secrets (password + bearer) go into the OS-native store:
- macOS — Keychain via
security(servicetelemetrydeck-cli). - Linux — libsecret via
secret-toolif installed (GNOME Keyring, KWallet-libsecret, etc.). - Windows / Linux without
secret-tool— file fallback at/secrets.jsonmode 0600, with a one-time stderr warning. Installlibsecret-toolson Linux (apt install libsecret-tools) for a proper keyring.
Non-secret state (email, registered apps, token expiry) lives in a platform-appropriate config directory:
- macOS:
~/Library/Application Support/TelemetryDeckCLI/config.json - Linux:
$XDG_CONFIG_HOME/TelemetryDeckCLI/config.json(or~/.config/...) - Windows:
%APPDATA%\TelemetryDeckCLI\config.json
After setup, every subcommand auto-refreshes the bearer on expiry or HTTP 401.
$SKILL_DIR = the absolute directory of this SKILL.md (inside the plugin at skills/analytics/). Use it to read bundled reference files (tql/index.md, reference.md); prefer the tdq PATH wrapper for invocations when it is available, otherwise fall back to python3 "$SKILL_DIR/tdq.py" as noted above.
Verify setup:
tdq doctor
Reports pass/fail for platform (+ which secret backend is active), config, secret store, auth, and a trivial query round-trip with remediation hints.
Managing multiple apps
If your TelemetryDeck account has more than one app, the CLI registers them all at login time. Switch between them, add more, or remove entries with the apps subcommand:
tdq apps # list registered apps, * marks current
tdq apps use MyApp # switch by display name
tdq apps use # switch by UUID
tdq apps use 2 # switch by 1-based index from `apps`
tdq apps add --name "New App" [--set-current]
tdq apps remove
tdq apps refresh # re-pull the list from the API
Every query command also accepts a one-off --app-id flag that bypasses the current-app setting for a single invocation.
Subcommands
| Command | Purpose | |---|---| | login [--app-id UUID] [--reset] | Email/password prompt, mint bearer, interactive app picker. --app-id skips the picker. | | apps [list\|use\|add\|remove\|refresh] | Manage the registered apps and switch the current one. Bare apps = list. | | logout | Wipe stored secrets and config file. | | whoami | Show user/org info (raw JSON). | | doctor | End-to-end setup check. Fails if the round-trip returns zero rows. | | test | Runs 3 known-good queries (timeseries, topN, groupBy), prints raw post-unwrap JSON + parsed row counts. Use when results look suspicious or after an API change. | | dau [--interval S\|--days N] [--event E] | Daily active users (cardinality of clientUser per day). | | mau [--interval S\|--months N] [--event E] | Monthly active users. | | groupby [--event E] [--interval S\|--days N] [--metric count\|users] | Break down event count or user count by any dimension. | | events [--top N] | Schema discovery: merged 7-day + 30-day event list with counts. | | signals [--days N] [--top N] | Top-N event names — raw pipeline triage. | | insights / insight [--days N] | List / run saved dashboard insights. | | query [--include-test-mode] | Run raw TQL from file or stdin. |
All query-producing commands share --format table|csv|json (default: table — markdown-ready for direct paste into a report), --app-id , and --raw.
--raw / TDQ_RAW=1: prints the raw (post-envelope-unwrap) TelemetryDeck response to stderr before the formatted output. Reach for this the moment the formatted table says (no rows) — if the raw blob is non-empty, the parser dropped data (file a bug or re-check _flatten_result); if the raw blob itself is empty or a success-envelope with "rows": [], the query is genuinely empty and you need to widen the window or fix the filter.
Named intervals (--interval) accepted by dau, mau, groupby: last-Nd for any N (e.g. last-7d, last-30d, last-90d), plus calendar-aware windows last-week, this-week, last-month, this-month, last-year, this-year, with aliases wtd, mtd, ytd. --interval wins over --days / --months when both are set.
Period comparison (--compare prior-period) on dau, mau, groupby: runs the same query against the immediately prior period, joins on the dimension (for topN / groupBy) or sums metrics (for timeseries), and emits one row per key with current, prior, delta, pct columns. For last-Nd, prior = the preceding N days. For last-week/last-month/last-year, prior = the completed period before that. For this-X to-date intervals, prior = the full last-X calendar period (note: this compares partial-to-full, which is usually what you want for "trending up?" questions but may understate growth early in a period — call this out in reports).
The query subcommand auto-injects the mandatory appID + isTestMode=false filter when the TQL has no filter key or sets it to the sentinel { "__auto_app_and_test_mode_filter__": true }. If you write your own filter, include both selectors yourself — otherwise the result mixes other apps in the tenant and test-mode traffic.
Worked example — "Is license mix shifting?"
User: "Has our Pro share grown month-over-month?"
Claude runs:
tdq groupby license --event App_launched \
--interval last-30d --compare prior-period
Output:
| license | count_current | count_prior | delta | pct |
|---------|---------------|-------------|-------|---------|
| Free | 1823 | 1520 | 303 | +19.9% |
| Pro | 412 | 380 | 32 | +8.4% |
| Trial | 0 | 27 | -27 | — |
Claude reports inline:
> License mix, last 30d vs. prior 30d (opt-in sample): Pro event share moved from 19.7% → 18.4% despite absolute Pro events rising +8.4% (412 vs 380). Free grew faster (+19.9%), diluting the Pro share. The Trial segment disappeared (27 → 0) — worth confirming with engineering whether the Trial license value is still emitted. Counts are App_launched events, not unique users; for user-share, re-run with --metric users.
Worked example — "What's our license mix?"
User: "What's our Free/Pro split over the last 30 days?"
Claude runs:
tdq groupby license --event App_launched --days 30
Output:
| timestamp | license | count |
|----------------------|---------|-------|
| 2026-03-19T00:00:00Z | Free | 1823 |
| 2026-03-19T00:00:00Z | Pro | 412 |
| 2026-03-19T00:00:00Z | | 98 |
Claude reports inline:
> License mix, last 30d (opt-in sample): Free 78.2% (1823), Pro 17.7% (412), unknown/null 4.2% (98). Counts are App_launched events, not unique users — use --metric users for unique-user share. Numbers reflect the opted-in cohort only; note any known opt-in bias when interpreting.
Report structure (only if user asks for a saved report)
Default is inline in chat. If the user wants a file, ask where to save it — write to their absolute path. Suggest ~/Documents/TelemetryDeck/YYYY-MM-DD-.md or ~/Downloads/. Never create analytics/, reports/, or any new top-level directory in the current working directory.
Structure:
- Question — one sentence.
- Top-line answer — one paragraph, concrete numbers and date range.
- Method — CLI invocation or resolved TQL so the run is reproducible.
- Caveats — opt-in sample bias, test-mode exclusion, channel skew (App Store vs. direct), cohort window.
- Raw result (optional appendix).
Triage heuristics
- "DAU / MAU trend" →
dau --interval last-30d,mau --interval last-6d(ormau --months 6). - "Week-over-week growth?" →
dau --interval last-7d --compare prior-period. - "Is this month beating last month?" →
dau --interval this-month --compare prior-period. Remember:this-*compares partial-to-full; note the caveat in the report. - "License or version split" →
groupby license --event App_launched --interval last-30d,groupby majorSystemVersion --metric users --interval last-7d. - "License mix trend" →
groupby license --event App_launched --interval last-30d --compare prior-period. - "Which events exist?" or "is event X firing?" →
events(merged 7d + 30d table). If X is absent from 7d but present in 30d, the event stopped firing — likely gated by a user setting (classic failure:@AppStoragedefault not mirrored viaUserDefaults.register(defaults:), soUserDefaults.bool(forKey:)silently returnsfalse). - "Where do users drop off?" → write a
funnelTQL query and pipe toquery -. The CLI doesn't ship a funnel recipe yet; funnel steps vary enough that a bad default is worse than raw JSON. - "Crashes" → not this skill. Sentry or equivalent.
Raw TQL workflow
For queries the recipes don't cover, pipe TQL to query -:
cat ` (macOS) briefly exposes the password to `ps` on the local machine. Same-user visibility only, but a real limitation; fix requires a pty workaround.
- File-backend fallback (Windows, Linux without `libsecret`) stores secrets at `/secrets.json` with mode 0600. Disk-readable by the same user, which is strictly weaker than a keyring. Install `libsecret-tools` on Linux for a proper keyring; on Windows, prefer env vars (`TELEMETRYDECK_TOKEN`, `TELEMETRYDECK_PASSWORD`) until Credential Manager support lands.
- No funnel/retention recipes yet. Raw TQL via `query -` works.
- `--compare prior-period` for `this-X` intervals compares partial-to-full (e.g. this-month-to-date vs. all of last month). Call this out in reports where it matters; reach for `last-Nd --compare prior-period` if you want like-for-like windows.
## Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- **Author:** [agenkin](https://github.com/agenkin)
- **Source:** [agenkin/telemetrydeck-analytics](https://github.com/agenkin/telemetrydeck-analytics)
- **License:** MIT
- **Homepage:** https://github.com/agenkin/telemetrydeck-analytics
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.