pair — слэш-команда для Claude Code и Cursor: гибрид двух сайтов
Команда pair для Claude Code и Cursor. Сводит два разобранных сайта в одну гибридную айдентику: цвет и отступы с одного, типографика и голос с другого.
MIT ★ 5 183 обновлён 2026-10-23
/plugin marketplace add Manavarya09/design-extract
/plugin install designlang@designlangЧто делает pair
Команда берёт две ссылки, разбирает оба сайта параллельно (около 30 секунд на всё) и складывает результат в ./design-extract-output/. В папке окажутся HTML-карточка пары с обложкой и матрицей осей, markdown-сводка с таблицей источников и JSON с дельтами по каждой оси.
По умолчанию визуал достаётся первому сайту, а слова — второму: цвет, отступы, форма и движение от A, типографика, голос и анатомия компонентов от B. Любую ось разворачивают флагом вроде --colors-from b или --typography-from a. Флаг --brand добавляет полный брендбук объединённой айдентики отдельным HTML-файлом, --format сужает набор форматов, --open сразу открывает карточку.
Если во фразе меньше двух ссылок, команда спросит вторую, без неё разбор не начнётся. Переопределение работает по одной оси за раз, поэтому при нестандартной раскладке придётся перечислить несколько флагов.
Какие задачи решает
- свести визуал одного сайта с типографикой и голосом другого
- собрать брендбук объединённой айдентики флагом
--brand - получить JSON с дельтами по осям для будущей дизайн-системы
- показать команде карточку пары с матрицей источников
- развернуть отдельную ось, не трогая остальные
Примеры запросов агенту
- Собери гибрид из
stripe.comиlinear.app: типографику и голос возьми у второго. /pairvercel.comapple.comс флагом--brand, нужен брендбук объединённой айдентики.- Поменяй источник цвета на второй сайт:
--colors-from b.
Как установить pair
1Через маркетплейс плагинов
/plugin marketplace add Manavarya09/design-extract/plugin install designlang@designlang2Вручную: положить файлы
.claude/commands/pair.mdВызов — /pair. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/pair.mdВызов — /prompts:pair. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/pair.prompt.mdВручную: положить файлы
.gemini/commands/pair.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о pair
Как установить pair в Claude Code?
Сначала /plugin marketplace add Manavarya09/design-extract, потом /plugin install designlang@designlang. Файл команды появится как .claude/commands/pair.md.
Что делает pair?
Разбирает два сайта и собирает из них одну гибридную айдентику по осям: цвет, отступы, форма, движение, типографика, голос, компоненты. Результат кладёт в ./design-extract-output/.
Что будет, если передать только одну ссылку?
Команда остановится и попросит вторую. Для запуска нужны два адреса.
Исходный текст
pair.md · MIT
--- description: Fuse two extracted designs into a single hybrid identity. Pick which axis (colour, typography, spacing, shape, motion, voice, components) comes from which site. Defaults to "visual A × voice B" — same colours/spacing as the first URL, type/voice/components from the second. argument-hint: <urlA> <urlB> [--colors-from a|b] [--typography-from a|b] [--brand] --- Fuse the design DNA of two sites and emit an editorial pair card showing the crossover. ```bash npx designlang pair $ARGUMENTS ``` If `$ARGUMENTS` doesn't contain at least two URLs, ask the user for the second one. Both sites are extracted in parallel (~30s total). Outputs land in `./design-extract-output/`: - `*-x-*.pair.html` — editorial pair card with cover, axis matrix, fused specimen - `*-x-*.pair.md` — markdown summary (axis source table) - `*-x-*.pair.json` — structured deltas (which axis came from where) - `*-x-*.pair.brand.html` — full brand-guidelines book of the fused identity (only with `--brand`) After the run completes: 1. Read the markdown to summarise: which axis came from A, which from B 2. Highlight the most distinctive crossover (the fused specimen quotes a real headline from whichever site contributed the voice) 3. Offer to open the HTML pair card ## Default axis split | Axis | Default source | Why | |---|---|---| | Colour | A | Brand identity tends to lead with colour | | Spacing | A | Spacing co-varies with the visual layout | | Shape | A | Radii + shadows belong with the visual surface | | Motion | A | Motion is part of the visual feel | | **Typography** | **B** | The crossover moment — different voice | | **Voice** | **B** | Tone, headings, CTA verbs from B | | **Components** | **B** | Anatomy from B's library | So the default is "Site A's visuals + Site B's words". Override any axis with `--<axis>-from a|b`. ## Useful flags | Flag | Effect | |---|---| | `--colors-from <a\|b>` | Force colour source | | `--typography-from <a\|b>` | Force typography source | | `--spacing-from <a\|b>` | Force spacing source | | `--shape-from <a\|b>` | Force radii + shadows source | | `--motion-from <a\|b>` | Force motion source | | `--voice-from <a\|b>` | Force voice / tone / heading source | | `--components-from <a\|b>` | Force component anatomy source | | `--brand` | Also emit a full brand-guidelines book of the fused identity | | `--format html\|md\|json\|all` | Pick output formats | | `--open` | Open the HTML pair card | ## Example experiments ``` npx designlang pair stripe.com linear.app # default split npx designlang pair stripe.com linear.app --type-from a # Stripe everything except components/voice from Linear npx designlang pair vercel.com apple.com --brand # fused identity as a hand-off brand book ``` ## Pairs nicely with - `/grade <url>` — grade either source side individually before pairing - `/brand <url>` — generate a brand book of one source for comparison - `/battle <urlA> <urlB>` — head-to-head graded comparison (the inverse of `pair`)
© Manavarya Singh · MIT · Manavarya09/design-extract