feature-flags-dotnet

Configure PostHog feature flags in ASP.NET Core and .NET applications.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill feature-flags-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-flags-dotnet
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/feature-flags/skills/dotnet
Command: npx skills add https://github.com/PostHog/skills --skill feature-flags-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostHog feature flags for .NET applications enable seamless integration of feature flags and experiments into .NET apps, including ASP.NET Core.

Core Features & Use Cases

  • ASP.NET Core integration with PostHog.AspNetCore for simplified registration and hosting.
  • Server-side flag evaluation and support for local evaluation configuration via Feature Management.
  • Guidance for customizing distinct IDs and per-request flag contexts using provider overrides.

Quick Start

Install PostHog.AspNetCore and configure your project token and host URL in appsettings.json to begin evaluating feature flags.

Frequently Asked Questions about feature-flags-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add PostHog feature flags to an ASP.NET Core application?

To add PostHog feature flags to an ASP.NET Core application, install the PostHog.AspNetCore package and configure your project token and host URL in appsettings.json to begin evaluating flags.

Can I evaluate PostHog feature flags locally in .NET?

Yes, you can configure local evaluation of PostHog feature flags in .NET applications by utilizing the built-in Feature Management capabilities provided by the integration.

How do I customize distinct IDs for PostHog feature flags in .NET?

You can customize distinct IDs for PostHog feature flags in .NET by implementing provider overrides, which allow you to handle per-request flag contexts and target specific users accurately.

Does PostHog feature flag integration work with non-ASP.NET Core .NET projects?

Yes, PostHog feature flag integration supports generic .NET projects alongside ASP.NET Core, enabling server-side flag evaluation across various .NET application types.

What configuration is required to start evaluating PostHog feature flags in .NET?

Evaluating PostHog feature flags in .NET requires configuring the PostHog host and project API key within your application settings to authenticate and connect to your PostHog project.