Token导航 LogoToken导航TokenDH.com
待分类权限需确认github未标认证来源可访问许可证需确认审计通过

nice-insights-metrics很好的洞察指标

Agent Skill

nice-insights-metrics 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

218

周安装

9

GitHub Stars

公开资料未说明

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nice-insights-metrics(很好的洞察指标)
来源仓库:https://github.com/nice-insights/nice-insights-skills
仓库路径:skills/nice-insights-metrics
安装命令:
npx skills add https://github.com/nice-insights/nice-insights-skills --skill nice-insights-metrics
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nice-insights/nice-insights-skills --skill nice-insights-metrics

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适用于围绕仓库状态、代码变更或协作事项进行整理。
  • 可帮助分析指标相关代码和变更记录。nice-insights-metrics 属于待分类类 Skill,可作为该场景下的辅助能力补充。
  • 安装方式:通过 GitHub 仓库安装,使用前确认权限与维护状态。
  • 注意是否会触发联网、命令执行或文件读写操作。

SKILL.md

Nice Insights Metrics

Use these tools to answer analytics questions about advertising performance, sales, order economics, and customer acquisition costs.

Data freshness: Data is imported once daily for the *previous* day. Do not query today's date — results will be incomplete. Yesterday is always the most recent complete date.

Available Tools

ToolUse when the user asks about
list_companiesWhich companies are available (or when company_id is unknown)
query_ad_metricsAd spend, impressions, clicks, CPM, CPC, CTR
query_order_line_metricsProduct-level sales — revenue, discounts, refunds, units
query_order_metricsOrder-level costs and margins — shipping costs, fees, contribution margin, CAC
query_customer_cohort_metricsCohort retention/LTV matrices — sales, contribution margin, order counts, per-customer variants, or retention rate per cohort over time
query_timeseries_metricsBlended customer acquisition cost (CAC) trends over time
query_email_profile_metricsEmail list size, email-attributed net sales (excludes refunds), profile conversion rate by status, creation type, or flow/list
query_email_event_metricsEmail event volume (total and unique profiles) by event name, profile status, creation type, flow/list, or click source

Step 1: Identify the Company

If company_id is already known from context, use it directly.

Otherwise, call list_companies to get the list of companies the user has access to. If multiple companies are returned and the question does not clearly indicate which one, ask the user to confirm before proceeding.


Step 2: Confirm Refund Handling (BLOCKING — required before any order query)

STOP. Before calling query_order_metrics, query_order_line_metrics, or query_customer_cohort_metrics, you MUST ask the user whether to include or exclude refunds. Do NOT proceed with the tool call until they answer.

Ask: "Should I include or exclude refunds?"

  • Exclude refundstransaction_types: ["Order"] (typical for marketing/sales activity views)
  • Include refundstransaction_types: ["Order", "Refund"] (typical for finance/net revenue views)
  • No filter → omit transaction_types entirely (returns everything)

Note: If you add TRANSACTION_TYPE as a *dimension*, refund rows appear as separate rows rather than being filtered. Use this when the user wants orders and refunds broken out side by side.

Skip this step for query_ad_metrics, query_timeseries_metrics, query_email_profile_metrics, and query_email_event_metrics — they have no transaction type concept.


Step 2b: Customer Type Filter (optional)

Use customer_types to segment by buyer history. Available on query_order_line_metrics and query_order_metrics.

  • ["New"] — customers placing their first-ever order
  • ["Repeat"] — customers who have ordered before
  • Omit to include all customer types

You can also add CUSTOMER_TYPE as a dimension to break results out side by side instead of filtering.


Step 2c: Cohort Filters (optional)

Use these filters to narrow results to specific customer acquisition cohorts. Both are optional.

  • first_order_date_range — available on query_order_metrics and query_customer_cohort_metrics (required on query_customer_cohort_metrics — it defines which cohorts to include). Filters to orders where the customer's first-ever order date falls within the given range. Uses the same {start, end} format as date_range.
  • max_days_since_first_order — available on query_order_metrics, query_order_line_metrics, and query_customer_cohort_metrics. Filters to orders placed within N days of the customer's first order. Useful for analyzing early customer behavior (e.g., repeat purchases within 30 days).

Step 3: Choose the Right Tool and Metrics

Use the definitions below to infer which metrics to request based on the user's question. query_ad_metrics defaults to SPEND, IMPRESSIONS, CLICKS if no metrics are specified. All other tools require explicit metric selection.

Ad Metrics — query_ad_metrics

MetricDefinition
SPENDTotal ad spend in dollars
IMPRESSIONSTotal ad impressions served
CLICKSTotal ad clicks
CPMCost per thousand impressions (SPEND / IMPRESSIONS × 1000)
CPCCost per click (SPEND / CLICKS)
CTRClick-through rate as a percentage (CLICKS / IMPRESSIONS × 100)

Available channels: Additional Ad Spend, Tatari TV, TikTok, Amazon, AppLovin, Google, Meta.

Order Line Metrics — query_order_line_metrics

