Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

roamresearchroamresearch 搜索

Agent Skill

roamresearch 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

272

周安装

11

GitHub Stars

1

下载量

85
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:roamresearch(roamresearch 搜索)
来源仓库:https://github.com/leechael/roamresearch-skills
仓库路径:skills/roamresearch
安装命令:
npx skills add https://github.com/leechael/roamresearch-skills --skill roamresearch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/leechael/roamresearch-skills --skill roamresearch

简介

用于 Roam Research 平台的搜索与信息筛选,适合知识密集型任务。

  • 可基于关键词快速定位笔记与链接,提升信息检索效率。
  • 通过 npx 命令从 roamresearch-skills 仓库安装,路径标准。
  • 使用前应确认是否依赖 Roam 账户权限或 API 密钥。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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
search-pagesMulti-query search aggregated by page, with daily page drill-down
qRun raw datalog query
saveSave GFM markdown as a page, daily page (--to-daily-page / --today), or under a parent block; --under finds-or-creates a child block
journalRead daily journaling blocks
block findFind block UID by text on a page/daily note
block createCreate block(s) — single, nested tree, or with --attach-to
block update/delete/move/getLow-level single-block operations
batch runBatch actions from JSON array

Run roam-cli help <category> for categorized usage examples. Categories: read, write, workflow, or all.

Search Strategy

Use search-pages for broad retrieval, search for targeted lookup.

ScenarioUse this
Find pages related to a topic across the whole graphsearch-pages with multiple query args
Find specific blocks containing exact termssearch
Search within a known pagesearch --page "Page Title"

search-pages — multi-query page-level search

Each positional argument is an independent query. Terms within one argument are AND-matched (block must contain all terms). Results are deduplicated, aggregated by page, and sorted by queries matched then hit count.

# Multiple independent queries — results merged and ranked
roam-cli search-pages "SaaS 倒闭" "AI 贷款" "SaaS shutdown" -i

# With --json for structured output (pipe to rerank tools)
roam-cli search-pages "query1" "query2" -i --json

# Limit results
roam-cli search-pages "broad term" -i --limit 20

Daily page handling: Daily pages (e.g. "March 8th, 2026") are automatically drilled down to show sections instead of the whole page.

# Default: aggregate at first-level children of daily pages
roam-cli search-pages "AI 贷款" -i

# Drill deeper: aggregate at second level, filter first level by topic
roam-cli search-pages "AI 贷款" -i --daily-depth 2 --daily-topic "📖 Daily Reading"
FlagPurpose
--daily-depth NAggregation depth for daily pages (default 1)
--daily-topic TEXTFilter daily page sections at level 1 by topic text
--limit NMax results to return (0 = unlimited)
-iCase-insensitive search
--jsonStructured JSON output

Output includes ((block_uid)) for each result — use roam-cli get "((uid))" to retrieve full content with children.

Write Strategy (critical — read this first)

Minimize API calls. Every tool call costs tokens. Use the highest-level command that fits.

ScenarioUse thisNOT this
Save content to today's daily pagesave --todayjournal → parse UID → save --parent
Save content to a specific daily pagesave --to-daily-page 2026-03-14block find --dailysave --parent
Save under a section in today's daily pagesave --today --under '[[Section]]'block findblock create --parent
Save under a section in any pagesave --title "Page" --under '[[Section]]'block findblock create --parent
Save a long document/article as a pagesave --title "Page Name"Sequential block create
Create a parent with childrenblock create --parent <uid> --file tree.jsonblock create parent → block create child × N
Insert under existing sectionblock create --parent <uid> --attach-to "[[Section]]"block findblock create --parent
Multiple heterogeneous writesbatch runMultiple individual write calls
Single block, no childrenblock create --parent <uid> --text "foo"(this is fine)

block create modes

# Single block
roam-cli block create --parent <uid> --text "Hello"

# Nested tree (JSON input via file or stdin)
echo '{"text":"Root","children":[{"text":"Child"}]}' | roam-cli block create --parent <uid>
roam-cli block create --parent <uid> --file tree.json

# Attach-to: find or create a section block, then insert under it
roam-cli block create --parent <page-uid> --attach-to "[[📽 Journaling]]" --text "new item"
roam-cli block create --parent <page-uid> --attach-to "[[📽 Journaling]]" --file items.json

--attach-to finds an existing block with matching text under --parent. If not found, creates it first. Then creates the content under that block.

Daily page operations

Use --today or --to-daily-page for one-shot writes to daily pages. Do NOT manually construct Roam daily page titles like "March 14th, 2026" — the CLI handles this internally. Pages are automatically upserted (created if missing, appended to if existing).

# Save markdown to today's daily page
echo "- entry" | roam-cli save --today

# Save to a specific date
cat note.md | roam-cli save --to-daily-page 2026-03-14

# Save under a section in today's daily page (find-or-create)
echo "- journal entry" | roam-cli save --today --under '[[📽 Journaling]]'

# Save under a section in a named page
cat note.md | roam-cli save --title "Project Notes" --under '[[Tasks]]'

# Search/find on a daily page — pass ISO date, CLI auto-resolves
roam-cli search --page 2026-03-14 keyword
roam-cli block find --page 2026-03-14 --text "[[📖 Daily Reading]]"

--under finds an existing direct child block with matching text under the target page. If not found, creates it first. Then appends content under that block. This is the recommended way to write to daily page sections like [[📽 Journaling]].

Anti-patterns — do NOT do these

  • Do NOT call block create in a loop to build a tree. Use JSON input with children.
  • Do NOT fire multiple block create in parallel to the same parent. Use batch run or JSON tree input.
  • Do NOT do multi-step "find block → then create under it". Use --attach-to.
  • Do NOT do multi-step "find daily page UID → then write". Use save --today or save --to-daily-page.
  • Do NOT do multi-step "find daily page → find section → write under it". Use save --today --under '[[Section]]'.
  • Do NOT manually construct "Month DDth, YYYY" date strings. Pass ISO dates (YYYY-MM-DD) to --to-daily-page, --daily, or --page — the CLI converts them.
  • Do NOT add --stdin when piping — it's automatic.

Pipeline Support

All commands that accept input (save, block create, batch run) read from stdin by default when --file is not given. No --stdin flag needed.

echo '{"text":"root","children":[{"text":"child"}]}' | roam-cli block create --parent <uid>
cat note.md | roam-cli save --title "Page Name"
echo '[...]' | roam-cli batch run

block create JSON Input Contract

  • Requires --parent <block-uid>.
  • Accepts JSON from pipe or --file.
  • JSON supports either a single object or an array of objects.
  • Node shape: text (required), children (optional array of nodes).
  • Both text and string keys accepted (text takes precedence).
{"text": "headline", "children": [
  {"text": "point 1"},
  {"text": "point 2", "children": [{"text": "sub-point"}]}
]}

batch run Actions

Native actions (pass-through to Roam API):

  • create-block — supports children in block field (auto-expanded) and attach-to in location
  • update-block — requires block.uid and block.string
  • delete-block — requires block.uid
  • move-block — requires block.uid and location.parent-uid
  • create-page — requires page.title
[
  {"action": "create-block",
   "location": {"parent-uid": "PAGE_UID", "attach-to": "[[📽 Journaling]]", "order": "last"},
   "block": {"string": "new item under Journaling"}},

  {"action": "create-block",
   "location": {"parent-uid": "PARENT_UID", "order": "last"},
   "block": {"string": "Parent", "children": [
     {"string": "Child 1"},
     {"string": "Child 2", "children": [{"string": "Grandchild"}]}
   ]}}
]

Date Handling

The CLI auto-resolves ISO dates (YYYY-MM-DD) to Roam daily page titles wherever a page reference is expected:

FlagInputResolved to
save --to-daily-page / --today2026-03-14 / todayCreates/finds page "March 14th, 2026"
search --page2026-03-14Searches in "March 14th, 2026"
block find --page2026-03-14Finds block in "March 14th, 2026"
block find --daily2026-03-14Finds by daily page UID (existing behavior)
journal --date2026-03-14Reads daily journal (existing behavior)

Recommended Workflow

  1. roam-cli status — verify credentials.
  2. Read: get, search, search-pages, q, journal, block find.
  3. Write (pick one, in order of preference):

- Daily page content → save --today or save --to-daily-page - Daily page section → save --today --under '[[Section]]' - Long markdown → save --title - Nested blocks / attach to existing section → block create (with JSON + --attach-to) - Mixed operations → batch run - Single block → block create --text

Save Markdown (GFM format)

save accepts GFM and auto-converts to Roam blocks:

  • Do NOT include # h1 — title comes from --title or --to-daily-page
  • ##### → headed blocks (levels 4–6 capped to 3)
  • Lists → nested child blocks; ordered lists preserve marker
  • Tables → {{[[table]]}} blocks (must be valid GFM pipe+separator)
  • Code blocks, blockquotes → passed through
  • Horizontal rules → discarded

Full rules: references/gfm-format.md

Error Handling Rules

  • Missing credentials: report missing ROAM_API_TOKEN / ROAM_API_GRAPH.
  • API failures: include HTTP status code and response body.
  • Not found: 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

Run roam-cli help all or see references/usage-examples.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.29%
按下载量换算31

Claude

33.62%
按下载量换算29

Cursor

17.52%
按下载量换算15

Gemini CLI

10.19%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills