Audit legacy controller

From PrestaShop/PrestaShop · View interactive version

Audit legacy controller is an AI agent skill from the GitHub repository PrestaShop/PrestaShop. Read the legacy `Admin{Domain}sController.php` without modifying it. Extract every field rendered, every action method, and every `Hook::exec()` call.

How to use this skill

Skill file

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.