error-tracking-android
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "error-tracking-android" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fbb84985f7707f4808720d4af905d7462293c57ef54082c96ea43ce4a80bf90a. Verify the upstream source and version against https://skills.sh/posthog/skills/error-tracking-android before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skills.sh
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
For PostHog error tracking on Android.
Introduction source: third_party · posthog · 1.0.0 Reference
SkillPi interpretation
- Tasks
- PostHog error tracking for Android
- Testing
- Not tested
Browse files
Frontmatter
name: error-tracking-android
description: PostHog error tracking for Android
metadata:
author: PostHog
version: 1.9.4PostHog error tracking for Android
This skill helps you add PostHog error tracking to Android applications.
Reference files
references/android.md- Android error tracking installation - docsreferences/fingerprints.md- Fingerprints - docsreferences/alerts.md- Send error tracking alerts - docsreferences/monitoring.md- Monitor and search issues - docsreferences/assigning-issues.md- Assign issues to teammates - docsreferences/upload-source-maps.md- Upload source maps - docs
Consult the documentation for API details and framework-specific patterns.
Key principles
- Environment variables: Always use environment variables for PostHog keys and host URLs. Never hardcode them.
- Minimal changes: Add error tracking alongside existing error handling. Don't replace or restructure existing error handling code.
- Autocapture first: Enable exception autocapture in the SDK initialization before adding manual captures.
- Source maps: Upload source maps so stack traces resolve to original source code, not minified bundles.
- Manual capture for boundaries: Use
captureException()at error boundaries and catch blocks for errors that don't propagate to the global handler.
Framework guidelines
- Adapt dependency configuration to the appropriate build.gradle(.kts) file according to the project gradle version
- Call
PostHogAndroid.setup()only once in the Application class'sonCreate()method, so it's initialized as early as possible and only once. - Initialize PostHog in the Application class's
onCreate()method - Ensure every activity has a
android:labelto accurately track screen views.
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 为 Android 开发者提供 PostHog 错误追踪集成方案
- 解决应用错误监控的明确开发需求
- 具有实际工程实用价值
Highlights
- 触发描述清晰准确:PostHog error tracking for Android
- 边界定义明确,不易与其他 Skill 混淆
Areas to improve
-
缺少端到端完整示例 Reported severity: Minor
文档提供了原则和指导,但缺少完整的端到端集成示例
Recommendation: 添加一个完整的 Android 项目集成示例,展示从 build.gradle 配置到 Application 类初始化的完整流程
-
缺少 When to Use 章节 Reported severity: Minor
未明确说明何时使用此 Skill 的适用场景
Recommendation: 添加 When to Use 章节,说明适合 Android 应用错误监控、需要集成 PostHog 等场景
-
缺少明确的 Phase/步骤划分 Reported severity: Minor
虽然有指导原则,但缺少清晰的步骤划分和执行流程
Recommendation: 将集成过程划分为清晰的 Phase,如:1. 环境准备 2. SDK 配置 3. 初始化设置 4. 错误捕获配置
Highlights
- 文档结构基本完整,包含参考文件、关键原则和框架指导
- 引用了多个相关文档,便于用户深入了解
Areas to improve
-
主要异常场景未覆盖 Reported severity: Major
未说明如何处理 SDK 初始化失败、网络异常、配置错误等关键异常情况
Recommendation: 添加异常处理指南,包括 SDK 初始化失败的重试机制、网络异常的处理策略、配置验证等
Highlights
- 提供了关键集成原则,如使用环境变量、最小化更改等
- 明确了 PostHog SDK 的初始化位置和时机要求
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.