Get笔记

v1.8.0

Get笔记 - 保存、搜索、管理个人笔记和知识库。 **当以下情况时使用此 Skill**: (1) 用户要保存内容到笔记:发链接、发图片、说「记一下」「存到笔记」「保存」「收藏」 (2) 用户要搜索或查看笔记:「搜一下」「找找笔记」「最近存了什么」「看看原文」 (3) 用户要管理知识库或标签:「加到知识库」「建...

50· 16.6k·55 current·55 all-time
byGet笔记@iswalle

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for iswalle/getnote.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Get笔记" (iswalle/getnote) from ClawHub.
Skill page: https://clawhub.ai/iswalle/getnote
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install iswalle/getnote

ClawHub CLI

Package manager switcher

npx clawhub@latest install getnote
Security Scan
Capability signals
Requires OAuth tokenRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, SKILL.md, package.json, and the two helper scripts all target the same service (openapi.biji.com) and features (save/search/tags/knowledge). The optional environment variables (GETNOTE_API_KEY, GETNOTE_CLIENT_ID, GETNOTE_OWNER_ID) are appropriate for an API-based note service and there are no unrelated credentials or binaries requested.
Instruction Scope
SKILL.md instructs the agent to call only the documented openapi.biji.com endpoints and to run two small helper scripts for OAuth polling and image upload. A notable operational behavior: the skill will automatically initiate the OAuth device flow and start background polling for the token after showing the user the verification link/code. This is within the scope of 'connect/configure' but is an active behavior the user should expect. The instructions also direct writing the obtained API key into ~/.openclaw/openclaw.json (explicit in docs).
Install Mechanism
This is instruction-first (no install spec), so nothing will be downloaded/installed automatically. Two local Python scripts are included. They assume Python is available; upload_image.py requires the third-party 'requests' package (the script will fail with guidance to install it). No remote arbitrary downloads, shorteners, or unknown hosts are used in install steps.
Credentials
Only service-specific credentials are listed as optional (GETNOTE_API_KEY, GETNOTE_CLIENT_ID, GETNOTE_OWNER_ID). SKILL.md explicitly checks for the API key before calling the API and prompts configuration if absent. No broad or unrelated secrets/config paths are requested. The skill will write the API key into the agent config file if the OAuth flow completes (documented).
Persistence & Privilege
The skill does not request always:true and follows the normal autonomous-invocation model. It does document and expect writing credentials into ~/.openclaw/openclaw.json after OAuth; this modifies the agent's skill configuration (normal for an API-integrated skill) and is clearly documented. The OAuth polling runs in background as part of the normal flow—users should be aware the agent will poll the token endpoint until completion or timeout.
Assessment
This skill appears coherent and focused on the biji/openapi service. Before installing: (1) Understand that to work it needs an API key (GETNOTE_API_KEY) or you will be guided through an OAuth device flow — the agent will display a verification link/code and begin background polling for approval. Verify the displayed user_code on the authorization page before approving. (2) If OAuth succeeds the skill will write credentials into ~/.openclaw/openclaw.json (documented behavior); if you prefer not to store keys, configure env vars manually instead. (3) The included scripts require Python and upload_image.py uses the 'requests' package — the environment must provide these. (4) Do not paste your API key into chat; follow the documented config or OAuth flow. If any of these behaviours are unacceptable (automatic background polling, writing to the agent config), do not install or configure the skill.

Like a lobster shell, security has layers — review code before you run it.

latestvk97fak7qp6a74wkyhabm08yf7s85dzm9
16.6kdownloads
50stars
30versions
Updated 1d ago
v1.8.0
MIT-0

Get笔记 Skill

⚠️ Agent 必读约束

🌐 Base URL

https://openapi.biji.com

所有 API 请求必须使用此 Base URL,不要使用 biji.com 或其他地址。

🔑 认证

请求头:

  • Authorization: $GETNOTE_API_KEY(格式:gk_live_xxx
  • X-Client-ID: $GETNOTE_CLIENT_ID(格式:cli_xxx

每次调用 API 前先检查 $GETNOTE_API_KEY 是否存在。若不存在,提示用户运行 /note config 完成配置,配置完成后再继续执行用户原本的请求。

Scope 权限:note.content.read(读取)、note.content.write(写入)、note.recall.read(搜索)。完整列表见 references/api-details.md

🔢 笔记 ID 处理规则(重要!)

笔记 ID 是 64 位整数(int64),超出 JavaScript Number.MAX_SAFE_INTEGER,直接 JSON.parse静默丢失精度

正确做法:始终把 ID 当字符串处理,在 JSON.parse 之前替换:

const safe = text.replace(/"(id|note_id|parent_id|follow_id|live_id)"\s*:\s*(\d+)/g, '"$1":"$2"');
// 注:next_cursor 已不需要处理,翻页请直接使用响应中的 cursor(string)字段
const data = JSON.parse(safe);

Python / Go 等语言原生支持大整数,无此问题。

🔒 安全规则

  • 笔记数据属于用户隐私,不在群聊中主动展示笔记内容
  • 若配置了 GETNOTE_OWNER_ID,检查 sender_id 是否匹配;不匹配时回复「抱歉,笔记是私密的,我无法操作」
  • API 返回 error.reason: "not_member" 或错误码 10201 时,引导开通会员:https://www.biji.com/checkout?product_alias=6AydVpYeKl
  • 创建笔记建议间隔 1 分钟以上,避免触发限流

指令路由表

匹配指令后,用 read 工具读取对应的 references/xxx.md 获取完整 API 文档。

指令角色说明详细文档
/note save 或「记一下」📝 速记员保存文本/链接/图片笔记(含异步轮询流程)references/save.md
/note search 或「搜一下」🔍 搜索官全局语义搜索 + 知识库语义搜索references/search.md
/note list 或「最近的笔记」📋 整理师浏览列表、查看详情、更新、删除references/list.md
/note kb 或「知识库」📚 图书管理员知识库 CRUD + 博主订阅 + 直播订阅references/knowledge.md
/note tag 或「加标签」🏷️ 标签员添加/删除标签references/tags.md
/note config 或「配置笔记」⚙️ 配置配置 API Key 和 Client IDreferences/oauth.md

自然语言路由

包含 URL(`biji.com/note/share_note/*` 或 `d.biji.com/*` 短链)  → /note save(link 模式,同步返回 note_id)
包含 URL(`biji.com/note/{note_id}` 内链)    → /note list(查看详情),如需在正文引用其他笔记请使用 `https://biji.com/note/{note_id}` 格式内链;若笔记会被分享则调用分享接口替代
其他 URL                   → /note save(link 模式,异步返回 task_id)
包含图片                    → /note save(image 模式)
「记/存/保存/收藏」          → /note save(text 模式)
「搜/找找/有没有 XX」        → /note search
「最近/列表/看看/查笔记」    → /note list
「改/更新/编辑笔记」         → /note list(更新笔记)
「知识库」相关              → /note kb
「标签」相关                → /note tag
「配置/授权/连接笔记」       → /note config

决策原则:优先匹配最具体的意图。有 URL 就是 /save link,有图片就是 /save image,不确定时询问用户。


API 路由表

⚠️ 构造请求时必须使用下表中的完整路径,Base URL 为 https://openapi.biji.com。如果收到 404,说明路径不对,请对照此表检查。

笔记

方法路径说明详细文档
POST/open/api/v1/resource/note/save新建笔记(文本/链接/图片)save.md
POST/open/api/v1/resource/note/task/progress查询异步任务进度save.md
GET/open/api/v1/resource/note/list笔记列表(分页)list.md
GET/open/api/v1/resource/note/detail笔记详情list.md
POST/open/api/v1/resource/note/update更新笔记list.md
POST/open/api/v1/resource/note/delete删除笔记list.md
POST/open/api/v1/resource/note/sharing创建笔记分享链接list.md
POST/open/api/v1/resource/note/tags/add添加标签tags.md
POST/open/api/v1/resource/note/tags/delete删除标签tags.md
GET/open/api/v1/resource/image/upload_token获取图片上传凭证save.md

搜索

方法路径说明详细文档
POST/open/api/v1/resource/recall全局语义搜索search.md
POST/open/api/v1/resource/recall/knowledge知识库语义搜索search.md

知识库

方法路径说明详细文档
GET/open/api/v1/resource/knowledge/list我的知识库列表knowledge.md
GET/open/api/v1/resource/knowledge/subscribe/list订阅知识库列表knowledge.md
POST/open/api/v1/resource/knowledge/create创建知识库knowledge.md
GET/open/api/v1/resource/knowledge/notes知识库笔记列表knowledge.md
POST/open/api/v1/resource/knowledge/note/batch-add添加笔记到知识库knowledge.md
POST/open/api/v1/resource/knowledge/note/remove从知识库移除笔记knowledge.md
GET/open/api/v1/resource/knowledge/bloggers知识库博主列表knowledge.md
GET/open/api/v1/resource/knowledge/blogger/contents博主内容列表knowledge.md
GET/open/api/v1/resource/knowledge/blogger/content/detail博主内容详情knowledge.md
GET/open/api/v1/resource/knowledge/lives知识库直播列表knowledge.md
GET/open/api/v1/resource/knowledge/live/detail直播详情knowledge.md
POST/open/api/v1/resource/knowledge/live/follow关注直播knowledge.md

通用错误处理

{
  "success": false,
  "error": {
    "code": 10001,
    "message": "unauthorized",
    "reason": "not_member"
  },
  "request_id": "xxx"
}
错误码说明处理方式
10000参数错误检查请求参数
10001鉴权失败检查 API Key 和 Client ID,或重新授权
10100数据不存在确认笔记/知识库 ID 正确
10201非会员引导开通:https://www.biji.com/checkout?product_alias=6AydVpYeKl
10202QPS 限流降低频率,查看 rate_limit 字段
30000服务调用失败稍后重试
50000系统错误稍后重试

详细错误码和限流结构见 references/api-details.md

Comments

Loading comments...