360 Secure SkillHub
360 安全技能中心

Craft Notes

该 Skill 提供 craft 命令行工具,读取 CRAFT_API_URL 指向的 Craft Connect API,支持列出文件夹与文档、按 ID 读取文档、读取日记、搜索文档、创建文档、增删改块,以及列出、添加、完成和删除任务。安装时将 scripts/craft 复制到 ~/bin/craft 并设为可执行。

noah-ribaudo
noah-ribaudo
热度 97.63
最近更新 2026-05-11 15:50:48
分类:知识依赖:代码执行 / 第三方 API应用场景:笔记整理 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add craft
Metadata
name
craft
description
Manage Craft notes, documents, and tasks via CLI. Use when the user asks to add notes, create documents, manage tasks, search their Craft documents, or work with daily notes. Craft is a note-taking app for macOS/iOS.
metadata
{"clawdbot":{"install":[{"id":"craft-cli","kind":"script","path":"scripts/craft","dest":"~/bin/craft","label":"Install Craft CLI"}]}}

Craft CLI

Interact with Craft.do documents, blocks, and tasks.

Setup

  1. Install: Copy scripts/craft to ~/bin/craft and make executable
  2. Get API URL from Craft: Settings > Integrations > Craft Connect > Create Link
  3. Set env var: export CRAFT_API_URL='https://connect.craft.do/links/YOUR_LINK/api/v1'

Add to shell profile for persistence.

Commands

Documents

craft folders                    # List all folders
craft docs [location]            # List documents (unsorted, trash, templates, daily_notes)
craft doc <id>                   # Get document content by ID
craft daily [date]               # Get daily note (today, yesterday, YYYY-MM-DD)
craft search <term>              # Search across documents
craft create-doc "Title" [folderId]  # Create new document

Blocks

craft add-block <docId> "markdown"      # Add block to document
craft add-to-daily "markdown" [date]    # Add to daily note (default: today)
craft update-block <blockId> "markdown" # Update existing block
craft delete-block <blockId>...         # Delete block(s)

Tasks

craft tasks [scope]              # List tasks (inbox, active, upcoming, logbook)
craft add-task "text" [scheduleDate]  # Add task to inbox
craft complete-task <id>         # Mark task as done
craft delete-task <id>           # Delete task

Collections

craft collections                # List all collections
craft collection-items <id>      # Get items from collection

Notes

  • Markdown content passed as arguments; escape quotes if needed
  • Dates: today, yesterday, or YYYY-MM-DD
  • Task scopes: inbox (default), active, upcoming, logbook
  • Document locations: unsorted, trash, templates, daily_notes