/reimagine-it lock

SkillFiles & storage

Design DNA capture — extracts palette, type stack, motifs, motion, and 3D signatures from a shipped HTML file and saves them as a reusable reference pack. Use when the user says /reimagine-it lock, "lock this design", "save design DNA", "capture this look", or wants to reuse a shipped design on a different target. Locks capture palette, type, motif, and motion from a shipped HTML file. Part of the reimagine-it Content-Derived Design suite.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the /reimagine-it lock skill

What this skill tells your AI

The instructions your AI receives, as published by kayforkind/reimagine-it in skills/reimagine-it/lock/SKILL.md and read by ahel’s review.

Parent: ../SKILL.md — the full Content-Derived Design engine. This sub-skill handles design DNA capture and reuse.

Captures a shipped design's full identity into a portable markdown pack so it can be reused on any source file:

/reimagine-it lock gold/domains/cinematic/after.html as house-cinema
/reimagine-it lock examples/end-users/horizon/auto.html as ops-console

What gets captured

CategoryWhatExample
PaletteGround, accent, support colors with hex values#08141a ground, #3ae098 accent
Type stackDisplay family, body family, fallbacksIowan Old Style, Georgia, serif
MotifsRepeating visual patternsPulse wave, heartbeat ring
MotionAnimation budget, keyframe durationsalive-micro, 2–4 loops
3D signature3D approach for the mediummatcap-hero, card-fan
Section structurePage anatomy gridHero → Cards → Footer

Token translation

Locks include a translation table so a webpage lock can inform another HTML token:

/reimagine-it webpage --ref house-cinema
/reimagine-it infographic --ref house-cinema
/reimagine-it dashboard --ref house-cinema

CLI (machine-readable)

The agent pack is markdown for the LLM. The CLI writes JSON the engine can apply without an agent:

npx reimagine-it lock -i house-style.html -o house.lock.json
npx reimagine-it -i my-page.html --ref house.lock.json -t landing -o on-brand.html
npx reimagine-it -i my-page.html --ref competitor.html --auto -o study.html

--ref accepts a .lock.json file or raw HTML (reverse-lock). Structure stays content-derived; only palette, type, and voice are pinned.

Procedure

  1. Read the target file (HTML with inline CSS).
  2. Extract palette: scan :root { } block and all var(--*) usage for hex values.
  3. Extract type stack: scan font-family declarations; capture display, body, fallbacks.
  4. Extract motifs: scan SVG <pattern>, <linearGradient>, keyframe @keyframes names.
  5. Extract motion: count @keyframes blocks, note durations, check prefers-reduced-motion.
  6. Extract 3D: scan for perspective, rotateX, rotateY, translateZ.
  7. Extract section structure: scan semantic HTML (<header>, <main>, <section>, <footer>).
  8. Write the pack to references/locks/<name>.md.
  9. Report LOCKED: <name> → references/locks/<name>.md with a summary of what was captured.

Must not

  • Save outside references/locks/ (or the host's configured locks path)
  • Capture invented colors not actually in the source CSS
  • Overwrite an existing lock without asking
  • Skip the token translation table

Signals

GitHub stars
139
Forks
26
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
reimagine-it-lock
Source
github.com/kayforkind/reimagine-it