[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H8GFEV7EW026B5GG4VC8HX":3,"skill-same:01M6H8GFEV7EW026B5GG4VC8HX":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":59,"install":60,"resources":73},"01M6H8GFEV7EW026B5GG4VC8HX","posthog-deploy-integration",null,"Deploy PostHog integrations to Vercel, Fly.io, and Cloud Run platforms.\nUse when deploying PostHog-powered applications to production,\nconfiguring platform-specific secrets, or setting up deployment pipelines.\nTrigger with phrases like \"deploy posthog\", \"posthog Vercel\",\n\"posthog production deploy\", \"posthog Cloud Run\", \"posthog Fly.io\".","micsapp\u002Fmicstec-skills","micsapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82411001?v=4","01M6GWCFQ6D3PV8EHNY62NN5VW","01M6GWCFVE1PA5HG0DKC7AMFJ3",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fposthog-pack\u002Fskills\u002Fposthog-deploy-integration\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"deploy","posthog deploy integration","integration","posthog","code","run","deployment","secrets","fly","Bash","integrations","read","write","edit","vercel","up","platform","io","trigger","openclaw","2026-11-10 10:12:30",false,"---\nname: posthog-deploy-integration\ndescription: |\n  Deploy PostHog integrations to Vercel, Fly.io, and Cloud Run platforms.\n  Use when deploying PostHog-powered applications to production,\n  configuring platform-specific secrets, or setting up deployment pipelines.\n  Trigger with phrases like \"deploy posthog\", \"posthog Vercel\",\n  \"posthog production deploy\", \"posthog Cloud Run\", \"posthog Fly.io\".\nallowed-tools: Read, Write, Edit, Bash(vercel:*), Bash(fly:*), Bash(gcloud:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# PostHog Deploy Integration\n\n## Overview\nDeploy PostHog analytics integration to production. Covers client-side snippet deployment, server-side event capture with `posthog-node`, reverse proxy setup to avoid ad blockers, and self-hosted PostHog deployment using Docker.\n\n## Prerequisites\n- PostHog project API key (starts with `phc_`)\n- PostHog personal API key for server-side operations\n- Platform CLI installed (vercel, docker, or gcloud)\n\n## Instructions\n\n### Step 1: Client-Side Integration\n```typescript\n\u002F\u002F lib\u002Fposthog.ts\nimport posthog from \"posthog-js\";\n\nexport function initPostHog() {\n  if (typeof window !== \"undefined\") {\n    posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {\n      api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || \"https:\u002F\u002Fus.i.posthog.com\",\n      capture_pageview: false, \u002F\u002F Manual pageview tracking\n      loaded: (posthog) => {\n        if (process.env.NODE_ENV === \"development\") posthog.debug();\n      },\n    });\n  }\n}\n```\n\n### Step 2: Server-Side Event Capture\n```typescript\n\u002F\u002F lib\u002Fposthog-server.ts\nimport { PostHog } from \"posthog-node\";\n\nconst posthog = new PostHog(process.env.POSTHOG_API_KEY!, {\n  host: process.env.POSTHOG_HOST || \"https:\u002F\u002Fus.i.posthog.com\",\n});\n\nexport async function trackServerEvent(\n  distinctId: string,\n  event: string,\n  properties?: Record\u003Cstring, any>\n) {\n  posthog.capture({ distinctId, event, properties });\n  await posthog.flush();\n}\n```\n\n### Step 3: Reverse Proxy (Avoid Ad Blockers)\n```typescript\n\u002F\u002F next.config.js - Proxy PostHog through your domain\nmodule.exports = {\n  async rewrites() {\n    return [\n      {\n        source: \"\u002Fingest\u002Fstatic\u002F:path*\",\n        destination: \"https:\u002F\u002Fus-assets.i.posthog.com\u002Fstatic\u002F:path*\",\n      },\n      {\n        source: \"\u002Fingest\u002F:path*\",\n        destination: \"https:\u002F\u002Fus.i.posthog.com\u002F:path*\",\n      },\n    ];\n  },\n};\n```\n\n### Step 4: Self-Hosted Docker Deployment\n```bash\nset -euo pipefail\n# Deploy PostHog self-hosted\ngit clone https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog.git\ncd posthog\ndocker compose -f docker-compose.hobby.yml up -d\n\n# Your PostHog instance at http:\u002F\u002Flocalhost:8000\n```\n\n### Step 5: Vercel Deployment\n```bash\nvercel env add NEXT_PUBLIC_POSTHOG_KEY production\nvercel env add NEXT_PUBLIC_POSTHOG_HOST production\nvercel env add POSTHOG_API_KEY production  # Server-side key\nvercel --prod\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Events not appearing | Wrong API key | Verify `phc_` project key |\n| Ad blocker blocking | Direct PostHog requests | Set up reverse proxy |\n| Self-hosted slow | Under-provisioned | Increase Docker resources |\n| Missing server events | Not flushing | Call `posthog.flush()` in serverless |\n\n## Examples\n\n\n**Basic usage**: Apply posthog deploy integration to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize posthog deploy integration for production environments with multiple constraints and team-specific requirements.\n\n## Resources\n- [PostHog Documentation](https:\u002F\u002Fposthog.com\u002Fdocs)\n- [PostHog Self-Hosting](https:\u002F\u002Fposthog.com\u002Fdocs\u002Fself-host)\n- [PostHog Node SDK](https:\u002F\u002Fposthog.com\u002Fdocs\u002Flibraries\u002Fnode)\n\n## Next Steps\nFor webhook handling, see `posthog-webhooks-events`.\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale","# PostHog Deploy Integration\n\n## Overview\nDeploy PostHog analytics integration to production. Covers client-side snippet deployment, server-side event capture with `posthog-node`, reverse proxy setup to avoid ad blockers, and self-hosted PostHog deployment using Docker.\n\n## Prerequisites\n- PostHog project API key (starts with `phc_`)\n- PostHog personal API key for server-side operations\n- Platform CLI installed (vercel, docker, or gcloud)\n\n## Instructions\n\n### Step 1: Client-Side Integration\n```typescript\n\u002F\u002F lib\u002Fposthog.ts\nimport posthog from \"posthog-js\";\n\nexport function initPostHog() {\n  if (typeof window !== \"undefined\") {\n    posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {\n      api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || \"https:\u002F\u002Fus.i.posthog.com\",\n      capture_pageview: false, \u002F\u002F Manual pageview tracking\n      loaded: (posthog) => {\n        if (process.env.NODE_ENV === \"development\") posthog.debug();\n      },\n    });\n  }\n}\n```\n\n### Step 2: Server-Side Event Capture\n```typescript\n\u002F\u002F lib\u002Fposthog-server.ts\nimport { PostHog } from \"posthog-node\";\n\nconst posthog = new PostHog(process.env.POSTHOG_API_KEY!, {\n  host: process.env.POSTHOG_HOST || \"https:\u002F\u002Fus.i.posthog.com\",\n});\n\nexport async function trackServerEvent(\n  distinctId: string,\n  event: string,\n  properties?: Record\u003Cstring, any>\n) {\n  posthog.capture({ distinctId, event, properties });\n  await posthog.flush();\n}\n```\n\n### Step 3: Reverse Proxy (Avoid Ad Blockers)\n```typescript\n\u002F\u002F next.config.js - Proxy PostHog through your domain\nmodule.exports = {\n  async rewrites() {\n    return [\n      {\n        source: \"\u002Fingest\u002Fstatic\u002F:path*\",\n        destination: \"https:\u002F\u002Fus-assets.i.posthog.com\u002Fstatic\u002F:path*\",\n      },\n      {\n        source: \"\u002Fingest\u002F:path*\",\n        destination: \"https:\u002F\u002Fus.i.posthog.com\u002F:path*\",\n      },\n    ];\n  },\n};\n```\n\n### Step 4: Self-Hosted Docker Deployment\n```bash\nset -euo pipefail\n# Deploy PostHog self-hosted\ngit clone https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog.git\ncd posthog\ndocker compose -f docker-compose.hobby.yml up -d\n\n# Your PostHog instance at http:\u002F\u002Flocalhost:8000\n```\n\n### Step 5: Vercel Deployment\n```bash\nvercel env add NEXT_PUBLIC_POSTHOG_KEY production\nvercel env add NEXT_PUBLIC_POSTHOG_HOST production\nvercel env add POSTHOG_API_KEY production  # Server-side key\nvercel --prod\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Events not appearing | Wrong API key | Verify `phc_` project key |\n| Ad blocker blocking | Direct PostHog requests | Set up reverse proxy |\n| Self-hosted slow | Under-provisioned | Increase Docker resources |\n| Missing server events | Not flushing | Call `posthog.flush()` in serverless |\n\n## Examples\n\n\n**Basic usage**: Apply posthog deploy integration to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize posthog deploy integration for production environments with multiple constraints and team-specific requirements.\n\n## Resources\n- [PostHog Documentation](https:\u002F\u002Fposthog.com\u002Fdocs)\n- [PostHog Self-Hosting](https:\u002F\u002Fposthog.com\u002Fdocs\u002Fself-host)\n- [PostHog Node SDK](https:\u002F\u002Fposthog.com\u002Fdocs\u002Flibraries\u002Fnode)\n\n## Next Steps\nFor webhook handling, see `posthog-webhooks-events`.\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale",{"name":5,"author":48,"license":14,"version":49,"description":50,"allowed-tools":51,"compatible-with":52},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Deploy PostHog integrations to Vercel, Fly.io, and Cloud Run platforms.\nUse when deploying PostHog-powered applications to production,\nconfiguring platform-specific secrets, or setting up deployment pipelines.\nTrigger with phrases like \"deploy posthog\", \"posthog Vercel\",\n\"posthog production deploy\", \"posthog Cloud Run\", \"posthog Fly.io\".\n","Read, Write, Edit, Bash(vercel:*), Bash(fly:*), Bash(gcloud:*)","claude-code, codex, openclaw","master","3f5d983eb4ef375b749adcd6b07ec03bd82ae8a8","claude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fposthog-pack\u002Fskills\u002Fposthog-deploy-integration",0,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills","https:\u002F\u002Fgithub.com\u002Fmicsapp","2026-03-20 11:24:18",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add micsapp\u002Fmicstec-skills --skill posthog-deploy-integration",{"tool":66,"command":67},"bunx","bunx skills add micsapp\u002Fmicstec-skills --skill posthog-deploy-integration",{"tool":69,"command":70},"pnpm","pnpm dlx skills add micsapp\u002Fmicstec-skills --skill posthog-deploy-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fposthog-pack\u002Fskills\u002Fposthog-deploy-integration\u002FSKILL.md",true,[],[75,110,136,157,177,201],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":89,"publishedAt":43},"01M6HBTJ02FXBFG9NYEHHYAP52","azure-apim-architecture","Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fazure-apim-architecture\u002FSKILL.md",[81,84],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":85,"categoryName":86,"taxonomyType":87,"taxonomyTypeDesc":88},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],"architecture","azure","azure apim architecture","component","authentication","gateway","topology","Optimization","network","api","team","environment","multi-environment","workspaces","instances","selection","strategies","azure api management","mode","for",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":122,"publishedAt":43},"01M6HBT7J4H082JEEA670B3EQ9","apiops-deployment","Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep\u002FTerraform), CI\u002FCD pipelines (GitHub Actions\u002FAzure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapiops-deployment\u002FSKILL.md",[116,117,118,121],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":119,"categoryName":120,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":85,"categoryName":86,"taxonomyType":87,"taxonomyTypeDesc":88},[29,123,124,125,91,126,27,127,128,129,130,131,99,100,106,132,133,107,134,135],"apiops deployment","workflows","azure devops","infrastructure","infrastructure as code","actions","ci","github actions","github-actions","as","guides","CI\u002FCD","implementing",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":143,"publishedAt":43},"01M6HBT2HEA23THNE9E00GYQBE","apim-policy-authoring","Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request\u002Fresponse processing logic.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapim-policy-authoring\u002FSKILL.md",[142],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},[144,145,146,147,91,94,99,100,148,149,150,151,152,153,154,107,155,156,135,109],"policy","authoring","apim policy authoring","security","access","use","ready","api security","Access Control","error","processing","cors configuration","production-ready",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":165,"publishedAt":43},"01M6HBSY65SB29J9WE9KYD0K6T","api-security-review","Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapi-security-review\u002FSKILL.md",[163,164],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":85,"categoryName":86,"taxonomyType":87,"taxonomyTypeDesc":88},[166,147,167,99,151,168,91,29,169,170,171,172,100,173,107,174,175,176,108,109],"review","security review","api security review","benchmark","verification","owasp","owasp-api","alignment","azure security","reviews","top",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":43},"01M6HBSRW4PDFE6K4F8JYPZQ05","jira-cli","Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fjira-cli\u002FSKILL.md",[],[184,185,186,124,187,188,189,190,99,191,192,193,36,194,195,196,197,198,199,200],"cli","jira","jira cli","init","tasks","create","issues","common","work","command","list","view","project","project work","token","line","sprints",{"skillNo":202,"name":203,"nameZh":6,"description":204,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":205,"categories":206,"keywords":207,"publishedAt":43},"01M6HBSNS3JHMW603G47TWE31H","calculator","Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fcalculator\u002FSKILL.md",[],[203,208,209,210,211,212,213,149,214,215],"npm","js","calculate","node","math","user","compute","errors"]