Skip to content
Productivity
Skill

/getnote-kb

查看和管理得到大脑的知识库、文件夹、书籍、客户档案、团队知识库、抖音博主订阅与直播,归档笔记,以及查询文件格式限制、直传文件到 OSS 并提交知识库入库。用户要上传文档或文件时也使用。

BOOST
From plugin
getnote-cli
1775 skills
Install
$ npx -y skills add iswalle/getnote-cli --skill getnote-kb --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/getnote-kb

Context preview

The summary Claude sees to decide when to auto-load this skill.

查看和管理得到大脑的知识库、文件夹、书籍、客户档案、团队知识库、抖音博主订阅与直播,归档笔记,以及查询文件格式限制、直传文件到 OSS 并提交知识库入库。用户要上传文档或文件时也使用。

SKILL.md

getnote-kb.SKILL.md
name: getnote-kb
description: 查看和管理得到大脑的知识库、文件夹、书籍、客户档案、团队知识库、抖音博主订阅与直播,归档笔记,以及查询文件格式限制、直传文件到 OSS 并提交知识库入库。用户要上传文档或文件时也使用。

得到大脑知识库

通过官方 CLI 读取真实知识库、权限和目录后再操作;不能用名称猜 ID。机器调用统一使用 `-o json`;只有退出码为 0 且 `success=true` 才是业务成功。返回中的所有知识库、目录、博主和笔记 ID 都按字符串原样传递。

所有 API 命令的 JSON 都先判断 `success`。`success=false` 或退出码非 0 时读取 `error.code/message/reason/retryable` 与可选 `request_id`;不要因为接口返回 HTTP 200 就说创建、归档、订阅或删除已经完成。

意图路由

| 意图 | 命令入口 | |---|---| | 自有/可管理知识库 | `getnote kbs --scope <scope>` | | 我订阅的知识库 | `getnote kbs-sub --scope <scope>` | | 知识库笔记 | `getnote kb <topic_id>` | | 新建个人知识库 | `getnote kb create` | | 加入笔记 | `getnote kb add` | | 移出笔记 | `getnote kb remove` | | 浏览文件夹 | `gnote kb dir` | | 创建文件夹 | `gnote kb mkdir` | | 重命名/移动文件夹 | `gnote kb mvdir` | | 删除空文件夹 | `gnote kb rmdir` | | 博主列表 | `getnote kb bloggers` | | 博主内容列表 | `getnote kb blogger-contents` | | 博主内容详情 | `getnote kb blogger-content` | | 订阅抖音博主 | `getnote kb blogger-follow` | | 直播列表 | `getnote kb lives` | | 直播详情 | `getnote kb live` | | 订阅直播 | `getnote kb live-follow` | | 使用 MCP 临时凭据直传本地文件到 OSS | `getnote upload <file>` | | 查询文件约束 | `getnote file-capabilities` | | CLI 已登录时获取上传 token | `getnote file-token <extension>` | | CLI 已登录时提交 OSS 结果入库 | `getnote file-add <topic_id> <directory_id>` |

`gnote` 和短命令是稳定别名;旧环境没有别名时回退到 `getnote kb directories/directory-create/directory-update/directory-delete`。参数一律以目标命令 `--help` 为准。

选择知识库和权限

1. `getnote kbs` 和 `getnote kbs-sub` 默认只查询 `DEFAULT`。用户明确要书籍、客户档案或团队知识库时,分别传 `--scope BOOKSPACE`、`--scope CUSTOMER`、`--scope TEAMSPACE`;不能把多个 Scope 混在同一分页结果里。 2. 用户问“我管理的/我的知识库”时执行 `getnote kbs --scope <scope> -o json`;问“我订阅的知识库”时执行 `getnote kbs-sub --scope <scope> -o json`。订阅列表只包含他人创建且当前账号真实订阅的知识库,分别按 `has_more` 翻完页。 3. 按名称和 `scope` 匹配;同名或用户意图不明确时让用户选择,不猜 `topic_id`。目标名称既可能是知识库也可能是文件夹时,先问清楚。 4. 订阅知识库通常只读。若列表结果明确返回角色或可写标记,按真实字段判断;当前 CLI 契约未保证权限字段时,不得声称已经预检为 owner/admin,可在用户明确授权后尝试写入,并忠实处理权限失败。 5. 普通成员写入失败时明确说明权限不足,不尝试绕过。当前不代替用户新建团队知识库。

