Manages Sentry error monitoring and filtering for OneKey platforms.

Install

mkdir -p .claude/skills/1k-sentry && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5914" && unzip -o skill.zip -d .claude/skills/1k-sentry && rm skill.zip

Installs to .claude/skills/1k-sentry

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Configure OneKey Sentry and filter events across desktop, mobile, web, and extension.
85 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Configure Sentry across multiple platforms
  • Filter specific error types and patterns
  • Add custom breadcrumbs and context to reports
  • Identify platform-specific Sentry entry points

How it works

The skill utilizes a shared configuration module to apply error filtering and context injection across desktop, mobile, web, and extension platforms.

Inputs & outputs

You give it
Error instance or event data
You get back
Filtered Sentry event

When to use 1k-sentry

  • Setting up Sentry
  • Filtering production logs
  • Debugging crash reports

About this skill

Sentry Integration

OneKey uses Sentry for error tracking across all platforms.

Architecture Overview

apps/
├── desktop/app/sentry.ts          # Desktop main process
├── ext/                           # Extension (uses shared)
├── mobile/                        # Mobile (uses shared)
└── web/                           # Web (uses shared)

packages/shared/src/modules3rdParty/sentry/
├── index.ts                       # Web/Extension entry
├── index.native.ts                # React Native entry
├── index.desktop.ts               # Desktop renderer entry
├── basicOptions.ts                # Shared config & error filtering
└── instance.ts                    # Sentry client instance

Platform Detection

import platformEnv from '@onekeyhq/shared/src/platformEnv';

platformEnv.isDesktop    // Electron desktop app
platformEnv.isNative     // React Native (iOS/Android)
platformEnv.isWeb        // Web browser
platformEnv.isExtension  // Browser extension
platformEnv.isWebEmbed   // Embedded web components

Common Tasks

Filter/Ignore Errors

See: references/rules/ignoring-errors.md

Key file: packages/shared/src/modules3rdParty/sentry/basicOptions.ts

Add Custom Context

import * as Sentry from '@sentry/react-native'; // or @sentry/browser

// Add breadcrumb
Sentry.addBreadcrumb({
  category: 'action',
  message: 'User clicked button',
  level: 'info',
});

// Set user context
Sentry.setUser({ id: 'user-id' });

// Set tags
Sentry.setTag('feature', 'swap');

// Capture exception with context
Sentry.captureException(error, {
  extra: { additionalData: 'value' },
});

Key Files

PurposeFile
Error filteringpackages/shared/src/modules3rdParty/sentry/basicOptions.ts
Desktop mainapps/desktop/app/sentry.ts
Desktop rendererpackages/shared/src/modules3rdParty/sentry/index.desktop.ts
Web/Extensionpackages/shared/src/modules3rdParty/sentry/index.ts
Nativepackages/shared/src/modules3rdParty/sentry/index.native.ts

Error Filtering Quick Reference

// Filter by error type
const FILTERED_ERROR_TYPES = new Set(['AxiosError', 'HTTPClientError']);

// Filter by exact message
const FILTER_ERROR_VALUES = ['AbortError: AbortError'];

// Filter by pattern (in isFilterErrorAndSkipSentry function)
if (error.value?.includes('PATTERN')) return true;

Related Skills

  • /1k-coding-patterns - Error handling best practices

When not to use it

  • When logging non-error events that do not require tracking

Limitations

  • Filtering logic is limited to predefined patterns and types

How it compares

It provides a centralized, platform-aware approach to error filtering rather than platform-specific manual implementations.

Compared to similar skills

1k-sentry side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
1k-sentry (this skill)11moNo flagsIntermediate
sentry-release-management127dCautionIntermediate
gcloud-usage18moNo flagsIntermediate
error-diagnostics-error-trace14moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

sentry-release-management

jeremylongshore

Manage Sentry releases and associate commits. Use when creating releases, tracking commits, or managing release artifacts. Trigger with phrases like "sentry release", "sentry commits", "manage sentry versions", "sentry release workflow".

15

gcloud-usage

fcakyon

This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".

14

error-diagnostics-error-trace

sickn33

You are an error tracking and observability expert specializing in implementing comprehensive error monitoring solutions. Set up error tracking systems, configure alerts, implement structured logging,

13

devops-troubleshooter

sickn33

Expert DevOps troubleshooter specializing in rapid incident response, advanced debugging, and modern observability. Masters log analysis, distributed tracing, Kubernetes debugging, performance optimization, and root cause analysis. Handles production outages, system reliability, and preventive monitoring. Use PROACTIVELY for debugging, incident response, or system troubleshooting.

12

autotel

jagreehal

Use when instrumenting with trace/span/track, reviewing code for logging and observability patterns, converting console.log to wide events, adding structured errors, setting up canonical log lines, configuring init(), adding subscribers, or working in the autotel monorepo.

00

ai-debug-harness

DeandreFu

Self-driving Electron + Node debug harness with NDJSON logs, Playwright E2E, doctor preflight, and a YAML-frontmatter cookbook of known causes. Use when a voice-chat E2E flow misbehaves locally, audio publish silently fails, the agent worker emits warnings, or any LiveKit/Electron/Fastify error appe

00

Search skills

Search the agent skills registry