Benjamin Jesuiter

Nb

知识管理v1.0.2
作者:Benjamin Jesuiter更新于 2026-05-11共 3 个版本 · 最新版本发布于 2026-01-14nb@clawhub_bjesuiter/nb
资料整理笔记整理#Git

据 AlphaMoat 统计,截至 2026-09,Nb 累计下载 3,808 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 2,765 位,在「知识管理」分类(442 个)中排名第 254 位。

累计安装
184
累计下载
3,808
星标
1
全站排名
#2,765
全站前 55% · 「知识管理」前 58%
平台累计安装累计下载星标评论
ClawHub ↗1243,6761-
SkillHub ↗1843,8081—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它支持创建和切换 notebook、添加与搜索笔记,并以 Git 进行版本管理;文档特别要求通过 nb CLI 操作数据,不要手动编辑其 Git 仓库文件。

资料发布于 2026-10-27

可以用来做什么

  • 在 notebook 中创建、整理或搜索笔记
  • 管理书签与归档内容

什么时候用

  • 需要通过 nb CLI 管理本地笔记时
  • 需要搜索或组织多个 notebook 中的内容时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

列出 nb 中的 notebook 并显示当前项
搜索所有 notebook 中与某主题相关的笔记

月度数据趋势

累计下载3,808
2,7363,3123,8872026-03 · 累计下载 2,8152026-05 · 累计下载 3,1892026-06 · 累计下载 3,3102026-07 · 累计下载 3,5082026-08 · 累计下载 3,5782026-09 · 累计下载 3,80826-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,808—1
2026-083,578+2.0%1
2026-073,508+6.0%1
2026-063,310+3.8%1
2026-053,189—1
2026-032,815—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.2 KB · ClawHub v1.0.2
---
name: nb
description: Manage notes, bookmarks, and notebooks using the nb CLI. Create, list, search, and organize notes across multiple notebooks with Git-backed versioning.
author: Benjamin Jesuiter <[email protected]>
homepage: https://github.com/xwmx/nb
metadata:
  clawdbot:
    emoji: "📓"
    os: ["darwin", "linux"]
    requires:
展开全部(共 259 行)
      bins: ["nb"]
---

# nb - Command Line Note-Taking

> ⚠️ **IMPORTANT:** Never edit files in nb git repos (`~/.nb/*`) by hand! Always use the `nb` CLI to ensure proper indexing and Git commits.



A command line and local web note-taking, bookmarking, and archiving tool with plain text data storage, Git-backed versioning, and wiki-style linking.

## Quick Reference

### Notebooks

```bash
# List all notebooks
nb notebooks

# Switch to a notebook
nb use <notebook>

# Create a new notebook
nb notebooks add <name>

# Show current notebook
nb notebooks current
```

### Adding Notes

```bash
# Add a note with title
nb add -t "Title" -c "Content here"

# Add note to specific notebook
nb <notebook>: add -t "Title" -c "Content"

# Add note with tags
nb add -t "Title" --tags tag1,tag2

# Add note from file content
nb add <notebook>:filename.md
```

### Listing Notes

```bash
# List notes in current notebook
nb list

# List all notes (no limit)
nb list -a

# List notes in specific notebook
nb <notebook>: list

# List with excerpts
nb list -e

# List with tags shown
nb list --tags
```

### Showing Notes

```bash
# Show note by ID or title
nb show <id>
nb show "<title>"

# Show note from specific notebook
nb show <notebook>:<id>

# Print content (for piping)
nb show <id> --print
```

### Searching Notes

```bash
# Search across all notebooks
nb search "query"

# Search in specific notebook
nb <notebook>: search "query"

# Search with AND/OR/NOT
nb search "term1" --and "term2"
nb search "term1" --or "term2"
nb search "term1" --not "exclude"

# Search by tag
nb search --tag "tagname"
```

### Editing Notes

```bash
# Edit by ID
nb edit <id>

# Edit by title
nb edit "<title>"

# Append content
nb edit <id> -c "New content to append"

# Prepend content
nb edit <id> -c "Content at top" --prepend

# Overwrite content
nb edit <id> -c "Replace all" --overwrite
```

### Deleting Notes

```bash
# Delete by ID (will prompt)
nb delete <id>

# Force delete without prompt
nb delete <id> -f
```

### Moving/Renaming

```bash
# Move note to another notebook
nb move <id> <notebook>:

# Rename a note
nb move <id> new-filename.md
```

### Todos

```bash
# Add a todo
nb todo add "Task title"

# Add todo with due date
nb todo add "Task" --due "2026-01-15"

# List open todos
nb todos open

# List closed todos
nb todos closed

# Mark todo as done
nb todo do <id>

# Mark todo as not done
nb todo undo <id>
```

### Bookmarks

```bash
# Add a bookmark
nb bookmark <url>

# Add with comment
nb bookmark <url> -c "My comment"

# Add with tags
nb bookmark <url> --tags reference,dev

# List bookmarks
nb bookmark list

# Search bookmarks
nb bookmark search "query"
```

### Git Operations

```bash
# Sync with remote
nb sync

# Create checkpoint (commit)
nb git checkpoint "Message"

# Check dirty status
nb git dirty

# Run any git command
nb git status
nb git log --oneline -5
```

### Folders

```bash
# Add folder to notebook
nb folders add <folder-name>

# List folders
nb folders

# Add note to folder
nb add <folder>/<filename>.md
```

## Common Patterns

### Adding Note with Full Content

For longer notes, create a temp file and import:

```bash
# Write content to temp file first, then copy to nb
cp /tmp/note.md ~/.nb/<notebook>/
cd ~/.nb/<notebook> && git add . && git commit -m "Add note"
nb <notebook>: index rebuild
```

### Searching Across All

```bash
# Search everything
nb search "term" --all

# Search by type
nb search "term" --type bookmark
nb search "term" --type todo
```

## Data Location

Notes are stored in `~/.nb/<notebook>/` as markdown files with Git versioning.

```
~/.nb/
├── notebook-name-1/ # Your first notebook
├── notebook-name-2/ # Your second notebook
└── ...
```

## Tips

1. Use `nb <notebook>:` prefix to work with specific notebooks
2. IDs are numbers shown in `nb list`
3. Titles can be used instead of IDs (quoted if spaces)
4. All changes are automatically Git-committed
5. Use `nb sync` to push/pull from remote repos

「知识管理」分类下的热门技能

Benjamin Jesuiter 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。