remediate
Skill4 starsChanged 57 days agoMITView on GitHub
Execute an approved remediation plan. Consumes the plan magento2-tools:triage emits (or an audit report, triaged inline), works batch by batch via the skill owning each finding, one approval per batch. Use to fix, remediate, or work through a report's findings. Never edits vendor/; manual items are reported, not executed. For one user-reported bug use magento2-tools:fix; new behaviour magento2-tools:feature; to find or re-check findings use magento2-tools:audit (read-only).
2 other projects use a version of this.
Adopted by
Most recently taken up by
- inkwell-finance/claude-skillstheir own version, first seen Aug 13, 2026
- ShulkwiSEC/bb-hugetheir own version, first seen Jun 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ShulkwiSEC/bb-huge★ 22same name
- inkwell-finance/claude-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- a11y-auditSkill
- admin-formSkill
- admin-listingSkill
- auditSkill
- breeze-adaptSkill
- breeze-compatSkill
- breeze-themeSkill
- cli-commandSkill
- contextSkill
- data-migrationSkill
- debugSkill
- deploySkill
- docsSkill
- eav-attributeSkill
- extension-pointSkill
- featureSkill
- fixSkill
- frontendSkill
- graphqlSkill
- i18nSkill
- indexerSkill
- lintSkill
- marketplaceSkill
- message-queueSkill
- module-createSkill
- perf-auditSkill
- releaseSkill
- reviewSkill
- securitySkill
- system-configSkill
- test-generateSkill
- triageSkill
- upgradeSkill
- webapiSkill
- widgetSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 0 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Scope is the finding: No surrounding cleanup, no opportunistic refactor.
- Very specific: line 63
Output budget: Follow context/references/output-budget.md — targeted reads, summary-first test/lint output, long logs to files.
- Very specific: line 101
Every fingerprint in batches[] resolves to a finding in findings[].
- Very specific: line 111
every finding: severity, title, file:line evidence, and the drafted intent — one line of what will change, from the finding's …
- Very specific: line 139
Run the finding's verification.
- Very specific: line 140
Commit that finding alone, per references/commit-format.md.
- Very specific: line 159
If an owning skill is unavailable — not installed, or refusing for its own reason — mark the whole batch skipped with that reason and move …
- Very specific: line 179
Read the regressed bucket before writing the report: a finding absent from the baseline and present now was introduced by this run, and …
- Very specific: line 185
Write the run report to {output_root}/remediation/{Vendor}_{Module}-report-{date}.md from templates/report.md: per-batch outcomes, deferred …
- Very specific: line 239
Every executed finding has exactly one commit carrying its Closes-Finding: <fingerprint> trailer, and no commit touches vendor/.
- Very specific: line 244
Every finding in the plan appears in the run report with an outcome.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Magento 2 Findings Remediation
triage produces a plan a human can approve. This skill executes that plan — batch by
batch, through the skill that owns each finding, with one approval per batch and one commit
per finding.
It is the write half of the remediation cycle:
audit / review / security / perf-audit ──► triage ──► remediate ──► audit --compare
(what is wrong) (the plan) (the work) (what closed)It is an orchestrator, not an implementer: it decides what runs next and whether it may
run, and the owning skill does the work under its own discipline. Where feature orchestrates
building new behaviour, this skill orchestrates closing known defects.
Core Rules
- Never edits
vendor/. A finding in a third-party or core module is remediated by a plugin, observer or preference in a project module — the owning skill (extension-point) knows how; this skill simply never accepts a patch undervendor/. Inherited fromfix. - Dedicated branch. Work happens on
remediation/{slug}, created when the current branch is the default branch or detached. Refuse to start on a dirty tree — a per-finding commit is only attributable if nothing else is in the index. - One commit per finding,
[remediate]prefix, with aCloses-Finding: <fingerprint>trailer so the closure diff can attribute a commit back to the finding it closed. An owning skill that already commits per finding under its own convention keeps its prefix —fix --from-finding=writes[bug-fix]with the same trailer — because the trailer is what carries identity and the prefix records who did the work. Never commit the same change twice. Format:references/commit-format.md. - Scope is the finding. No surrounding cleanup, no opportunistic refactor. A finding that
turns out to need more than its evidence describes is recorded
deferred, reported with what it would take, and never expanded into. - One approval per batch, never per finding. The batch presentation is the gate; once it is
approved the batch runs to completion without re-prompting.
fixand the other owning skills delegate their own gate upward for exactly this reason (fix/references/from-finding.md). gate: manualis never executed. It is presented as a human action item and carried into the report. Deleting the line that printed a credential does not un-leak the credential; the fix is rotation, and only a human can do it.- No silent passes. A finding whose
verificationfails isstill-openwith the failed attempt recorded. A batch whose owning skill is unavailable isskippedwith the reason. Neither is ever counted clean — a gate that checked nothing does not report a pass. - The plan is the input, not a suggestion. Batch order, owner and gate come from the plan;
this skill does not re-route a finding or re-order a batch. If the routing looks wrong, fix
context/references/fix-routing.mdand re-runtriage. - Artifact location. This skill accepts
--docs-root=<path>(seecontext/references/artifact-layout.md) and threads the same value into every sub-skill invocation, so one run's artifacts stay in one root. Otherwise the run report lands under{ctx.docs_root}/remediation/. - Output budget. Follow
context/references/output-budget.md— targeted reads, summary-first test/lint output, long logs to files.
Workflow
Phase 0 — Context and branch
Invoke context once; capture vendor, docs_root, runner and theme.breeze.
Then resolve the working branch:
| Current branch | Action |
default (main/master) or detached | Create remediation/{slug} from it. |
already remediation/* | Reuse it — this is a resumed run. |
| any other feature branch | Ask once whether to branch or to continue on it. |
{slug} is the plan's target module lower-kebab plus its date —
remediation/acme-orderexport-2026-09-16.
A dirty working tree stops the run here. Report the dirty paths and stop; do not stash, do not commit the user's work-in-progress.
Under --dry-run nothing in this phase happens beyond resolving context: no branch is
created and a dirty tree is reported as a warning, not a stop — the point of a dry run is to
inspect the plan's routing before deciding to start.
Phase 1 — Load the plan
--from=<plan.json> is a triage document (outputKind=remediation). Given an
*-audit-*.json or any other findings document instead, invoke triage inline first and
use the plan it emits — this skill never routes findings itself.
With --from omitted, use the newest {output_root}/remediation/*-plan-*.json.
Validate before executing:
outputKindisremediation— anything else is a hard error namingtriage.- The plan's
targetmatches the module in the working tree. - Every fingerprint in
batches[]resolves to a finding infindings[].
Findings in waived[], verify_first[] and unrouted[] are not executed — they are
carried into the run report so the plan's decisions stay visible in its outcome.
Phase 2 — Present the batch (the gate)
For each batch in plan order, present in one message:
- batch sequence, owner skill and gate;
- every finding: severity, title,
file:lineevidence, and the drafted intent — one line of what will change, from the finding'srecommendation, not a re-diagnosis; - the verification that will decide whether it closed;
- anything in the batch that is
gate: manual, called out as a human action.
Then take one approval for the whole batch. --yes-auto pre-approves batches whose gate is
auto (mechanical and reversible — lint style fixes and the like); a batch gate always
asks, and a manual gate is never executable, so there is nothing to approve.
--dry-run stops at this presentation for every batch: it creates no branch, invokes no skill,
writes no commit, and prints the batches, owners, gates and the intended per-finding
invocations. It is the cheap way to inspect routing before committing to a run.
Phase 3 — Execute the batch
Per finding, in the plan's order (severity descending within a batch), invoke the owner named in the plan. The invocation always carries the report path, the fingerprint and the evidence, so the owning skill does not re-derive the diagnosis:
fix --from-finding=<plan.json>#<finding-id> --docs-root=<root>and, for a generator owner, the finding's evidence and recommendation plus the same
--docs-root. The per-owner contract is in references/batch-execution.md.
After each finding:
- Run the finding's
verification. - Commit that finding alone, per
references/commit-format.md. - Record the outcome:
| Outcome | When |
closed | The change landed and the verification passed. |
still-open | Executed, but the verification failed or the diff did not address the evidence. The attempt and its output are recorded. |
deferred | The finding needs more than its evidence describes (a redesign, a missing module, a decision). Recorded with what it would take; nothing is committed. |
pending-manual | gate: manual. Never executed; carried into the human action items. |
A finding that is still-open or deferred does not abort the batch, and it is never
reported as closed.
Phase 4 — Next batch
Repeat Phases 2–3 in the plan's batch order. A failed or skipped batch does not abort the run:
record it and proceed. --batch=<owner,…> restricts the run to those batches without changing
their relative order.
If an owning skill is unavailable — not installed, or refusing for its own reason — mark the
whole batch skipped with that reason and move on. The batch's findings stay open in the
report and in the closure diff.
Phase 5 — Closure
Unless --no-closure is set, invoke:
audit --compare=<baseline.json> --docs-root=<same root><baseline.json> is the document the plan was built from — the plan's inputs[].path, or the
consolidated audits/*-audit-*.json when it was built from several.
audit re-runs the dimensions that produced the baseline and diffs by fingerprint into
closed / still_open / waived / regressed / skipped. The closure document is
audit's artifact, not this skill's — exactly one skill owns verdicts and scores. This
skill links to it.
Read the regressed bucket before writing the report: a finding absent from the baseline and
present now was introduced by this run, and that is the most important thing the run has to
say.
Phase 6 — Report
Write the run report to {output_root}/remediation/{Vendor}_{Module}-report-{date}.md from
templates/report.md: per-batch outcomes, deferred findings with reasons, the human action
items (credential rotations first), the link to the closure document, and residual risk.
Then summarise in the conversation: what closed, what is still open, what a human must do next. Never claim a clean run from an unverified batch.
Inputs
/remediate [--from=<plan.json|audit.json>] [--batch=<owner,…>] [--dry-run]
[--yes-auto] [--no-closure] [--docs-root=<path>] [<Vendor>_<Module>]| Flag | Effect |
--from= | The plan to execute. An audit/findings document is triaged inline first. Default: newest {output_root}/remediation/*-plan-*.json. |
--batch= | Run only these owners' batches, in the plan's order. |
--dry-run | Execute nothing. Print batches, owners, gates and intended invocations. |
--yes-auto | Pre-approve gate: auto batches only. batch gates still ask. |
--no-closure | Skip Phase 5. The report then states that closure was not verified. |
--docs-root= | Output root, threaded into every sub-skill invocation. |
Outputs
{output_root}/remediation/{Vendor}_{Module}-report-{date}.md # this skill's run report
{output_root}/audits/{Vendor}_{Module}-closure-{date}.* # audit --compare (Phase 5)Plus one git commit per closed finding on remediation/{slug}, each carrying its
Closes-Finding trailer. This skill does not push, open a PR, or merge — the branch is
handed back for review.
Reference Files
references/batch-execution.md— batch order and its rationale, the per-owner invocation contract, how a gate is presented, and the failure policy.references/commit-format.md— the[remediate]commit and itsCloses-Findingtrailer.templates/report.md— the run report.triage/references/plan-format.md— the plan document this skill consumes.fix/references/from-finding.md— report-driven entry, and the gatefixdelegates upward to this skill.context/references/fix-routing.md— the routing matrix and the gate vocabulary. Read, never re-decided, here.context/references/findings-schema.md— the finding object,outputKind=remediationandoutputKind=closure.context/references/artifact-layout.md— the output root and filename scheme.feature/references/per-task-commits.md— the shared per-unit commit discipline this skill's one-commit-per-finding rule follows.
Acceptance Criteria
- Runs only on a clean tree, only on a
remediation/*branch. - Every executed finding has exactly one commit carrying its
Closes-Finding: <fingerprint>trailer, and no commit touchesvendor/. - Exactly one approval is taken per batch; no finding prompts individually.
- No
gate: manualfinding was executed, and every one appears in the report's human action items. - Every finding in the plan appears in the run report with an outcome; a failed verification
is
still-openand an unavailable owner is askippedbatch — neither is counted closed. --dry-runcreates no branch, no commit and no file — it only prints.
Related Skills
| Need | Skill |
| Turn a findings report into the plan this skill executes | triage |
| Produce the findings in the first place, or verify closure | audit (read-only; owns --compare) |
| Fix one user-reported bug, with its own RCA gate | fix |
| Build new behaviour rather than close a known defect | feature |
| Change who owns a finding class | context/references/fix-routing.md, then re-run triage |
The owning skills a batch invokes — upgrade, fix, extension-point,
indexer, message-queue, webapi, graphql,
admin-form, admin-listing, system-config,
data-migration, frontend, breeze-adapt, i18n,
test-generate, lint, docs — each keep their own discipline; this skill
only decides what runs next and whether it may run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

