create-feature-flag-plan
Create Feature Flag Plan
Overview
Generate a feature flag lifecycle plan for progressive delivery. Covers flag naming, rollout stages from internal to beta to GA, kill switch behavior, monitoring requirements at each stage, and a cleanup plan with a deadline and owner for flag removal. Prevents flag debt and ensures safe, observable rollouts.
Workflow
-
Read engineering context -- Scan
.chalk/docs/engineering/for existing feature flag conventions, architecture docs, and monitoring infrastructure. Check.chalk/docs/product/for the PRD or pitch that describes the feature being flagged. -
Parse the feature -- Extract from
$ARGUMENTSthe feature to create a flag plan for. If unspecified, ask the user to name the feature. -
Determine the next file number -- Read filenames in
.chalk/docs/engineering/to find the highest numbered file. The next number ishighest + 1. -
Define the flag -- Name the flag following conventions found in engineering docs, or default to
enable_<feature_slug>. Specify the flag type (boolean, percentage, user-segment) and default value (always off).