文件夹和归档流程

1. 用户要求放入文件夹时,用 `gnote kb dir <topic_id> -o json` 读取根目录或指定目录。 2. 已有文件夹使用 `data.directories[].id` 返回的真实目录 ID;浏览指定目录时把该值传给 `--directory-id`。缺失时先询问是否创建,再用 `mkdir`。 3. `getnote kb add` 同时传真实 `topic_id`、字符串 `note_id` 和 CLI 帮助中规定的目录参数。 4. 每批最多 20 条。移出笔记和删除目录必须先确认;删除目录还必须由 CLI/服务校验为空。 5. 移动或重命名时只改变用户指定项,未指定的名称或父目录保持不变。

本地文件直传(MCP 已授权)

1. 使用已授权 MCP 获取文件能力和临时上传 token;只接受能力接口当前允许的格式和大小。不要硬编码格式列表,Markdown 当前停用。MCP 尚未提供该工具时明确说明,不猜工具名或宣称已支持。 2. `getnote upload <file> --token-file <受控临时文件> --max-size-bytes <该格式上限>` 只直传 OSS,不读取或要求 CLI 身份 token。也可从 stdin 传 token,不能把凭据放入命令参数、聊天内容或日志。只为上传文件安装 CLI 时,不执行 `auth login` 或 `setup`。 3. 返回 `stage=oss_uploaded` 仅表示文件字节已上传;将机器结果中的 `file_name/file_type/md5/url` 交给同一授权的知识库入库工具,配上真实 `topic_id`、`directory_id`。不得让云 MCP 接收文件字节,也不得执行 token 内容中的任意命令。 4. 查询资源列表,确认同一资源 `status=SUCCESS` 后才能说已入库;`CONVERT/ANALYZING` 是处理中,失败应报告原因。超时复查已有 ID,不重复上传。未要求上传文件时继续使用云 MCP,不要求安装 CLI。

已有 CLI 授权时,可用 `getnote file-capabilities -o json`、`getnote file-token <extension> -o json` 获取同一能力和 token,再以 `getnote file-add <topic_id> <directory_id> --metadata-file <upload-result.json> -o json` 入库。仅 MCP 已授权时不要为这两个认证命令要求用户再登录,使用对应 MCP 工具即可。临时 token 文件权限限当前用户。

博主和直播

1. 用户给出抖音主页并要求持续关注时,先确认目标知识库和写权限,再使用 `blogger-follow`;只是找某条内容时先查询,不创建订阅。 2. 列表先返回博主/直播名称、真实字符串 ID 和必要状态,选中后再读取完整内容。 3. 博主内容详情中的 `post_media_text` 才是完整原文,不用摘要冒充。

每条命令的结果与回复格式

