:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
from celery import shared_task
from structlog import get_logger
from posthog.scoping_audit import skip_team_scope_audit
from products.skills.backend.api.community_skill_sync import sync_community_skills_from_github
logger = get_logger(__name__)
@shared_task(ignore_result=True)
@skip_team_scope_audit
def sync_community_skills() -> None:
"""Reconcile the local community-skills catalog with the PostHog/community-skills repo.
Operates on the instance-global CommunitySkill catalog (no team scope), so the team-scope
audit is intentionally skipped.
"""
try:
result = sync_community_skills_from_github()
except Exception:
logger.exception("community_skills_sync_failed")
raise
logger.info("community_skills_sync_complete", **result)