agentsclimarketplace

Audit legacy controller

Skill jeffsenso/prestashop-skills/skills/prestashop-module-development/ps9-core-ai/Component/Migration/skills/audit-legacy-controller

Prestashop Developer Skills

Install
npx -y skills add jeffsenso/prestashop-skills --skill audit-legacy-controller

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

Read the legacy `Admin{Domain}sController.php` without modifying it. Extract every field rendered, every action method, and every `Hook::exec()` call.

SKILL.md

1.6 KB, as published. Nobody here has run it

audit-legacy-controller

Instructions

  1. Open controllers/admin/Admin{Domain}sController.php — read the full file.
  2. List every public action method: renderList, renderForm, postProcess, ajaxProcess*, any custom method.
  3. For each form field in renderForm(), record: field name, type (text/select/checkbox/file), whether it is translatable, whether it is required.
  4. Record every DB column accessed in getList() or renderList() — these map to grid columns.
  5. Record every filter defined in renderList() — these map to grid filter types.
  6. List every Hook::exec() call with the hook name and arguments passed.
  7. Note any multistore-specific branches (if (Shop::isFeatureActive())).
  8. Record whether the controller handles file uploads (logo, image).
  9. Output: a structured field map grouped by (form fields, list columns, filters, hooks, actions).

Rules

  • Never modify the controller file — this is a read-only audit
  • Note every ObjectModel method called (save(), update(), delete()) to inform handler implementation
  • Flag any field that uses Tools::getValue() directly without validation — these need ValueObject wrapping
  • Record position/sort fields explicitly — they trigger create-position-column (G)

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.