Product-level sales data. Use for revenue, discounts, refunds, units, and product mix analysis.

MetricDefinition
GROSS_SALESTotal revenue before any discounts or refunds
TOTAL_DISCOUNTTotal discount amounts applied to orders
TOTAL_REFUNDSTotal refunds issued (positive number = dollars returned to customers)
NET_SALESGROSS_SALES − TOTAL_DISCOUNT + SHIPPING_PRICE − TOTAL_REFUNDS
SHIPPING_PRICEShipping revenue charged to the customer
COGSCost of goods sold
UNIT_COUNTUnits sold (refunded units are excluded)
ORDER_COUNTDistinct orders (excludes refund transactions unless TRANSACTION_TYPE is a dimension)
CUSTOMER_COUNTDistinct customers
AVERAGE_ORDER_VALUEAverage net sales per order (context-dependent — see note below)
AVERAGE_UNIT_PRICEAverage net sales per unit (context-dependent — see note below)

Order Metrics — query_order_metrics

Order-level costs and margins. Use for profitability, fee analysis, and acquisition economics.

MetricDefinition
CONTRIBUTION_MARGINTotal Net sales minus CAC, COGS, shipping, credit card fees, and other variable costs. This is profit contribution before fixed costs
ACQUISITION_MARGINOrder value of new customers minus advertising cost — measures the profitability of acquiring new customers
ORDER_COUNTDistinct orders (context-dependent)
CUSTOMER_COUNTDistinct customers
AVERAGE_CONTRIBUTION_MARGINAverage contribution margin per order (context-dependent)
AVERAGE_ACQUISITION_MARGINAverage acquisition margin per new customer (context-dependent)

Customer Cohort Metrics — query_customer_cohort_metrics

Pivoted cohort matrix with rows per cohort (first order period) and columns per period since first order. All values are cumulative through the period. Use for retention analysis, LTV curves, and cohort comparisons. Accepts a single measure per query.

MeasureDefinition
salesCumulative sales for the cohort through each period
sales_per_customerCumulative sales divided by cohort customer count (LTV)
contribution_marginCumulative contribution margin for the cohort through each period
contribution_margin_per_customerCumulative contribution margin divided by cohort customer count
order_countCumulative number of orders for the cohort through each period
orders_per_customerCumulative orders divided by cohort customer count
retention_rateShare of the cohort still active through each period

Parameters:

  • cohort_grain: week or month (default: month) — time grain for cohort bucketing

Additional filters (unique to this tool):

  • first_order_product_name — filter to customers whose first order included this product name
  • first_order_sku — filter to customers whose first order included this SKU
  • sales_channels — filter by sales channel: Amazon, Shopify, TikTok
  • subscription_types — filter by subscription type: First, Recurring, Unknown

Timeseries Metrics — query_timeseries_metrics

Blended CAC over time. Use for trend analysis of customer acquisition efficiency. date_range is required.

MetricDefinition
DTC_BLENDED_CACDTC ad spend ÷ (Shopify + TikTok new customers)
AMZN_BLENDED_CACAmazon ad spend ÷ Amazon new customers
COMBINED_BLENDED_CAC(DTC + Amazon ad spend) ÷ all new customers
SHOPIFY_BLENDED_CAC(Meta + Google + Microsoft + Pinterest spend) ÷ Shopify new customers
TIKTOK_BLENDED_CACTikTok ad spend ÷ TikTok new customers

Email Profile Metrics — query_email_profile_metrics

Email list and profile-level conversion. Use for list growth, email profile activity, and marketing-attributed sales analysis. Metrics ending in _MAR are the *marketing* version of net sales and exclude refunds by construction.

MetricDefinition
PROFILE_COUNTDistinct email profiles
ORDER_COUNTDistinct orders attributed to these profiles
TOTAL_NET_SALES_MARMarketing-attributed net sales (excludes refunds)
AVERAGE_NET_SALES_MARAverage marketing-attributed net sales per row (group-dependent)
CONVERSION_RATEShare of profiles that placed an order

Additional filters (unique to this tool):

  • first_event_date_range — filter by the date of the profile's first email event
  • profile_statuses — filter by profile status
  • profile_creation_types — filter by how the profile was created
  • profile_creation_flow_or_lists — filter by originating flow or list name

Email Event Metrics — query_email_event_metrics

Email event activity counts (sends, opens, clicks, etc.). Use for engagement volume and trends.

MetricDefinition
TOTAL_EVENT_COUNTTotal email events recorded
UNIQUE_EVENT_COUNTDistinct profiles generating these events

Additional filters (unique to this tool):

  • event_names — filter to specific event names
  • profile_statuses, profile_creation_types, profile_creation_flow_or_lists — same semantics as in query_email_profile_metrics

Note on context-dependent metrics: ORDER_COUNT, CUSTOMER_COUNT, and average metrics (AVERAGE_ORDER_VALUE, AVERAGE_CONTRIBUTION_MARGIN, etc.) produce different SQL depending on whether TRANSACTION_TYPE is included as a dimension. When TRANSACTION_TYPE is a dimension, these metrics account for both order and refund rows separately. When it is not, they automatically filter to orders only.


Step 4: Choose Output Mode

Use inline when result sets are relatively small and you need to reason over or summarize the data directly.

Use s3_csv as the output mode when you expect more than 40 rows of data, or when the resulting data is complicated. Analyze the data with a script on your side for s3_csv output.


Available Dimensions

Time: DATE, WEEK, MONTH

Ad-specific: CHANNEL, PLATFORM, CAMPAIGN_ID, CAMPAIGN_NAME, AD_GROUP_ID, AD_GROUP_NAME, AD_ID, AD_NAME

Order/line: SALES_CHANNEL, CUSTOMER_TYPE, TRANSACTION_TYPE, PRODUCT_ID, PRODUCT_NAME, PRODUCT_VARIANT_ID, PRODUCT_VARIANT_NAME, SKU, IS_SUBSCRIPTION, SUBSCRIPTION_TYPE, ORDER_ID, CUSTOMER_ID

Cohort analysis (order line only): FIRST_ORDER_DATE, FIRST_ORDER_WEEK, FIRST_ORDER_MONTH, DAYS_SINCE_FIRST_ORDER, WEEKS_SINCE_FIRST_ORDER, MONTHS_SINCE_FIRST_ORDER

Email profile: PROFILE_CREATED_DATE, PROFILE_STATUS, PROFILE_CREATION_TYPE, PROFILE_CREATION_FLOW_OR_LIST, DAYS_FROM_CREATION_TO_FIRST_ORDER, WEEKS_FROM_CREATION_TO_ORDER_DATE, MONTHS_FROM_CREATION_TO_ORDER_DATE

Email event: EVENT_DATE, EVENT_NAME, PROFILE_STATUS, PROFILE_CREATION_TYPE, PROFILE_CREATION_FLOW_OR_LIST, CLICKED_EMAIL_SOURCE

Cohort period values: For DAYS/WEEKS/MONTHS_SINCE_FIRST_ORDER, 0 always represents the first order date itself. 1 is the 1st full day/week/month after that, 2 is the 2nd, and so on.

Note: For cohort retention/LTV analysis, prefer query_customer_cohort_metrics which returns a pre-pivoted matrix directly.


Common Query Patterns

Ad spend by channel for a date range:

query_ad_metrics(query={
  filters: { company_id: 123, date_range: { start: "2025-01-01", end: "2025-01-31" } },
  dimensions: ["CHANNEL"],
  metrics: ["SPEND", "IMPRESSIONS", "CLICKS", "CPM", "CTR"]
})

Net sales by product (excluding refunds):

query_order_line_metrics(query={
  filters: {
    company_id: 123,
    date_range: { start: "2025-01-01", end: "2025-01-31" },
    transaction_types: ["Order"]
  },
  dimensions: ["PRODUCT_NAME"],
  metrics: ["GROSS_SALES", "TOTAL_DISCOUNT", "NET_SALES", "UNIT_COUNT", "ORDER_COUNT"]
})

Monthly contribution margin by sales channel (including refunds):

query_order_metrics(query={
  filters: {
    company_id: 123,
    date_range: { start: "2025-01-01", end: "2025-03-31" },
    transaction_types: ["Order", "Refund"]
  },
  dimensions: ["MONTH", "SALES_CHANNEL"],
  metrics: ["CONTRIBUTION_MARGIN", "ORDER_COUNT"]
})

Monthly cumulative LTV by customer cohort:

query_customer_cohort_metrics(query={
  filters: {
    company_id: 123,
    first_order_date_range: { start: "2025-01-01", end: "2025-03-31" },
    transaction_types: ["Order"]
  },
  measure: "sales_per_customer",
  cohort_grain: "month"
})

Weekly blended CAC trend:

query_timeseries_metrics(query={
  filters: { company_id: 123, date_range: { start: "2025-01-01", end: "2025-03-31" } },
  dimensions: ["WEEK"],
  metrics: ["DTC_BLENDED_CAC", "AMZN_BLENDED_CAC", "COMBINED_BLENDED_CAC"]
})

Monthly email-attributed sales by profile status:

query_email_profile_metrics(query={
  filters: { company_id: 123, date_range: { start: "2025-01-01", end: "2025-03-31" } },
  dimensions: ["MONTH", "PROFILE_STATUS"],
  metrics: ["PROFILE_COUNT", "ORDER_COUNT", "TOTAL_NET_SALES_MAR", "CONVERSION_RATE"]
})

Weekly email event volume by event name:

query_email_event_metrics(query={
  filters: { company_id: 123, date_range: { start: "2025-01-01", end: "2025-03-31" } },
  dimensions: ["WEEK", "EVENT_NAME"],
  metrics: ["TOTAL_EVENT_COUNT", "UNIQUE_EVENT_COUNT"]
})

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.15%
按下载量换算24

Claude

29.62%
按下载量换算21

Cursor

19.5%
按下载量换算14

Gemini CLI

10.11%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills