Docs canvas

From gridaco/grida · View interactive version

Docs canvas is an AI agent skill from the GitHub repository gridaco/grida. Author and manage user-facing documentation for the Grida Canvas editor. Covers writing style, tone, product screenshots, demo state preparation, and content structure for pages under docs/editor/. Use when creating or editing canvas editor documentation, capturing screenshots of canvas features, or

How to use this skill

Skill file

Canvas User Docs

Guide for pages under docs/editor/ — user-facing documentation for the

Grida Canvas editor at grida.co/docs.

Not for: docs/wg/, docs/reference/, forms, CLI, or architecture docs.

Directory & Build

| Item | Value |

| ----------- | ------------------------------------------------------------ |

| Source | docs/editor/ |

| Site | Docusaurus in apps/docs/ |

| Product | Canvas editor at http://localhost:3000/canvas |

| Build | turbo build --filter=editor && turbo start --filter=editor |

See docs/AGENTS.md for linking rules and MDX caveats.

Writing

Page Structure

---
title: Feature Name
description: One-line summary.
format: md
---

# Feature Name

Brief intro (1-2 sentences). What is it, why use it?

## How to Use / Creating a \_\_\_ / When to Use

Primary workflow or step-by-step.

## How It Differs from X (if applicable)

Comparison table.

## Nesting / Hierarchy Rules (if applicable)

## Default Appearance (if applicable)

## Keyboard Shortcuts (if applicable)

Headings: ## for sections, ### for subsections. No ####+.

Screenshots

| Property | Value |

| --------------- | ------------------------------------------- |

| Output size | 960 x 960 px (1:1) |

| Format | WebP q90 (preferred), PNG fallback |

| Theme | Default light |

| Naming | <feature>-<description>.webp (kebab-case) |

| Location | Co-located with the doc or sibling img/ |

960x960 is the cropped output, not the viewport. Capture at any size,

then crop to the area of interest and resize. Crop aggressively — a single

panel or dialog is better than a full-window capture.

Preparing Demo State

Prefer scripting over manual interaction, in this order:

  1. Fixture file. Load a .grida or .svg from examples/fixtures/ or test/.
  2. Scripting API. globalThis.grida exposes the editor instance

(via WindowGlobalCurrentEditorProvider). Use javascript_tool or console

to create/modify nodes, set state, rename layers programmatically.

  1. URL parameters. Playground accepts ?src=<url>, ?backend=canvas|dom.
  2. Manual interaction. Fallback only.

Before capture: name layers meaningfully, deselect (<kbd>Escape</kbd>),

zoom to fit. Use realistic labels ("Login", "Dashboard") — never lorem ipsum.

Requirements

Custom Graphics

For workflows, before/after, or relationships a screenshot can't show.

For SVG figures specifically — gestures, alignment, before/after diagrams that

recreate canvas UI — use the docs-svg-kit skill. It provides a

starter template, a primitives catalog (selection chrome, size badges, anchor

pins, resize cursors, ripples), and finished examples to crib from. Saves you

from re-deriving stroke widths, colors, and the half-pixel alignment tricks.

Pre-Publish Checklist

Pitfalls

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.