{"skill":{"slug":"dnote","displayName":"Dnote","summary":"Save, retrieve, and manage notes using Dnote CLI. Use when the user wants to capture information, search existing notes, reference saved knowledge, or organi...","description":"---\nname: dnote\ndescription: 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.\nmetadata:\n  openclaw:\n    emoji: '📝'\n    homepage: https://www.getdnote.com/docs/cli/\n    requires:\n      bins:\n        - dnote\n    primaryEnv: DNOTE_API_KEY\n---\n\n# Dnote Notes\n\nManage a personal knowledge base using Dnote CLI.\n\n## Setup\n\n### Installation\n\n```bash\n# macOS/Linux auto-install\ncurl -s https://www.getdnote.com/install | sh\n\n# Or Homebrew\nbrew install dnote\n\n# Or download from: https://github.com/dnote/dnote/releases\n```\n\n### Configuration\n\nDnote follows XDG directories:\n- **Config**: `~/.config/dnote/dnoterc`\n- **Database**: `~/.local/share/dnote/dnote.db`\n\n```bash\n# Example config file (~/.config/dnote/dnoterc)\neditor: vim\napiEndpoint: https://api.dnote.io\nenableUpgradeCheck: true\n\n# Or use local-only (no sync)\n# No config needed - works offline by default\n```\n\n### Sync Setup (Optional)\n\n```bash\n# To sync across devices\ndnote login\n\n# Or local-only mode (no setup required)\n```\n\n## Quick Start\n\n```bash\n# Add a note to a book\n{baseDir}/scripts/dnote.sh add cli \"git rebase -i HEAD~3\"\n\n# Pipe content to a note\necho \"docker system prune\" | {baseDir}/scripts/dnote.sh add docker\n\n# Search all notes\n{baseDir}/scripts/dnote.sh find \"docker compose\"\n\n# View recent notes\n{baseDir}/scripts/dnote.sh recent\n\n# List all books\n{baseDir}/scripts/dnote.sh books\n\n# View notes in a book\n{baseDir}/scripts/dnote.sh view cli\n\n# Get a specific note\n{baseDir}/scripts/dnote.sh get cli 1\n```\n\n## Commands\n\n### Adding Notes\n\n| Command | Description |\n|---------|-------------|\n| `add <book> <content>` | Add note to book |\n| `add-stdin <book>` | Add from stdin (pipe-friendly) |\n| `quick <content>` | Quick add to 'inbox' book |\n\n### Retrieving Notes\n\n| Command | Description |\n|---------|-------------|\n| `view [book]` | List books or notes in book |\n| `get <book> <index>` | Get specific note by index |\n| `find <query>` | Full-text search (use `-b <book>` to filter) |\n| `recent [n]` | Show n most recent notes (default: 10) |\n| `books` | List all books |\n| `export [book]` | Export notes as JSON |\n| `config` | Show config and paths |\n\n### Managing Notes\n\n| Command | Description |\n|---------|-------------|\n| `edit <id> [content]` | Edit note by ID |\n| `move <id> <book>` | Move note to different book |\n| `remove <id>` | Delete note |\n| `remove-book <book>` | Delete entire book |\n\n### Sync & Info\n\n| Command | Description |\n|---------|-------------|\n| `sync` | Sync with Dnote server |\n| `status` | Show status and stats |\n| `config` | Show config file locations |\n| `login` | Authenticate with server (native CLI) |\n| `logout` | Remove credentials (native CLI) |\n\n## Collection IDs / Books\n\n- Use any book name (auto-created on first use)\n- Common book names: `cli`, `docker`, `git`, `ideas`, `snippets`, `journal`, `inbox`\n- Books are created automatically when you add the first note\n\n## Examples\n\n```bash\n# Capture a shell one-liner\n{baseDir}/scripts/dnote.sh add cli \"grep -r pattern . --include='*.py'\"\n\n# Save from command output\ngit log --oneline -10 | {baseDir}/scripts/dnote.sh add git\n\n# Quick capture to inbox\n{baseDir}/scripts/dnote.sh quick \"Remember to update README\"\n\n# Search for docker commands\n{baseDir}/scripts/dnote.sh find \"docker compose\"\n\n# Search within a specific book\n{baseDir}/scripts/dnote.sh find \"config\" -b cli\n\n# Get formatted note for AI context\n{baseDir}/scripts/dnote.sh get cli 1 --format raw\n\n# Export book for processing\n{baseDir}/scripts/dnote.sh export cli --json | jq '.notes[].content'\n\n# Recent notes across all books\n{baseDir}/scripts/dnote.sh recent 20\n\n# Search and export results\n{baseDir}/scripts/dnote.sh find \"postgres\" --json\n```\n\n## Using Notes in AI Context\n\n### Retrieve relevant notes for the current task:\n\n```bash\n# Search for related knowledge\n{baseDir}/scripts/dnote.sh find \"python argparse\"\n\n# Get full content of a specific note\n{baseDir}/scripts/dnote.sh get cli 5\n\n# Export entire book for context\n{baseDir}/scripts/dnote.sh export python\n```\n\n### Auto-capture useful information:\n\n```bash\n# Save a discovered solution\n{baseDir}/scripts/dnote.sh add docker \"Multi-stage builds reduce image size\"\n\n# Save with timestamp\n{baseDir}/scripts/dnote.sh add journal \"$(date): Deployed v2.3 to production\"\n```\n\n## Patterns\n\n### Daily Journal\n\n```bash\n# Create dated entry\n{baseDir}/scripts/dnote.sh add journal \"$(date +%Y-%m-%d): Started work on feature X\"\n\n# Review recent entries\n{baseDir}/scripts/dnote.sh view journal | head -20\n```\n\n### Code Snippets\n\n```bash\n# Save with description\n{baseDir}/scripts/dnote.sh add python \"List comprehension: [x for x in items if x > 0]\"\n\n# Search when needed\n{baseDir}/scripts/dnote.sh find \"list comprehension\"\n```\n\n### Command Reference\n\n```bash\n# Build a CLI reference\ncurl -s https://api.example.com | {baseDir}/scripts/dnote.sh add api\n\n# Quick lookup\n{baseDir}/scripts/dnote.sh view api\n```\n\n## Integration with Workflows\n\nThe skill provides helper functions for common patterns:\n\n| Function | Use Case |\n|----------|----------|\n| `dnote:search <query>` | Find relevant context before answering |\n| `dnote:capture <book> <content>` | Save useful info discovered during task |\n| `dnote:recent [n]` | Review recently captured notes |\n| `dnote:export-book <book>` | Load entire book into context |\n\n## Config File\n\nCreate `~/.config/dnote/dnoterc`:\n\n```yaml\neditor: code --wait      # or vim, nano, subl -w\napiEndpoint: https://api.dnote.io\nenableUpgradeCheck: true\n```\n\n## Tips\n\n- **Use specific book names**: `python`, `bash`, `docker`, `kubernetes`, `ideas`\n- **Search is full-text**: Works across all note content\n- **Indexes are 1-based**: First note is `1`, not `0`\n- **Pipes work great**: Capture command output directly\n- **Sync optional**: Works fully offline, sync when ready\n\n## Direct Dnote CLI\n\nFor operations not covered:\n\n```bash\n# Interactive edit\ndnote edit 5\n\n# Rename book\ndnote edit oldname -n newname\n\n# Full sync\ndnote sync --full\n\n# Custom DB path\ndnote --dbPath /path/to/custom.db view\n```\n\nDocs: https://www.getdnote.com/docs/cli/\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":1195,"installsAllTime":1,"installsCurrent":1,"stars":2,"versions":1},"createdAt":1771439046670,"updatedAt":1778991506014},"latestVersion":{"version":"1.0.0","createdAt":1771439046670,"changelog":"Initial release of dnote skill.\n\n- Enables saving, searching, and managing notes using the Dnote CLI.\n- Supports adding notes, organizing notes into books, full-text search, editing, and removing notes.\n- Works both offline and with optional sync across devices.\n- Designed for capturing solutions, code snippets, and building a personal knowledge base.\n- Provides helper functions for integrating note capture and retrieval into workflows.","license":null},"metadata":{"setup":[],"os":null,"systems":null},"owner":{"handle":"m1n-74316d65","userId":"s1731b0mv29wzyfe1b3d7sbkh9884zqm","displayName":"David","image":"https://avatars.githubusercontent.com/u/54779580?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1779922437460}}