Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adds a new boolean or nested feature flag to the Webiny system, wiring it through DTO types, Zod schema, license checks and API.
14% 91%+77 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 3 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
A WCP license is required for feature flags to work. The license is the gate; the config is the switch within the gate.
1. No license at all → false (everything off, config ignored)
2. License blocks the flag → false (config ignored)
3. License allows + config=false → false (config can disable what license allows)
4. License allows + config=true → true
5. License allows + config unset → true (license is the authority for unset flags)
6. Not in LICENSE_CHECKS + license exists + config unset → true
7. Not in LICENSE_CHECKS + license exists + config=false → false
Key points:
LICENSE_CHECKS) still require a license to exist — then config decides.FeatureFlags class (packages/feature-flags/src/FeatureFlags.ts) — single isEnabled(name) method resolves dot-path strings against the DTO. Flags are disabled by default (undefined → false). Also provides isExplicitlyDisabled(name) to distinguish "not set" from "set to false".IFeatureFlagsDto (packages/feature-flags/src/types.ts) — the typed DTO interface.KnownFeatureFlag (packages/feature-flags/src/FeatureFlags.ts) — string literal union for autocomplete.packages/project/src/extensions/FeatureFlags.tsx) — validates the config input.toDto() returns the fully resolved state (all flags explicitly set), used by the featureFlags GraphQL query.isEnabled() and apply the decision flow above via a LICENSE_CHECKS map.File: packages/feature-flags/src/types.ts
Add the new flag to IFeatureFlagsDto:
Next to this one in the catalogue, plus more from the same author.