roamresearch

Roam Research operations via roam-cli. Use this skill for page/block retrieval, search, datalog queries, markdown save, journaling lookup, and low-level block or batch writes with environment-injected credentials.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "roamresearch" with this command: npx skills add leechael/roamresearch-skills/leechael-roamresearch-skills-roamresearch

RoamResearch Skill

Use this skill to perform Roam Research read/write/query workflows through roam-cli.

Prerequisites

  • roam-cli binary in PATH
  • Environment variables: ROAM_API_TOKEN, ROAM_API_GRAPH
  • Run roam-cli status to verify before any operations

If not set up, see references/installation.md.

Command Mapping

CommandPurpose
getRead page by title or block by UID
searchSearch blocks by terms
qRun raw datalog query
saveSave GFM markdown as a page (--title) or under a parent block (--parent)
journalRead daily journaling blocks
block findFind block UID by text on a page/daily note
block create-treeCreate nested block tree from JSON
block create/update/delete/move/getLow-level block operations
batch runBatch actions (native + create-with-children DSL)

block create-tree Input Contract

  • Requires --parent <block-uid>.
  • JSON supports either a single object or an array of objects.
  • Node shape is:
    • text (required): block text
    • children (optional): nested nodes
  • CLI accepts both text and string in input JSON (text takes precedence when both are provided).

Example:

{
  "text": "Current State - 2026-02-24",
  "children": [
    {"text": "Project A", "children": [{"text": "Task 1"}]}
  ]
}

Recommended Workflow

  1. Run roam-cli status first.
  2. Prefer read commands first: get, search, q.
  3. Prefer high-level writes: save, journal.
  4. Use low-level APIs for deterministic control: block, batch.

Save Markdown (GFM format)

save accepts GFM (GitHub Flavored Markdown) and auto-converts to Roam blocks. Key rules:

  • Do NOT include # h1 — page title comes from --title
  • Headings ##### become headed blocks (levels 4–6 capped to 3)
  • Lists (-/*/+) become nested child blocks; ordered lists preserve the 1. marker
  • Tables MUST use standard GFM pipe+separator format (header row, --- row, data rows)
  • Code blocks, blockquotes passed through; horizontal rules discarded

Full conversion rules: see references/gfm-format.md

Error Handling Rules

  • Missing credentials: explicitly report missing ROAM_API_TOKEN / ROAM_API_GRAPH.
  • API failures: include HTTP status code and response body.
  • Not found: clearly include the identifier/uid that was requested.

Output Rules

  • Preserve JSON output when --json is requested.
  • Keep default output concise and readable.
  • Never invent Roam data; only report real command results.

Detailed Examples

See references/usage-examples.md for full command examples.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

api-docs

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated