feature-flags-android

Use of PostHog feature flags in Android applications to manage and control feature rollouts on mobile.

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 "feature-flags-android" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8319cec021df3551f5d5a228337f964ece10e321c230b9b0e62e036d9724fcb6. Verify the upstream source and version against https://skills.sh/posthog/skills/feature-flags-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

Use of PostHog feature flags in Android applications to manage and control feature rollouts on mobile.

0 Downloads

Introduction source: third_party · posthog · 1.0.0 Reference

SkillPi interpretation

Tasks
PostHog feature flags for Android applications
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: feature-flags-android
description: PostHog feature flags for Android applications
metadata:
  author: PostHog
  version: 1.9.4

PostHog feature flags for Android

This skill helps you add PostHog feature flags to Android applications.

Reference files

  • references/android.md - Android feature flags installation - docs
  • references/adding-feature-flag-code.md - Adding feature flag code - docs
  • references/best-practices.md - Feature flag best practices - docs

Consult the documentation for API details and framework-specific patterns.

Key principles

  • Environment variables: Always use environment variables for PostHog keys. Never hardcode them.
  • Minimal changes: Add feature flag code alongside existing logic. Don't replace or restructure existing code.
  • Boolean flags first: Default to boolean flag checks unless the user specifically asks for multivariate flags.
  • Server-side when possible: Prefer server-side flag evaluation to avoid UI flicker.

PostHog MCP tools

Check if a PostHog MCP server is connected. If available, look for tools related to feature flag management (creating, listing, updating, deleting flags). Use these tools to manage flags directly in PostHog rather than requiring the user to do it manually in the dashboard.

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's onCreate() 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:label to accurately track screen views.

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供PostHog功能开关在Android应用中的集成指导,具有明确的实用价值
  • 面向Android开发者这一特定受众,解决实际开发需求
Trigger Precision85/100

Highlights

  • description明确描述了Skill用途,触发词清晰,边界明确
Structure and Standards70/100

Areas to improve

  • 缺少When to Use章节 Reported severity: Minor

    文档中缺少明确的When to Use章节,用户可能不清楚何时使用此Skill

    Recommendation: 建议添加When to Use章节,说明使用此Skill的具体场景和时机

  • 缺少端到端示例 Reported severity: Minor

    文档中缺少具体的端到端示例,用户可能难以理解如何实际应用

    Recommendation: 建议添加一个完整的端到端示例,展示如何集成PostHog功能开关到Android应用中

Highlights

  • 文档结构清晰,包含关键原则、框架指南、参考文件等
Execution Reliability65/100

Areas to improve

  • 工具来源和参数细节不明确 Reported severity: Minor

    文档中提到了PostHog MCP工具,但未明确说明工具来源和具体参数细节

    Recommendation: 建议明确说明PostHog MCP工具的来源、使用方法和具体参数细节

  • 主要异常处理未覆盖 Reported severity: Minor

    文档中未覆盖主要异常处理场景,如网络错误、初始化失败等

    Recommendation: 建议添加异常处理指南,说明如何处理常见的错误场景

Highlights

  • 提供了关键原则和框架指南,有助于用户正确集成功能开关
Evidence Verifiability (mean of the first four)74/100

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.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.