Token导航 LogoToken导航

Agent Skill · 研究检索

analytics-sdk-setup(分析 SDK 设置)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

analytics-sdk-setup 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 67,721。

总安装 242周安装 10GitHub Stars 3下载 79核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:analytics-sdk-setup(分析 SDK 设置)
来源仓库:https://github.com/peter-wf/analytics-sdk-setup
仓库路径:skills/analytics-sdk-setup
安装命令:
npx skills add https://github.com/peter-wf/analytics-sdk-setup --skill analytics-sdk-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/peter-wf/analytics-sdk-setup --skill analytics-sdk-setup

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助数据整理、表格处理和指标计算,适合清洗字段、汇总数据或生成统计口径。适用于 CSV/Excel 分析、图表准备及异常值排查等场景。通过 GitHub 安装,支持 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

操作前需确认数据来源、字段含义和时间范围,涉及敏感数据时应先评估权限与脱敏边界。analytics-sdk-setup 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/analytics-sdk-setup

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/peter-wf/analytics-sdk-setup --skill analytics…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

analytics-sdk-setup 怎么安装?

在终端执行 npx skills add https://github.com/peter-wf/analytics-sdk-setup --skill analytics-sdk-setup。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

analytics-sdk-setup 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

analytics-sdk-setup 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

analytics-sdk-setup 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

analytics-sdk-setup 用的人多吗?

公开数据是累计安装 242 次,近一周安装 10 次,下载 79 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

analytics-sdk-setup 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
analytics-sdk-setup

分析 SDK 设置 · 本页

2423只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Analytics SDK Setup

Use this skill when the user wants a coding agent to inspect, install, compare, align, reconcile, or fix TikTok Pixel and Meta Pixel tracking in a real codebase.

Activate it even when the user does not name this skill directly, as long as the real job is repo-level Pixel debugging or alignment work such as duplicate init, broken page-view behavior, tracking drift, event mapping, consent/CSP review, or source-of-truth cleanup.

This skill is for repo-aware coding agents such as Claude Code, Cursor, and similar tools. The agent must inspect the repo, find the shared bootstrap location, avoid duplicate initialization, preserve valid existing integrations, and make privacy/compliance decisions explicit before enabling sensitive tracking.

Companion prompt

If the environment does not load SKILL.md directly and instead expects a single prompt block, use:

  • agent-system-prompt.md

Use SKILL.md as the canonical skill specification and agent-system-prompt.md as the compact runtime summary.

Example usage

Use this skill for requests like:

  • "Compare TikTok and Meta tracking in this repo and tell me where they drift."
  • "Fix duplicate Pixel initialization and keep TikTok and Meta aligned."
  • "Add Purchase tracking for TikTok and Meta using the same business moment and shared contract."
  • "Audit ownership, consent gating, and source of truth for TikTok and Meta events."

Do not use this skill when the user only wants a conceptual explanation without repo analysis or implementation.

Core objective

This skill is not only about installing or fixing a single Pixel.

Its core objective is to help the agent manage TikTok and Meta as a dual-platform tracking system:

  • verify per-platform correctness
  • evaluate cross-platform consistency
  • identify ownership and source of truth
  • decide what should be unified
  • decide what should remain platform-specific

TikTok may appear first in examples or references, but the skill scope is not TikTok-only. Any implementation, audit, or repair should consider both platforms when they are in scope.

REQUIRED FIRST STEP

Before doing anything, you MUST:

  1. classify execution mode (Mode A, Mode B, or Mode C)
  2. output the chosen mode explicitly
  3. justify the choice in 1-2 lines

DO NOT write any code before this step.

Quick fix mode

If the user request is clearly narrow, such as fixing duplicate initialization or adding one event:

  • skip full governance analysis
  • focus on local correctness first
  • only check cross-platform alignment if the user explicitly mentions both platforms or if the local change would obviously create drift

Use quick-fix judgment only when the scope is genuinely narrow and privacy blockers are still resolved.

Quick fix mode does not bypass the output contract. Keep required sections for the chosen mode, but you may keep non-critical governance sections brief or mark them as not applicable.

Thinking steps (MUST follow)

  1. What is the user asking?
  2. Is the repo available?
  3. Are blockers present?
  4. Choose execution mode.
  5. Then proceed.

When to activate

