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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 28個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    SrivarsanKがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Glide」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SrivarsanK/Glide/tree/main/skills/glide
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでGlideを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGlideを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Glideは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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...

TypingMindでGlideを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Glideはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGlideをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SrivarsanK/Glide/tree/main/skills/glideを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Glideを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Glideで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGlideを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Glide」は無料ですか?

はい。SrivarsanKがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