experience-afv-analytics-query
БесплатноБез исполняемых скриптовНе проверенSystem-of-record for the public Lightning Instrumentation Headless Connect REST API route that retrieves Agentforce Vibes (AFV) metrics, analytics, data, and…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Agentforce Vibes metrics
Use this skill when a user asks to retrieve Agentforce Vibes (AFV) usage or instrumentation metrics for the current Salesforce org.
This skill describes one public, read-only Connect API operation:
- Get AFV metrics — trigger phrases: "get afv metrics", "agentforce vibes metrics", "afv analytics", "fetch agentforce vibes analytics", "headless afv metrics", "afv data", "agentforce vibes data", "get afv adoption usage data", "Vibes adoption", "token/LOC metrics", "weekly active users", "per-user AFV activity", "current or prior AFV metrics", "AFV model metrics", "AFV metrics by org type", and "filter AFV metrics by record type". Primary route:
GET /instrumentation/afv-metrics(operationId: getAFVMetrics).
The route is available at external API version v68.0 or later. Call it at
v68.0; do not infer a lower version from the source
spec's generic info.version or servers example. v67.0 returns
404 NOT_FOUND. A version above the org's own maximum also returns 404;
that is an org limit, not a reason to call a version below v68.0.
Workflow
- Call
GET /services/data/v68.0/instrumentation/afv-metrics. - Send no path parameters, query parameters, or request body.
- Read the returned
AFVMetricsOutputRepresentation:success— whether the metrics download succeeded.message— an optional status or failure message.rows— an array of metric maps; each map can contain heterogeneous metric names and values.
- If
successisfalse, surfacemessageand the raw response. Do not present the rows as a successful metrics result or retry automatically. - If
successistrueandrowsis empty, report the no-data result and stop. Do not retry, treat it as an API error, or fall back to an internal API. - Branch on each row's
recordTypebefore reading class-specific fields. Do not assume that any particular record class is present. Preserve unknown record types and fields instead of dropping them.
Optional result filters
Users can narrow the displayed metrics with optional result filters. These
filters control local processing after the complete response is received; they
are not Connect API query parameters or get-afv-metrics dispatch inputs.
| Filter | Accepted value | Matching rule |
|---|---|---|
period |
current (default) or prior |
Exact match on rows[*].period. Reject another explicit value before calling the API. |
orgType |
All (default) or an org-type value returned by the API |
Case-insensitive exact match on rows[*].orgType. All is a literal roll-up value, not a wildcard. |
recordType |
One or more record-type names | Exact match on rows[*].recordType. Known values include aggregate, dailyTimeSeries, modelMetrics, orgBreakdown, userMetrics, and weeklyActiveUsers, but accept an exact future value when the user supplies it. |
modelName |
All (default) or a model name returned by the API |
Case-insensitive exact match on rows[*].modelName. All is a literal roll-up value, not a wildcard. |
| Other returned row field | Explicit field name and value supplied by the user | Exact match only when that field is present. Do not invent aliases or assume the field exists on every record type. |
If the user does not supply period, apply period=current; if the user does
not supply orgType, apply orgType=All; if the user does not supply
modelName, apply modelName=All. These are default local result filters. An
explicit value overrides its corresponding default. A request that compares
the current and prior periods explicitly selects both values and therefore
overrides the single-period default. Likewise, a request to compare or rank
models explicitly selects the concrete model names present in the response
instead of the All model roll-up. If the user supplies more than one filter
name, combine them with AND. If the user supplies multiple values for the same
field, match any of those values. Each default still applies when the user
supplies another filter but omits one of these three fields.
Apply filters only after checking HTTP status, success, and the unfiltered
rows array:
- Capture the requested result filters from the user's prompt and add the
defaults
period=current,orgType=All, andmodelName=Allwhen those fields were omitted and the request does not imply a multi-value comparison. - Call
get-afv-metricsonce with no arguments and no query string. - If
successisfalseor the completerowsarray is empty, follow the normal response handling without filtering. - Otherwise, filter the returned rows in memory and render the matching rows.
- Report the filters applied, the total rows returned by the API, and the number of rows matched.
A successful response with rows but zero filter matches, including when a default filter finds no rows, is a successful zero-match view, not an empty API response. Report that th
Установить experience-afv-analytics-query в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл experience-afv-analytics-query?
System-of-record for the public Lightning Instrumentation Headless Connect REST API route that retrieves Agentforce Vibes (AFV) metrics, analytics, data, and adoption/usage insights, including token/LOC, weekly active-user, and per-user activity. Supports local result filtering by period (default current), orgType (default All), recordType, modelName (default All), and other explicitly returned row fields after one parameterless API call.
Как установить скилл experience-afv-analytics-query?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл experience-afv-analytics-query запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic