Audit Ethical Design
audit_ethical_designAudit pasted HTML/JSX for deceptive patterns: confirmshaming, pre-checked checkboxes, fake scarcity, unbalanced Accept all. Returns severity, fixes, line numbers, and unverifiable items.
Instructions
Audit a pasted snippet for named deceptive-pattern tells from ethical-design: confirmshaming decline copy, a pre-checked marketing or newsletter checkbox, a scarcity or deadline phrase with no live binding nearby, and an Accept all with no equally-named reject. It reads source and does not measure anything: no checkout is completed, no countdown is timed, no warehouse is queried, and no consent banner is clicked, so no finding is or can be a verdict on the business. Snippet only — there is no directory mode. Returns markdown plus structured output: findings (rule, severity, message, fix, doc, line), a severity summary, and a machine-readable notVisible list of what it could not check. Pair with get_design_doc('ethical-design') and a human looking at the render.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The HTML/JSX/copy snippet to audit for named deceptive-pattern tells |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | Counts by severity. Always agrees with `findings` — it is derived from the same list. | |
| findings | Yes | Every finding, in the order the markdown report lists them. | |
| notVisible | Yes | What this audit structurally could not check, one limitation per entry. Read it as a peer of `findings`: silence on a subject named here is this tool's reach, not a clean result. Nothing any of these tools reports is measured. |