# charles-unreasonable-craft

Adopt this skill: https://proskills.md/skills/other/lemonface0309-charles-skills-skills-design-charles-unreasonable-craft

Page: https://proskills.md/skills/other/lemonface0309-charles-skills-skills-design-charles-unreasonable-craft
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/design/charles-unreasonable-craft/SKILL.md
size: 12290
sha: 04e6790b3326bf2df1d8653680595f459df08a8d
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/SKILL.md

````text
---
name: charles-unreasonable-craft
description: Award-level web/app design, no AI slop. Use when the user wants design that could win Awwwards Site of the Day or an Apple Design Award, says it should "wow" or look stunning, premium, or world-class, says it can't look AI-made, or asks for a site, landing page, app screen, prototype, redesign, animation, or polish pass held to that bar. Not for routine UI fixes or small tweaks.
effort: max
---

# Unreasonable Craft

Go above and beyond with the design. Don't settle for the first idea, or for what you think counts as "good" design. That's AI slop. Push past what you think is creatively possible. Hold an uncommon, excessively high bar for craft and attention to detail, with unreasonable standards. Violating the letter of this skill is violating its spirit.

**The bar:** good enough to win Site of the Day on awwwards.com (for websites) *and* an Apple Design Award (for apps). It really needs to be that good. Anything less falls short, and you say so.

Paths here are relative to this skill's folder. The scripts need Node 18+, ffmpeg, and Google Chrome; their packages are in `scripts/node_modules` (if that's missing, run `npm install --prefix <this skill's folder>/scripts`).

## Load first

