Логотип Glide

Glide

Спільнота
SrivarsanK
glide

How to change UI in a project that uses the Glide visual editor (@srivarsank/glide), and how to explain what Glide did. Use this skill whenever the project has `glideSourceStamping` in its Vite or Astro config, a `glide-components.json` file, or `data-gl-source` attributes; whenever the user mentions Glide, the visual editor, the canvas, `/__glide/`, or port 7777; and whenever the user asks why a Glide edit was refused (`UNSUPPORTED_OPERATION`, `STALE_DIGEST`, `STALE_NODE`) or why an element cannot be selected or edited. Also use it before you edit JSX, Vue, Svelte, Astro or HTML markup in such a project, so that your edits and the user's canvas edits do not conflict.

Огляд

ВидавецьSrivarsanK
РепозиторійGlide
Назва навичкиglide
Зірки
217
Форки
8
Файли в пакеті
28
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 28

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: SrivarsanK. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Glide у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/SrivarsanK/Glide/tree/main/skills/glide
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SrivarsanK/Glide.git /tmp/Glide
mkdir -p .claude/skills
cp -r /tmp/Glide/skills/glide .claude/skills/glide
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Glide в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Glide, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Glide не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Glide

Glide is a visual editor that runs next to the dev server. The user selects an element on a live preview of the app, changes it, and Glide writes the change into the source file. There is no second copy of the design: the source file is the only record.

You do not drive the canvas. You edit source files, and Glide watches the project and updates the canvas. So your job in a Glide project is to (1) find the right element fast, (2) edit it in a way that Glide and the user can keep working with, and (3) explain Glide's behavior when the user asks.

Use Glide's tools when you have them

If your tool list has Glide's MCP tools (get_selection, get_source, update_styles, …), use them: get_selection tells you what the user is pointing at on the canvas, and the edit tools write through Glide, so the change keeps the project's style format and joins the user's undo history. Set them up with npx @srivarsank/glide mcp install --agent claude (also cursor, vscode, all) or run npx -y @srivarsank/glide mcp as a stdio server. Call get_guide once for the conventions, and build new sections with insert_markup. For anything they don't cover, edit the files.

Find the element

Do not guess file paths. If glide-components.json is in the project root, it lists every component with its file and its elements, each with a line and column.

bash
node <this skill folder>/scripts/query-components.mjs --list          # all components
node <this skill folder>/scripts/query-components.mjs --name Card     # one component, as JSON

In each component, the element with isRoot: true is the outer wrapper: use it for background, outer padding and size. A capitalized tagName (<UserAvatar>) is another component; look up its own entry to change what it renders. For the file format and edge cases, read the glide-component-segregator skill.

If the file is missing, Glide is not running. Read the source files directly; do not create the file by hand, because Glide overwrites it.

Edit so that Glide can keep working

The user may have the editor open while you work. Four rules keep your edits and theirs compatible.

Change one thing, keep the rest. For a Tailwind change, replace only the class for that property and keep the others. md:, hover: and similar classes are separate decisions the user made; an edit to the base padding must not remove md:p-8. Keep arbitrary values such as w-[420px], and prefer the project's theme tokens over raw values. Details and the prefix table: references/tailwind-rewriting.md.

Keep static things static. Glide can only save an edit when it can point at one literal in the source. If you turn class="p-4" into a computed value, the user can no longer edit that element on the canvas. Use a dynamic class only where the behavior needs it. The same goes for attributes: the editor adds and edits href, target, id, type, alt, src, popover and aria-* on HTML elements only while they are plain string literals. Interactions made in the editor are plain links (<a href="/page">, href="https://…" with target="_blank", or href="#id" to scroll), and the Interactions panel reads them back from that markup, so keep them as literal links.

Leave the pasteboard alone. A block like {false && <div data-gl-workspace-id="..." data-gl-workspace-x="..." ...>} is an element the user moved off the page to keep for later. It never renders. Do not delete it as dead code.

Expect a conflict after you write. Each canvas edit carries a digest of the file. If you change a file after the user selected an element in it, their next save is refused with STALE_DIGEST and nothing is written. This is the safety working. Tell the user to select the element again.

What Glide can save

File typeClass, inline style, text, attributes, change tag, drag and resizeInsert, delete, move, group
JSX / TSXYesYes
Vue, Svelte, AstroYesNo
HTMLYes, in projects with no UI frameworkNo

Glide refuses an edit that it cannot make exactly, and says why. This is intended: a wrong guess in source code is worse than a refusal. The common causes:

  • The class or style is computed: :class, class={...}, class:list, a {...spread}.
  • The text has an expression ({count}, {{ count }}) or child elements.
  • A condition, or a cva definition that other code also uses, would override the new class.
  • The element is a component (<Card>) in a Vue, Svelte or Astro template.
  • The element was added by a script at runtime, so it has no source position.

When the user reports a refusal, read the message, find the cause in the source, and offer the source edit that does what they wanted. The limits for each file type are in references/framework-adapters.md.

When something does not work

The user seesLikely causeWhat to do
Elements select, but the properties panel is inactiveNo source stampsAdd glideSourceStamping() to the Vite config and restart the dev server (see the glide-setup skill)
"Could not reach dev server" on port 7777The glide command points at the wrong portType the app's address in the editor's URL field, or start with npx @srivarsank/glide <port>
STALE_DIGEST or STALE_NODEThe file changed after selectionSelect the element again
UNSUPPORTED_OPERATIONSee the list aboveEdit in source
Editor says "Disconnected"Opened from a host that is not allowedUse the address in the [Glide] Editor: line of the terminal

Reference files

Read these only when the task needs them.

FileRead it when
references/framework-adapters.mdYou need the exact support and refusal rules for one file type
references/tailwind-rewriting.mdYou change Tailwind classes, scoped variants, or cn / cva expressions
references/staged-edits.mdThe user asks about Instant and Staged mode, or how a drag is saved
references/architecture.mdYou debug Glide itself: transactions, the file watcher, the socket messages

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Glide?

How to change UI in a project that uses the Glide visual editor (@srivarsank/glide), and how to explain what Glide did. Use this skill whenever the project has `glideSourceStamping` in its Vite or Astro config, a `glide-components.json` file, or `data-gl-source` attributes; whenever the user mentions Glide, the visual editor, the canvas, `/__glide/`, or port 7777; and whenever the user asks why a Glide edit was refused (`UNSUPPORTED_OPERATION`, `STALE_DIGEST`, `STALE_NODE`) or why an element cannot be selected or edited. Also use it before you edit JSX, Vue, Svelte, Astro or HTML markup in...

Навіщо використовувати Glide у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Glide — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Glide у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/SrivarsanK/Glide/tree/main/skills/glide. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Glide?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Glide?

Зі скількома забажаєте. У TypingMind ви можете використовувати Glide із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Glide?

Так. На GitHub цю навичку публікує SrivarsanK за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