Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

blocks

БесплатноБез исполняемых скриптовНе проверен

Author Atris block documents, the live markdown docs the Atris (obelisk) editor renders, with charts, gauges, metrics, tables, and images. One doc is a…

atrislabsот atrislabs★ 71 звезда на GitHub

Об этом скилле

Atris block-creator

Author documents the Atris desktop editor renders as live blocks: charts, gauges, metric cards, tables, and images inside plain markdown. Same file is a one-pager or a deck. The only difference is slide breaks.

The whole thing is one .md file. Prose is prose. A fenced code block with a known language becomes a live visual. A --- on its own line starts a new slide.

Where things live

The renderer lives in the Atris desktop app (obelisk repo), at project-obelisk/src/lib/markdownEditorIo.cjs (engine) and renderEmbedBlockHtml in project-obelisk/src/components/AppExperience.tsx (block defs). Present mode: MarkdownPresentView.tsx. Working templates: project-obelisk/atris/decks/ (blocks-demo.md, generative-blocks.md). Validate against the engine (below): it's the source of truth, no app needed.

Doc shape

  • One-pager: no ---. Just headings, prose, and blocks. Scrolls.
  • Deck: --- alone on a line between slides. Present mode splits on it; export makes a PDF.
  • A leading ---...--- frontmatter block is skipped by the slide splitter, so it's safe.

The blocks

Each is a fenced code block. The body must be valid JSON. Invalid JSON silently falls back to a plain code block (no error), so validate. Colors/accents are hex strings.

metric: a stat card

{"label":"MRR from paying customers","value":"$20K+","accent":"#f0a13a"}

label, value (string), optional accent. Put several in a row; they stack as cards.

gauge: a ring toward a target

{"title":"Ledger reconciled","value":100,"max":100,"caption":"ties back to the board, to the penny"}

title (or label), value, max, optional caption, accent.

chart: line / bar / area / donut

Single series (friendly data form):

{"kind":"bar","title":"Weekly active sessions","data":[{"label":"W1","value":12},{"label":"W2","value":19},{"label":"W3","value":27}]}

Multiple series (line, with colors, great for "rent rises vs own falls"):

{"kind":"line","title":"Cost per unit of work","series":[{"name":"Rent","color":"#d16a5a","points":[{"label":"Y1","value":40},{"label":"Y2","value":88}]},{"name":"Own","color":"#3f9668","points":[{"label":"Y1","value":38},{"label":"Y2","value":12}]}],"caption":"same work, opposite curves"}

Donut (first series' points become slices; center shows the total):

{"kind":"donut","title":"Jobs on the live board","data":[{"label":"Credited","value":337},{"label":"Open","value":241}]}

kind: line | bar | area | donut. Points are {"label","value"}. Optional unit, caption. A chart with no points renders nothing, so always include data.

table: an editable grid

Plain GFM. Renders as a clean grid, round-trips verbatim. First column can be a blank header for a comparison.

| | Rent | Own |
| --- | --- | --- |
| Price | Set by the landlord | You control it |
| Data | Their building | Your walls |

image: a picture

{"url":"https://...","alt":"..."}

A data: or https: URL renders immediately. Without one, the editor shows a placeholder and generates (non-deterministic, so don't rely on generation for something you're about to present).

ask: an embedded AI answer

{"output":"the answer, as markdown"}

Renders output as prose. Authored by the editor's in-app AI; rarely hand-written.

Gotchas (these cost real time)

  • No side-by-side columns by hand. md-cols only parses as a single unbroken line and breaks the moment you add newlines/bullets. Use a table for comparisons. Columns are a UI-only construct.
  • Invalid JSON = silent fallback to a code block. No error is thrown. Validate.
  • A chart needs data points or it renders empty.
  • Raw HTML is sanitized: inline style= and <style>/<script> are stripped. You cannot brand a doc with custom CSS; it wears the editor's theme. Design with the blocks, not CSS.
  • --- is a hard slide break. A stray --- inside a slide splits it. GFM table delimiters (| --- |) are safe.

Validate before you trust it

Run the doc through the real engine, no app needed. This auto-finds obelisk's engine from any project in the workspace:

node -e '
const fs=require("fs"),path=require("path");
const eng=["./src/lib/markdownEditorIo.cjs","../project-obelisk/src/lib/markdownEditorIo.cjs",process.env.HOME+"/arena/project-obelisk/src/lib/markdownEditorIo.cjs"].map(p=>path.resolve(p)).find(fs.existsSync);
if(!eng){console.error("obelisk engine not found");process.exit(2);}
const io=require(eng), md=fs.readFileSync(process.argv[1],"utf8");
const slides=io.splitIntoSlides(md);
console.log("slides:",slides.length);
slides.forEach((s,i)=>{
  const b=io.parseMarkdownBlocks(s);
  const live=b.filter(x=>["chart","gauge","metric","image","ask"].includes(x.lang||""));
  const ok=live.length? /data-md-block/.test(io.blocksToHtml(b)) : true;
  console.log((i+1)+".",(s.match(/^#+ (.*)/m)||[])[1]||"", live.
Полный SKILL.md на GitHub

Установить blocks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл blocks?

Author Atris block documents, the live markdown docs the Atris (obelisk) editor renders, with charts, gauges, metrics, tables, and images. One doc is a beautiful one-pager; add slide breaks and it presents as a deck. Use when creating or editing an Atris doc, deck, one-pager, report, or anything opened in the Atris markdown editor.

Как установить скилл blocks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл blocks запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить blocks с