integration-expo

integration-expo is a skill for Claude Code from PostHog/skills. It costs 11 tokens per session (672 once invoked), scanned A, original, MIT.

A guide for adding PostHog analytics to Expo applications. Expo is a development tool for building mobile apps with React Native.

In plain words
What is it for?
Use it to integrate PostHog into Expo mobile applications and identify users.
Why use it?
It provides a documented setup process for collecting usage data in an Expo app and avoids hardcoding the PostHog key.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the posthog-all plugin — 62 skills, 1 hook shipped together

Good fit Use it to integrate PostHog into Expo mobile applications and identify users.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/skills/integration-expo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/skills --skill integration-expo
Clone the repo
git clone --depth 1 https://github.com/PostHog/skills

Made for: Claude Code.

Or install posthog-all, the plugin that ships this one along with the rest of its 62 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for integration-expo

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/skills/integration-expo/github.svg)](https://agentmods.dev/skills/posthog/skills/integration-expo)
Your own site
<a href="https://agentmods.dev/skills/posthog/skills/integration-expo"><img src="https://agentmods.dev/badge/skills/posthog/skills/integration-expo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for integration-expo

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/skills/integration-expo"><img src="https://agentmods.dev/badge/skills/posthog/skills/integration-expo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 672 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 47
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00672
Opus 5.5 $0.00004 $0.00269
Sonnet 5.5 $0.00002 $0.00134
Haiku 4.5 $0.00001 $0.00067

Measured 2mo ago against content hash 204b6b30f995, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

integration-expo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/posthog/all/skills/integration-expo/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PostHog integration for Expo

This skill helps you add PostHog analytics to Expo applications.

Workflow

Follow these steps in order to complete the integration:

  1. basic-integration-1.0-begin.md - PostHog Setup - Begin ← Start here
  2. basic-integration-1.1-edit.md - PostHog Setup - Edit
  3. basic-integration-1.2-revise.md - PostHog Setup - Revise
  4. basic-integration-1.3-conclude.md - PostHog Setup - Conclusion

Reference files

  • references/EXAMPLE.md - Expo example project code
  • references/react-native.md - React native - docs
  • references/identify-users.md - Identify users - docs
  • references/basic-integration-1.0-begin.md - PostHog setup - begin
  • references/basic-integration-1.1-edit.md - PostHog setup - edit
  • references/basic-integration-1.2-revise.md - PostHog setup - revise
  • references/basic-integration-1.3-conclude.md - PostHog setup - conclusion

The example project shows the target implementation pattern. Consult the documentation for API details.

Key principles

  • Environment variables: Always use environment variables for PostHog keys. Never hardcode them.
  • Minimal changes: Add PostHog code alongside existing integrations. Don't replace or restructure existing code.
  • Match the example: Your implementation should follow the example project's patterns as closely as possible.

Framework guidelines

  • posthog-react-native is the React Native SDK package name (same as bare RN)
  • Use expo-constants with app.config.js extras for POSTHOG_PROJECT_TOKEN and POSTHOG_HOST (NOT react-native-config)
  • Access config via Constants.expoConfig?.extra?.posthogProjectToken in your posthog.ts config file
  • For expo-router, wrap PostHogProvider in app/_layout.tsx and manually track screens with posthog.screen(pathname, params) in a useEffect
  • posthog-react-native is the React Native SDK package name
  • Use react-native-config to load POSTHOG_PROJECT_TOKEN and POSTHOG_HOST from .env (variables are embedded at build time, not runtime)
  • react-native-svg is a required peer dependency of posthog-react-native (used by the surveys feature) and must be installed alongside it
  • Place PostHogProvider INSIDE NavigationContainer for React Navigation v7 compatibility

Read the full file on GitHub · 58 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 58 lines · 11 tokens per session scan A 204b6b30f995

Subscribe to this mod's changes

integration-expo is a skill published in the GitHub repository PostHog/skills (78 stars, last pushed today), licensed MIT. It adds 11 tokens to every session and 672 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

integration-expo compared with skills from other repositories

integration-expo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
integration-expoPostHog/skillsSkill78todayMITA11Claude Code
orca-emulator-androidstablyai/orcaSkill118ktodayMITA102Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill10k2d agoApache-2.0A56Claude Code
android-tombstone-symbolicationdotnet/skillsSkill5.8ktodayMITA176Claude Code
dogfoodcallstack/agent-deviceSkill5.3ktodayMITA55Claude Code
winapp-mauimicrosoft/winappCliSkill1.4ktodayMITA68Claude Code
app_remixrome-os/romeSkill894todayMITA50Claude Code, Codex