- **`interface-craft`** (Josh Puckett's Interface Craft), every time. In Claude Code, load it with the Skill tool. Elsewhere, read `../interface-craft/SKILL.md`, then the references it points to for the task.
- **Disney's 12 principles of animation**: squash and stretch, anticipation, staging, straight-ahead vs. pose-to-pose, follow-through and overlapping action, slow in / slow out, arcs, secondary action, timing, exaggeration, solid drawing, appeal. Apply them to UI motion on purpose, and be able to name which principle each animation uses.
- When they fit: `apple-design` (physical, interruptible motion and materials), `animate` / `animate-expo` (building motion), `emil-design-eng` (component polish). They sit next to this skill (`../<name>/SKILL.md`).

## Design from a system

Everything you make should come from one coherent system, and you should stay faithful to it. To find that system, in order:

1. **The project's design system** (tokens, theme, components, style guide), if there is one.
2. **Otherwise, the project's existing UI.** Reuse what's already there so the new work feels like it always belonged.
3. **Otherwise (a new project), one you invent.** Build a rough system from the chosen direction (color tokens, type, spacing, radii, elevation, motion, a few core components), write it down as tokens, and design from it.

Be bold *within* the system. Fill gaps in its own language, propose changes instead of drifting silently, and treat anything off-system as a bug.

## Track it

Copy this checklist into your plan or todo list and tick it off as you go. The work isn't done while a box is open.

```
- [ ] Explore: 3+ directions rendered side by side; one picked, with reasons
- [ ] System: found, inferred, or invented, and written down as tokens
- [ ] Assets: generated with today's best models, art-directed, optimized
- [ ] Polish: every value on purpose, copy in the user's voice, every screen size
- [ ] Verify: captured, measured, and read frame by frame
- [ ] Critique: one round by a fresh critic (more only if the user asked), fixes verified
- [ ] Final pass: zero mistakes
```

Keep a design log in the project: the direction and why, the system, every critique round's scores and fixes, and open issues. Use the project's own place for design reviews if it has one (such as `docs/reviews/`); otherwise create `docs/design/<topic>-<date>/`. Long sessions get summarized, and the log is how you keep your place: after a summary or a restart, reread this file and the log before going on.

## 1. Breadth first: explore every direction

Before committing to anything, run a breadth-first search over the possible design decisions. For each axis, write down several distinct options, including at least one creative risk that might take things somewhere unexpected:

- Concept and narrative: what feeling or metaphor holds the whole thing together?
- Layout and composition, grid, rhythm, negative space
- Typography: faces, scale, leading, tracking, numerals
- Color: palette, neutrals, contrast, light/dark behavior
- Motion: entrances, transitions, gestures, interruptibility, and which signature moment people will remember
- Interaction and micro-interactions, plus states (empty, loading, error, success)
- Texture, depth, materials, imagery, iconography

**Prefer creative risks over the conventional.** If an option is what "everyone else's AI" would produce (centered hero with a gradient blob, generic card grid, default Inter at default tracking, fade-up-on-scroll for everything), treat it as a red flag, not a safe pick. Name the obvious choice so you can deliberately go past it.

**Render the directions; don't just describe them.** For a new page, screen, or product, build at least three genuinely different directions as quick, rough prototypes and put them side by side on one comparison page. Problems a description hides show up the moment it's rendered.

Spend a real amount of time here brainstorming and planning how to knock this out of the park, before you polish anything. Then pick the direction(s) and state why each one beats the alternatives. When the user wants to choose, show them the comparison page with your recommendation. On a new project, turn the chosen direction into the system (see Design from a system) before designing any screens.

## 2. Generate assets that bring the vision to life

Don't settle for stock, placeholder, or CSS-only stand-ins when a generated asset would make the vision land. That includes imagery, textures, illustrations, video, 3D, sound design, voice, and music.

Find the keys yourself (fal, Google / Gemini's Nano Banana, ElevenLabs, OpenAI, Replicate, and similar), and use the latest and best models as of today's date, never a model from memory. Read `references/assets.md` for how to find keys without exposing them, pick models, art-direct the results, and ship them light.

## 3. Depth: polish to an extreme

Once the direction is set, go extremely deep on polish. This covers **everything**: animations, transitions, alignment (optical as well as mathematical), spacing, colors, typography, icons, borders, shadows, radii, states, edge cases, responsive behavior, and reduced motion. Literally everything.

- Every value should be chosen on purpose. No framework defaults left in by accident.
- Every animation should have a purpose, a named principle, a tuned curve and duration, and a clean interruption path.
- Consistency is the biggest sign of care. Anything that's the odd one out reads as a bug.

**Copy: say less.** Cut redundancy. Every heading, label, and line of body text has to earn its place. If the design already says it, the text shouldn't repeat it. No subtitle that restates the title, no description that paraphrases the button, and no "feature" text that a visual already shows.

**Copy: sound like the user wrote it, not AI.** Write in the user's voice. Learn it from the project's voice or tone guide if there is one, otherwise from text they wrote themselves: existing product copy, the README, their own messages. Match their vocabulary, rhythm, and directness (not their typos), and keep it specific and concrete, with a point of view. It should never read as AI-written, and what reads as AI-written keeps changing, so judge against *today's date*, not what read as AI six months ago. Check the current date. If you're unsure what currently reads as machine-written, search for recent discussion of AI writing tells before you write the copy. When a phrase comes too easily, it's probably a cliché.

**Every screen size.** It has to be award-level at every size, not just the one you designed at. Check phone, tablet, laptop, and wide desktop, plus the awkward widths in between (e.g. 360, 390, 768, 1024, 1280, 1440, 1920+). For native apps, check the smallest and largest devices and Dynamic Type. Recompose layouts for each size class rather than just shrinking them. Type scale, spacing, motion distances, and touch targets should all adapt. Hover-only interactions need a touch equivalent.

## 4. Verify every frame: measure, don't eyeball

When the design pass is done, verify **every page, every animation, every detail, frame by frame**, against this bar. Don't assume anything works, and don't trust your eye: it misses the 1–2 pt errors that make a design feel off. Read `references/verification.md`, then:

- Capture everything at full resolution: every page, state, theme, and screen size (`scripts/web-frames.mjs` for the web, `scripts/sim.sh` for the iOS Simulator).
- Read every animation as a contact sheet, frame by frame, including the in-between frames, not just the first and last (`web-frames.mjs --motion`, or a `sim.sh` recording through `scripts/sheet.mjs`).
- Measure spacing and alignment from the captures with `scripts/edges.mjs`, against the checks in the reference.
- For each screen, ask honestly: *would this win an Apple Design Award? Would it get Site of the Day on Awwwards?* If the honest answer is "not yet", write down exactly what's holding it back.

## 5. Critique: one round unless the user asks for more

Read `references/critique.md`. Have a fresh critic, with no stake in the work, score it harshly against the real juries' criteria (Awwwards for sites, the Apple Design Award categories for apps). Fix what it finds, biggest first, and verify the fixes. That's one round. Do one round unless the user asks for more, as a number of rounds or a bar ("keep going until it's a 9"), and then do what they asked. Naming the award as the goal ("so it could win Site of the Day") isn't a request for more rounds; every job aims there.

When you stop, report the score, what you fixed, the moments that make someone say "wow" (or that there aren't any yet), and what still stands between the work and the bar. "Clean" and "fine" don't meet it, so say so plainly and let the user decide whether to go another round.

## 6. Final pass: zero mistakes

Sweat the details. Before calling it done, do one last slow, complete pass over everything. Assume a mistake is hiding somewhere and hunt for it until there are no mistakes left:

- No console errors or warnings, failed requests, broken links, missing or unoptimized assets, layout shift, or flashes of unstyled content (`web-frames.mjs` writes these to `console.txt`)
- No typos, inconsistent capitalization, widows or orphans, or leftover placeholder text
- Nothing invented and presented as real: no made-up stats, customers, reviews, or testimonials
- Correct metadata, favicon, social preview image, and page titles
- Accessibility basics: contrast, focus states, alt text, reduced motion
- Performance is smooth: 60fps+ animations and fast first paint

## Red flags: you're settling

| Thought | Reality |
|---|---|
| "This looks good enough" | Good enough is slop. The bar is award-winning. |
| "This is the standard pattern for this" | Standard is what everyone ships. Explore past it. |
| "I'll pick the first strong idea" | You skipped the breadth-first search. Go back. |
| "Describing the directions is enough" | Render them. Problems hide in descriptions. |
| "The animation works" | Did you check it frame by frame? Which Disney principle does it use? |
| "It looks right to me" | Measure it. The eye misses the 1–2 pt errors the user will notice. |
| "It's aligned, the numbers match" | Optical alignment beats mathematical alignment. Look again. |
| "I verified the main page" | Every page, every state, every animation, at every screen size. |
| "I'll score it myself" | You're the least objective critic there is. Use a fresh one. |
| "A little more copy will explain it better" | If it needs explaining, fix the design. Cut the text. |
| "This phrasing sounds polished" | Polished-sounding is often today's AI tell. Would the user say it this way? Make it specific. |
| "It looks right on my viewport" | Check the awkward widths and the smallest device. |
| "This custom value looks better than the token" | Stay on-system. Propose a change to the system instead of a one-off. |
````

## File: skills/design/charles-unreasonable-craft/README.md
size: 1266
sha: d44090bc496da942794b5b7186f566ee980dbd71
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/README.md

````text
# charles-unreasonable-craft
<!-- text-only -->

Holds a new site, page, app screen or redesign to the bar of an Awwwards Site of the Day and an Apple Design Award.

```bash
npx skills add LemonFace0309/charles-skills --skill charles-unreasonable-craft
```

Add `-g` to install it for every project, or copy this folder into `~/.claude/skills/` (Claude Code) or
`~/.agents/skills/` (Codex).

## What it does

- Renders three or more directions side by side before picking one
- Designs from one system and generates its own assets
- Checks every page and animation frame by frame at every screen size, then has a fresh critic score the result

## Try it

```text
/charles-unreasonable-craft a landing page for my ceramics studio
/charles-unreasonable-craft redesign the onboarding screens of my iOS app
```

## Needs

Node 18+, ffmpeg and Google Chrome for its capture scripts, and Xcode for iOS apps. It expects Josh Puckett's
interface-craft skill next to it. Generated assets use whichever API keys you have (fal, OpenAI, Gemini, ElevenLabs,
Replicate).

## Pairs with

[charles-polish](../charles-polish/) for a pass on a screen that's already built, and
[charles-hero-mockups](../../drops/charles-hero-mockups/) to try art directions as images before building.
````

## File: skills/design/charles-unreasonable-craft/scripts/edges.mjs
size: 4172
sha: d6a10d77ac0f222cba2ce4f8365ae5c7deac413f
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/scripts/edges.mjs

```text
#!/usr/bin/env node
/* Measures where ink starts and stops in a full-resolution capture, so spacing and
   alignment get checked to the point instead of by eye.

   node edges.mjs <capture.png> [--rows y0-y1,...] [--cols x0-x1,...] [options]

   --rows y0-y1,...  horizontal bands: the left and right edge of each element in
                     the band, and the gaps between them
   --cols x0-x1,...  vertical bands: the top and bottom edge of each element in the
                     band, and the gaps between them
   --scale 3         pixels per point: 3 for iPhone captures, 2 for iPad and for
                     web-frames captures at its default --scale. Bands and results
                     are in points (pixels when --scale is 1, the default)
   --within a-b      limit the scan across a band to a-b (columns for --rows,
                     rows for --cols)
   --min 40          how far (0-255) a pixel must be from the band's background
                     brightness to count as ink
   --merge 6         join ink closer than this into one element, so the letters of
                     a label read as one element; use 0 to see every glyph

   The background is the band's median brightness, so measure over flat areas. Over
   a photo or a gradient, narrow the band or raise --min. */
import { fail, need, parseArgs } from "./lib.mjs";

const a = parseArgs(process.argv.slice(2));
const file = a._[0];
if (!file || (!a.rows && !a.cols)) fail("usage: node edges.mjs <capture.png> --rows y0-y1[,...] | --cols x0-x1[,...] [--scale 3]");
const sharp = (await need("sharp")).default;
const scale = Number(a.scale ?? 1);
const unit = scale === 1 ? "px" : "pt";
const min = Number(a.min ?? 40);
const merge = Number(a.merge ?? 6);
const within = a.within ? a.within.split("-").map(Number) : null;
const { data, info } = await sharp(file).greyscale().raw().toBuffer({ resolveWithObject: true });
const { width: W, height: H } = info;
const bands = (value) => (value ? String(value).split(",").map((band) => band.split("-").map(Number)) : []);
const fmt = (px) => String(Math.round((px / scale) * 10) / 10);
const clampPx = (v, max) => Math.max(0, Math.min(max, Math.round(v * scale)));

function measure(kind, [lo, hi]) {
  const rows = kind === "rows";
  const bandMax = rows ? H : W;
  const scanMax = rows ? W : H;
  const b0 = clampPx(lo, bandMax);
  const b1 = clampPx(hi, bandMax);
  const s0 = within ? clampPx(within[0], scanMax) : 0;
  const s1 = within ? clampPx(within[1], scanMax) : scanMax;
  if (b1 <= b0 || s1 <= s0) return console.log(`${kind} ${lo}-${hi}: outside the ${W}x${H} capture`);
  const pixel = (along, across) => (rows ? data[across * W + along] : data[along * W + across]);

  // Median brightness of the band, from a histogram.
  const histogram = new Uint32Array(256);
  for (let i = s0; i < s1; i++) for (let j = b0; j < b1; j++) histogram[pixel(i, j)]++;
  const half = ((s1 - s0) * (b1 - b0)) / 2;
  let background = 0;
  for (let seen = 0; background < 255 && seen + histogram[background] < half; background++) seen += histogram[background];

  const elements = [];
  let open = -1;
  for (let i = s0; i <= s1; i++) {
    let ink = false;
    if (i < s1) for (let j = b0; j < b1 && !ink; j++) ink = Math.abs(pixel(i, j) - background) > min;
    if (ink && open < 0) open = i;
    if (!ink && open >= 0) {
      const last = elements.at(-1);
      if (last && (open - last[1]) / scale < merge) last[1] = i;
      else elements.push([open, i]);
      open = -1;
    }
  }
  const [from, to] = rows ? ["left", "right"] : ["top", "bottom"];
  const head = `${kind} ${lo}-${hi} ${unit} (background ${background})`;
  if (!elements.length) return console.log(`${head}: no ink`);
  console.log(`${head}: ink ${from} ${fmt(elements[0][0])}, ${to} ${fmt(elements.at(-1)[1])}`);
  const parts = elements.map(([s, e], i) => {
    const gap = i ? `gap ${fmt(s - elements[i - 1][1])}  ` : "";
    return `${gap}[${fmt(s)} → ${fmt(e)}, ${rows ? "w" : "h"} ${fmt(e - s)}]`;
  });
  console.log(`  ${parts.join("  ")}`);
}

for (const band of bands(a.rows)) measure("rows", band);
for (const band of bands(a.cols)) measure("cols", band);
```

## File: skills/design/charles-unreasonable-craft/scripts/lib.mjs
size: 4000
sha: 4575e39fa1d6d509b7177f46fe497f5b2a84e42c
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/scripts/lib.mjs

```text
/* Shared helpers for the unreasonable-craft scripts: argument parsing, Chrome,
   and labelled contact sheets. Dependencies live next to this file; if they're
   missing, run: npm install --prefix <this folder> */
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";

export const HERE = path.dirname(fileURLToPath(import.meta.url));

export function fail(message) {
  console.error(`error: ${message}`);
  process.exit(1);
}

export async function need(name) {
  try {
    return await import(name);
  } catch {
    fail(`missing dependency "${name}". Run: npm install --prefix "${HERE}"`);
  }
}

// --name value, --flag (when listed in bools), and positionals in `_`.
export function parseArgs(argv, bools = []) {
  const out = { _: [] };
  for (let i = 0; i < argv.length; i++) {
    const token = argv[i];
    if (!token.startsWith("--")) {
      out._.push(token);
      continue;
    }
    const name = token.slice(2);
    if (bools.includes(name)) out[name] = true;
    else if (i + 1 < argv.length) out[name] = argv[++i];
    else fail(`--${name} needs a value`);
  }
  return out;
}

const CHROMES = [
  process.env.CHROME_PATH,
  "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
  "/Applications/Chromium.app/Contents/MacOS/Chromium",
  "/usr/bin/google-chrome",
  "/usr/bin/chromium",
  "/usr/bin/chromium-browser",
];

export async function launchChrome() {
  const { chromium } = await need("playwright-core");
  const options = {
    headless: true,
    // SwiftShader keeps WebGL working headless; sRGB keeps colors comparable across captures.
    args: [
      "--use-gl=angle",
      "--use-angle=swiftshader",
      "--enable-unsafe-swiftshader",
      "--force-color-profile=srgb",
      "--hide-scrollbars",
    ],
  };
  const executablePath = CHROMES.find((p) => p && fs.existsSync(p));
  try {
    return await chromium.launch(executablePath ? { ...options, executablePath } : options);
  } catch (error) {
    fail(
      `couldn't start Chrome (${error.message.split("\n")[0]}). Install Google Chrome or set CHROME_PATH. ` +
        "If a sandbox blocked it, rerun this command with permission to run outside the sandbox.",
    );
  }
}

