返回顶部
d

dnoteDnote笔记管理

Save, retrieve, and manage notes using Dnote CLI. Use when the user wants to capture information, search existing notes, reference saved knowledge, or organize notes into books. Supports adding notes, searching with full-text, viewing books/notes, editing, and removing notes. Perfect for building a personal knowledge base.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
688
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

dnote

Dnote 笔记

使用 Dnote CLI 管理个人知识库。

设置

安装

bash

macOS/Linux 自动安装


curl -s https://www.getdnote.com/install | sh

或使用 Homebrew

brew install dnote

或从以下地址下载:https://github.com/dnote/dnote/releases

配置

Dnote 遵循 XDG 目录规范:

  • - 配置:~/.config/dnote/dnoterc
  • 数据库:~/.local/share/dnote/dnote.db

bash

示例配置文件 (~/.config/dnote/dnoterc)


editor: vim
apiEndpoint: https://api.dnote.io
enableUpgradeCheck: true

或仅使用本地模式(无同步)

无需配置 - 默认离线工作

同步设置(可选)

bash

跨设备同步


dnote login

或仅本地模式(无需设置)

快速开始

bash

向笔记本添加笔记


{baseDir}/scripts/dnote.sh add cli git rebase -i HEAD~3

通过管道向笔记输入内容

echo docker system prune | {baseDir}/scripts/dnote.sh add docker

搜索所有笔记

{baseDir}/scripts/dnote.sh find docker compose

查看最近笔记

{baseDir}/scripts/dnote.sh recent

列出所有笔记本

{baseDir}/scripts/dnote.sh books

查看笔记本中的笔记

{baseDir}/scripts/dnote.sh view cli

获取特定笔记

{baseDir}/scripts/dnote.sh get cli 1

命令

添加笔记

命令描述
add <book> <content>向笔记本添加笔记
add-stdin <book>
从标准输入添加(支持管道) | | quick | 快速添加到收件箱笔记本 |

检索笔记

命令描述
view [book]列出笔记本或笔记本中的笔记
get <book> <index>
按索引获取特定笔记 | | find | 全文搜索(使用 -b 过滤) | | recent [n] | 显示最近 n 条笔记(默认:10) | | books | 列出所有笔记本 | | export [book] | 以 JSON 格式导出笔记 | | config | 显示配置和路径 |

管理笔记

命令描述
edit <id> [content]按 ID 编辑笔记
move <id> <book>
将笔记移动到其他笔记本 | | remove | 删除笔记 | | remove-book | 删除整个笔记本 |

同步与信息

命令描述
sync与 Dnote 服务器同步
status
显示状态和统计信息 | | config | 显示配置文件位置 | | login | 通过服务器进行身份验证(原生 CLI) | | logout | 移除凭据(原生 CLI) |

集合 ID / 笔记本

  • - 使用任意笔记本名称(首次使用时自动创建)
  • 常用笔记本名称:cli、docker、git、ideas、snippets、journal、inbox
  • 添加第一条笔记时自动创建笔记本

示例

bash

捕获 Shell 单行命令


{baseDir}/scripts/dnote.sh add cli grep -r pattern . --include=*.py

从命令输出保存

git log --oneline -10 | {baseDir}/scripts/dnote.sh add git

快速捕获到收件箱

{baseDir}/scripts/dnote.sh quick 记得更新 README

搜索 Docker 命令

{baseDir}/scripts/dnote.sh find docker compose

在特定笔记本中搜索

{baseDir}/scripts/dnote.sh find config -b cli

获取格式化笔记供 AI 使用

{baseDir}/scripts/dnote.sh get cli 1 --format raw

导出笔记本进行处理

{baseDir}/scripts/dnote.sh export cli --json | jq .notes[].content

跨所有笔记本的最近笔记

{baseDir}/scripts/dnote.sh recent 20

搜索并导出结果

{baseDir}/scripts/dnote.sh find postgres --json

在 AI 上下文中使用笔记

检索当前任务的相关笔记:

bash

搜索相关知识


{baseDir}/scripts/dnote.sh find python argparse

获取特定笔记的完整内容

{baseDir}/scripts/dnote.sh get cli 5

导出整个笔记本供上下文使用

{baseDir}/scripts/dnote.sh export python

自动捕获有用信息:

bash

保存发现的解决方案


{baseDir}/scripts/dnote.sh add docker 多阶段构建可减小镜像体积

保存带时间戳的信息

{baseDir}/scripts/dnote.sh add journal $(date): 将 v2.3 部署到生产环境

模式

每日日志

bash

创建带日期的条目


{baseDir}/scripts/dnote.sh add journal $(date +%Y-%m-%d): 开始处理功能 X

查看最近条目

{baseDir}/scripts/dnote.sh view journal | head -20

代码片段

bash

保存带描述的代码


{baseDir}/scripts/dnote.sh add python 列表推导式:[x for x in items if x > 0]

需要时搜索

{baseDir}/scripts/dnote.sh find 列表推导式

命令参考

bash

构建 CLI 参考


curl -s https://api.example.com | {baseDir}/scripts/dnote.sh add api

快速查找

{baseDir}/scripts/dnote.sh view api

与工作流集成

该技能为常见模式提供辅助函数:

函数使用场景
dnote:search <query>在回答前查找相关上下文
dnote:capture <book> <content>
保存任务中发现的有用信息 |
| dnote:recent [n] | 查看最近捕获的笔记 |
| dnote:export-book | 将整个笔记本加载到上下文中 |

配置文件

创建 ~/.config/dnote/dnoterc:

yaml
editor: code --wait # 或 vim、nano、subl -w
apiEndpoint: https://api.dnote.io
enableUpgradeCheck: true

提示

  • - 使用具体的笔记本名称:python、bash、docker、kubernetes、ideas
  • 搜索为全文搜索:可搜索所有笔记内容
  • 索引从 1 开始:第一条笔记为 1,而非 0
  • 管道功能强大:直接捕获命令输出
  • 同步可选:完全离线工作,需要时再同步

直接使用 Dnote CLI

对于未涵盖的操作:

bash

交互式编辑


dnote edit 5

重命名笔记本

dnote edit oldname -n newname

完全同步

dnote sync --full

自定义数据库路径

dnote --dbPath /path/to/custom.db view

文档:https://www.getdnote.com/docs/cli/

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 dnote-1776420000 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 dnote-1776420000 技能

通过命令行安装

skillhub install dnote-1776420000

下载

⬇ 下载 dnote v1.0.0(免费)

文件大小: 5.58 KB | 发布时间: 2026-4-17 19:40

v1.0.0 最新 2026-4-17 19:40
Initial release of dnote skill.

- Enables saving, searching, and managing notes using the Dnote CLI.
- Supports adding notes, organizing notes into books, full-text search, editing, and removing notes.
- Works both offline and with optional sync across devices.
- Designed for capturing solutions, code snippets, and building a personal knowledge base.
- Provides helper functions for integrating note capture and retrieval into workflows.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部