Activate when the user asks for any of the following:

  • install or fix TikTok Pixel or Meta Pixel
  • align, reconcile, or compare TikTok and Meta event tracking
  • investigate duplicate Pixel initialization, broken page-view behavior, or tracking drift
  • configure event mapping, parameter mapping, deduplication, or Advanced Matching
  • review CSP, LDU, consent, or PII-related constraints
  • audit whether the existing analytics integration is correct
  • clean up analytics ownership or source of truth in a repo
  • have a coding agent such as Cursor or Claude Code directly implement or debug Pixel integration
  • produce a governance or reconciliation recommendation for TikTok and Meta tracking

This should still activate when the user never says "analytics-sdk-setup" but clearly needs repo-aware Pixel inspection, repair, or alignment.

When not to activate

Do not activate the full execution flow when the user is only asking for:

  • conceptual explanation, documentation help, or terminology clarification
  • high-level theoretical differences between TikTok Pixel and Meta Pixel
  • marketing strategy discussions that do not involve a codebase
  • analytics analysis work rather than SDK or Pixel integration and repair

If the user only wants explanation, answer directly instead of running this full skill workflow.

Cross-platform decision frame

When TikTok and Meta are both in scope, always evaluate the work through these four lenses:

  1. Per-platform correctness

- Is each platform installed correctly, initialized once, and emitting events at the right business moment?

  1. Cross-platform consistency

- Do both platforms represent the same business action with compatible timing and core semantics?

  1. Ownership and source of truth

- Which file, module, wrapper, provider, or tag manager owns bootstrap, event mapping, privacy gating, and parameter contracts?

  1. Governance over local fixes

- Will a local repair improve the overall dual-platform system, or will it increase drift between TikTok and Meta?

When a local fix would make dual-platform governance worse, prefer a plan or governance recommendation over a narrow patch.

Execution mode decision

Before proposing code changes, choose exactly one execution mode.

Mode A: Direct implementation

Use direct implementation only when all of the following are true:

  • The repo is available and the target app or site is identifiable.
  • A shared bootstrap location or existing analytics abstraction can be located.
  • The platform scope is clear: TikTok, Meta, or both.
  • Pixel ID(s) are already provided or a trustworthy config source already exists in the repo.
  • The intended environment, domain, page scope, or route scope is clear enough to implement safely.
  • The requested work is concrete, such as install bootstrap, fix duplicate init, or add a specific event.
  • No unresolved privacy blocker would force the agent to guess consent, LDU, or PII behavior.

Mode B: Plan first

Use plan-first when the codebase is available but the work is still design-heavy, such as:

  • The shared render path is not obvious.
  • The repo contains multiple apps, brands, domains, or possible integration points.
  • The user wants broad TikTok/Meta event alignment rather than one specific fix.
  • The agent first needs to map business actions to events before editing code.
  • The current integration mixes wrappers, providers, inline snippets, or tag-manager ownership that needs review first.
  • The main task is comparison, governance review, or reconciliation rather than a narrow implementation.

You MUST NOT modify code or propose patches in this mode.

Mode C: Questions first

Ask the minimum number of high-impact questions first when any blocker is present, including:

  • Pixel ID is missing and no reliable config source exists in the repo.
  • Consent, LDU, or PII / Advanced Matching requirements are unknown and would change implementation behavior.
  • The target app, environment, route scope, or rollout scope is not clear.
  • Existing analytics provider or tag-manager ownership is unclear.
  • The user asks to align events, but the underlying business semantics are still ambiguous.

You MUST NOT propose implementation or code in this mode.

When in doubt, prefer:

  1. audit over implementation,
  2. plan over broad refactor,
  3. preserving existing privacy behavior over enabling new tracking,
  4. minimal bootstrap fixes over speculative event expansion.

Required inputs and blocking conditions

Collect or confirm these inputs before substantial changes.

Required for direct implementation

  • Which platforms are in scope: TikTok, Meta, or both
  • Pixel ID(s) or an existing trusted config source
  • Target app, domains, pages, or route groups
  • Target environments: production only, staging too, or all environments
  • Whether the Pixel loads globally or only on selected pages
  • Which concrete business events need to be tracked, if the request includes event work

Blocking conditions

Do not directly implement sensitive or ambiguous behavior if any of the following is unresolved:

  • Whether CSP is enabled and whether tracking changes require CSP updates
  • Whether consent gating exists or should gate load vs event dispatch
  • Whether LDU rules apply, and whether they are pixel-wide or event-specific
  • Whether Advanced Matching / PII is allowed
  • Whether there is a single shared bootstrap location
  • Whether an existing GTM / analytics provider / wrapper already owns the integration
  • Whether TikTok and Meta should share one business-event contract or intentionally diverge for part of the flow

If a blocker exists, switch to plan-first or questions-first instead of guessing.

Safe defaults and conservative behavior

