/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
- 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.
- To audit honesty: every
dates, numbers, emails, and links entry
must be findable in the source. Nothing else is allowed to appear.
- 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.
1---2name: reimagine-it-extract3description: Emit the content signals reimagine-it reads from an HTML file — title, anchors, proper nouns, dates, numbers, emails, links, source hex colors, and the derived palette — as JSON without generating a redesign. Use when the user says /reimagine-it extract, "what does the engine see in this page", "extract the palette", "pull the facts from this page", or wants content analysis for research, migration, or design-system work. CLI: npx reimagine-it extract -i page.html -o signals.json. Part of the reimagine-it Content-Derived Design suite.4license: MIT5---67# /reimagine-it extract89**Parent:** [../SKILL.md](../SKILL.md) — the full Content-Derived Design engine. This sub-skill handles only the extraction surface — the honesty layer the whole method stands on.1011The redesign is only as honest as its extraction. This verb emits exactly what12the engine reads, as JSON, without generating anything: title, profile,13density, derived palette, anchors, proper nouns, headings, dates, numbers,14emails, links, and source hex colors. Every extracted fact exists in the15source — property-tested against hostile and malformed input.1617## Usage1819```bash20npx reimagine-it extract -i page.html -o signals.json21cat page.html | npx reimagine-it extract -o - # stdin → stdout22npx reimagine-it extract -i page.html --full -o signals.json # + prose23```2425Payload shape (default):2627```json28{29 "source": "page.html",30 "title": "…",31 "profile": "restaurant | saas | civic | …",32 "density": "sparse | medium | dense",33 "palette": { "ground": "…", "accent": "…", "muted": "…", "surface": "…", "ink": "…" },34 "anchors": ["…"],35 "properNouns": ["…"],36 "headings": ["…"],37 "dates": ["…"],38 "numbers": ["…"],39 "emails": ["…"],40 "links": ["…"],41 "sourceHex": ["#6B3A2A"],42 "counts": { "paragraphs": 4, "listItems": 16 }43}44```4546`--full` adds `paragraphs` and `items` (the raw prose arrays).4748## Procedure49501. Run it before any redesign when the user asks "what would you even use51 from this page?" — the JSON answers with the engine's actual inputs.522. To audit honesty: every `dates`, `numbers`, `emails`, and `links` entry53 must be findable in the source. Nothing else is allowed to appear.543. Use it for migration/research: the payload is a stable, typed summary of55 a page's content — no redesign attached.5657## Must not5859- Add facts not present in the payload to any downstream summary60- Present the derived `palette` as colors the source *declared* — hex colors61 in `sourceHex` were in the source; the rest is derivation62- Round or "clean up" extracted numbers and dates; they are quotes6364Part of [reimagine-it](https://github.com/Kayforkind/reimagine-it) — MIT.