agentsclimarketplace

Register feature flag

Skill jeffsenso/prestashop-skills/skills/prestashop-module-development/ps9-core-ai/Component/Controller/skills/register-feature-flag

Prestashop Developer Skills

Install
npx -y skills add jeffsenso/prestashop-skills --skill register-feature-flag

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

1.5 KB, as published. Nobody here has run it

register-feature-flag

Instructions

  1. Open install-dev/data/xml/feature_flag.xml.
  2. Add inside <entities>:
    <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. Skill-specific reminder:

  • state starts as 0 — contributors enable manually; merchants never see it until GA

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.