Glide logo

Glide

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

Overview

PublisherSrivarsanK
RepositoryGlide
Skill nameglide
Stars
217
Forks
8
Bundled files
28
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 28 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by SrivarsanK on GitHub. Read the source before you install it.

Installation

Install the Glide AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/SrivarsanK/Glide/tree/main/skills/glide
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Glide in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Glide on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Glide is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Glide AI skill do?

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

Why use Glide on TypingMind?

Because you install it once and use it with any model. Glide is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Glide in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/SrivarsanK/Glide/tree/main/skills/glide. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Glide?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Glide?

As many as you like. As long as a model supports skills, you can use Glide with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Glide AI skill free?

Yes. It is published on GitHub by SrivarsanK under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