dx-app-analytics-query

dx-app-analytics-query is a skill for Claude Code, Codex from forcedotcom/sf-skills. It costs 145 tokens per session (1,488 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 CodeCodex

Written for no agent in particular: nothing here depends on one.

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
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, Codex.

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 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,488 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 26 Aug 2026
  • Snyk pass 26 Aug 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.00145 $0.01488
Opus 5 $0.00072 $0.00744
Sonnet 5 $0.00029 $0.00298
Haiku 4.5 $0.00015 $0.00149

Measured 9d ago against content hash c0f0feca8c45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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 → data360-query
  • Building reports/dashboards on standard objects → platform-report-generate
  • Deploying or retrieving generic metadata XML → platform-metadata-deploy / platform-metadata-retrieve

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. 9d 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 (974 stars, last pushed today), licensed Apache-2.0. It adds 145 tokens to every session and 1,488 once invoked, about $0.0007 per session on Opus 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

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens