Kayforkind/reimagine-it / skills/reimagine-it/lock
reimagine-it-lock
VerifiedDesign 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.
/reimagine-it lock
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
| Category | What | Example |
|---|---|---|
| Palette | Ground, accent, support colors with hex values | #08141a ground, #3ae098 accent |
| Type stack | Display family, body family, fallbacks | Iowan Old Style, Georgia, serif |
| Motifs | Repeating visual patterns | Pulse wave, heartbeat ring |
| Motion | Animation budget, keyframe durations | alive-micro, 2–4 loops |
| 3D signature | 3D approach for the medium | matcap-hero, card-fan |
| Section structure | Page anatomy grid | Hero → 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
- Read the target file (HTML with inline CSS).
- Extract palette: scan
:root { }block and allvar(--*)usage for hex values. - Extract type stack: scan
font-familydeclarations; capture display, body, fallbacks. - Extract motifs: scan SVG
<pattern>,<linearGradient>, keyframe@keyframesnames. - Extract motion: count
@keyframesblocks, note durations, checkprefers-reduced-motion. - Extract 3D: scan for
perspective,rotateX,rotateY,translateZ. - Extract section structure: scan semantic HTML (
<header>,<main>,<section>,<footer>). - Write the pack to
references/locks/<name>.md. - Report
LOCKED: <name> → references/locks/<name>.mdwith 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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |