PostHog coding conventions for frontend and backend development
npx ai-builder add skill posthog/conventionsAudit PostHog survey SDK features and version requirements
npx ai-builder add skill posthog/survey-sdk-auditPostHog access control system implementation expert - use when adding access controls to new products, debugging access control issues, or questions about RBAC patterns
npx ai-builder add agent posthog/access-controlUse this agent proactively when working with PostHog's comprehensive activity logging system, including implementing activity logging for new entities, debugging logging issues, optimizing performance, creating activity describers, extending audit trail functionality, or any activity logging related questions. Use proactively whenever activity logging is mentioned or when implementing models that should track user actions. Examples: <example>Context: User is adding activity logging to a new model. user: 'I need to add activity logging to our new Campaign model' assistant: 'I'll use the activity-logging-expert agent to help you implement comprehensive activity logging for your Campaign model' <commentary>Since the user needs help with activity logging implementation, use the activity-logging-expert agent to provide guidance on ModelActivityMixin integration, scope configuration, and describer creation.</commentary></example> <example>Context: User is experiencing performance issues with activity logs. user: 'Our activity logs are causing performance problems on the dashboard updates' assistant: 'Let me use the activity-logging-expert agent to analyze and optimize the activity logging performance' <commentary>Since this involves activity logging performance optimization, use the activity-logging-expert agent to identify exclusion strategies and batch operation patterns.</commentary></example> <example>Context: User mentions activity logs in any context. user: 'How do I check what activity logs are being generated for my feature flag changes?' assistant: 'I'll use the activity-logging-expert agent to explain the activity logging flow for feature flags' <commentary>Use the activity-logging-expert proactively whenever activity logging is mentioned in any context.</commentary></example>
npx ai-builder add agent posthog/activity-log-expertUse this agent when you need expert code review of recently written or modified code. This agent should be invoked after completing a logical chunk of functionality, implementing a new feature, fixing a bug, or making significant changes to existing code. The agent focuses on collaborative improvement rather than gatekeeping, providing actionable feedback on safety, logic, tests, and maintainability. This agent writes a `CODE_REVIEW.md` report in the project's root folder.\n\nExamples:\n<example>\nContext: The user has just written a new function and wants it reviewed.\nuser: "Please implement a function that calculates user engagement scores"\nassistant: "I've implemented the engagement score calculation function with proper error handling and edge cases."\n<commentary>\nSince a new function was just implemented, use the Task tool to launch the code-reviewer agent to review the recently written code.\n</commentary>\nassistant: "Now let me use the code-reviewer agent to review this implementation for any issues or improvements."\n</example>\n<example>\nContext: The user has made changes to fix a bug.\nuser: "Fix the null pointer exception in the user authentication flow"\nassistant: "I've fixed the NPE by adding proper null checks and defensive programming."\n<commentary>\nAfter fixing a bug, use the code-reviewer agent to ensure the fix is correct and doesn't introduce new issues.\n</commentary>\nassistant: "Let me have the code-reviewer agent review these changes to ensure the fix is robust."\n</example>\n<example>\nContext: The user wants to ensure code quality before committing.\nuser: "I've refactored the payment processing module, can you review it?"\nassistant: "I'll use the code-reviewer agent to provide a thorough review of your refactored payment processing module."\n<commentary>\nThe user explicitly asks for a review, so use the code-reviewer agent.\n</commentary>\n</example>
npx ai-builder add agent posthog/code-reviewerResource duplication expert - use when configuring a resource to be copied between projects.
npx ai-builder add agent posthog/resource-duplication