Skip to content
Back to skills

Register Feature Flag

ASecurity

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.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
ai-agents

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add jeffsenso/prestashop-skills --skill register-feature-flag --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Register Feature Flag?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Register Feature Flag
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jeffsenso-register-feature-flag/badge)](https://www.skillsdirectory.com/skills/jeffsenso-register-feature-flag)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.