MCPInstall

memory-comark

Write Basic Memory notes that render as charts, tables, boards, and live views with ::bm- Comark components. Use when a note reads better as a figure or board, or already has ::bm- directives.

Installs
133
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/basicmachines-co/basic-memory --skill memory-comark
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads memory-comark automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Memory Comark

Basic Memory notes can carry small, safe components written as Comark block directives (::bm-bars{...} … ::). Basic Memory Cloud draws them in Notes, the Wiki, and shared pages. Everywhere else (a local editor, GitHub, an agent's raw read) the same Markdown still reads as an ordinary list, table, or paragraph, so a component never hides content.

Use a component when its shape says more than a sentence or a list would. Keep prose primary: one figure per idea, at most two per section, with a sentence between them that says what the figure shows.

The full vocabulary, every prop, and every data grammar are in references/components.md. Read it before using a component you have not used before.

Pick a component

Most notes need only these. The reference has the rest (39 in total).

You want to showUse
One or a few headline numbersbm-stat
A comparison of a few valuesbm-bars
A short ranked listbm-rank
A small data tablebm-table
Progress toward a wholebm-meter
A trend without axesbm-spark
Steps that drop offbm-funnel
A task listbm-check
Work in lanes (now, next, later)bm-kanban
Events in orderbm-timeline
A framed claim or summarybm-frame
A short path (a → b → c)bm-flow
A real graph, sequence, or state machinea fenced ```mermaid block (not a component)

If nothing fits, write prose or a plain Markdown table. Never invent a component: an unknown name such as ::bm-pie is not drawn and shows as raw text.

Write a component

Every component opens with ::bm-name{attributes} on its own line and closes with :: on its own line.

The queue rewrite more than doubled steady-state throughput.

::bm-bars{title="Throughput" caption="Before and after the queue rewrite"}
- Before: 42/s
- **After: 96/s**
::

Rules that matter:

  • Data goes in the body as Markdown, not in an attribute: - label: value rows, a table for grids. Bold marks the current or chosen row, italic recedes, — note adds a side note.
  • Attribute values are double-quoted and cannot contain ". There is no escape. Inside a query, quote phrases with single quotes: query="search 'queue rewrite'".
  • Task state stays in Markdown. Use - [ ] and - [x] inside bm-check and bm-kanban; people can tick boxes from the rendered note.
  • Never put HTML, scripts, styles, or classes in a note, and never wrap a component in a code fence (a fenced block stays literal code).
  • Use only registered props. An unknown attribute produces prop-unknown in a warning frame with the original source and registered props; it is never silently dropped.

A checklist and a board:

::bm-check{title="Launch"}
- [x] Freeze the schema
- [ ] Write the migration note — due Friday
::

::bm-kanban{title="Roadmap"}
### Now
- **Billing page**
- [ ] Usage emails

### Next
- *Partner portal*
::

Live views over the knowledge base

A component with a query attribute shows current data from the project it lives in. Prefer a live view to a hand-copied number when the note describes its own knowledge base, because copied counts go stale.

::bm-stat{label="Open decisions" query="notes | where type == decision and status == open | count"}
::

::bm-bars{title="Open decisions by owner" query="notes | where type == decision and status != done | group owner | sort count desc"}
::

::bm-table{title="Due soon" query="notes | where tags contains infra and due < 2026-10-15 | fields title, owner, due | sort due"}
::

::bm-timeline{title="Recent edits" query="activity 7d"}
::

::bm-rank{title="Related notes" query="search 'checksum conflict' | limit 5"}
::

A pipeline reads left to right: a source (notes, search 'phrase', activity 7d|30d), then optional stages in order: where, group, count or sum field, fields, sort, limit (1–50). The reference lists every operator and which components accept which shapes.

Shapes that work:

  • Charts, ranks, and bars need a number per row: add group field, count, or sum field, or use a search source.
  • Sparks, KPIs, and plots need several rows (group, daily, or search), not a single count.
  • bm-table takes fields; bm-timeline takes activity without daily; bm-activity takes activity 30d | daily.

Semantics to state honestly in the surrounding prose:

  • notes views are exact counts over indexed frontmatter. Search views are ranked and bounded; call them matches, never "all".
  • != keeps notes that lack the field. group puts notes without the field in a none group.
  • Frontmatter numbers are stored as text; comparisons and sums treat decimal text as numbers and ignore everything else.

Check the rendered result before you quote it

In Basic Memory Cloud, bm_read(view="text") returns the note as a reader sees it: every component as plain Markdown, with live queries run now. Read it back after writing a live view and confirm the view has rows before you state a number in prose. A query over a field no note has renders an empty view.

Elsewhere, only the browser runs the query, so run the equivalent read yourself (for example bm_search with metadata filters; see the memory-metadata-search skill).

A live chart's body is its snapshot: the rows readers see when live data cannot load. A new live view can leave the body empty; people fill it with Freeze snapshot in the editor. If you add snapshot rows yourself, label them as a snapshot in prose and keep them in the chart's row grammar.

Edit a note that already has components

  • Change one component with bm_edit (find_replace on its directive line or rows). Do not rewrite the whole note to change one value.
  • The rich editor normalizes formatting when a person edits the note: attribute order changes and YAML blocks come back as JSON. Values survive; do not fight the formatting.
  • Keep the closing :: lines. A block with a body but no close produces directive-unclosed; the opener and YAML props appear in a warning while following Markdown stays visible. Add the close at the intended boundary in source; the editor never guesses it. Standalone leaves with no body remain valid, though new components should use explicit closes.

When a component shows an error

A broken component renders a coded problem and a fix inside its own frame; the rest of the note still renders. In Basic Memory Cloud, bm_write and bm_edit list these problems under Component problems in their result (they never block the write), so fix them right away with bm_edit. comark(7) in the manual (memory://man/comark(7)) is a quick reference to the syntax and codes. The codes you will meet most:

CodeMeaningFix
prop-unknownA prop the component does not acceptRemove it or use a registered prop from the warning or reference
directive-unclosedA block with a body is missing its closeAdd :: at the intended boundary in Markdown source
query-measureThe chart has no number per rowAdd group, count, or sum, or use search
query-seriesA trend from one valueUse group, daily, or search with limit ≥ 2
query-escaped-quote\" inside a queryUse single quotes inside the query
query-field / query-operatorBad field name or operatorFields are [A-Za-z0-9_-] with dotted paths; ops are == != < <= > >= contains
query-stage-orderStages out of orderwhere, group, count/sum, fields, sort, limit
chart-body-emptyNo rows in the bodyAdd - label: value rows
chart-body-numberA row without a numberEvery row needs a numeric value

Unknown props preserve the original directive and data through nearby rich edits. Closed malformed components can use a reviewed agent replacement and undo; missing-close repairs require source editing. Canonical validation and strict export reject malformed source until repaired. Never author internal recovery nodes such as bm-problem. Check component names and props against the reference.

Checklist

  1. Does a figure beat a sentence here? If not, write the sentence.
  2. Is the component name and every prop in the reference?
  3. Is data in the body as Markdown rows or a table, with no " inside values?
  4. For a live view: does the pipeline give the shape this component needs, and did you check the numbers with a read of your own?
  5. Is there prose around the figure saying what it shows and whether a count is exact or a ranking?

FAQ

What does the memory-comark skill do?

Write Basic Memory notes that render as charts, tables, boards, and live views with ::bm- Comark components. Use when a note reads better as a figure or board, or already has ::bm- directives.

How do I install memory-comark?

Run npx skills add https://github.com/basicmachines-co/basic-memory --skill memory-comark in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/memory-comark/ (personal) or .claude/skills/memory-comark/ (project).

Which AI agents can use memory-comark?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is memory-comark safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains memory-comark?

It is published by basicmachines-co in basicmachines-co/basic-memory. It has 133 recorded installs.

More from basicmachines-co/basic-memory

View all →

memory-notes

basicmachines-co/basic-memory

How to write well-structured Basic Memory notes: frontmatter, categorized observations, wiki-link relations, and knowledge-graph best practices. Use when creating or improving notes.

Docs & Writing1.3K installs

memory-continue

basicmachines-co/basic-memory

Resume prior work by rebuilding context from the Basic Memory graph via memory:// URLs, recent activity, and search. Use at session start or on 'continue with...', 'back to...', 'where were we?'

1.3K installs

memory-capture

basicmachines-co/basic-memory

Capture a working thread's current state into one coherent Basic Memory note; on re-capture, rewrite it in place. Use mid- or end-of-thread when decisions, insights, or context are worth keeping.

1.3K installs

memory-curate

basicmachines-co/basic-memory

Curate the Basic Memory graph: link orphan notes, propose typed relations, merge duplicates, audit tags and folders, build hub notes. Use to organize and connect a knowledge base as notes accumulate.

Docs & Writing1.3K installs

memory-reflect

basicmachines-co/basic-memory

Sleep-time reflection: review recent Basic Memory activity and fold lasting decisions, lessons, and facts into the notes they belong in. Run 1-2x daily, on a heartbeat, or when asked.

memory-metadata-search

basicmachines-co/basic-memory

Search Basic Memory notes by custom frontmatter fields with equality, range, array, and nested filters. Use when finding notes by status, priority, confidence, or any YAML field, not free text.

Docs & Writing1.2K installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs