Agent skill

Sentry Miniapp SDK

by lizhiyao in lizhiyao/sentry-miniapp

Set up or troubleshoot Sentry error monitoring, tracing, offline cache and source maps in native mini programs, Taro or uni-app.

MITAuto-check passedDevOps & Cloud

Install Sentry Miniapp SDK

skills CLI
$ npx skills add lizhiyao/sentry-miniapp --skill sentry-miniapp-sdk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lizhiyao/sentry-miniapp sentry-miniapp-sdk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lizhiyao/sentry-miniapp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sentry-miniapp-sdk .claude/skills/sentry-miniapp-sdk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sentry-miniapp-sdk
GitHub stars
687
Token cost
~2.1k tokens
SKILL.md length
943 words
Files
6 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Set up or troubleshoot Sentry error monitoring, tracing, offline cache and source maps in native mini programs, Taro or uni-app.

  • Works in 4 steps: Inspect the consumer → Choose the SDK version and features → Install and initialize → …
  • Tasks that involve Messaging and chat bots
  • SKILL.md covers 1. Inspect the consumer, 2. Choose the SDK version and…, 3. Install and initialize and 4. Verify the result
  • Calls rg, npm and yarn

What it does

Sentry Miniapp SDK is an agent skill from lizhiyao/sentry-miniapp. Set up or troubleshoot Sentry error monitoring, tracing, offline cache and source maps in native mini programs, Taro or uni-app. Supports WeChat, Alipay, ByteDance, Baidu, QQ, DingTalk, Kuaishou and WeChat/ByteDance minigames.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `.omk/samples.json`, `references/error-monitoring.md` and `references/offline-cache.md`).

It sits in DevOps & Cloud, covering Messaging and chat bots, Observability and Monitoring and alerting. It works with Sentry and WeChat. The repository describes itself as: Cross-platform Sentry SDK for Mini Programs & Mini Games — error monitoring, performance monitoring, Source Maps and end-to-end tracing | 跨端小程序 / 小游戏监控 SDK. The licence is MIT.

When your agent uses it

  • Tasks that involve Messaging and chat bots
  • Tasks that involve Observability
  • Tasks that involve Monitoring and alerting

Example prompts

  • “/sentry-miniapp-sdk”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Inspect the consumer
  2. Choose the SDK version and features
  3. Install and initialize
  4. Verify the result

What it can do on your machine

Read from SKILL.md and the folder at commit 90568a5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rg
    • npm
    • yarn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • sentry-miniapp.pages.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sentry Miniapp SDK loads about 2.1k tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 943 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lizhiyao/sentry-miniapp at commit 90568a5, republished under its MIT licence (© lizhiyao). 943 words, ~2,134 tokens.

Download SKILL.mdSave it as .claude/skills/sentry-miniapp-sdk/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
sentry-miniapp-sdk
description
Set up or troubleshoot Sentry error monitoring, tracing, offline cache and source maps in native mini programs, Taro or uni-app. Supports WeChat, Alipay, ByteDance, Baidu, QQ, DingTalk, Kuaishou and WeChat/ByteDance minigames.
license
MIT
metadata.category
sdk-setup

Sentry Mini Program SDK Setup

Use this skill when a user wants to integrate or troubleshoot sentry-miniapp in a consumer application. Discover the application's runtime, installed SDK and entry point before choosing code. This guide covers the stable 2.x contract.

1. Inspect the consumer

Read project instructions and inspect the relevant application directory. Prefer rg; exclude generated bundles and dependencies when searching source.

bash
rg --files -g 'package.json' -g '*lock*' -g '*project*.json' -g 'app.json' \
  -g '*app.{js,ts,tsx,vue}' -g '*main.{js,ts}' \
  -g '*config.{js,ts,mjs}' -g '!node_modules' -g '!dist'
rg -n 'sentry-miniapp|@tarojs/|@dcloudio/uni-' package.json
rg -n 'Sentry\.init|sentry-miniapp|errorHandler|componentDidCatch' \
  src app.js app.ts -g '!node_modules' -g '!dist'

Adjust search roots to files that exist; these commands illustrate discovery, not a required directory layout.

Determine:

  • Installed version and package manager. Read the lockfile and installed package metadata; a manifest range alone may not identify the resolved version.
  • Release targets. Read framework configuration and platform globals. WeChat's project.config.json, Alipay's mini.project.json, ByteDance's project.tt.json and Baidu's project.swan.json are useful clues. Confirm QQ, DingTalk and Kuaishou from actual target configuration.
  • Framework and entry. Native apps commonly use app.js/app.ts; Taro uses src/app.tsx or its configured entry; Vue 3 uni-app usually initializes from src/main.js/main.ts.
  • Existing monitoring and privacy policy. Preserve working error handlers, integrations, sampling and consent requirements.
  • Sentry deployment and build pipeline. Version support and final JS/map matching affect which features can be verified.

2. Choose the SDK version and features

