nb
Manage notes, bookmarks, and notebooks using the nb CLI. Create, list, search, and organize notes across multiple notebooks with Git-backed versioning.
Best use case
nb is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Manage notes, bookmarks, and notebooks using the nb CLI. Create, list, search, and organize notes across multiple notebooks with Git-backed versioning.
Teams using nb should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/nb/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How nb Compares
| Feature / Agent | nb | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Manage notes, bookmarks, and notebooks using the nb CLI. Create, list, search, and organize notes across multiple notebooks with Git-backed versioning.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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
Related Skills
portfolio-watcher
Monitor stock/crypto holdings, get price alerts, track portfolio performance
portainer
Control Docker containers and stacks via Portainer API. List containers, start/stop/restart, view logs, and redeploy stacks from git.
portable-tools
Build cross-device tools without hardcoding paths or account names
polymarket
Trade prediction markets on Polymarket. Analyze odds, place bets, track positions, automate alerts, and maximize returns from event outcomes. Covers sports, politics, entertainment, and more.
polymarket-traiding-bot
No description provided.
polymarket-analysis
Analyze Polymarket prediction markets for trading edges. Pair Cost arbitrage, whale tracking, sentiment analysis, momentum signals, user profile tracking. No execution.
polymarket-agent
Autonomous prediction market agent - analyzes markets, researches news, and identifies trading opportunities
polymarket-5
Query Polymarket prediction markets. Use for questions about prediction markets, betting odds, market prices, event probabilities, or when user asks about Polymarket data.
polymarket-4
Query Polymarket prediction markets. Use for questions about prediction markets, betting odds, market prices, event probabilities, or when user asks about Polymarket data.
polymarket-3
Query Polymarket prediction market odds and events via CLI. Search for markets, get current prices, list events by category. Supports sports betting (NFL, NBA, soccer/EPL, Champions League), politics, crypto, elections, geopolitics. Real money markets = more accurate than polls. No API key required. Use when asked about odds, probabilities, predictions, or "what are the chances of X".
polymarket-2
Query Polymarket prediction markets - check odds, trending markets, search events, track prices.
pollinations
Pollinations.ai API for AI generation - text, images, videos, audio, and analysis. Use when user requests AI-powered generation (text completion, images, videos, audio, vision/analysis, transcription) or mentions Pollinations. Supports 25+ models (OpenAI, Claude, Gemini, Flux, Veo, etc.) with OpenAI-compatible chat endpoint and specialized generation endpoints.