When information is incomplete, use these defaults:

  • Do not invent Pixel IDs, event semantics, consent rules, CSP allowlists, LDU policies, or PII sources.
  • Do not enable Advanced Matching / PII by default.
  • Do not enable LDU unless the rule is explicit.
  • If event scope is unclear, limit the work to bootstrap placement, duplicate audit, or a plan.
  • If environment scope is unclear, prefer existing env gating in the repo instead of inventing a new policy.
  • If the repo already has analytics config, privacy utilities, or wrappers, reuse them instead of bypassing them.
  • If page-view semantics are unclear in an SPA, do not add route-change tracking speculatively.
  • Keep privacy-sensitive behavior disabled until explicitly approved.
  • Do not force symmetry when a platform-specific difference is intentional or required.

Repo inspection workflow

Always inspect the existing code before adding or moving SDK code.

Follow this order:

  1. Identify the target app, site, or package the user actually wants tracked.
  2. Determine how pages are produced: shared HTML template, SSR layout, SPA shell, Next.js layout, or existing analytics provider.
  3. Locate the best shared bootstrap location.
  4. Search for existing TikTok and Meta initialization.
  5. Search for existing event dispatch, helper wrappers, route-change hooks, and tag-manager bridges.
  6. Identify ownership and source of truth for:

- bootstrap placement - event taxonomy - parameter contract - consent or privacy gating - tag-manager vs app-code boundaries

  1. Classify the governance state as one of:

- single-platform only - dual-platform but ungoverned - platform-correct but cross-platform drifted - aligned with intentional platform-specific differences - privacy/governance blocked

  1. Record engineering tags where relevant, such as:

- duplicate initialization - event-only mismatch - privacy / gating mismatch - wrapper conflict - CSP blocked

  1. Choose the execution mode again if the repo evidence changes the initial judgment.

Duplicate detection protocol

Before changing anything, inspect both direct calls and wrapped integrations.