An unqualified install selects the current stable release; sentry-miniapp@2 selects the stable 2.x line. Use @next only when the user explicitly chooses a prerelease. Do not silently migrate an existing 1.x application. Use the version and migration guide, including its fixed 1.x documentation archive.

2.0 uses Core v11 and stream spans. Check the target Sentry deployment against the guide's support baseline; successful error ingestion alone does not prove support for spans, Logs, Metrics or Sessions.

Implement the requested coverage. Resolve routine setup choices from the project and user intent; ask only for missing information that affects the result.

CoverageWhen to add itReference
Error monitoring and framework handlersBasic integration or missing errorserror-monitoring.md
HTTP and business tracingLatency measurement or backend trace correlationtracing.md
Offline cache and consentWeak networks or a stated privacy requirementoffline-cache.md
Source Map uploadReadable stacks from deployed buildssourcemap.md

Load only the references needed for the work. Automatic capture depends on available host APIs; optional Performance observers and FPS are not universal platform capabilities.

3. Install and initialize

Use the consumer's existing package manager. For a chosen 2.x release, pin the resolved version and retain the lockfile:

bash
npm install --save-exact sentry-miniapp@2
# Or, in a Yarn project:
yarn add --exact sentry-miniapp@2

For native WeChat projects, run Tools → Build npm in the developer tools after installation or updates. Check the package.json/miniprogramRoot layout against the native installation guide; framework projects use their own build pipeline.

Copy the complete DSN from the target Sentry project; do not construct its hostname. Configure the exact envelope request host as a legal request domain, or configure the chosen tunnel's host. Verify with device debugging and domain-check bypass disabled.

Initialize once, as early as practical, before native App() registration and business requests. In framework projects, put initialization in a dedicated module imported before the application module. Do not put init() inside a temporary scope or an unfinished async span.

js
// Native app.js
const Sentry = require('sentry-miniapp');

Sentry.init({
  dsn: 'YOUR_DSN', // Copy the complete project DSN.
  release: 'my-miniapp@1.0.0',
  environment: 'production',
});

App({
  // Existing application configuration.
});

For Taro and uni-app, follow their actual entry and preserve existing framework error handling:

H5 needs the official browser/framework SDK through target-specific imports. sentry-miniapp does not provide browser DOM or fetch/XHR instrumentation.

Show full SKILL.md (403 more words)Show less
Platform labels and minigames

Runtime APIs come from the detected host. Set miniappPlatform only to correct an ambiguous event label; it does not switch the host API. Values are wechat, alipay, bytedance, qq, swan, dingtalk and kuaishou. The event's top-level platform stays javascript.

WeChat/ByteDance minigames have no App/Page model. Automatic Session tracking requires both native show/hide listeners to register successfully; missing capabilities produce diagnostics. First frame measures SDK installation to the first rAF, not full cold start. FPS/jank defaults off; opt in with enableMinigameFrameRate: true only when needed. See the minigame guide.

Configuration decisions

Use the configuration reference for the complete option list. Apply these boundaries when choosing settings:

  • Errors use sampleRate; traces use tracesSampleRate or tracesSampler and are off until configured.
  • Network body collection and console breadcrumbs default off. Do not copy demo full sampling, body capture or per-click fingerprints into production.
  • tracePropagationTargets defaults to an empty list. Add anchored URL allowlists only for backends the application controls.
  • dataCollection governs automatic fields. userInfo: false stops automatic error IP inference, but does not erase explicit setUser fields or arbitrary business logs.
  • Use beforeSend, beforeSendLog and beforeSendMetric for their respective data. beforeSendSpan edits streamed spans; ignoreSpans filters them.
  • requireConsent gates sending, not collection. See the offline/consent reference before changing that policy.
  • Integration factories create per-client instances. Keep default SpanStreaming when enabling tracing; replacing the full default set requires installing it explicitly.

4. Verify the result

Run the consumer's relevant checks and build the actual target. Verify progressively:

  1. Capture a new known error and record its event ID, release and runtime diagnostics.
  2. Check request errors and HTTP responses, then find the same event in the intended Sentry project/environment.
  3. For framework errors, test the framework handler as well as direct capture.
  4. For Source Maps, check the final runtime filename and event coordinates against the same build's JS/map.
  5. For enabled tracing, Logs, Metrics, Sessions or consent, check each feature's own payload and backend result.
  6. When device behavior is in scope, verify foreground/background, network restoration and domain checks on the actual target.

An event ID means capture was attempted. flush() returning true is not a backend receipt or proof of symbolication. Local tests do not establish survival across host freezing or process termination.

Report which version, build, runtime and backend were actually verified. Keep untested capabilities explicit, and include concise remaining steps only when they require user access or a real-device action.

© lizhiyao, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in .agents/skills/sentry-miniapp-sdk of lizhiyao/sentry-miniapp.

  • SKILL.md
  • .omk/samples.json
  • references/error-monitoring.md
  • references/offline-cache.md
  • references/sourcemap.md
  • references/tracing.md

Open the folder on GitHubat commit 90568a5

Compare with similar skills

