Skip to content
FunCoding

prismantis

Show the prismantis demo. Use when the user runs /prismantis or asks what prismantis is or does.

Star
531
Category
Diagrams
License
MIT
Last commit
Dec 1, 2026

antigravity/skills/prismantis/SKILL.md

View on GitHub

Reply with exactly the markdown between the START and END lines, nothing before or after it.

START

This is the Claude Code demo. In Antigravity, prismantis has no colors and only mermaid flowcharts and sequence diagrams are drawn; the other mermaid kinds print as source, and a figure prints as the text picture it is: see antigravity/README.md in the prismantis repo.

prismantis

Colored markdown for Claude Code replies: bold, italic, struck, inline code, a link and a bare URL https://github.com/NahumLitvin/prismantis/issues, both clickable, numbers like 99.9% and 250ms, paths like ~/src/app.ts.

Paths like ~/src/app.ts, ./README.md and /tmp/app.ts open on click in a terminal that draws hyperlinks, and so does a local link that shows its own path, like /tmp/notes.md, while slash commands like /config stay text. A local link with any other name, like notes, draws as its name and target, so it cannot hide where a click goes.

Paths written without ./, like docs/guide/ or src/app.ts:42, and Windows paths like C:\work\plan.md link too, once a check finds them on disk; prose like and/or stays text. Set fullPaths in /config and each path that opens on click shows as its absolute path.

Plain text logs keep their paths clickable:

Log written to /tmp/prismantis.log

Programs and launchers stay plain text, so a click never runs one: ./install.sh, ~/Desktop/setup.command and /Applications/Calculator.app keep the path color without a link.

Obsidian links that open a note open on click, like a note, while one that writes, like a new note, and other app links like diagnostics stay text.

Code-shaped prose stays as written: f(*args, **kwargs), a link with parentheses Foo_(bar), a file link render.tsx and bold with italic inside.

Commands

CommandDoes
/prismantisThis screen
/prismantis theme <name>Switch theme on the spot (/prismantis <name> works too), random for a new dark one now and each time the mod loads
/prismantis copyCopy the last reply, or copy code for its last code block
/prismantis setupPick a theme and how prompts, replies, tables, code blocks and tool output look, from drawn samples; /prismantis setup more goes on to diffs, tool rows, headings, tasks, bubble labels, times, pie charts, the table extras, desktop app colors, plans and Code Mode scripts
/configEdit any option

Note

19 themes ship with it. mono uses no color, only bold and dim.

Pick a theme

/prismantis theme nord
/prismantis theme github-light
/prismantis theme random
  1. Dark: catppuccin-mocha, dracula, nord, tokyo-night, gruvbox-dark, rose-pine, everforest, github-dark, one-dark, solarized-dark, neon, kanagawa-wave, morning-haze
  2. Light: catppuccin-latte, gruvbox-light, rose-pine-dawn, github-light, solarized-light
  3. Plain
    • mono

In the desktop app, set desktopColors to match and the whole Code tab takes the theme too, in light mode for a light one (Claude Code 2.1.324+).

Tip

Any color slot beats the theme. Set headingColor or numberColor to a hex value in /config.

Everything it draws

Copy tables

Use ⧉ md for Markdown, ⧉ art for chat, or ⧉ html for a formatted table. ⧉ html shows in a local macOS, Linux or Windows terminal and writes HTML and tab-separated plain text together; Linux needs CopyQ running. Pasted into Slack it makes a native table; Slack keeps cell text but drops bold, links and alignment. If that fails, it copies the plain text alone. ▣ png puts a picture of the drawn table, diagram or chart on the clipboard in the theme's colors, ready to paste into Slack, docs or slides; it shows in a local macOS or Windows terminal. The buttons draw dim and light up under the pointer; set copyButtonStyle to inline in /config for the accent color, or to hover and each block shows a dim ⧉ instead: point at it for its buttons. Set textCopyButtons to false to keep only the buttons on code, tables, diagrams and the reply. Set sectionCopyButtons to true for a ⧉ copy on each heading that copies its section, up to the next heading of its level. Set promptCopyButtons to true for a ⧉ copy under each of your prompts.

ItemQuantity1Status
Apples3Ready
Oranges5Pending

Very wide tables

Long paths and checksums never split mid-word, so a column cannot shrink below them. When those minimum widths no longer fit the reply, tableLayout auto and stacked draw the table as one card per row, and compact keeps the columns at their longest word:

ScrollChecksum
~/jade-palace/noodle-scrolls/scrolls/scroll-07-training-notes.md9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
/srv/dojo/moves.md2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae

Status matrix

When a table has a status column — the one whose cells are things like ✓, passed, failed or pending — its cells draw in theme colors: green for a pass, red for a failure, amber for a warning, gray for a wait. statusMatrix summary adds a count line under the table and group reorders rows by status with a heavy rule where the status changes:

SuiteCasesResult
Unit412✓
Propagation88failed
Smoke24pending
Regression130✓

Test report

When a table draws a run — a status column of things like ✓ or failed next to durations like 120 ms — testMatrix report adds a line under the table with how much of the run passed, a count of every other kind of result and the time all of it took. The line reuses the status colors and replaces the statusMatrix count line when both draw. The default off keeps tables as written:

CheckTimeResult
parse120 ms✓
draw4 s✓
scan130 msfailed
typeset2.6 spending

Benchmarks

When a table compares benchmarks - a column of changes like -10% or +3% beside two columns of runs - benchTable draws each change in theme colors, green for an improvement and red for a regression; timings read as lower is better unless a header speaks of req/s, throughput or a score. trend also draws a sparkline of the runs under the table, each step colored by whether it improved. The default off keeps tables as written:

BenchmarkBeforeAfterChange
parse12.4 ms11.1 ms-10%
layout19.6 ms22.4 ms+14%
paint2.1 ms0.8 ms-62%

Schema

When a table describes a database schema — a column of fields beside a column of types — schemaTable draws the type cells by their family: text types like varchar in the string color, numeric types like int in the number color, booleans in the emphasis color, time types like timestamp in the link color. keys draws the constraint cells — PK in the accent color, FK in the link color, unique and index cells in gray — and full does both. The default off keeps tables as written:

ColumnTypeKeyDefault
iduuidPK
emailvarchar(255)UNIQUE
org_idbigintFK → orgs.id
created_attimestampnow()

Comparison

When a table compares options — a column of scores beside a column of ranks — compareTable draws the rank cells as a medal: 1 in the accent color, 2 and 3 in the link color, the same pairing the schema table's PK and FK use. pick draws the score cell of the top score in the improvement green, the hue benchTable gives an improvement, and bolds it so it stands out even in a theme where that green is also the number color, and full does both. The default off keeps tables as written:

OptionScoreRank
mantis9.21
origami7.82
noodle6.13
tofu4.44

API

When a table documents an API — a method column whose cells read like HTTP verbs — apiTable draws the method cells by what the verb does: reads like GET in the link color, writes like POST in the string color, DELETE in the removed color, other verbs in gray. auth draws the scheme cells of an auth column — Bearer, OAuth, API key, JWT — in the accent color, and full does both. The default off keeps tables as written:

MethodEndpointAuthDescription
GET/v1/scrollsBearerList the scrolls
POST/v1/scrollsBearerAdd a scroll
DELETE/v1/scrolls/:idAPI keyRemove a scroll
GET/v1/healthnoneLiveness check

Key-value

When a table lists configuration — a column of options beside columns of values, sources and defaults — kvTable draws the source cells by where it says the value comes from: env in the link color, config in the string color, default in gray. overrides draws the value cell in the accent color when the row's value differs from its default, and full does both. The default off keeps tables as written:

OptionValueSourceDefault
retries5env3
formatjsonconfigjson
timeout30sdefault30s
tokenabc123envunset

Groups

When a table groups its rows — the first column whose cells repeat in runs, like a column of services or teams — groupTable draws each group once: merge labels the group in the accent color and blanks the repeats under it, count also adds the group's size to its label, and full also draws a heavy rule where one group ends and the next begins. A column of numbers never groups, and a table already grouped by status keeps its status grouping. The default off keeps tables as written:

ServiceRegionRequestsp99
apius-east1.2M84 ms
apius-west900k91 ms
workerus-east2.4M120 ms
workerus-west1.8M132 ms
cronus-east96k40 ms

Heatmap

When a table holds a matrix of numbers — a column of requests beside a column of latencies, each number carrying the same suffix down its column — heatTable draws each number by where it sits between its column's lowest and highest: color puts the lowest in the table's text color, the next in the number color, the next in the accent color and the highest in the accent color and bold, and bars also adds one block glyph after each number, ▁, ▄, ▆ or █ by the same four steps, so size reads without color. A column whose values are all equal stays as written, and a cell another table look already colored keeps that color. The default off keeps tables as written:

RegionRequestsp99
us-east120084 ms
us-west90091 ms
eu-west640120 ms
ap-south480132 ms
sa-east96140 ms

Tree

When a table nests its rows — a column of areas beside a column of services and their tasks — treeTable draws each run of a repeated first column once, in the accent color, and the rows under it as branches: branch prefixes each row with ├─ or └─, the last row of the run taking the corner, and when the next column repeats too it merges the same way and carries one │ per continuing parent before its branch, so three levels draw as a tree. full also draws a heavy rule where one top-level group ends and the next begins. A column of numbers never nests, a table already grouped by status keeps its status grouping, and stacked tables stay as they are. The default off keeps tables as written:

AreaServiceTask
coreapiboot
coreapisync
coreworkerdraw
webuipaint
webuiroute

Pivot

When a table holds metrics and periods — a column of names beside a header of quarters — pivotTable transpose draws it with rows and columns swapped, so the quarters read down the side and each metric has a column of its own, which fits a narrow terminal better than a long row. It adds no totals and no averages, so what you copy as markdown stays exactly what was written. The default off keeps tables as written:

MetricQ1Q2Q3Q4
Revenue120148162190
Cost8096101118
Margin40526172

Alerts

Important

After updating the plugin, open sessions need /reload.

Warning

Terminals that copy on select (Warp) can turn a click on a copy button into a selection. Use the keyboard shortcut. Selecting a typeset formula copies blank cells. Its copy button copies the LaTeX.

Caution

Claude Code refuses trees over 20000 nodes. A code block past about 500 highlighted lines falls back to plain text.

Task lists

  • Parse the reply
  • Draw it
    • Tables and code
    • Diagrams on the desktop app
  • Ship the next release

Set listMarker to dash in /config and bullets draw as -, so a list you select with the mouse pastes as markdown.

Your prompts

Scroll up: what you typed sits on the right under You ⬤ and Claude's replies on the left under ⬤ Claude, each in a bubble of its own, like a chat app. promptStyle switches to framed, wide, bar, chevron or off in /config, which also brings back the dot before Claude's replies; replyStyle picks solid, framed or off for Claude's side, and bubbleLabels draws both labels with a small dot or turns them off. Set clock to 24h or 12h and each prompt shows when you sent it, and each turn's last line when it finished. A paste of 4 lines or more draws in a double frame of its own, folded to one button that opens it as highlighted code.

Tool rows

Tool calls draw as one line, dimmed on the right by default, and the file each one read or edited opens on click in a terminal that draws hyperlinks. Set toolStyle in /config to chat, tree-dim, tree-bold or classic. toolOutput: quiet in /config hides what Claude only read and says in plain words what each call did: Read src/app.ts lines 1–40, Searched src/ for "TODO", and toolOutput: rows draws only the row of every call that worked. A call still running shows a still ◌; runningDot: blink makes it a ● that blinks every half second, and unreadPrompts keeps each prompt you send grey and blinking until Claude starts on it, so one queued mid-turn stands out. Set highlightOutput in /config and a tool result that is JSON, JSON lines or a diff, like an MCP server's reply or jq and git diff output, draws in the theme's code colors, a diff in its diff colors, with minified JSON pretty-printed once ctrl+o expands it. A result too large to show names its size and the file it was saved to in color, with the notes meant for Claude dimmed.

Each edit draws as a diff card headed +N −M: code highlighted in the file's language, added and removed lines on a tint of the theme's own green and red with the changed words in a deeper tint, kept readable in every theme, long lines wrapped, the first 20 lines and a +K more lines button that opens the rest, as does a click anywhere on the card. Files a shell command changes (sed -i, a script, git merge) draw one line each, like Claude Code's own summary of a big change: Updated <path> +N −M. Set shellEdits to diffs in /config to give each the same card instead, headed by its path. Set diffStyle in /config for the look: card, full, marks or bar.

In Code Mode each script Claude runs draws as a code card above the tool calls it makes, highlighted as JavaScript, with a copy button and the lines past 30 folded behind +N more lines. Set scriptStyle in /config for the look: frame, rail, bar or chip.

A file Write creates shows its first 10 lines as numbered code in the theme's colors with no diff marks, and a click on it or on +K more lines opens the rest. A file an Edit or a shell command creates shows its first 10 lines as added lines under Created. A file a shell command removes is one Deleted line that opens to its removed lines on a click, and a file moved unchanged is one Renamed old → new line.

Plans

Set planStyle in /config to bare or card and a plan you approve in plan mode draws like a reply under Claude Code's own header, tables, code and diagrams included, with a copy plan button. card frames it. A plan block in a reply draws the same way, and stays code with planStyle: off:

## Plan: retry failed uploads

| File | Change |
|:-----|:-------|
| src/upload.ts | retry 3 times with backoff |
| src/upload.test.ts | cover the retry |

```ts
const retries = 3
```

```mermaid
flowchart LR
    U[Upload] --> F{Failed?}
    F -->|yes| R[Retry]
    F -->|no| D[Done]
```

Quotes and rules

A quote keeps its text when you copy it, without the > markers.

It keeps its paragraphs and lists too:

  • bold and inline code stay styled

  • each item gets its own row

A nested quote draws inside the bar.

A line that holds only a tag draws dim, so wrapper tags show the reply's structure.

★ Insight ─────────────────────────────────────

A code span that ends in eight or more ─ glyphs, like the line above, draws its run as a thin line in the desktop app, so it never wraps.

Code

Set codeStyle in /config for the look: plain, framed, filled or card.

{ "theme": "dracula", "headingStyle": "banner", "mermaid": true }

Blocks of 10 lines or more get line numbers. Past 30 lines they fold to the first 20 and a +M more lines button, show less folds them back; ⧉ copy still copies the whole block. Set folds to open in /config and long blocks start whole instead, with show less to fold them again.

type Item = { name: string; price: number; qty: number }

const basket: Item[] = [
  { name: 'apples', price: 1.2, qty: 3 },
  { name: 'oranges', price: 0.8, qty: 5 },
  { name: 'pears', price: 1.5, qty: 2 },
  { name: 'plums', price: 2.1, qty: 4 },
  { name: 'grapes', price: 3.4, qty: 1 },
  { name: 'lemons', price: 0.6, qty: 6 },
  { name: 'melons', price: 4.0, qty: 1 },
  { name: 'cherries', price: 5.5, qty: 2 },
  { name: 'figs', price: 2.8, qty: 3 },
  { name: 'limes', price: 0.5, qty: 8 },
  { name: 'peaches', price: 1.9, qty: 4 },
  { name: 'kiwis', price: 0.9, qty: 6 },
]

const total = (items: Item[]): number =>
  items.reduce((sum, item) => sum + item.price * item.qty, 0)

const cheapest = (items: Item[]): Item | undefined =>
  [...items].sort((a, b) => a.price - b.price)[0]

const byName = (items: Item[]): Item[] =>
  [...items].sort((a, b) => a.name.localeCompare(b.name))

const receipt = (items: Item[]): string[] =>
  byName(items).map(item => `${item.name.padEnd(10)} ${item.qty} x ${item.price.toFixed(2)}`)

console.log(receipt(basket).join('\n'))
console.log('total', total(basket).toFixed(2))
console.log('cheapest', cheapest(basket)?.name)
Math

$$ \int_0^\infty e^{-x^2},dx = \frac{\sqrt{\pi}}{2} $$

Images

In kitty and Ghostty a PNG on a line of its own draws as a picture: a local path, ~/, file:// or a data: URL. Web images stay links, prismantis downloads nothing. Other terminals show the alt text in link color.

prism band

Footnotes

Latency fell to 120ms2 after the cache change3.

Click a mark to see its note. Point at a note to light the marks that cite it. Both need Claude Code 2.1.295 or later.

Diagrams
flowchart LR
    R["<i>Reply</i>"] --> P["<b>Parse</b>"]
    P --> D["<u>Draw</u>"]
    D --> S["<s>Screen</s>"]
sequenceDiagram
    participant U as You
    participant C as Claude
    participant P as prismantis
    U->>C: prompt
    C->>P: markdown
    P-->>U: colored reply
xychart-beta
    title "Color options per group"
    x-axis [text, head, num, code, diag]
    y-axis "options" 0 --> 8
    bar [7, 3, 2, 6, 2]

Name each series and the legend says which line is which:

