Legal Sweep
Audits a site for a legal disclaimer page and footer link, creates /legal-disclaimer and wires it in immediately after Privacy Policy when missing. Stack-agnostic across Next.js Pages Router, Astro and WordPress (WP skipped).
Entry verified April 21, 2026
The short answer
Resolves target from cwd, path, or /sites number, then detects the stack from package.json and config files. Either patches missing sections of an existing disclaimer or creates one covering the 12 required areas (AI drift, affiliate links, Ireland jurisdiction, limitation of liability).
When to use it
Run on every new site before public launch, when affiliate links are added, or as a periodic compliance check when copy or partnerships have drifted.
Setup
- 1
Save the file as ~/.claude/commands/legal-sweep.md — full instructions live in ~/.claude/skills/legal-sweep/SKILL.md.
- 2
Invoke: /legal-sweep with an optional site path or /sites number; no argument uses the current working directory.
- 3
Uses pages/legal-disclaimer.js in ~/src/promptwritingstudio as the canonical content template, adapted per site.
- 4
Wires the footer link immediately after Privacy Policy and commits with feat: add legal disclaimer page + footer link.
- 5
If the disclaimer exists, audits for the 12 required sections and patches missing ones with Edit rather than rewriting.
Example
You: /legal-sweep Claude: Disclaimer page ✓. Footer link ✗. Adding <Link href=/legal-disclaimer> next to privacy policy. Committed.
Source & attribution
- Author
- Bryan Collins
- Licence
- MIT (author's own work)
- Type
- Original
Original pattern published under MIT — attribution preserved by convention, not licence requirement.
Caveats
Not legal advice. A disclaimer template ≠ bespoke legal review. Use for hygiene, not stakes-worthy compliance.
56 skills across 10 categories, all licence-verified.