Skip to content
Back to skills

Chort

ASecurity

Design on the chort canvas through its MCP tools: direction and tokens, HTML writes, visual checks, components, comments and handoff to code.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsgonode

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add deeflect/chort --skill chort --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chort?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chort
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/deeflect-chort/badge)](https://www.skillsdirectory.com/skills/deeflect-chort)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: chort
description: Design on the chort canvas through its MCP tools: direction and tokens, HTML writes, visual checks, components, comments and handoff to code.
---

# Work in chort

Use the chort MCP server. A call without `fileId` uses the session or editor focused file — **once you know the `.chort` `fileId` (from `open_file` or `get_basic_info`), pass `fileId` explicitly on every file-scoped call and subagent brief** so switching tabs in another project cannot misroute edits. `open_file({name})` opens or creates a file and `manage_resources` creates, renames, moves or archives files and folders. Each tool call is one undoable commit. **One agent per chort file at a time** — sequence canvas writers, never run two in parallel on one file.

## The loop

1. **Name the place.** A new project gets its own file: `open_file({name})` creates and opens it. Design in the focused file only when the person points at it or it is an empty Untitled file, which you then name with `manage_resources({action: "rename", resourceId, name})`. Name pages after what they hold with `update_pages` (never leave "Page 1"). `get_basic_info` says `naming` while something is still a default.
2. **Look.** `get_basic_info` lists pages, boards, fonts and tokens. Follow what is there: the person's direction, the file's tokens and fonts, and its boards (screenshot a neighbour). Invent only what is missing. A board's `grids` in `get_basic_info`, when present, is the column structure to align to. When the file has no tokens or boards and the person gave no look, read `get_guide({topic: "taste"})` first.
3. **Direction as tokens.** For a new look, or a project with several screens, save colour, spacing, radius and type sizes with `set_tokens` before drawing, in small scales (`set_tokens` upserts: creates new tokens, updates/renames/deletes existing ones). Use shadcn semantic role names (`--background`, `--foreground`, `--card`, `--card-foreground`, `--popover`, `--popover-foreground`, `--primary`, `--primary-foreground`, `--secondary`, `--secondary-foreground`, `--muted`, `--muted-foreground`, `--accent`, `--accent-foreground`, `--destructive`, `--border`, `--input`, `--ring`, `--radius`, `--radius-*`, `--font-*`, `--spacing-*`) driven by the product's own direction so tokens port 1:1. When designing for an existing shadcn/Tailwind app, pull its `globals.css` with `import_tokens` first. `bind: true` turns matching values already on the canvas into `var(--name)`. After that, write `var(--name)`. Brand and motion rules go in the page note of a page named "System" (included automatically in `export_handoff`).
4. **Build one section per `write_html`.** `create_artboard({pageId, name, styles: {width: "1440px", height: "fit-content"}})`, then `write_html({targetNodeId, mode: "insert-children", html})` with inline CSS (HTML, not JSX).
   - Call `get_font_family_info` before the first type styling and use the weights it lists.
   - Final copy and plausible data, never placeholder text. Use `@example.com` or omit emails in mockups unless real contact info is given.
   - Images must live inside the **chort workspace** (e.g. `~/Documents/chort`, NOT your code repo), be a `data:image/...` URL, or be a public HTTPS URL — never `/private/tmp/...` scratchpads, code-repo paths outside the chort workspace, or localhost URLs.
   - Real layout (flex, gap, padding). Absolute positions only where layers overlap on purpose.
   - Page sections span the full board width, with side padding and a max-width on the content inside. Don't give a section a fixed pixel width.
   - Name every section and meaningful frame: `layer-name="Hero"`.
5. **Review each section.** The `warnings` a write returns are the design check for what it wrote: each names its fix, and "unchecked" means look yourself. Then `get_screenshot` (WebP by default, long edge capped at 1200px, max 2400px), write one line on what you saw, and fix it before the next section. For tall boards, pass `region` or screenshot individual sections.
6. **Fix in place — batch first.** Combine related edits into one call instead of looping one node at a time: `update_styles({fileId, updates: [{nodeIds, styles}]})` (ingests external `background`/`background-image` URLs automatically), `set_text_content({fileId, updates: [{nodeId, html}]})` (target text nodes, not wrapper frames), `set_image({fileId, updates: [{nodeId, src, alt}]})` (swaps image assets in place, including on component instances), `rename_nodes({fileId, updates: [{nodeId, name}]})`, or `write_html` with `mode: "replace"` (keeps IDs and works on image/video/svg/text nodes too). Don't delete and rebuild.
7. **Finish.** Run `check_design` on the whole board once. It also flags too many distinct values of one kind (`spread`), raw off-token colours (including borders), and visual style overrides on component instances (`restyle`).

## Reading

`get_tree_summary`, `get_node_info` (accepts `nodeIds` to read several nodes in one call), `get_computed_styles` (curated design properties by default; pass `properties` or `all: true` for more) and `find_nodes` inspect; `get_jsx` copies code (`resetStyles: false` by default). `write_html` returns the top-level and named nodes it made; read the rest with `get_tree_summary`. `duplicate_nodes({fileId, nodes: [{id, parentId}]})` returns each copy's `roots` entry. Read the old→new ID `map` on the response, or on each `roots` entry when sources overlap or repeat. If `mapTruncated` is true, read the copy with `get_tree_summary`. `find_nodes` `query` matches names, text and ids; match exact text with `textValue` and CSS values with `filters: [{styleName, styleValue}]` (array). If `get_jsx` returns `format: "text-chunk"`, follow `next` and concatenate the `text` values in `characterOffset` order before using the JSX.

## Components

- `create_component({nodeId})` makes a frame the main; `create_instance({componentId, parentId, x, y})` places a copy that follows it. Duplicating a main also gives an instance. Make repeated controls (nav, buttons, cards, badges) components before adding interactive states (`update_styles` with `state` requires a component).
- Edit the main to change every instance. Text, image (`set_image`) and layout/position on the instance root belong to the instance; avoid overriding visual styles on an instance (`check_design` flags them as `restyle` — edit the main, add/pick a state, or `reset_overrides`).
- The structure inside an instance is fixed. A refused edit names the main node to change; `detach_instance` makes plain layers.
- States & overrides: `update_styles` with `state` (`hover`, `pressed`, `focus`, `disabled`, or a name like `open`) writes only what changes in that state, on the main or a layer inside it. Use `manage_states` to add/remove states on a main (`action: "edit"`), preview a state on instances (`action: "pick"`), or clear overrides (`action: "reset_overrides"`). `get_jsx` exports them as real CSS.
- After a write, read `notices`: `instancesUpdated`, `overridesLost`, `instancesDetached`.

## Handoff to code

1. Once a board is approved, add what the canvas cannot show (motion, states, behaviour) with `set_notes({notes: [{id, note}]})`. Not while exploring.
2. `export_handoff({fileId, nodeId, format})` (or `export_handoff({fileId, nodeIds: [...], format})` to freeze multiple boards into one bundle with shared `tokens.css`, deduplicated `assets/`, per-board `boards/<slug>/`, and one index `HANDOFF.md`) writes the handoff folder. Pass `format: "shadcn"` for Tailwind v4 / shadcn/ui targets (outputs `:root` + `@theme inline` tokens and shadcn/`@shadcn/lint` port rules), `tailwind`, or `inline-styles`. Read `HANDOFF.md` first; its notes are requirements. Build from `board.jsx` and `tokens.css`, and ask instead of inventing what is missing.
3. Screenshot your build at the root size, compare it with `screenshot.png`, and report every difference before calling the port done.

## Also

- Comments: `list_comment_threads` (open ones by default), `get_comment_thread`, `set_comment_thread_status` (accepts `commentThreadIds` for batch resolve). Agents don't reply; the person does that in the editor.
- A superseded board goes to the Archive page with `archive_nodes`, not `delete_nodes`. Never build on the Archive page; `move_nodes` a board back first.
- `snapshot_url({url, width})` imports a live page as one static board (or `mode: "digest"` to extract measured tokens, type, palette, motion and hover diffs without editing the canvas); `compare_url({nodeId, url})` compares your built page against a board with pixelmatch.
- `import_tokens({css, bind: true})` pulls `:root`, `.dark`, `[data-theme]` or Tailwind `@theme` tokens straight from a repo; `set_tokens` also supports per-token `themes`, `deleteThemes`, and `applyTheme`. `set_notes({notes: [{id: "brief", note}]})` updates the persistent file brief (surfaced in `get_basic_info` & `HANDOFF.md`). `get_basic_info` also includes `humanChanges` when the person edited the canvas since your last call.
- `search_icons({query, prefix, limit})` (or `icons: ["lucide:arrow-right"]`) fetches cached Iconify SVGs ready for `write_html`. Pass `fitToContent: "height" | "width" | "both"` on `write_html` or `update_styles` to snap frame size to its rendered content.
- `check_design({nodeId, widths: [375, 1440]})` runs responsive multi-width checks; `get_screenshot({nodeId, state: "hover"})` or `theme: "dark"` previews without mutating the file, and `states: "all"` / `themes: "all"` renders a labeled contact sheet in one call.
- `export({nodes: {[id]: [{format: "png", scale: "2x"}]}})` or `export({combinedPdf: [id1, id2]})`; `get_tokens` returns JSON, CSS, Tailwind or shadcn (`:root` + `@theme inline`).
- `list_checkpoints` and `restore_checkpoint` recover an earlier turn. Core writes accept `expectedRev` for multi-agent conflict checks. If the person presses Stop, reads still work while writes wait for direction.
- More topics: `get_guide({topic: "media"})` for video layers, shader fills and video export; `get_guide({topic: "mobile-status-bar"})`; `get_guide({topic: "migrate-paper"})` (and `import_paper`) for migrating Paper designs.

Files in this skill

  • SKILL.md9.9 KB
  • taste.md4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.