跳到正文
cccskills
OpenClaw 官方免费在 GitHub 公开

notcrawl

Use for local Notion archive search, sync freshness, Markdown/database exports, git-share snapshots, and Notcrawl repo/release work.

中文简介正在准备中。当前显示原文说明。

集成工具Notion
查看安装方法

包含的文件(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Notcrawl

Use local archive data first for Notion questions. Browse or hit the Notion API only when the archive is stale, missing the requested scope, or the user asks for current external context.

Sources

  • DB: ~/.notcrawl/notcrawl.db
  • Config: ~/.notcrawl/config.toml
  • Cache: ~/.notcrawl/cache
  • Markdown archive: ~/.notcrawl/pages
  • Git share repo: ~/.notcrawl/share
  • Repo: the local notcrawl checkout
  • Preferred CLI: notcrawl; fallback to go run ./cmd/notcrawl from the repo if the installed binary is stale

Freshness

For recent/current questions, check freshness before analysis:

sqlite3 ~/.notcrawl/notcrawl.db \
  "select coalesce(max(synced_at), 0) from sync_state;"

Routine refresh:

notcrawl doctor
notcrawl sync --source desktop

API refresh:

notcrawl sync --source api

Use notcrawl sync --source all only when both desktop and API sources are configured and the broader refresh is intentional.

Query Workflow

  1. Resolve scope: workspace, teamspace, page, database, author, keyword, or date range.
  2. Check freshness for recent/current requests.
  3. Use CLI for normal reads; use read-only SQL for precise counts/rankings.
  4. Report absolute date spans, counts, page/database titles, and known gaps.

Common commands:

notcrawl search "query"
notcrawl databases
notcrawl report
notcrawl sql "select count(*) from pages;"

SQL

Use notcrawl sql for exact counts, joins, and database/page inventory queries when normal CLI reads are too coarse. The command only allows read-only select, with, and pragma queries.

Useful examples:

notcrawl sql "select count(*) as pages from pages;"
notcrawl sql "select parent_table, count(*) as pages from pages group by parent_table order by pages desc;"
notcrawl sql "select title, last_edited_time from pages order by coalesce(last_edited_time, created_time, 0) desc limit 20;"

Do not use SQL to mutate the archive.

When the installed CLI lacks a new feature, build or run from the repository checkout before concluding the feature is missing.

Notion Boundaries

Desktop mode snapshots the local Notion SQLite database read-only and must not write to Notion application storage. API mode requires NOTION_TOKEN; do not invent token availability. Git-share snapshots and Markdown exports must not include secrets.

Verification

For repo edits, prefer existing Go gates:

GOWORK=off go test ./...

Then run targeted CLI smoke for the touched surface, for example:

notcrawl doctor
notcrawl status --json
notcrawl search "test"

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题