const escapeXml = (s) => String(s).replace(/[<>&"]/g, (c) => `&#${c.charCodeAt(0)};`);

// tiles: [{ input: file path or Buffer, label }]. Labels sit in a strip above each
// frame so they never cover what you're inspecting.
export async function contactSheet(tiles, out, { cols = 8, width = 240, gap = 6 } = {}) {
  const sharp = (await need("sharp")).default;
  const strip = 22;
  const rendered = [];
  let tileHeight = 0;
  for (const { input, label } of tiles) {
    const image = await sharp(input).resize({ width }).png().toBuffer();
    const { height } = await sharp(image).metadata();
    tileHeight = Math.max(tileHeight, height + strip);
    const text = Buffer.from(
      `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${strip}">` +
        `<rect width="100%" height="100%" fill="#0b0b0c"/>` +
        `<text x="6" y="15.5" font-family="Menlo, monospace" font-size="12" fill="#e8e8e8">${escapeXml(label)}</text></svg>`,
    );
    rendered.push(
      await sharp({ create: { width, height: height + strip, channels: 3, background: "#0b0b0c" } })
        .composite([
          { input: text, top: 0, left: 0 },
          { input: image, top: strip, left: 0 },
        ])
        .png()
        .toBuffer(),
    );
  }
  const columns = Math.min(cols, rendered.length);
  const rows = Math.ceil(rendered.length / cols);
  await sharp({
    create: {
      width: columns * (width + gap) + gap,
      height: rows * (tileHeight + gap) + gap,
      channels: 3,
      background: "#2a2b2d",
    },
  })
    .composite(
      rendered.map((input, i) => ({
        input,
        left: gap + (i % cols) * (width + gap),
        top: gap + Math.floor(i / cols) * (tileHeight + gap),
      })),
    )
    .png()
    .toFile(out);
  return out;
}
```

## File: skills/design/charles-unreasonable-craft/scripts/package-lock.json
size: 19938
sha: 07e2084cb3fbcb90825a9941479d2e513337ff2f
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/scripts/package-lock.json

```text
{
  "name": "unreasonable-craft-scripts",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "unreasonable-craft-scripts",
      "dependencies": {
        "playwright-core": "1.63.0",
        "sharp": "0.35.5"
      },
      "engines": {
        "node": ">=18"
      }
    },
    "node_modules/@emnapi/runtime": {
      "version": "1.11.3",
      "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
      "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
      "license": "MIT",
      "optional": true,
      "dependencies": {
        "tslib": "^2.4.0"
      }
    },
    "node_modules/@img/colour": {
      "version": "1.1.0",
      "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
      "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
      "license": "MIT",
      "engines": {
        "node": ">=18"
      }
    },
    "node_modules/@img/sharp-darwin-arm64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
      "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
      "cpu": [
        "arm64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-darwin-arm64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-darwin-x64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
      "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
      "cpu": [
        "x64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-darwin-x64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-freebsd-wasm32": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
      "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "freebsd"
      ],
      "dependencies": {
        "@img/sharp-wasm32": "0.35.5"
      },
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-darwin-arm64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
      "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
      "cpu": [
        "arm64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "darwin"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-darwin-x64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
      "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
      "cpu": [
        "x64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "darwin"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linux-arm": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
      "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
      "cpu": [
        "arm"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linux-arm64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
      "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
      "cpu": [
        "arm64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linux-ppc64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
      "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
      "cpu": [
        "ppc64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linux-riscv64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
      "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
      "cpu": [
        "riscv64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linux-s390x": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
      "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
      "cpu": [
        "s390x"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linux-x64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
      "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
      "cpu": [
        "x64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
      "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
      "cpu": [
        "arm64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-libvips-linuxmusl-x64": {
      "version": "1.3.4",
      "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
      "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
      "cpu": [
        "x64"
      ],
      "license": "LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "linux"
      ],
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-linux-arm": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
      "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
      "cpu": [
        "arm"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linux-arm": "1.3.4"
      }
    },
    "node_modules/@img/sharp-linux-arm64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
      "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
      "cpu": [
        "arm64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linux-arm64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-linux-ppc64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
      "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
      "cpu": [
        "ppc64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linux-ppc64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-linux-riscv64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
      "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
      "cpu": [
        "riscv64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linux-riscv64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-linux-s390x": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
      "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
      "cpu": [
        "s390x"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linux-s390x": "1.3.4"
      }
    },
    "node_modules/@img/sharp-linux-x64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
      "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
      "cpu": [
        "x64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linux-x64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-linuxmusl-arm64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
      "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
      "cpu": [
        "arm64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-linuxmusl-x64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
      "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
      "cpu": [
        "x64"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-libvips-linuxmusl-x64": "1.3.4"
      }
    },
    "node_modules/@img/sharp-wasm32": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
      "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
      "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
      "optional": true,
      "dependencies": {
        "@emnapi/runtime": "^1.11.3"
      },
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-webcontainers-wasm32": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
      "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
      "cpu": [
        "wasm32"
      ],
      "license": "Apache-2.0",
      "optional": true,
      "dependencies": {
        "@img/sharp-wasm32": "0.35.5"
      },
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-win32-arm64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
      "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
      "cpu": [
        "arm64"
      ],
      "license": "Apache-2.0 AND LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "win32"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-win32-ia32": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
      "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
      "cpu": [
        "ia32"
      ],
      "license": "Apache-2.0 AND LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "win32"
      ],
      "engines": {
        "node": "^20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/@img/sharp-win32-x64": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
      "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
      "cpu": [
        "x64"
      ],
      "license": "Apache-2.0 AND LGPL-3.0-or-later",
      "optional": true,
      "os": [
        "win32"
      ],
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      }
    },
    "node_modules/detect-libc": {
      "version": "2.1.2",
      "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
      "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
      "license": "Apache-2.0",
      "engines": {
        "node": ">=8"
      }
    },
    "node_modules/playwright-core": {
      "version": "1.63.0",
      "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.63.0.tgz",
      "integrity": "sha512-rYCsBF/M5HjUch52bbtVONEFjv6Xu8sm8h72dNlR5bzIE1fvC/bxgspzkjSfU+MweEMmPM8KJebG6nnyxo5mCg==",
      "license": "Apache-2.0",
      "bin": {
        "playwright-core": "cli.js"
      },
      "engines": {
        "node": ">=20"
      }
    },
    "node_modules/semver": {
      "version": "7.8.5",
      "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
      "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
      "license": "ISC",
      "bin": {
        "semver": "bin/semver.js"
      },
      "engines": {
        "node": ">=10"
      }
    },
    "node_modules/sharp": {
      "version": "0.35.5",
      "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
      "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
      "license": "Apache-2.0",
      "dependencies": {
        "@img/colour": "^1.1.0",
        "detect-libc": "^2.1.2",
        "semver": "^7.8.5"
      },
      "engines": {
        "node": ">=20.9.0"
      },
      "funding": {
        "url": "https://opencollective.com/libvips"
      },
      "optionalDependencies": {
        "@img/sharp-darwin-arm64": "0.35.5",
        "@img/sharp-darwin-x64": "0.35.5",
        "@img/sharp-freebsd-wasm32": "0.35.5",
        "@img/sharp-libvips-darwin-arm64": "1.3.4",
        "@img/sharp-libvips-darwin-x64": "1.3.4",
        "@img/sharp-libvips-linux-arm": "1.3.4",
        "@img/sharp-libvips-linux-arm64": "1.3.4",
        "@img/sharp-libvips-linux-ppc64": "1.3.4",
        "@img/sharp-libvips-linux-riscv64": "1.3.4",
        "@img/sharp-libvips-linux-s390x": "1.3.4",
        "@img/sharp-libvips-linux-x64": "1.3.4",
        "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
        "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
        "@img/sharp-linux-arm": "0.35.5",
        "@img/sharp-linux-arm64": "0.35.5",
        "@img/sharp-linux-ppc64": "0.35.5",
        "@img/sharp-linux-riscv64": "0.35.5",
        "@img/sharp-linux-s390x": "0.35.5",
        "@img/sharp-linux-x64": "0.35.5",
        "@img/sharp-linuxmusl-arm64": "0.35.5",
        "@img/sharp-linuxmusl-x64": "0.35.5",
        "@img/sharp-webcontainers-wasm32": "0.35.5",
        "@img/sharp-win32-arm64": "0.35.5",
        "@img/sharp-win32-ia32": "0.35.5",
        "@img/sharp-win32-x64": "0.35.5"
      },
      "peerDependenciesMeta": {
        "@types/node": {
          "optional": true
        }
      }
    },
    "node_modules/tslib": {
      "version": "2.8.1",
      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
      "license": "0BSD",
      "optional": true
    }
  }
}
```

## File: skills/design/charles-unreasonable-craft/scripts/package.json
size: 296
sha: 5eab1db60dbcc40a0b7682ee6f42c71ed0979196
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/scripts/package.json

```text
{
  "name": "unreasonable-craft-scripts",
  "private": true,
  "type": "module",
  "description": "Capture, frame-by-frame, and measurement tools for the unreasonable-craft skill.",
  "engines": { "node": ">=18" },
  "dependencies": {
    "playwright-core": "1.63.0",
    "sharp": "0.35.5"
  }
}
```

## File: skills/design/charles-unreasonable-craft/scripts/sheet.mjs
size: 4031
sha: abeb2d1b6d87fbd16b24ef113851d3eb6db7a292
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/scripts/sheet.mjs

```text
#!/usr/bin/env node
/* Contact sheets from a screen recording (iOS Simulator, browser, anything ffmpeg
   reads), for reading motion frame by frame.

   node sheet.mjs <video> <sheet.png> [options]

   --auto          start at the last still frame before the screen changes (the tap)
   --from 0        start, in ms into the video (with --auto: where to start looking)
   --for 1000      how many ms to show
   --step <ms>     ms between tiles (default: every frame)
   --fps 60        resample rate. Simulator recordings are variable-rate (a frame is
                   only written when the screen changes), so they're resampled
   --crop x,y,w,h  crop, in the video's pixels, before scaling
   --cols 8 --tile 240   sheet columns and tile width (px)
   --keep <dir>    also keep the full-resolution frames, to measure with edges.mjs
   --threshold 3   changed pixels (in a 160x160 thumbnail) that count as motion, for --auto

   Tiles are labelled in ms after the start. */
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { contactSheet, fail, parseArgs } from "./lib.mjs";

const a = parseArgs(process.argv.slice(2), ["auto"]);
const [video, out] = a._;
if (!video || !out) fail("usage: node sheet.mjs <video> <sheet.png> [--auto] [--for 1000] (options are listed at the top of this file)");
if (!fs.existsSync(video)) fail(`no such video: ${video}`);
try {
  execFileSync("ffmpeg", ["-version"], { stdio: "ignore" });
} catch {
  fail("ffmpeg not found. Install it (brew install ffmpeg).");
}
const fps = Number(a.fps ?? 60);
const frame = 1000 / fps;
const duration = Number(a.for ?? 1000);
const step = Number(a.step ?? frame);
const crop = a.crop ? a.crop.split(",").map(Number) : null;
let start = Number(a.from ?? 0);

if (a.auto) {
  // Small grayscale frames are enough to find where motion begins. A pixel counts
  // as changed when it moves more than 24 levels (compression noise stays below
  // that); motion starts at the first frame with --threshold changed pixels.
  const side = 160;
  const size = side * side;
  const raw = execFileSync(
    "ffmpeg",
    ["-v", "error", "-ss", String(start / 1000), "-i", video, "-vf", `fps=${fps},scale=${side}:${side},format=gray`, "-f", "rawvideo", "-"],
    { maxBuffer: 1 << 30 },
  );
  const count = Math.floor(raw.length / size);
  const threshold = Number(a.threshold ?? 3);
  let onset = -1;
  for (let i = 1; i < count && onset < 0; i++) {
    let changed = 0;
    for (let k = 0; k < size; k++) if (Math.abs(raw[i * size + k] - raw[k]) > 24) changed++;
    if (changed >= threshold) onset = i;
  }
  if (onset < 0) fail(`nothing changes on screen after ${start} ms (try a lower --threshold)`);
  start += (onset - 1) * frame;
}

const dir = fs.mkdtempSync(path.join(os.tmpdir(), "uc-frames-"));
const filters = [`fps=${fps}`, crop && `crop=${crop[2]}:${crop[3]}:${crop[0]}:${crop[1]}`].filter(Boolean).join(",");
execFileSync("ffmpeg", [
  "-v", "error", "-ss", String(start / 1000), "-i", video,
  "-t", String((duration + frame) / 1000), "-vf", filters, path.join(dir, "%05d.png"),
]);
const files = fs.readdirSync(dir).filter((f) => f.endsWith(".png")).sort();
if (!files.length) fail(`no frames between ${Math.round(start)} and ${Math.round(start + duration)} ms`);

const tiles = [];
for (let t = 0; t <= duration + 0.001; t += step) {
  const index = Math.round(t / frame);
  if (index >= files.length) break;
  tiles.push({ input: path.join(dir, files[index]), label: `${Math.round(t)} ms`, t: Math.round(t) });
}
await contactSheet(tiles, out, { cols: Number(a.cols ?? 8), width: Number(a.tile ?? 240) });
if (a.keep) {
  fs.mkdirSync(a.keep, { recursive: true });
  for (const { input, t } of tiles) fs.copyFileSync(input, path.join(a.keep, `${String(t).padStart(5, "0")}ms.png`));
}
fs.rmSync(dir, { recursive: true, force: true });
console.log(`${out}: ${tiles.length} frames from ${Math.round(start)} ms${a.keep ? `, full-size frames in ${a.keep}` : ""}`);
```

## File: skills/design/charles-unreasonable-craft/scripts/sim.sh
size: 1950
sha: 7d48c9a6c24db2438323c5be6868b27bdda2a62a
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/scripts/sim.sh

```text
#!/bin/bash
# Full-resolution iOS Simulator captures for design verification.
#
#   sim.sh shot  <out.png> [device]   screenshot at full resolution (3x on iPhone)
#   sim.sh start <out.mp4> [device]   start recording at full frame rate
#   sim.sh stop  <out.mp4>            stop that recording and finish the file
#
# device: a UDID or simulator name; defaults to the booted one.
# Read a recording frame by frame:  node sheet.mjs <out.mp4> <sheet.png> --auto
# Measure a capture:                node edges.mjs <out.png> --scale 3 --rows y0-y1
set -euo pipefail

usage() { sed -n '4,10p' "$0" | sed 's/^# \{0,1\}//'; exit 2; }
cmd=${1:-}
out=${2:-}
device=${3:-booted}
[[ -n $cmd && -n $out ]] || usage
command -v xcrun >/dev/null || { echo "error: xcrun not found (needs Xcode)" >&2; exit 1; }
mkdir -p "$(dirname "$out")"
out="$(cd "$(dirname "$out")" && pwd)/$(basename "$out")"
state="${TMPDIR:-/tmp}/uc-simrec-$(printf '%s' "$out" | shasum | cut -c1-12)"

case $cmd in
  shot)
    xcrun simctl io "$device" screenshot --type=png "$out" >/dev/null
    echo "$out"
    ;;
  start)
    if [[ -f $state.pid ]] && kill -0 "$(cat "$state.pid")" 2>/dev/null; then
      echo "error: already recording $out" >&2; exit 1
    fi
    xcrun simctl io "$device" recordVideo --codec=h264 --force "$out" >"$state.log" 2>&1 &
    echo $! >"$state.pid"
    sleep 1.2
    if ! kill -0 "$(cat "$state.pid")" 2>/dev/null; then
      cat "$state.log" >&2; rm -f "$state.pid" "$state.log"; exit 1
    fi
    echo "recording $out (stop with: sim.sh stop $out)"
    ;;
  stop)
    [[ -f $state.pid ]] || { echo "error: no recording running for $out" >&2; exit 1; }
    pid=$(cat "$state.pid")
    kill -INT "$pid" 2>/dev/null || true
    for _ in $(seq 1 50); do kill -0 "$pid" 2>/dev/null || break; sleep 0.2; done
    rm -f "$state.pid" "$state.log"
    [[ -s $out ]] || { echo "error: the recording is empty" >&2; exit 1; }
    echo "$out"
    ;;
  *) usage ;;
esac
```

## File: skills/design/charles-unreasonable-craft/scripts/web-frames.mjs
size: 8978
sha: 5b90ea60636e24dc3b2d5447446971063b63a054
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/scripts/web-frames.mjs

```text
#!/usr/bin/env node
/* Full-resolution web captures for design verification: stills at every width and
   color scheme, and exact frame-by-frame captures of motion.

   node web-frames.mjs <url | file.html> [options]

   Stills (the default):
     --widths 360,390,768,1024,1280,1440,1920   viewport widths in CSS px
     --height <px>        viewport height (default 844 below 768 wide, else 900)
     --scale 2            device pixel ratio of the captures
     --scheme light       light | dark | both
     --full               capture the whole page, not just the viewport
     --reduced-motion     emulate prefers-reduced-motion: reduce
     --before "<js>"      run in the page first (open a menu, fill a form, set a state)
     --wait 500           ms to let the page settle before capturing
     --out captures       output folder

   Motion (add --motion):
     --motion 1200        capture this many ms of motion, one PNG per frame
     --fps 60             frames per second
     --trigger load       what starts the motion: load | click:<selector> |
                          hover:<selector> | scroll:<y> | js:<code>
     --clip x,y,w,h       capture only this region (CSS px)
     --name <name>        name for the frame folder (default: the trigger)
     --cols 8 --tile 240  contact sheet columns and tile width (px)

   Writes <width>-<scheme>.png stills, or a <name>-<width>-<scheme>/ folder of frames
   plus a <name>-<width>-<scheme>-sheet.png labelled in ms, and console.txt with
   every console error or warning, page error, failed request, and HTTP error.

   Stills, and motion started by a trigger, begin from the settled page: finite
   animations (entrances, transitions) are jumped to their end and loops keep
   running. Use --trigger load to see the entrance itself.

   While capturing frames, time is virtual: timers, requestAnimationFrame and
   performance.now are faked and stepped exactly 1/fps per frame, and CSS
   transitions, CSS animations and Web Animations are paused and seeked to the same
   clock, so each frame is exact and repeatable. Scroll-driven animations are left alone. */
import fs from "node:fs";
import path from "node:path";
import { pathToFileURL } from "node:url";
import { contactSheet, fail, launchChrome, parseArgs } from "./lib.mjs";

const a = parseArgs(process.argv.slice(2), ["full", "reduced-motion"]);
const target = a._[0];
if (!target) fail("usage: node web-frames.mjs <url | file.html> [options] (options are listed at the top of this file)");
const url = /^[a-z][a-z0-9+.-]*:/i.test(target) ? target : pathToFileURL(path.resolve(target)).href;
const widths = String(a.widths ?? "360,390,768,1024,1280,1440,1920").split(",").map(Number);
const scale = Number(a.scale ?? 2);
const schemes = a.scheme === "both" ? ["light", "dark"] : [a.scheme ?? "light"];
const out = path.resolve(a.out ?? "captures");
const motion = a.motion ? Number(a.motion) : 0;
const fps = Number(a.fps ?? 60);
const trigger = a.trigger ?? "load";
const name = a.name ?? trigger.split(":")[0];
const clip = a.clip ? a.clip.split(",").map(Number) : null;
const wait = Number(a.wait ?? 500);
fs.mkdirSync(out, { recursive: true });

// A string of statements, run as an async function in the page.
const run = (page, code) => page.evaluate(`(async () => { ${code} })()`);

const settle = (page) =>
  page.evaluate(async () => {
    await document.fonts?.ready;
    const pending = [...document.images].filter((img) => !img.complete);
    await Promise.all(pending.map((img) => new Promise((done) => (img.onload = img.onerror = done))));
  });

// Headless Chrome starts CSS animations lazily (on its next frame), so waiting
// doesn't settle a page. Jump every finite animation to its end, the state a
// person sees once the page has settled; loops keep running. Repeats so chained
// animations (started from animationend) settle too.
async function finishFinite(page, letTimePass) {
  for (let round = 0; round < 5; round++) {
    const finished = await page.evaluate(() => {
      let count = 0;
      for (const animation of document.getAnimations()) {
        if (animation.timeline && animation.timeline !== document.timeline) continue;
        if (animation.playState === "finished") continue;
        if (!Number.isFinite(animation.effect?.getComputedTiming().iterations)) continue;
        try {
          animation.finish();
          count++;
        } catch {}
      }
      return count;
    });
    if (!finished) return;
    await letTimePass(50);
  }
}

// Pause every document-timeline animation and seek it to virtual time t. An
// animation seen for the first time keeps the progress it already has, unless
// rewind is set (motion that started during page load is replayed from 0).
function pin([t, rewind]) {
  const origins = (window.__ucOrigins ??= new WeakMap());
  for (const animation of document.getAnimations()) {
    if (animation.timeline && animation.timeline !== document.timeline) continue;
    if (!origins.has(animation)) origins.set(animation, t - (rewind ? 0 : animation.currentTime ?? 0));
    animation.pause();
    animation.currentTime = t - origins.get(animation);
  }
}

async function start(page) {
  const [kind, ...rest] = trigger.split(":");
  const value = rest.join(":");
  if (kind === "click") await page.click(value, { force: true });
  else if (kind === "hover") await page.hover(value, { force: true });
  else if (kind === "scroll") await page.evaluate((y) => window.scrollTo({ top: y, behavior: "instant" }), Number(value));
  else if (kind === "js") await run(page, value);
  else fail(`unknown --trigger "${trigger}"`);
}

async function captureMotion(page, tag) {
  const dir = path.join(out, `${name}-${tag}`);
  fs.rmSync(dir, { recursive: true, force: true });
  fs.mkdirSync(dir, { recursive: true });
  const fromLoad = trigger === "load";
  // Time is frozen before the page exists, so nothing runs ahead of frame 0, and
  // the page settles in virtual time before a trigger.
  await page.clock.install();
  await page.clock.pauseAt(Date.now() + 1000);
  await page.goto(url, { waitUntil: "load" });
  await settle(page);
  if (a.before) await run(page, a.before);
  if (!fromLoad) {
    await page.clock.runFor(wait);
    await finishFinite(page, async (ms) => {
      await page.waitForTimeout(ms);
      await page.clock.runFor(ms);
    });
    await page.evaluate(pin, [0, false]);
    await start(page);
  }
  const step = 1000 / fps;
  const count = Math.floor(motion / step) + 1;
  const tiles = [];
  let now = 0;
  for (let i = 0; i < count; i++) {
    const t = Math.round(i * step);
    if (t > now) await page.clock.runFor(t - now);
    now = t;
    await page.evaluate(pin, [t, fromLoad && i === 0]);
    const file = path.join(dir, `${String(i).padStart(4, "0")}.png`);
    await page.screenshot({
      path: file,
      animations: "allow",
      ...(clip ? { clip: { x: clip[0], y: clip[1], width: clip[2], height: clip[3] } } : {}),
    });
    tiles.push({ input: file, label: `${t} ms` });
  }
  const sheet = path.join(out, `${name}-${tag}-sheet.png`);
  await contactSheet(tiles, sheet, { cols: Number(a.cols ?? 8), width: Number(a.tile ?? 240) });
  console.log(`${path.relative(process.cwd(), dir)}/ (${count} frames at ${fps} fps)  ${path.relative(process.cwd(), sheet)}`);
}

const browser = await launchChrome();
const problems = [];
for (const width of widths) {
  for (const scheme of schemes) {
    const height = Number(a.height ?? (width < 768 ? 844 : 900));
    const tag = `${width}-${scheme}`;
    const context = await browser.newContext({
      viewport: { width, height },
      deviceScaleFactor: scale,
      colorScheme: scheme,
      reducedMotion: a["reduced-motion"] ? "reduce" : "no-preference",
    });
    const page = await context.newPage();
    const note = (text) => problems.push(`[${tag}] ${text}`);
    page.on("console", (m) => ["error", "warning"].includes(m.type()) && note(`console.${m.type()}: ${m.text()}`));
    page.on("pageerror", (e) => note(`page error: ${e.message}`));
    page.on("requestfailed", (r) => note(`request failed: ${r.url()} (${r.failure()?.errorText})`));
    page.on("response", (r) => r.status() >= 400 && note(`HTTP ${r.status()}: ${r.url()}`));
    if (motion) {
      await captureMotion(page, tag);
    } else {
      await page.goto(url, { waitUntil: "load" });
      await settle(page);
      if (a.before) await run(page, a.before);
      await page.waitForTimeout(wait);
      await finishFinite(page, (ms) => page.waitForTimeout(ms));
      const file = path.join(out, `${tag}.png`);
      await page.screenshot({ path: file, fullPage: !!a.full });
      console.log(path.relative(process.cwd(), file));
    }
    await context.close();
  }
}
await browser.close();
fs.writeFileSync(path.join(out, "console.txt"), problems.length ? `${problems.join("\n")}\n` : "");
console.log(problems.length ? `console.txt: ${problems.length} problem(s). Read it.` : "console.txt: clean");
```

## File: skills/design/charles-unreasonable-craft/references/assets.md
size: 2258
sha: 202a8983166631deb951a1a83ac762165cca26c2
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/references/assets.md

````text
# Assets

How to find keys without exposing them, pick today's best model, art-direct what it makes, and ship it light.

## Find the keys (names only)

Look in this project's env files. This prints the file and the variable *name*, never the value:

```bash
grep -oE '^(export )?[A-Z0-9_]*(FAL|GEMINI|GOOGLE_AI|GOOGLE_GENAI|GOOGLE_API|ELEVEN|OPENAI|REPLICATE|RUNWAY|LUMA|STABILITY|IDEOGRAM|RECRAFT|BFL|KLING|MINIMAX)[A-Z0-9_]*=' \
  .env* 2>/dev/null | grep -v '\.example:' | sort -u
```

To use a key, load it into the environment of the command that needs it, without printing it.

## Pick the model

Model lineups change every few weeks, so never pick one from memory.

1. Check today's date.
2. Check what each provider offers right now, in its model list or docs. If that doesn't settle it, search the web for the best model for this asset type as of this month.
3. Use the best model for the job (quality first, not price), and record the model and the date in the design log.

## Art-direct it

- Brief every generation from the system: palette, light, lens, materials, mood, composition, and the space the layout needs (where text will sit).
- Generate several variations, compare them side by side, and keep only what meets the bar.
- Reject the AI tells: garbled text, wrong hands, plastic skin, impossible light, stock-photo staging, the same face everywhere.
- Keep a series consistent: the same light, grade and style across every image. Reuse seeds or reference images when the model supports them.
- Edit, inpaint and upscale the keepers instead of settling for a near miss.
- Time sound to the motion you measured. Keep it subtle and optional, and respect mute.

## Ship it light

- **Images:** AVIF or WebP with a fallback, `srcset` and `sizes` for each breakpoint, explicit width and height so nothing shifts, lazy loading below the fold, and a preloaded hero.
- **Video:** H.264 (plus HEVC or AV1 where they help) with a poster frame. Autoplay only when it's muted decoration, and never play sound without a tap.
- **Native:** asset catalogs at @2x and @3x, and vectors where they hold up.

## Keep it honest

Don't present generated people as real customers, staff or reviewers, and don't use a real person's likeness without permission.
````

## File: skills/design/charles-unreasonable-craft/references/critique.md
size: 4287
sha: e6c887ee4d3778e3f3761d7725740a973da1d40c
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/references/critique.md

````text
# Critique

Who scores the work, against what, and how many rounds to run. For *how* to critique and refine, follow interface-craft's `design-critique.md`: its lenses, its "what I see → why it hurts → what it could be" format, and its way of fixing in small steps, looking again after each. This file adds the juries' criteria, the critic, and the number of rounds.

## The juries' criteria

**Websites**, the way Awwwards juries score them:

| Criterion | Weight | What the jury is asking |
|---|---|---|
| Design | 40% | Is the visual craft exceptional: type, color, layout, imagery, motion, and the consistency of all of it? |
| Usability | 30% | Is it fast, clear and easy to use on every device, with nothing broken, confusing or slow? |
| Creativity | 20% | Is there an idea here nobody has done this way, and does it surprise? |
| Content | 10% | Does every word, image and piece of media earn its place, and is it written well? |

Weighted score = 0.4 × Design + 0.3 × Usability + 0.2 × Creativity + 0.1 × Content.

**Apps**, by the Apple Design Award categories: Delight and Fun, Inclusivity, Innovation, Interaction, Social Impact, Visuals and Graphics. Pick the one or two categories the app should win in, and score those plus Interaction and Visuals and Graphics, which every app has to earn. The score is their average.

**Calibrate against real winners.** Before scoring, look up recent Awwwards Sites of the Day in a similar category (for apps, the latest Apple Design Award winners and finalists). Judge the work against those, not against average work.

This skill's scale, 1 to 10:

- **10:** Site of the Year or an Apple Design Award winner. People share it unprompted.
- **9:** Site of the Day, or an Apple Design Award finalist.
- **8:** an Honorable Mention. Polished, with a memorable moment or two.
- **7:** solid professional work that nobody will remember.
- **6 and below:** visible problems.

## The critic

Use a fresh agent with no conversation history and no stake in the work. In Claude Code, that's the Agent tool. In Codex, it's `spawn_agent` without forking the conversation. Give it only:

- the brief: what this is, who it's for, the platform, and the feeling it should create
- the captures: stills at each size and theme, contact sheets of the key motion, and the measurements
- this file

Use a new critic every round, so earlier scores don't anchor it. If you can't start another agent, critique it yourself from the captures alone, as if seeing it for the first time.

Prompt for the critic, filled in:

```
You're judging this for Awwwards Site of the Day [or: an Apple Design Award in <categories>].
Score harshly: solid professional work scores 7, and you've seen this year's winners.

Brief: <what it is, who it's for, platform, the feeling it should create>
Captures: <paths to stills, contact sheets, measurements>
Rubric and scale: <path to this file>

1. Score each criterion 1-10, with one line of evidence each, then the weighted score.
2. List every problem as "what I see → why it hurts → what it could be", biggest first.
3. Name the single most wrong note.
4. Name the moments, if any, that would make a juror say "wow".
5. Say what it would take to win.
No praise padding.
```

## One round

1. The critic scores the work.
2. Fix the biggest kind of problem first: wrong structure, then wrong behavior, then wrong looks.
3. Recapture and re-measure everything you changed, and everything that shares its components.
4. Log the round's scores and fixes in the design log.

## How many rounds

One, by default. Then stop and report what step 5 of SKILL.md lists, so the user can decide whether to go again.

Run more only when the user asks, and do what they asked:

- **A number of rounds** ("do three rounds"): run exactly that many, with a new critic each round.
- **A bar** ("keep going until it's a 9", "iterate until it's perfect"): keep going until a fresh critic's weighted score reaches it. If they don't name a number, the bar is 9 or more, with no criterion below 8.5. If three rounds in a row don't raise the score, stop and tell the user what's holding it back and what it would take.

Naming the award as the goal ("so it could win Site of the Day") isn't a request for more rounds; every job aims there.
````

## File: skills/design/charles-unreasonable-craft/references/verification.md
size: 5570
sha: b6ecbd73011ea56e296306dbb35ad5c98814de82
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/references/verification.md

````text
# Verification

How to capture the work, read its motion frame by frame, and measure it. In the commands below, `<skill>` is this skill's folder and `<log>` is the design log folder. Run them from the project.

## Contents
- Capture the web
- Capture the iOS Simulator
- Read motion frame by frame
- Measure spacing and alignment
- Cover every state
- When a script fails

## Capture the web

Stills at every width, light and dark:

```bash
node <skill>/scripts/web-frames.mjs http://localhost:3000 --scheme both --out <log>/shots
```

The default widths run from a small phone to a wide desktop (360, 390, 768, 1024, 1280, 1440, 1920). Add the widths where the layout changes, with `--widths`. Add `--full` for whole pages, and `--before "<js>"` to set up a state first (open a menu, fill a form, show an error). Stills show the settled page, with entrances finished.

Motion, one PNG per frame plus a labelled contact sheet:

```bash
node <skill>/scripts/web-frames.mjs http://localhost:3000 --widths 390,1440 --motion 800 --trigger "click:#start"
```

Triggers: `load` (the entrance itself), `click:<selector>`, `hover:<selector>`, `scroll:<y>`, `js:<code>`. `--clip x,y,w,h` zooms in on one element. Time is virtual during the capture, so every frame is exact and repeatable. Capture again with `--reduced-motion`: the motion should turn into a fade or nothing, and never break.

Every run writes `console.txt`, listing console errors and warnings, page errors, failed requests and HTTP errors. It should be empty.

## Capture the iOS Simulator

```bash
<skill>/scripts/sim.sh shot <log>/shots/home.png          # full resolution, 3x on iPhone
<skill>/scripts/sim.sh start <log>/rec/open.mp4           # then do the interaction
<skill>/scripts/sim.sh stop <log>/rec/open.mp4
```

Pass a UDID or simulator name as the last argument when more than one is booted (`xcrun simctl list devices booted`), and use the one running the build you're checking. Cycle these settings too, then put them back when you're done:

```bash
xcrun simctl ui <device> appearance dark
xcrun simctl ui <device> content_size accessibility-extra-large
xcrun simctl ui <device> increase_contrast enabled
```

## Read motion frame by frame

```bash
node <skill>/scripts/sheet.mjs <log>/rec/open.mp4 <log>/rec/open-sheet.png --auto --for 800
```

`--auto` starts at the last still frame before the screen changes (the tap). `--crop x,y,w,h` (video pixels) zooms in, and `--keep <dir>` saves full-size frames to measure. Recordings only write frames when the screen changes, so a sheet ends where the motion ends.

Open the sheet and read it tile by tile. Look for:

- a jump, a pop, or a one-frame flash anywhere in the sequence
- an abrupt start or stop where the motion should ease, or easing where the response should be instant
- overshoot that never settles, or a visible wobble at the end
- straight-line paths where an arc would be natural, and arcs that kink
- anticipation and follow-through where the principle calls for them, and nothing that teleports
- layout shifting or text reflowing mid-animation, and anything clipped by its container
- things that move together arriving together, or staggered on purpose
- interruption: trigger it again mid-flight, and it should redirect from where it is, not snap back

## Measure spacing and alignment

```bash
node <skill>/scripts/edges.mjs <log>/shots/home.png --scale 3 --rows 120-160,200-260
node <skill>/scripts/edges.mjs <log>/shots/home.png --scale 3 --cols 16-60 --within 100-700
```

A `--rows` band prints each element's left and right edges and the gaps between them. A `--cols` band prints top and bottom edges and the vertical gaps. Units are points: use `--scale 3` for iPhone captures, and `--scale 2` for iPad and for web captures at the default scale. Read the screenshot first to pick the bands.

These checks caught real defects that looked fine by eye:

- **One text edge per screen.** Every column of text, label and list on a screen starts on the same line, and a screen's tabs share it.
- **Icon buttons line up by the glyph, not the tap target.** A ×, ••• or chevron ends on the content edge, even though its 44 pt target extends past it.
- **The same relationship gets the same gap everywhere:** below the header on every tab, between every card, inside every button of a kind.
- **Bleeds pay back.** A frame that bleeds into the margin pads its content back by the bleed, so that content still sits on the text edge.
- **No seams** where a photo, scrim or material meets the page.
- **Nothing peeks** around a floating button, and nothing sits under the status bar, notch or home indicator.
- **Optical centering is deliberate.** Center play triangles, arrows and odd-shaped icons by eye, then measure to confirm the offset is the one you chose.
- **No widows or orphans** in headings and short paragraphs.

## Cover every state

Capture every screen as empty, loading, error, success and offline. Also capture it with long text and a missing image, with one item and with many, and as a first run and as a returning user. Do all of that in light and dark, with reduced motion, at every screen size, and at large text sizes on native.

## When a script fails

- A missing package: `npm install --prefix <skill>/scripts`.
- No Chrome: install Google Chrome or set `CHROME_PATH`.
- No ffmpeg: `brew install ffmpeg`.
- A sandbox blocks Chrome or the simulator: rerun the command with permission to run outside the sandbox.

Don't skip verification because a tool failed. Fix the tool, or capture another way.
````

## File: skills/design/charles-unreasonable-craft/agents/openai.yaml
size: 272
sha: e77747475c27c431ca17fead824489a3d2f113ab
upstream: https://github.com/lemonface0309/charles-skills/blob/main/skills/design/charles-unreasonable-craft/agents/openai.yaml

```text
interface:
  display_name: "Unreasonable Craft"
  short_description: "Award-level web and app design, verified frame by frame"
  default_prompt: "Use $charles-unreasonable-craft to design this to an Awwwards Site of the Day bar."
policy:
  allow_implicit_invocation: true
```