xychart-beta
    title "Replies per hour"
    x-axis [09, 10, 11, 12, 13]
    y-axis 0 --> 40
    line "east" [30, 34, 22, 26, 31]
    line "west" [12, 18, 25, 20, 14]

A pie draws round with a legend, as a smooth picture in kitty and Ghostty. Set pieStyle to bars in /config for one bar per slice:

pie showData title Time per reply stage
    "Parse" : 3
    "Draw" : 9
    "Paint" : 5
gantt
    title Release week
    dateFormat YYYY-MM-DD
    section Build
    Parser   :p, 2026-10-05, 2d
    Renderer :r, after p, 3d
    section Ship
    Review   :after r, 2d
    Release  :milestone, 2026-10-12, 0d

A quadrant chart numbers its points and lists them under the grid:

quadrantChart
    title Feature priorities
    x-axis Low effort --> High effort
    y-axis Low impact --> High impact
    quadrant-1 Big bets
    quadrant-2 Do now
    quadrant-3 Fill-ins
    quadrant-4 Skip
    Reorder: [0.2, 0.85]
    Search: [0.8, 0.9]
    Dark mode: [0.3, 0.25]
    Localisation: [0.75, 0.4]

A mind map grows from its root to the right, one color per branch:

mindmap
    root((Release))
        Code
            Tests
            Review
        Docs
            Changelog
        Ship
            Tag
            Announce

A user journey draws its mood line across the tasks, green when it goes well and red when it hurts:

journey
    title First order
    section Find
        Search: 4: Shopper
        Compare: 3: Shopper
    section Buy
        Checkout: 1: Shopper
        Delivery: 5: Shopper, Courier

A kanban board puts its columns side by side, each card with its owner, ticket and priority:

kanban
    todo[To do]
        a[Fix login timeout]@{ assigned: 'Amy', priority: 'High' }
        b[Write release notes]@{ ticket: DOC-7 }
    doing[In progress]
        c[Dark mode]@{ assigned: 'Ken' }
    done[Done]
        d[Search filters]

A git graph runs top to bottom, one colored lane per branch:

gitGraph
    commit id: "init" tag: "v1.0"
    branch develop
    commit id: "login"
    commit id: "fix" type: HIGHLIGHT
    checkout main
    merge develop id: "release" tag: "v1.1"

A diagram wider than the terminal stays source, with a dim line saying why:

flowchart TD
    Q[Queue] --> W1[Worker 1] & W2[Worker 2] & W3[Worker 3] & W4[Worker 4] & W5[Worker 5] & W6[Worker 6] & W7[Worker 7] & W8[Worker 8] & W9[Worker 9] & W10[Worker 10] & W11[Worker 11] & W12[Worker 12] & W13[Worker 13] & W14[Worker 14] & W15[Worker 15] & W16[Worker 16]

A figure draws as written, its markup colored by role:

{dim:timeout at 10 s, handler books at 12 s, retry books again}
          {note:0 s}           {note:10 s}  {note:12 s}              {note:later}
          {accent:▏─────────────▏─────▏─────────────────▏}
Provider  {accent:██████████████}{warn:✗} timeout               {accent:█} retry
Handler   {ok:████████████████████} 200, nobody waits
Bookings  0                   {ok:1}                 {warn:2 twice}

A box whose rows slip off its frame is lined up with its corner:

{accent:┌─ queue ──────────┐}
{accent:│} {ok:● worker 1} {accent:│}
{accent:│} {warn:▲ worker 2 slow}      {accent:│}
{accent:└──────────────────┘}

END

Footnotes

  1. Counted at close. ↩

  2. Median of 50 runs. ↩

  3. Entries expire after 10m. ↩

Similar Skills

design

NEnextlevelbuilder/ui-ux-pro-max-skill157k3,225 new stars in the last 7 days

slides

NEnextlevelbuilder/ui-ux-pro-max-skill157k3,225 new stars in the last 7 days

diagram

GAgarrytan/gstack143k598 new stars in the last 7 days

Official

dating-web

NEnexu-io/open-design111k1,277 new stars in the last 7 days

Official

critique

NEnexu-io/open-design111k1,277 new stars in the last 7 days

Featured

archify

Create interactive architecture, sequence and data-flow diagrams as HTML, with PNG and SVG export.

TTtt-a1i/archify102k2,617 new stars in the last 7 days