Skip to content

A Claude skill that turns vibecoded, AI-looking UI into a designed interface

JavaScript

snapshot.mjs: accept local files and both --width/--height forms; reject bad sizes cleanly

Salman Biswase183ab0ca4f3
diff --git a/skills/unslop/SKILL.md b/skills/unslop/SKILL.md
index 9a1c49e..afc5ebf 100644
--- a/skills/unslop/SKILL.md
+++ b/skills/unslop/SKILL.md
@@ -33,7 +33,7 @@ Which visual styles tend to work, and which fail, is in [references/visuals.md](
## Run it
1. **Look at the screen.** Find the files that render it. If you can run the app or open the file in a browser and take a screenshot, do it, so you judge what people see and not only the code.
- - Only a link to a live site, no code? Save the page with `node <skill folder>/scripts/snapshot.mjs <url> unslop/original.html` and work on a copy of that file. Add `--dark` or `--light` to match the theme the user sees. It also saves `original.live.png`, a screenshot of the live page, so render the saved copy and compare the two before you start. Animated backgrounds drawn by scripts do not survive, so describe them in the audit from the live page.
+ - Only a link to a live site, no code? Save the page with `node <skill folder>/scripts/snapshot.mjs <url> unslop/original.html` and work on a copy of that file. A local HTML file works in place of the URL. Add `--dark` or `--light` to match the theme the user sees. It also saves `original.live.png`, a screenshot of the live page, so render the saved copy and compare the two before you start. Animated backgrounds drawn by scripts do not survive, so describe them in the audit from the live page.
- Only a screenshot? Rebuild the screen as one static HTML file first, matching it closely, and treat that as the original.
- In both cases the result is a redesigned page in code that the user can hand to whoever owns the real site, so say that in the report.
2. **Audit.** Go through [references/signs.md](references/signs.md) and list every sign you find, one line each with where it lives.