posthog-ci-integration
Configure PostHog CI/CD with GitHub Actions: unit tests with mocked PostHog, integration tests against a dev project, and deployment annotations. "CI posthog", "posthog pipeline". '
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill posthog-ci-integration --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# PostHog CI Integration ## Overview Set up CI/CD pipelines for PostHog integrations. Covers mocked unit tests (no API key needed), integration tests against a PostHog dev project, and deployment annotations that mark releases in your PostHog timeline. ## Prerequisites - GitHub repository with Actions enabled - PostHog dev project API key for integration tests - PostHog personal API key for deployment annotations - npm/pnpm project with vitest or jest ## Instructions ### Step 1: Configure GitHub Secrets ```bash set -euo pipefail # Project key for integration tests (phc_... from dev project) gh secret set POSTHOG_TEST_KEY --body "phc_dev_project_key" # Personal key for deployment annotations (phx_...) gh secret set POSTHOG_PERSONAL_API_KEY --body "phx_your_personal_key" # Project ID for annotations gh secret set POSTHOG_PROJECT_ID --body "12345" ``` ### Step 2: GitHub Actions Workflow ```yaml # .github/workflows/posthog-tests.yml name: PostHog Tests on: push: branches: [main] pull_request: branches: [main] jobs: unit-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - run: npm ci - run: npm test -- --
- Overview
- Prerequisites
- Instructions
- Step 1: Configure GitHub Secrets
- Step 2: GitHub Actions Workflow
- Step 3: Unit Tests with Mocked PostHog
- Step 4: Integration Tests (Real PostHog Project)
- Step 5: Package Scripts
- Error Handling
- Output
- Resources
- Next Steps
set -euo pipefail Project key for integration tests (phc_... from dev project) gh secret set POSTHOG_TEST_KEY --body "phc_dev_project_key" Personal key for deployment annotations (phx_...) gh secret set POSTHOG_PERSONAL_API_KEY --body "phx_your_personal_key" Project ID for annotations gh secret set POSTHOG_PROJECT_ID --body "12345"
What does the posthog-ci-integration skill do?
Configure PostHog CI/CD with GitHub Actions: unit tests with mocked PostHog, integration tests against a dev project, and deployment annotations. "CI posthog", "posthog pipeline". '
How do I install it?
Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill posthog-ci-integration --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,630 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.