jeffsenso/prestashop-skills / skills/prestashop-module-development/ps9-core-ai/Component/Controller/skills/register-feature-flag
register-feature-flag
VerifiedRegister the domain's feature flag in `feature_flag.xml`. This entry populates the `ps_feature_flag` table at install/upgrade and enables the flag-based routing between legacy and Symfony controllers.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.5 KB |
SKILL.md
View on GitHub---
name: register-feature-flag
description: >
Register the domain's feature flag in `feature_flag.xml`. This entry populates
the `ps_feature_flag` table at install/upgrade and enables the flag-based
routing between legacy and Symfony controllers.
needs: [create-admin-routing]
produces: "feature_flag.xml entry with stability=beta and state=0"
---
# register-feature-flag
## Instructions
1. Open `install-dev/data/xml/feature_flag.xml`.
2. Add inside `<entities>`:
```xml
<feature_flag id="{domain}">
<stability>beta</stability>
<state>0</state>
<label_wording>{Domain} page</label_wording>
<label_domain>Admin.{Section}.Feature</label_domain>
<description_wording>Enable the new Symfony-based {domain} management page (beta).</description_wording>
<description_domain>Admin.{Section}.Feature</description_domain>
</feature_flag>
```
3. The `name` field (which maps to the `id` attribute in XML) must exactly match the `_legacy_feature_flag` values in the routing YAML.
4. Insert a row manually for local dev: `INSERT INTO ps_feature_flag (name, state, stability) VALUES ('{domain}', 0, 'beta');`
5. Enable for development: `UPDATE ps_feature_flag SET state=1 WHERE name='{domain}';`
6. Verify routing: visit legacy URL with flag OFF → legacy page. Enable flag → redirect to Symfony route.
## Rules
Conventions (atomic commit, beta→stable lifecycle) are in [Controller/CONTEXT.md](../../CONTEXT.md). Skill-specific reminder:
- state starts as 0 — contributors enable manually; merchants never see it until GA
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |