Skip to content

AI Guide

Gridgram is built to be author-able by an LLM agent. You describe what you want in natural language; an agent produces a valid .gg file, renders it, reads back diagnostics, and iterates — no manual reference-pasting required.

This guide is task-oriented. Pick one of the three usage paths below and follow it end-to-end. Each tutorial starts from a clean machine and ends with a rendered diagram plus the command to update later.

Three ways to use gridgram from an agent

TutorialBest for
Claude Code pluginYou use Claude Code. Slash commands (/gg-install, /gg-icons, /gg-author, /gg-render) drive the whole workflow.
gh skillYou want the same skill bundle installed into Copilot, Cursor, Gemini CLI, or Codex alongside (or instead of) Claude Code.
context7 (MCP)You want an agent to retrieve gridgram's docs via MCP without installing anything plugin-side. Read-only.

You can mix and match. The Claude plugin includes a /gg-install skill that fetches the CLI binary; gh skill gives you the same skills in other hosts; context7 is a parallel retrieval channel that works even without any plugin.

What you'll need

None of this is installed by gridgram itself. Install whatever the tutorial of your choice calls for before starting.

SoftwareFor which tutorialWhy
gitAllPlugin marketplaces clone over git.
Claude CodeClaude plugin, context7Host that runs the skills / MCP.
GitHub CLI gh (v2.90+)gh skillProvides the gh skill subcommand.
Cursor / Gemini CLI / Codexgh skill (optional target)Alternative skill hosts.
curl, tar, unzip (windows)/gg-install runtimeDownloading the gg binary.
bun (install)Only if building gg from sourceYou can use the release binary instead.

You do not need to install the gg CLI manually — the Claude plugin ships a /gg-install skill that handles it, and gh skill users can run the same skill after installing it. If you'd rather install gg outside your agent, follow the standard Quick start or Install page; any install that puts gg on $PATH is picked up by the skills automatically.

At a glance: what gridgram exposes

If you want the full tour before picking a tutorial:

  • gg llm — one-shot Markdown / JSON reference teaching an agent the .gg grammar, CLI, icons, JSON envelope, and canonical examples.
  • gg icons — scored semantic search over 5,039 outline + 1,053 filled Tabler icons.
  • /llms.txt + /llms-full.txt — public discovery files on the docs site.
  • context7.json — registers gridgram for context7 MCP retrieval.
  • plugins/gridgram — four skills (gg-install, gg-render, gg-icons, gg-author) distributed via Claude Code and gh skill.

The CLI reference page documents gg llm and gg icons in full — useful whether an agent is driving them through a skill or you're running them manually in a terminal.

Tutorials

Start here:

  • Claude Code plugin — 10-minute path if you already use Claude Code.
  • gh skill — if you want the skills in Copilot / Cursor / Gemini / Codex.
  • context7 — if you want an agent to retrieve gridgram docs over MCP without installing anything gridgram-specific.
Edit this pageLast updated: