217 Kayforkind

reimagine-it-extract Skill

>- 输出 reimagine-it 从 HTML 文件读取的内容信号——标题、锚点、专有名词、日期、数字、邮箱、链接、源 hex 颜色及派生配色——以 JSON 形式返回,不生成重设计。当用户说 /reimagine-it extract、“引擎在这个页面看到了什么”、“提取配色”、“拉取这个页面的事实”,或需要内容分析用于研究、迁移或设计系统工作时使用。CLI:npx reimagine-it extract -i page.html -o signals.json。reimagine-it 内容驱动设计套件的一部分。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

/reimagine-it extract

Parent: ../SKILL.md — the full Content-Derived Design engine. This sub-skill handles only the extraction surface — the honesty layer the whole method stands on.

The redesign is only as honest as its extraction. This verb emits exactly what
the engine reads, as JSON, without generating anything: title, profile,
density, derived palette, anchors, proper nouns, headings, dates, numbers,
emails, links, and source hex colors. Every extracted fact exists in the
source — property-tested against hostile and malformed input.

Usage

npx reimagine-it extract -i page.html -o signals.json
cat page.html | npx reimagine-it extract -o -        # stdin → stdout
npx reimagine-it extract -i page.html --full -o signals.json  # + prose

Payload shape (default):

{
  "source": "page.html",
  "title": "…",
  "profile": "restaurant | saas | civic | …",
  "density": "sparse | medium | dense",
  "palette": { "ground": "…", "accent": "…", "muted": "…", "surface": "…", "ink": "…" },
  "anchors": ["…"],
  "properNouns": ["…"],
  "headings": ["…"],
  "dates": ["…"],
  "numbers": ["…"],
  "emails": ["…"],
  "links": ["…"],
  "sourceHex": ["#6B3A2A"],
  "counts": { "paragraphs": 4, "listItems": 16 }
}

--full adds paragraphs and items (the raw prose arrays).

Procedure

  1. Run it before any redesign when the user asks "what would you even use

from this page?" — the JSON answers with the engine's actual inputs.

  1. To audit honesty: every dates, numbers, emails, and links entry

must be findable in the source. Nothing else is allowed to appear.

  1. Use it for migration/research: the payload is a stable, typed summary of

a page's content — no redesign attached.

Must not

  • Add facts not present in the payload to any downstream summary
  • Present the derived palette as colors the source declared — hex colors

in sourceHex were in the source; the rest is derivation

  • Round or "clean up" extracted numbers and dates; they are quotes

Part of reimagine-it — MIT.