Logo de Glide

Glide

Comunidade
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.

Visão geral

Publicado porSrivarsanK
RepositórioGlide
Nome da habilidadeglide
Estrelas
217
Forks
8
Arquivos incluídos
28
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 28

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por SrivarsanK no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Glide no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/SrivarsanK/Glide/tree/main/skills/glide
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Glide em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Glide automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Glide não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Glide faz?

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...

Por que usar Glide no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Glide é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Glide no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/SrivarsanK/Glide/tree/main/skills/glide. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Glide?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Glide?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Glide com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Glide é gratuita?

Sim. A habilidade é publicada no GitHub por SrivarsanK sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