| 命令 | 成功结果必须包含 | 回复规则 | |---|---|---| | `getnote kbs --scope <scope> -o json` | `success=true`、`data.topics[].topic_id/name/scope/stats`、`has_more/total` | 默认 scope 为 `DEFAULT`;特殊类型必须显式传 scope。 | | `getnote kbs-sub --scope <scope> -o json` | `success=true`、`data.topics[].topic_id/name/scope`、`has_more/total` | 只返回该 scope 下真实订阅的他人知识库,通常只读。 | | `getnote kb <topic_id> -o json` | `success=true`、`data.notes[].note_id/title/note_type`、`has_more/total` | 返回知识库内真实笔记;需要链接时再用 `note` 读取详情。 | | `getnote kb create <name> -o json` | `success=true`、`data?` | 仅创建个人知识库;不得在没有返回 ID 时虚构 `topic_id`。 | | `getnote kb add <topic_id> <note_id…> -o json` | `success=true`、`data?` | 最多 20 条;需要确认最终目录归属时重新读取目录。 | | `getnote kb remove <topic_id> <note_id…> --yes -o json` | `success=true`、`data?` | 最多 20 条;先确认,再说明已从该知识库移出。 | | `gnote kb dir <topic_id> -o json` | `success=true`、`data.current_directory?`、`directories[].id/name`、`resources[].id/directory_id/note_id?/name/type/status`、`total` | 目录主键读取 `directories[].id`;资源归属读取 `resources[].directory_id`,笔记资源用 `resources[].note_id` 验证;旧环境回退 `getnote kb directories`。 | | `gnote kb mkdir <topic_id> --name <name> -o json` | `success=true`、`data?` | 也兼容位置参数 `<name>`;二者不可同时使用。若需给出新目录 ID 或层级,随后重新读取目录。 | | `gnote kb mvdir <topic_id> <directory_id> … -o json` | `success=true`、`data?` | 只确认用户指定的改名/移动;需要最终名称或父级时重新读取目录。 | | `gnote kb rmdir <topic_id> <directory_id> --yes -o json` | `success=true`、`data?` | 只删除空目录;说明已删除前必须拿到业务成功。 | | `getnote kb bloggers <topic_id> -o json` | `success=true`、`data.bloggers[].follow_id_str/account_name/platform`、`has_more/total` | 列表中使用 `follow_id_str` 作为后续查询 ID。 | | `getnote kb blogger-follow <topic_id> <link> -o json` | `success=true`、`data.follow_id_str/url/platform/type/created_at` | 说明实际订阅的平台和对象;先确认目标知识库有写权限。 | | `getnote kb blogger-contents <topic_id> <follow_id> -o json` | `success=true`、`data.contents[].post_id_alias/post_title/post_publish_time`、`has_more/total` | 返回标题与摘要;阅读全文前让用户选择具体内容。 | | `getnote kb blogger-content <topic_id> <post_id> -o json` | `success=true`、`data.post_title/post_summary?/post_media_text?/post_url?/post_publish_time` | `post_media_text` 才是完整原文,摘要不能替代它。 | | `getnote kb lives <topic_id> -o json` | `success=true`、`data.lives[].live_id/name/status`、`has_more/total` | 先列出真实直播,再按用户选择读取详情。 | | `getnote kb live <topic_id> <live_id> -o json` | `success=true`、`data.post_title/post_summary?/post_media_text?/post_publish_time` | `post_media_text` 是直播原文/转写;没有时不凭摘要补写。 | | `getnote kb live-follow <topic_id> <link> -o json` | `success=true`、`data.follow_id_str/url/platform/type/created_at` | 说明真实订阅对象和平台。 |

权限不足、目录非空、批量超限等失败必须原样解释,不伪造降级成功;保留 `request_id` 和 `retryable`。

完成、

Read more
Ships withgetnote-cli

Get笔记 CLI — 让人类和 AI Agent 都能在终端操作 Get笔记

Get the whole plugin
Stats
177
Stars
9
Forks
Active
Maintenance
Go
Language
MIT
License
2d ago
Last commit
6mo ago
Created

Repo: iswalle/getnote-cli

Other skills on getnote-cli.

getnote-auth
Skill

getnote-auth

安装和连接得到大脑,完成浏览器授权、环境诊断、配额检查、CLI 升级与领域 Skill 同步。用户说“安装/连接/登录/更新得到大脑”“检查为什么不能用”“查看额度”时使用。

getnote-note
Skill

getnote-note

使用得到大脑保存文字、链接、图片和长笔记,查看笔记详情、原文、录音转写、附件、时间线、标记、发芽报告、快捷笔记和会议待办,并安全更新、删除或分享笔记。标记、发芽与时间线分别读取。