/wp-plugin-audit-remediation:wp-plugin-audit-remediationfrom wp-plugin-audit-remediation
Tracks and verifies remediation of WordPress plugin audit findings. Freezes audited code copies, maintains remediation logs, and proves mechanical changes are behaviour-neutral.
Ships in wp-plugin-audit-remediation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The audit report is not the end of the engagement — it's the start. Findings get fixed, the owner needs to know what changed and how it was verified, and some findings turn out to be blocked on decisions only they can make. This skill covers what happens after wp-plugin-code-audit produces its report.
Scope: the remediation phase of a plugin audit — maintaining the remediation log, keeping the report's citations readable as code changes, and proving mechanical changes are behaviour-neutral. It does not re-run the audit (that's
wp-plugin-code-audit) and it does not invent new findings; it tracks and verifies the fixing of findings already in a report.
Prerequisite: an audit report (
AUDIT-<yyyy-mm-dd>.md) with severity-tagged findings, ideally including any[DECISION]owner-questions. If there's no report yet, runwp-plugin-code-auditfirst.
Neither is obvious until it bites. Both are cheap. Do them before the first fix lands.
Every file.php:line citation in the report stops resolving the moment fixing starts. Rename a class, add a guard, run a formatter — the report's line numbers point at nothing. If the plugin is renamed wholesale, even the filename in every citation is wrong. The report becomes unreadable exactly when people need to read it.
Before any fix, copy the audited tree verbatim, next to the report, and never touch it again:
# From beside the report. <slug>/<version> = exactly what was audited.
cp -R path/to/plugin "AUDITED-<slug>-<version>/"
# Or, if the audited source was a git checkout, record the commit instead of copying:
git -C path/to/plugin rev-parse HEAD > AUDITED-<slug>-<version>.sha
Now AUDITED-foo-1.4.2/includes/Sync.php:118 in the report resolves for the life of the document, no matter what the working tree becomes. Costs one file copy.
Reference every finding's citation against the frozen copy in the remediation log, and note the current location separately once it moves.
"I only renamed things" / "it's just a formatter run" is exactly the kind of change where the claim is a hope, not a fact. A rename touching folder, class, meta keys, header, form fields and every string is one refactor away from silently changing behaviour. An auto-fixer flipping == to === is a behaviour change wearing a formatting change's clothes.
Turn the claim into a measurement by comparing PHP token streams before and after, with whitespace and comments excluded. See references/behaviour-neutrality-check.md for the script and workflow. In short:
T_WHITESPACE / T_COMMENT / T_DOC_COMMENT, diff the arrays.phpcbf run that only moved comments/whitespace shows an empty diff → safe to accept.Use it to gate: renames, formatter/phpcbf runs, and any "mechanical" refactor claimed not to change behaviour.
A companion document to the audit report — usually REMEDIATION-<yyyy-mm-dd>.md beside it — that answers "where are we?" without re-reading thirty findings. Write it to the same non-public location as the report (it names vulnerabilities and their fix state; never let it land in a public repo). Keep a dated history the same way the audit report does; never overwrite.
Its job: one row per finding, each carrying status, what changed, how the change was verified, and — for [DECISION] findings — what it's waiting on.
This is where finding history lives. Audit reports state only each finding's current severity and rationale (wp-plugin-code-audit → Finding IDs are permanent). Withdrawn findings, superseded findings and severity changes (old rating, new rating, date, reason) are recorded here, never in the report.
Full template: references/remediation-log-template.md. Status vocabulary:
| Status | Meaning |
|---|---|
| Open | Not started. |
| In progress | Being worked; note who / where. |
| Fixed (verified) | Changed and re-verified against source — cite the new file:line and how you confirmed (the same verification discipline the audit used; a behaviour-neutrality diff if the fix was mechanical). |
| Fixed (unverified) | Change made but not yet re-checked. A transient state, not a resting one — it must become Fixed (verified) or go back to Open. |
| Won't fix (accepted) | Owner accepts the risk. Record who accepted and the stated reason. |
| Blocked on owner | A [DECISION] finding, or any fix gated on an owner choice. Record the exact question and the default-if-unanswered (carry these straight over from the report's "Decisions needed from the owner" table). |
| Superseded | The finding was correct when the audit was written but no longer describes reality: the situation moved, nobody was wrong (e.g. an Info finding "runtime verification not possible" once the environment becomes reachable and the Highs reproduce). Keep the ID; point to what replaced it. Distinct from withdrawn, which means the finding was wrong. Recorded here only: the report shows the current state (wp-plugin-code-audit → Finding IDs are permanent). |
| Withdrawn | The finding was wrong (traced properly later, not exploitable). Keep the ID retired, never reuse it, and record the reason and date here; the report drops the finding silently. |
| Re-rated | The severity changed (for example after an owner answer). Record the old rating, the new rating, the date and the reason here; the report states only the new severity and its rationale, under the same ID. |
Rules:
/security-review is available, run it on the branch that carries the fix. It reviews the diff, which is exactly the fix's scope, and catches a fix that introduced a new issue. Its output is candidates: anything real that the audit didn't report becomes an N finding (see below), never a new audit ID.wp-plugin-development if it is installed. It is not required.For a security finding, Fixed (verified) records the steps of the proof ladder that ran: source re-trace, the same probe replayed against the fix with the frozen copy as control, variants aimed at the fix, stored data, and a feature check for every role on the fix's Access after fix: line. A fix that skipped the replay says verified in source only. Details: references/security-fixes.md. When a fix needs a CVSS vector (for example for an advisory), scripts/cvss.py checks that its score matches.
While fixing, someone spots a further defect the audit didn't catch. Do not call it L10 and carry on — the reader's frozen copy of the report has no L10 and never will, so that invents a finding in a document they hold and falsely implies the audit found it.
Give remediation-discovered findings an N prefix (N1, N2, …), declared once at the top of the log. It costs nothing and keeps "what the audit found" and "what the fix work found" permanently distinguishable — which matters when someone later asks how much the audit actually caught.
Once the log references findings by ID, the ID set is an interface between report and log. Do not assume it matches — a 30-row table looks complete on a scan even when rows are silently missing, and scanning does not catch it. Diff the two ID sets both ways (see references/id-coverage-check.md):
N-finding that forgot its prefix, or a renumbered one — the exact failure permanent IDs exist to prevent).Run it whenever the log is updated, not just at the end. Care demonstrably doesn't catch this; a script does.
When remediation is done (or paused), the log tells the owner exactly three things at a glance: what's fixed and verified, what they still owe a decision on, and what was accepted as-is. That's the deliverable of this phase — the thing that survives after the fixes are in.
references/behaviour-neutrality-check.md — the token-stream diff script + workflow for proving renames / formatter runs / mechanical refactors changed no behaviour.references/id-coverage-check.md — bidirectional finding-ID set-diff between the report and the log; catches coverage gaps and invented IDs.references/remediation-log-template.md — the REMEDIATION-<yyyy-mm-dd>.md companion-document skeleton.references/security-fixes.md — the proof ladder for security fixes.scripts/cvss.py — CVSS 3.1 base score from a vector; exits 1 when a stated score does not match.wp-plugin-code-audit — produces the audit report this skill remediates against. Run it first.wp-plugin-development — optional, for implementing structural fixes idiomatically.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub s3rgiosan/wp-skills --plugin wp-plugin-audit-remediation