Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
posthog avatar

Feature Flags Ruby

  • 89 installs
  • 58 repo stars
  • Updated August 5, 2026
  • posthog/skills

feature-flags-ruby is a Claude Code skill for ai & agent building.

About

feature-flags-ruby is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • feature-flags-ruby
  • AI & Agent Building
  • AI-coding skill

Feature Flags Ruby by the numbers

  • 89 all-time installs (skills.sh)
  • +3 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #4,891 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/posthog/skills --skill feature-flags-ruby

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs89
repo stars58
Last updatedAugust 5, 2026
Repositoryposthog/skills

How do I helps with ai & agent building tasks during AI-assisted development.?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with feature flags ruby.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks during AI-assisted development., or when feature-flags-ruby is a claude code skill for ai & agent building.

What you get

Structured output aligned to feature-flags-ruby: feature-flags-ruby, AI & Agent Building.

Files

SKILL.mdMarkdownGitHub ↗

PostHog feature flags for Ruby

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

Reference files

  • references/ruby.md - Ruby 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

  • posthog-ruby is the Ruby SDK gem name (add gem 'posthog-ruby' to Gemfile) but require it with require 'posthog' (NOT require 'posthog-ruby')
  • Use PostHog::Client.new(api_key: key, host: host) for instance-based initialization in scripts and CLIs
  • In CLIs and scripts: MUST call client.shutdown before exit or all events are lost
  • Use begin/rescue/ensure with shutdown in the ensure block for proper cleanup
  • capture and identify take a single hash argument: client.capture(distinct_id: 'user_123', event: 'my_event', properties: { key: 'value' })
  • capture_exception takes POSITIONAL args (not keyword): client.capture_exception(exception, distinct_id, additional_properties) — do NOT use distinct_id: keyword syntax

Related skills

FAQ

What does feature-flags-ruby do?

feature-flags-ruby is a Claude Code skill for ai & agent building.

When should I use feature-flags-ruby?

When you need to helps with ai & agent building tasks during AI-assisted development., or when feature-flags-ruby is a claude code skill for ai & agent building.

What are the main capabilities?

feature-flags-ruby; AI & Agent Building; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.