dna — команда для Claude Code: что делает и как установить
Команда dna извлекает дизайн-систему сайта и сопоставляет её с базой измерений по 30 параметрам цвета, типографики и отступов.
MIT ★ 5 183 обновлён 2026-10-23
/plugin marketplace add Manavarya09/design-extract
/plugin install designlang@designlangЧто делает dna
Команда запускает утилиту designlang dna для указанного адреса. На выходе формируется вектор из 30 признаков, охватывающий цвета, шрифты, отступы, геометрию элементов и анимации. В отличие от абсолютных оценок, расчёт строится на ранжировании относительно корпуса реальных интерфейсов.
Результат сохраняется в двух форматах: сырые замеры с процентилями в файле *-dna.json и текстовый отчёт *-dna.md. Отчёт показывает ближайшие дизайн-системы, отклонения по отдельным осям и процент покрытия измеримых свойств. Если вектор построен лишь по трети параметров, надёжность сравнения снижается, о чём прямо сообщает отчёт.
Пользователь может собрать собственный референсный набор сайтов через designlang dna-corpus. Без готового файла корпуса инструмент предложит его сгенерировать перед сравнением.
Какие задачи решает
- сравнить визуальный стиль сайта с набором конкурентов
- найти ближайшие аналоги дизайн-системы по 30 параметрам
- выявить нетипичные параметры типографики, цвета и отступов
- понять, какие оси скорректировать для попадания в целевой стиль
Примеры запросов агенту
- /dna <url>
- Сравни вёрстку <url> с базой в ./my-corpus.json через /dna
- Собери корпус для сравнения стилей через designlang dna-corpus acme.com competitor.com
Как установить dna
1Через маркетплейс плагинов
/plugin marketplace add Manavarya09/design-extract/plugin install designlang@designlang2Вручную: положить файлы
.claude/commands/dna.mdВызов — /dna. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/dna.mdВызов — /prompts:dna. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/dna.prompt.mdВручную: положить файлы
.gemini/commands/dna.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о dna
Как установить dna в Claude Code?
Выполните по очереди команды: /plugin marketplace add Manavarya09/design-extract, затем /plugin install designlang@designlang. После этого файл команды размещается по пути .claude/commands/dna.md.
Что делает команда dna?
Она сканирует сайт, вычисляет 30 числовых характеристик оформления и сравнивает их с сохранённым корпусом интерфейсов, формируя отчёты *-dna.json и *-dna.md.
Как подготовить свой набор сайтов для сравнения?
Для этого используется вызов designlang dna-corpus acme.com acme.com/pricing competitor.com, создающий файл корпуса для последующих замеров.
Исходный текст
dna.md · MIT
--- description: Place a design in the measured design space — nearest systems, per-axis percentiles, outliers --- # /dna Extract a site's design language and locate it in designlang's measured design space: a 30-feature vector covering colour, type, space, shape and motion. Unlike `/grade`, which returns an absolute letter, `/dna` is comparative — every number is a rank against a corpus of real design systems. ## Usage ```bash designlang dna <url> designlang dna <url> --corpus ./my-corpus.json ``` Build your own reference frame — your products, your competitors, whatever you want to be measured against: ```bash designlang dna-corpus acme.com acme.com/pricing competitor.com ``` ## What you get - `*-dna.json` — the vector, the raw measurements behind it, neighbours, percentiles - `*-dna.md` — a readable report: where it sits per axis, its nearest design systems, and the features that make it look the way it does ## Reading the output - **Distance** is the mean absolute difference across the features both designs have — `0.14` means the average feature is 14% of its range apart. - **Percentiles** are ranks within the corpus, not judgements. A design far from the middle is unusual, which may be exactly the intent. - **Coverage** tells you how much of the vector was measurable. A comparison built from a third of the features is a weaker claim, and the report says so. ## Instructions 1. Run `designlang dna <url>` for the URL the user names. 2. Read the emitted `*-dna.md`. 3. Summarise: the nearest systems and what separates them, the axes where the design is an outlier, and — if the user is trying to hit a target look — which axes to move and in which direction. 4. If no corpus exists yet, say so and offer to build one with `dna-corpus`.
© Manavarya Singh · MIT · Manavarya09/design-extract