Skip to content
Agent Memory
Skill

/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.

From plugin
basic-memory
4.6k32 skills5 commands1 MCP

Claude Code

$ npx -y skills add basicmachines-co/basic-memory --skill memory-comark --agent claude-code

SKILL.md

memory-comark.SKILL.md
name: memory-comark
description: "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."

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](references/components.md). Read it before using a component you have not used before.

Project scope

If the project is unknown, discover it with `bm_project_list()`. Pass a nonempty `project` on every note, folder, context and schema call, even with one project or a qualified `memory://` URL. Use the chosen project's name, `workspace/project`, or external ID; `<project>` below is a placeholder for it. Recent activity also requires `project`. Search accepts `project` for one project, `projects` for selected projects, or `all_projects=True` explicitly. Discovery and bundled manuals need no project. Keep the same scope when following returned paths, paginating, or recovering from a refusal.

Pick a component

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

| You want to show | Use | | --- | --- | | One or a few headline numbers | `bm-stat` | | A comparison of a few values | `bm-bars` | | A short ranked list | `bm-rank` | | A small data table | `bm-table` | | Progress toward a whole | `bm-meter` | | A trend without axes | `bm-spark` | | Steps that drop off | `bm-funnel` | | A task list | `bm-check` | | Work in lanes (now, next, later) | `bm-kanban` | | Events in order | `bm-timeline` | | A framed claim or summary | `bm-frame` | | A short path (`a → b → c`) | `bm-flow` | | A real graph, sequence, or state machine | a 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(identifier="<note>", view="text", project="<project>")` returns the note as a reader sees it: every component as plain Markdown, with live queries run now. Read it back after writing a

Read more
@basicmachines-co
Ships withbasic-memory

AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN

4.6k32 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.6k
Star history of basicmachines-co/basic-memory on GitHub, a chart by star-history.com

Other skills on basic-memory.

bm-decide

bm-decide

Capture a durable engineering decision in Basic Memory with rationale, alternatives, consequences, and affected work. Use when…

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

claude-mem13d116k
@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about memory-comark.

Which coding agents can use memory-comark?
memory-comark installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.