audit-legacy-controller

audit-legacy-controller is a skill for Claude Code, Codex from jeffsenso/prestashop-skills. It costs 38 tokens per session (370 once invoked), scanned A, original, MIT.

A read-only audit procedure for a legacy PHP administration controller. It maps forms, list columns, filters, actions, database access, hooks, uploads, and model operations without changing the controller.

In plain words
What is it for?
Use it to inspect `Admin{Domain}sController.php`, document its fields and behavior, find `Hook::exec()` calls, record database columns and filters, and identify file uploads or save, update, and delete operations.
Why use it?
It turns an older controller into a structured specification before someone builds or updates its handler, while highlighting unvalidated input and multistore branches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to inspect Admin{Domain}sController.php, document its fields and behavior, find Hook::exec() calls, record database columns and filters, and identify file uploads or save, update, and delete operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeffsenso/prestashop-skills/audit-legacy-controller
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jeffsenso/prestashop-skills --skill audit-legacy-controller
Clone the repo
git clone --depth 1 https://github.com/jeffsenso/prestashop-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-legacy-controller

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/audit-legacy-controller/github.svg)](https://agentmods.dev/skills/jeffsenso/prestashop-skills/audit-legacy-controller)
Your own site
<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/audit-legacy-controller"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/audit-legacy-controller/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-legacy-controller

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/audit-legacy-controller"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/audit-legacy-controller.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00370
Opus 5 $0.00019 $0.00185
Sonnet 5 $0.00008 $0.00074
Haiku 4.5 $0.00004 $0.00037

Measured 10d ago against content hash 9eaca93e84fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

audit-legacy-controller scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prestashop-module-development/ps9-core-ai/Component/Migration/skills/audit-legacy-controller/SKILL.md · 30 lines

What it actually says

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)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 30 lines · 38 tokens per session scan A 9eaca93e84fd

Subscribe to this mod's changes

audit-legacy-controller is a skill published in the GitHub repository jeffsenso/prestashop-skills (5 stars, last pushed 16d ago), licensed MIT. It adds 38 tokens to every session and 370 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

121-java-object-oriented-design

Use when reviewing, improving, or refactoring Java object-oriented design, including applying SOLID, DRY, or YAGNI; improving classes and interfaces; correcting encapsulation, inheritance, or polymorphism; resolving God Class, Feature Envy, or Data Clumps; and improving object creation, methods, or exception…

jabrena/plinth · 107 tokens

059-design-atdd

Use when reviewing whether an OpenSpec change's execution goal, acceptance criteria, and implementation or verification tasks are aligned. This should trigger for requests such as Review this OpenSpec change with ATDD; Check acceptance criteria against tasks; Find acceptance criteria without task coverage; Detect…

jabrena/plinth · 93 tokens

707-technologies-hexagonal-architecture

Use when you need framework-agnostic Hexagonal architecture guidance for Java projects - ports and adapters boundaries, application core independence, driving and driven adapters, dependency direction, infrastructure leakage detection, optional architecture tests, and evidence-backed remediation. This should trigger…

jabrena/plinth · 102 tokens

056-design-avoid-breaking-changes

Use when you need to review a plan, OpenSpec change, specification, or implementation proposal for breaking-change risk across commands, skills, generated outputs, XML sources, README/docs, tests, CI, APIs, schemas, configuration, data, migration, and release guidance. This should trigger for requests such as Review…

jabrena/plinth · 106 tokens

053-design-simple-rules

Use when Java design, refactoring, or implementation tradeoffs should be evaluated with Kent Beck's simple design rules, including passes the tests, reveals intention, has no duplication, and has the fewest elements. This should trigger for requests such as Apply simple design rules; Review this design with Beck's…

jabrena/plinth · 86 tokens

idd-spec-audit

Semantic audit of the IDD instruction corpus for leaked session context, cross-file contradictions, fresh-memory completability gaps, automation blockers, and restatement-discipline drift. Use on request to audit .github/instructions, the issue-authoring skill bundle, and the installed agent entry files (CLAUDE.md…

kurone-kito/idd-skill · 94 tokens