[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CCE36AA57CG36R4VHKFRXV":3,"skill-same:01M6CCE36AA57CG36R4VHKFRXV":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":15,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":17,"ownerDescription":17,"updatedAt":52,"install":53,"resources":66},"01M6CCE36AA57CG36R4VHKFRXV","integration-tanstack-start","TanStack Start 集成 PostHog","PostHog integration for TanStack Start full-stack applications","为 TanStack Start 全栈应用集成 PostHog","baisharg\u002FASTN","baisharg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F204916775?v=4","01M6CC8XHZYVK2DR22FZ1BESCG","BAISH","01M6CC8XP400QZ9DXAWTC8EG3X",2,"AGPL-3.0",null,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWDNFEHJCBZX47YY896K05","应用连接器集成","SCENARIO","使用场景",[31,32,33,34,35,36,37],"integration","start","tanstack","integration tanstack start","posthog","applications","stack","2026-11-10 10:12:30",false,"---\nname: integration-tanstack-start\ndescription: PostHog integration for TanStack Start full-stack applications\nmetadata:\n  author: PostHog\n  version: 1.6.1\n---\n\n# PostHog integration for TanStack Start\n\nThis skill helps you add PostHog analytics to TanStack Start applications.\n\n## Workflow\n\nFollow these steps in order to complete the integration:\n\n1. `basic-integration-1.0-begin.md` - PostHog Setup - Begin ← **Start here**\n2. `basic-integration-1.1-edit.md` - PostHog Setup - Edit\n3. `basic-integration-1.2-revise.md` - PostHog Setup - Revise\n4. `basic-integration-1.3-conclude.md` - PostHog Setup - Conclusion\n\n## Reference files\n\n- `EXAMPLE.md` - TanStack Start example project code\n- `tanstack-start.md` - Tanstack start - docs\n- `identify-users.md` - Identify users - docs\n- `basic-integration-1.0-begin.md` - PostHog setup - begin\n- `basic-integration-1.1-edit.md` - PostHog setup - edit\n- `basic-integration-1.2-revise.md` - PostHog setup - revise\n- `basic-integration-1.3-conclude.md` - PostHog setup - conclusion\n\nThe example project shows the target implementation pattern. Consult the documentation for API details.\n\n## Key principles\n\n- **Environment variables**: Always use environment variables for PostHog keys. Never hardcode them.\n- **Minimal changes**: Add PostHog code alongside existing integrations. Don't replace or restructure existing code.\n- **Match the example**: Your implementation should follow the example project's patterns as closely as possible.\n\n## Framework guidelines\n\n- For feature flags, use useFeatureFlagEnabled() or useFeatureFlagPayload() hooks - they handle loading states and external sync automatically\n- Add analytics capture in event handlers where user actions occur, NOT in useEffect reacting to state changes\n- Do NOT use useEffect for data transformation - calculate derived values during render instead\n- Do NOT use useEffect to respond to user events - put that logic in the event handler itself\n- Do NOT use useEffect to chain state updates - calculate all related updates together in the event handler\n- Do NOT use useEffect to notify parent components - call the parent callback alongside setState in the event handler\n- To reset component state when a prop changes, pass the prop as the component's key instead of using useEffect\n- useEffect is ONLY for synchronizing with external systems (non-React widgets, browser APIs, network subscriptions)\n- Use PostHogProvider in the root route (\\_\\_root.tsx) for client-side tracking\n- Use posthog-node for server-side event capture in API routes (src\u002Froutes\u002Fapi\u002F) - do NOT use posthog-js on the server\n- Create a singleton PostHog server client to avoid re-initialization on every request\n- Use TanStack Router's built-in navigation events for pageview tracking instead of useEffect\n- Use PostHogProvider in the root component defined in either the file-based convention (\\_\\_root.tsx) or code-based convention (wherever createRootRoute() is called) so all child routes have access to the PostHog client\n- Remember that source code is available in the node_modules directory\n- Check package.json for type checking or build scripts to validate changes\n- posthog-js is the JavaScript SDK package name\n\n## Identifying users\n\nIdentify users during login and signup events. Refer to the example code and documentation for the correct identify pattern for this framework. If both frontend and backend code exist, pass the client-side session and distinct ID using `X-POSTHOG-DISTINCT-ID` and `X-POSTHOG-SESSION-ID` headers to maintain correlation.\n\n## Error tracking\n\nAdd PostHog error tracking to relevant files, particularly around critical user flows and API boundaries.\n","# PostHog integration for TanStack Start\n\nThis skill helps you add PostHog analytics to TanStack Start applications.\n\n## Workflow\n\nFollow these steps in order to complete the integration:\n\n1. `basic-integration-1.0-begin.md` - PostHog Setup - Begin ← **Start here**\n2. `basic-integration-1.1-edit.md` - PostHog Setup - Edit\n3. `basic-integration-1.2-revise.md` - PostHog Setup - Revise\n4. `basic-integration-1.3-conclude.md` - PostHog Setup - Conclusion\n\n## Reference files\n\n- `EXAMPLE.md` - TanStack Start example project code\n- `tanstack-start.md` - Tanstack start - docs\n- `identify-users.md` - Identify users - docs\n- `basic-integration-1.0-begin.md` - PostHog setup - begin\n- `basic-integration-1.1-edit.md` - PostHog setup - edit\n- `basic-integration-1.2-revise.md` - PostHog setup - revise\n- `basic-integration-1.3-conclude.md` - PostHog setup - conclusion\n\nThe example project shows the target implementation pattern. Consult the documentation for API details.\n\n## Key principles\n\n- **Environment variables**: Always use environment variables for PostHog keys. Never hardcode them.\n- **Minimal changes**: Add PostHog code alongside existing integrations. Don't replace or restructure existing code.\n- **Match the example**: Your implementation should follow the example project's patterns as closely as possible.\n\n## Framework guidelines\n\n- For feature flags, use useFeatureFlagEnabled() or useFeatureFlagPayload() hooks - they handle loading states and external sync automatically\n- Add analytics capture in event handlers where user actions occur, NOT in useEffect reacting to state changes\n- Do NOT use useEffect for data transformation - calculate derived values during render instead\n- Do NOT use useEffect to respond to user events - put that logic in the event handler itself\n- Do NOT use useEffect to chain state updates - calculate all related updates together in the event handler\n- Do NOT use useEffect to notify parent components - call the parent callback alongside setState in the event handler\n- To reset component state when a prop changes, pass the prop as the component's key instead of using useEffect\n- useEffect is ONLY for synchronizing with external systems (non-React widgets, browser APIs, network subscriptions)\n- Use PostHogProvider in the root route (\\_\\_root.tsx) for client-side tracking\n- Use posthog-node for server-side event capture in API routes (src\u002Froutes\u002Fapi\u002F) - do NOT use posthog-js on the server\n- Create a singleton PostHog server client to avoid re-initialization on every request\n- Use TanStack Router's built-in navigation events for pageview tracking instead of useEffect\n- Use PostHogProvider in the root component defined in either the file-based convention (\\_\\_root.tsx) or code-based convention (wherever createRootRoute() is called) so all child routes have access to the PostHog client\n- Remember that source code is available in the node_modules directory\n- Check package.json for type checking or build scripts to validate changes\n- posthog-js is the JavaScript SDK package name\n\n## Identifying users\n\nIdentify users during login and signup events. Refer to the example code and documentation for the correct identify pattern for this framework. If both frontend and backend code exist, pass the client-side session and distinct ID using `X-POSTHOG-DISTINCT-ID` and `X-POSTHOG-SESSION-ID` headers to maintain correlation.\n\n## Error tracking\n\nAdd PostHog error tracking to relevant files, particularly around critical user flows and API boundaries.\n",{"name":5,"metadata":43,"description":7},{"author":44,"version":45},"PostHog","1.6.1","main","83212e6d909b6a0fe9e93fd5a3ff1723300f5b5b",".claude\u002Fskills\u002Fposthog-integration-tanstack-start","https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN","https:\u002F\u002Fsafetytalent.org","https:\u002F\u002Fgithub.com\u002Fbaisharg","2026-11-15 03:33:22",{"source":9,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add baisharg\u002FASTN --skill integration-tanstack-start",{"tool":59,"command":60},"bunx","bunx skills add baisharg\u002FASTN --skill integration-tanstack-start",{"tool":62,"command":63},"pnpm","pnpm dlx skills add baisharg\u002FASTN --skill integration-tanstack-start","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002FSKILL.md",true,[67,73,77,81,85,89,93],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fbasic-integration-1.0-begin.md","REFERENCE","参考文档",2166,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002Freferences\u002Fbasic-integration-1.0-begin.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fbasic-integration-1.1-edit.md",2513,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002Freferences\u002Fbasic-integration-1.1-edit.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fbasic-integration-1.2-revise.md",914,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002Freferences\u002Fbasic-integration-1.2-revise.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fbasic-integration-1.3-conclude.md",1505,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002Freferences\u002Fbasic-integration-1.3-conclude.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002FEXAMPLE.md",29151,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002Freferences\u002FEXAMPLE.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fidentify-users.md",8296,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002Freferences\u002Fidentify-users.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Ftanstack-start.md",4730,"https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fposthog-integration-tanstack-start\u002Freferences\u002Ftanstack-start.md",[98,122,136,150,167,179],{"skillNo":99,"name":100,"nameZh":101,"description":102,"descriptionZh":103,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":110,"publishedAt":38},"01M6CCE5DVER8DQWJDY51HAJF7","schema-builder","Convex 数据库模式设计","Design and generate Convex database schemas with proper validation, indexes, and relationships. Use when creating schema.ts or modifying table definitions.","设计并生成 Convex 数据库模式（schema），包含完善的验证、索引和关系。在创建 schema.ts 或修改表定义时使用。","https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fschema-builder\u002FSKILL.md",[106,107],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":108,"categoryName":109,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS1P4QM1G70C9FKMTZ88VK","数据库管理",[111,112,113,114,115,116,117,118,119,120,121],"schema builder","schema","builder","indexes","design","convex","generate","validation","database","table","use",{"skillNo":123,"name":124,"nameZh":17,"description":125,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":38},"01M6CCE0FK6N8XAB093X7TTQ4F","migration-helper","Plan and execute Convex schema migrations safely, including adding fields, creating tables, and data transformations. Use when schema changes affect existing data.","https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmigration-helper\u002FSKILL.md",[],[129,130,112,116,131,132,133,134,121,135],"migration","migration helper","schema migrations safely","data","plan","execute","migrations",{"skillNo":137,"name":138,"nameZh":17,"description":139,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M6CCDY3644G8WXXP0BDNMZPR","gsd:sprint","Autonomous phase execution with Codex validation. Runs plan\u002Fexecute\u002Fverify cycles in a bash loop until done or halted.","https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgsd-sprint\u002FSKILL.md",[],[138,143,133,144,134,145,32,146,147,118,148,149],"loop","autonomous","resume","Bash","codex","execution","verify",{"skillNo":151,"name":152,"nameZh":17,"description":153,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":38},"01M6CCDVTZRTFWWGREMV6FF956","gsd:second-opinion","Get a second opinion from OpenAI Codex (GPT-5.2-codex) on code, architecture, or implementation decisions. Use when you want independent verification or an alternative perspective.","https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgsd-second-opinion\u002FSKILL.md",[],[157,158,159,147,160,161,162,163,164,165,121,166],"gsd:second opinion","second opinion","code","architecture","verification","openai","gpt","decisions","question","implementation",{"skillNo":168,"name":169,"nameZh":17,"description":170,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":38},"01M6CCDSDPYYNEDERHP01N30PT","gsd:milestone-sprint","Run entire milestone autonomously with Codex validation. Auto-detects current milestone, executes all phases, and runs audit.","https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgsd-milestone-sprint\u002FSKILL.md",[],[174,147,175,118,176,177,178,145],"gsd:milestone sprint","run","audit","interactive","auto",{"skillNo":180,"name":181,"nameZh":17,"description":182,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":38},"01M6CCDQPC27AN5P984R46TRF7","gsd:health-check","Verify GSD setup - checks Claude, Codex, skills, and MCP servers are working correctly.","https:\u002F\u002Fgithub.com\u002Fbaisharg\u002FASTN\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgsd-health-check\u002FSKILL.md",[],[186,187,188,189,147,190,191,149,192],"gsd:health check","check","health","health check","setup","mcp servers","MCP"]