Loading...
Loading...
Copy a feature flag from one PostHog project to one or more target projects in the same organization. Use when the user wants to duplicate a flag, promote a flag from staging to production, sync flags across projects, or replicate a flag configuration in a different workspace. Covers cohort remapping, scheduled-change handling, encrypted payloads, and the safe defaults (disabled in target, no scheduled changes).
npx skill4agent add posthog/ai-plugin copying-flags-across-projectscleaning-up-stale-feature-flagsposthog:feature-flag-get-allkeyposthog:projects-getposthog:feature-flag-get-definitionfilters.groups[].properties[]has_encrypted_payloadsis_remote_configurationdisable_copied_flag: truecopy_schedule: falsedisable_copied_flagfalsecopy_scheduletrueposthog:feature-flags-copy-flags-createfeature_flag_keyfrom_projecttarget_project_idsdisable_copied_flagtruecopy_schedulefalsesuccessfailedactivecopy_schedule: truefeature_flag:writefeature_flag:***failedUser: Copy theflag from project 12345 to project 67890.new-checkoutAgent: Looking at the source flag in project 12345.(calls)posthog:feature-flag-get-definitionTheflag is currently a boolean at 25% rollout in project 12345, with no cohort filters and no scheduled changes. I'll copy it as disabled in project 67890 with no scheduled changes — this is the safer default. Confirm?new-checkoutUser: Yes, but enable it in the target.Agent: Got it — enabling in the target.(callswithposthog:feature-flags-copy-flags-create,disable_copied_flag: false)copy_schedule: falseDone. Created flag id 99887 in project 67890 (). No failed targets.active: true
posthog:feature-flags-copy-flags-createfeature_flag_keyfrom_projecttarget_project_idsdisable_copied_flagcopy_scheduleposthog:feature-flag-get-allposthog:feature-flag-get-definitionposthog:projects-get