dx-app-analytics-query

dx-app-analytics-query is a skill for Claude Code from forcedotcom/sf-skills. It costs 147 tokens per session (1,486 once invoked), scanned A, original, Apache-2.0.

A guide for Salesforce partners that make managed packages to request package-usage and subscriber data. The requests run asynchronously, meaning the results become available later rather than immediately.

In plain words
What is it for?
Use it to create analytics requests, configure simulation or opt-out settings, choose the data type and time range, and handle completed, failed, or expired requests.
Why use it?
It explains how to request, configure, filter, download, and troubleshoot this analytics data without confusing it with ordinary Salesforce queries.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dx-isv-partner plugin — 2 skills shipped together

Good fit Use it to create analytics requests, configure simulation or opt-out settings, choose the data type and time range, and handle completed, failed, or expired requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forcedotcom/sf-skills/dx-app-analytics-query
About the project

forcedotcom/sf-skills is a collection of reusable instructions that help AI coding agents build and work with Salesforce applications and platform features. Developers use it for Agentforce agents, Lightning apps, Flow, Apex, SOQL, Lightning Web Components, and related Salesforce configuration. The catalogue entries are the repository’s skills, plugins, commands, MCP servers, and agents for AI tools that support skills.

forcedotcom/sf-skills · 1,201 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add forcedotcom/sf-skills --skill dx-app-analytics-query
Clone the repo
git clone --depth 1 https://github.com/forcedotcom/sf-skills

Made for: Claude Code.

Or install dx-isv-partner, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dx-app-analytics-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/forcedotcom/sf-skills/dx-app-analytics-query/github.svg)](https://agentmods.dev/skills/forcedotcom/sf-skills/dx-app-analytics-query)
Your own site
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/dx-app-analytics-query"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/dx-app-analytics-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dx-app-analytics-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/dx-app-analytics-query"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/dx-app-analytics-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 4 Oct 2026
  • Snyk pass 4 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00147 $0.01486
Opus 5.5 $0.00059 $0.00594
Sonnet 5.5 $0.00029 $0.00297
Haiku 4.5 $0.00015 $0.00149

Measured 2mo ago against content hash fa7409ff3017, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dx-app-analytics-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/builder/dx-isv-partner/skills/dx-app-analytics-query/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

App Analytics

When This Skill Owns the Task

Use dx-app-analytics-query when the work involves:

  • Creating AppAnalyticsQueryRequest records via the REST/sObject API
  • Configuring AppAnalyticsSettings via the Metadata API (simulation mode, opt-out)
  • Understanding the query lifecycle: New → Pending → Complete → Expired → Failed
  • Choosing between dataType values: PackageUsageSummary, PackageUsageLog, SubscriberSnapshot
  • File format and compression options for analytics downloads
  • Time-range filtering with startTime, endTime, availableSince
  • Troubleshooting failed or expired analytics queries

Delegate elsewhere when the user is:

  • Running standard CRM SOQL queries → platform-soql-query
  • Working with Data Cloud SQL or DMOs → retrieving-datacloud
  • Building reports/dashboards on standard objects → reporting skills
  • Deploying or retrieving generic metadata XML → deploying-metadata / retrieving-metadata

Available Types

AppAnalyticsQueryRequest (REST/sObject API)

An asynchronous query request that ISV partners use to retrieve usage analytics data for their managed packages from the ISV Intelligence Data Lake. Records are created via POST /services/data/vXX.0/sobjects/AppAnalyticsQueryRequest and polled via GET /services/data/vXX.0/sobjects/AppAnalyticsQueryRequest/<id>. The system processes the query and provides a presigned download URL upon completion.

Fields (14 properties):

Field Type Description
DataType string (filterable) Type of analytics data. Values: PackageUsageSummary, PackageUsageLog, SubscriberSnapshot
RequestState string (filterable) Processing status. Values: New, Pending, Complete, Expired, Failed, NoData, Delivered
StartTime string Start of time range for requested data
EndTime string End of time range. Should be set on an hour boundary
AvailableSince string Limits query to data indexed after this time (inclusive). Use for incremental retrieval
PackageIds string Comma-delimited list of managed package IDs (033-prefix)
OrganizationIds string Comma-delimited list of subscriber org IDs to filter results
DownloadUrl string Presigned URL for downloading results. Populated when RequestState is Complete
DownloadSize long Size in bytes of the result data file
DownloadExpirationTime string Time at which the download URL expires
FileType string (filterable) Output format. Values: csv, parquet
FileCompression string (filterable) Compression. Values: none, gzip, snappy
QuerySubmittedTime string Time the query was submitted to the Data Lake
ErrorMessage string Diagnostic message for failed queries

Read the full file on GitHub · 142 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +2 tokens per session fa7409ff3017
  2. 3mo ago First seen · 142 lines · 145 tokens per session scan A c0f0feca8c45

Subscribe to this mod's changes

dx-app-analytics-query is a skill published in the GitHub repository forcedotcom/sf-skills (1,201 stars, last pushed 5d ago), licensed Apache-2.0. It adds 147 tokens to every session and 1,486 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

dx-app-analytics-query compared with skills from other repositories

dx-app-analytics-query next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dx-app-analytics-queryforcedotcom/sf-skillsSkill1.2k5d agoApache-2.0A147Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code