Search for direct init and page-view calls

  • TikTok bootstrap: ttq.load(
  • TikTok base page view: ttq.page(
  • Meta bootstrap: fbq('init'
  • Meta page view: fbq('track', 'PageView'

Also inspect wrapper-level ownership

Check for:

  • analytics provider components
  • helper functions that wrap ttq or fbq
  • tag-manager bridges
  • root layout or app-shell script injection helpers
  • route-change hooks that may duplicate page-view behavior

Treat these as duplicate-risk scenarios

  • The same platform is initialized from multiple layouts, templates, or app shells.
  • Base page-view tracking is emitted both by bootstrap and SPA route hooks without clear intent.
  • A component-level mount or click handler also initializes the SDK.
  • Inline snippets coexist with a higher-level provider or GTM-managed integration.

Consolidation rule

If duplicate initialization is found and ownership is clear:

  1. Keep one initialization in the best shared location.
  2. Remove the other init/load calls.
  3. Preserve valid event tracking unless it is also incorrect.
  4. Reuse or centralize existing config only when it reduces duplication without creating a broader refactor.

If ownership is not clear, do not auto-merge competing integrations. Switch to plan-first or questions-first.

Implementation workflow

Use this workflow only in direct-implementation mode.

  1. Keep or create exactly one shared bootstrap location per platform.
  2. Prefer an existing global layout, base template, app shell, or analytics provider over scattered snippets.
  3. Reuse existing config, environment flags, consent utilities, and privacy wrappers when available.
  4. Fix duplicate initialization before expanding event code.
  5. Define or preserve a shared business-event contract before mapping into TikTok and Meta specifics.
  6. Add or normalize event calls only at the real business success point.
  7. Align TikTok and Meta payloads only where the same business action is clearly intended on both platforms.
  8. Keep changes minimal, localized, and related only to tracking.
  9. Prefer fixing broken event calls over re-installing the SDK.

Do not:

  • initialize inside UI components, click handlers, or repeated page scripts
  • add a second init/load call just because tracking is broken elsewhere
  • replace a compliant wrapper with a raw snippet unless clearly necessary
  • do broad refactors unrelated to tracking
  • claim that dual-platform governance is complete just because one platform is locally correct

For detailed bootstrap placement, event naming, mapping, payload examples, and verification guidance, consult references/install-and-events.md before implementing event-related changes.

Plan-only workflow

Use this workflow when the repo is available but implementation should not start yet.

Produce a concise implementation-ready report with:

  • confirmed platform scope
  • likely shared bootstrap location(s)
  • current state by platform
  • governance state
  • duplicate-init findings
  • existing privacy / consent / CSP constraints
  • draft event mapping by business action
  • exact blockers and the recommended next step

Prefer a plan over direct edits when the main task is still architecture, scope selection, event design, or cross-platform governance.

Ownership and source of truth

When TikTok and Meta are both in scope, identify and report:

  • where bootstrap ownership lives
  • where event taxonomy is defined
  • where mapping rules are defined
  • where privacy gates are enforced
  • whether GTM, app code, wrappers, or backend logic own different parts of the system

If ownership is split, the plan or implementation report should say whether that split is intentional, temporary, or the source of current drift.

Privacy and compliance guardrails

Before enabling sensitive behavior, explicitly inspect privacy constraints.

  • Reuse the project's existing consent and privacy utilities when they exist.
  • Do not invent CSP allowlists.
  • Do not invent LDU logic or region rules.
  • Do not enable Advanced Matching / PII without explicit approval and a legitimate first-party data source.
  • Do not bypass existing legal, consent, or regional review flows.
  • If the implementation would change sensitive behavior and the policy is unclear, stop and ask.
  • If TikTok and Meta are both in scope, review whether the same shared privacy policy should control both platforms.

For CSP, consent gating, LDU, identifier handling, and shared privacy governance details, consult references/privacy-and-csp.md before implementing those changes.

Output contract

Use one of the following result structures.

If you are in questions-first mode

# Analytics SDK questions

## What blocks implementation
- ...

## Decisions that affect both TikTok and Meta
- ...

## Required answers
1. ...
2. ...
3. ...

## Safe progress so far
- ...

Ask the minimum number of high-impact questions. Do not dump the full input checklist if only 2-3 answers are blocking progress.

If you are in plan-first mode

# Analytics SDK setup plan

## What I confirmed
- Platforms:
- Framework / render path:
- Intended environments:
- Tracking scope:
- Current state by platform:
- Governance state:

## TikTok vs Meta gaps
- ...

## What to unify
- ...

## What remains platform-specific
- ...

## Ownership / source of truth
- ...

## Blockers or missing decisions
- Pixel ID(s):
- CSP status:
- Consent gating:
- LDU rule:
- PII / Advanced Matching:
- Event list:

## Governance recommendation
- ...

## Recommended next step
- ...

If you are in direct-implementation mode

# Analytics SDK implementation

## Bootstrap location
- file/path
- why this is the shared render point

## Current state by platform
- TikTok:
- Meta:

## Cross-platform decisions
- ...

## What was unified
- ...

## Intentional platform-specific differences
- ...

## Ownership / source of truth
- ...

## Privacy / compliance decisions
- CSP:
- Consent gating:
- LDU:
- Advanced Matching:

## Event mapping implemented
- business action -> TikTok event -> Meta event -> code location

## TikTok vs Meta gaps that remain
- ...

## Verification
- per-platform correctness holds
- cross-platform consistency is improved or explicitly bounded
- bootstrap initializes once per platform
- target events fire once at the correct business moment
- privacy gates behave as intended

Reference routing

If the task involves:

  • bootstrap placement, event payloads, event mapping, or platform-specific implementation details → read references/install-and-events.md
  • CSP, consent behavior, LDU, Advanced Matching / PII, or shared-vs-platform-specific privacy rules → read references/privacy-and-csp.md

Keep vendor snippets, payload examples, and low-level policy details in references, not in this main skill file.

Pre-implementation gate

Before writing code, confirm all of the following:

  • The target app or site is identified.
  • A shared render path or existing analytics abstraction is identified.
  • Current state by platform is classified.
  • Governance state is classified.
  • Any duplicate-init ownership is understood well enough to modify safely.
  • Blocking privacy questions are resolved or the work is constrained to a safe non-sensitive subset.
  • The chosen execution mode is still correct.

If any item fails, do not proceed with broad implementation.

Post-implementation verification

Before finishing, verify two layers of success.

Per-platform correctness

  • Each platform is initialized at most once.
  • Initialization lives in a global/shared location.
  • No init/load calls remain in components or click handlers unless intentionally wrapped and justified.
  • Page-view behavior is present only where expected and does not duplicate.
  • Purchase and other commerce events include required fields such as currency and value when applicable.
  • Privacy gates behave as intended and were not bypassed.

Cross-platform consistency

  • Event names and key parameters are aligned across TikTok and Meta only where business semantics match.
  • Differences that remain are intentional and documented.
  • Ownership and source of truth are preserved or clarified.
  • The implementation matches the relevant reference files where applicable.

平台分布

Codex

36.3%
按下载量换算29

Claude

32.81%
按下载量换算26

Cursor

17.84%
按下载量换算14

Gemini CLI

9.08%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

继续浏览同类 Skills