feature-flags-api

от posthog

PostHog feature flags for API applications

npx skills add https://github.com/posthog/skills --skill feature-flags-api

PostHog feature flags for API

This skill helps you add PostHog feature flags to API applications.

Reference files

  • references/api.md - API feature flags installation - docs
  • references/adding-feature-flag-code.md - Adding feature flag code - docs
  • references/best-practices.md - Feature flag best practices - docs

Consult the documentation for API details and framework-specific patterns.

Key principles

  • Environment variables: Always use environment variables for PostHog keys. Never hardcode them.
  • Minimal changes: Add feature flag code alongside existing logic. Don't replace or restructure existing code.
  • Boolean flags first: Default to boolean flag checks unless the user specifically asks for multivariate flags.
  • Server-side when possible: Prefer server-side flag evaluation to avoid UI flicker.

PostHog MCP tools

Check if a PostHog MCP server is connected. If available, look for tools related to feature flag management (creating, listing, updating, deleting flags). Use these tools to manage flags directly in PostHog rather than requiring the user to do it manually in the dashboard.

Framework guidelines

No specific framework guidelines.

Больше skills от posthog

managing-experiment-lifecycle
posthog
Управляет переходами состояний эксперимента: запуск, приостановка, возобновление, завершение, отправка вариантов, архивирование, сброс и дублирование. Охватывает предусловия,…
official
configuring-experiment-analytics
posthog
Configures the analytics side of a PostHog experiment — exposure criteria (default `$feature_flag_called` vs custom exposure events), primary and secondary…
official
error-tracking-hono
posthog
Отслеживание ошибок PostHog для Hono
official
error-tracking-react
posthog
Отслеживание ошибок PostHog для React
official
integration-android
posthog
PostHog интеграция для Android-приложений
official
integration-ruby
posthog
Интеграция PostHog для любого Ruby-приложения с использованием Ruby SDK
official
tuning-incremental-sync-config
posthog
Конфигурация синхронизации хранится в ExternalDataSchema и может быть изменена в любое время через external-data-schemas-partial-update. Большинство изменений являются недеструктивными (вступают в силу при следующей синхронизации), но некоторые (смена sync_type, изменение первичных ключей) требуют осторожного обращения, чтобы избежать повреждения синхронизированных данных.
official
instrument-integration
posthog
Используйте этот навык, чтобы добавить PostHog SDK в приложение. Применяйте при первой настройке PostHog или при проверке PR, требующих инициализации PostHog. Охватывает установку SDK, настройку провайдера и базовую конфигурацию. Поддерживает любой фреймворк или язык.
official