Sentry Miniapp SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sentry Miniapp SDK compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sentry Miniapp SDK this skilllizhiyao/sentry-miniapp687—~2.1kAutomated safety check: PassMIT
Cx Observability Setupcoralogix/cx-cli121—~2.3kAutomated safety check: PassApache-2.0
Sentry Observabilityjeremylongshore/tons-of-skills-marketplace2.8k—~3.7kAutomated safety check: PassMIT
Sentry Performance Tracingjeremylongshore/tons-of-skills-marketplace2.8k—~4.1kAutomated safety check: PassMIT
Axiom Dashboard Builderopenclaw/clawhub9.5k—~4.9kAutomated safety check: PassMIT
Happy Infra Metrics and Grafanaslopus/happy24k—~2kAutomated safety check: NotesMIT

Similar skills

  • Cx Observability Setup

    coralogix/cx-cli

    A skill your agent uses when the user asks to "set up monitoring", "configure observability", "onboard new service", "create saved view", "set up notifications", "configure webhook", "set up Slack…

    121 GitHub stars~2.3k tokensUpdated 4 days ago
    DevOps & CloudAuto-check passed
  • Sentry Observability

    jeremylongshore/tons-of-skills-marketplace

    Integrate Sentry with your observability stack — logging, metrics, APM, and dashboards.

    2.8k GitHub stars~3.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Sentry Performance Tracing

    jeremylongshore/tons-of-skills-marketplace

    Set up performance monitoring and distributed tracing with Sentry.

    2.8k GitHub stars~4.1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Axiom Dashboard Builder

    openclaw/clawhub

    Designs and deploys Axiom dashboards through the API, choosing chart types and writing APL or metrics queries, with templates and migration notes for Splunk and Grafana.

    9.5k GitHub stars~4.9k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Queries live Prometheus metrics and manages Grafana dashboards as code for Happy's infrastructure, using the grafanactl CLI and the Grafana datasource proxy API.

    24k GitHub stars~2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Axiom Cost Control

    openclaw/clawhub

    Finds unused data in Axiom by analyzing query patterns, then deploys a cost dashboard and ingest monitors to keep spend under the contract limit.

    9.5k GitHub stars~1.7k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed

Works with

Questions about Sentry Miniapp SDK

What does Sentry Miniapp SDK do?

Set up or troubleshoot Sentry error monitoring, tracing, offline cache and source maps in native mini programs, Taro or uni-app. Sentry Miniapp SDK is an agent skill from lizhiyao/sentry-miniapp. Set up or troubleshoot Sentry error monitoring, tracing, offline cache and source maps in native mini programs, Taro or uni-app.

When should I use Sentry Miniapp SDK?

Sentry Miniapp SDK fits situations like: tasks that involve Messaging and chat bots; tasks that involve Observability; tasks that involve Monitoring and alerting.

How do I install Sentry Miniapp SDK in Claude Code?

Run `npx skills add lizhiyao/sentry-miniapp --skill sentry-miniapp-sdk -a claude-code`. Or copy the skill folder (.agents/skills/sentry-miniapp-sdk in lizhiyao/sentry-miniapp) into .claude/skills/sentry-miniapp-sdk in your project. Claude Code loads it when a task matches its description.

How do I install Sentry Miniapp SDK in Codex?

Run `npx skills add lizhiyao/sentry-miniapp --skill sentry-miniapp-sdk -a codex`. Or copy the skill folder (.agents/skills/sentry-miniapp-sdk in lizhiyao/sentry-miniapp) into .agents/skills/sentry-miniapp-sdk in your project. Codex loads it when a task matches its description.

Can I use Sentry Miniapp SDK in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lizhiyao/sentry-miniapp --skill sentry-miniapp-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sentry-miniapp-sdk, .gemini/skills/sentry-miniapp-sdk, .github/skills/sentry-miniapp-sdk and .opencode/skills/sentry-miniapp-sdk in your project.

What does Sentry Miniapp SDK need to run?

Going by SKILL.md and its folder, Sentry Miniapp SDK needs the command-line tools its instructions call (rg, npm and yarn). Our summary lists: Node.js.

Does Sentry Miniapp SDK access the network?

SKILL.md names 1 domain. As links in the text: sentry-miniapp.pages.dev. This is read from the text; nothing was executed.

Is Sentry Miniapp SDK safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sentry Miniapp SDK use?

Sentry Miniapp SDK is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sentry Miniapp SDK use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.

What are the alternatives to Sentry Miniapp SDK?

Skills that share tags, products or a category with Sentry Miniapp SDK: Cx Observability Setup (coralogix/cx-cli, 121 stars), Sentry Observability (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Sentry Performance Tracing (jeremylongshore/tons-of-skills-marketplace, 2.8k stars) and Axiom Dashboard Builder (openclaw/clawhub, 9.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sentry Miniapp SDK?

lizhiyao (a GitHub user) maintains it in lizhiyao/sentry-miniapp, which has 687 GitHub stars. The repository was last updated on October 11, 2026.

Source: lizhiyao/sentry-miniapp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.