{
  "schemaVersion": "1.0",
  "item": {
    "slug": "drafts",
    "name": "Drafts CLI",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/nerveband/drafts",
    "canonicalUrl": "https://clawhub.ai/nerveband/drafts",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/drafts",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=drafts",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/drafts"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/drafts",
    "agentPageUrl": "https://openagent3.xyz/skills/drafts/agent",
    "manifestUrl": "https://openagent3.xyz/skills/drafts/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/drafts/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Drafts CLI",
        "body": "Manage Drafts notes from the terminal on macOS."
      },
      {
        "title": "IMPORTANT REQUIREMENTS",
        "body": "This CLI ONLY works on macOS with Drafts app running.\n\nmacOS only - Uses AppleScript, will not work on Linux/Windows\nDrafts must be RUNNING - The app must be open for any command to work\nDrafts Pro required - Automation features require Pro subscription\n\nIf commands fail or hang, first check: open -a Drafts"
      },
      {
        "title": "Setup",
        "body": "Install via Go:\n\ngo install github.com/nerveband/drafts/cmd/drafts@latest\n\nOr build from source:\n\ngit clone https://github.com/nerveband/drafts\ncd drafts && go build ./cmd/drafts"
      },
      {
        "title": "Create a Draft",
        "body": "# Simple draft\ndrafts create \"Meeting notes for Monday\"\n\n# With tags\ndrafts create \"Shopping list\" -t groceries -t todo\n\n# Flagged draft\ndrafts create \"Urgent reminder\" -f\n\n# Create in archive\ndrafts create \"Reference note\" -a"
      },
      {
        "title": "List Drafts",
        "body": "# List inbox (default)\ndrafts list\n\n# List archived drafts\ndrafts list -f archive\n\n# List trashed drafts\ndrafts list -f trash\n\n# List all drafts\ndrafts list -f all\n\n# Filter by tag\ndrafts list -t mytag"
      },
      {
        "title": "Get a Draft",
        "body": "# Get specific draft\ndrafts get <uuid>\n\n# Get active draft (currently open in Drafts)\ndrafts get"
      },
      {
        "title": "Modify Drafts",
        "body": "# Prepend text\ndrafts prepend \"New first line\" -u <uuid>\n\n# Append text\ndrafts append \"Added at the end\" -u <uuid>\n\n# Replace entire content\ndrafts replace \"Completely new content\" -u <uuid>"
      },
      {
        "title": "Edit in Editor",
        "body": "drafts edit <uuid>"
      },
      {
        "title": "Run Actions",
        "body": "# Run action on text\ndrafts run \"Copy\" \"Text to copy to clipboard\"\n\n# Run action on existing draft\ndrafts run \"Copy\" -u <uuid>"
      },
      {
        "title": "Get Schema",
        "body": "# Full schema for LLM integration\ndrafts schema\n\n# Schema for specific command\ndrafts schema create"
      },
      {
        "title": "Output Format",
        "body": "JSON (default) - All commands return structured JSON:\n\n{\n  \"success\": true,\n  \"data\": {\n    \"uuid\": \"ABC123\",\n    \"content\": \"Note content\",\n    \"title\": \"Note title\",\n    \"tags\": [\"tag1\", \"tag2\"],\n    \"folder\": \"inbox\"\n  }\n}\n\nPlain text - Human-readable output:\n\ndrafts list --plain"
      },
      {
        "title": "Quick Capture",
        "body": "drafts create \"Remember to call dentist tomorrow\" -t reminder"
      },
      {
        "title": "Daily Journal",
        "body": "drafts append \"$(date): Completed project review\" -u <journal-uuid>"
      },
      {
        "title": "Search and Review",
        "body": "# List all drafts with a specific tag\ndrafts list -t work\n\n# Get full content of a draft\ndrafts get <uuid>"
      },
      {
        "title": "Troubleshooting",
        "body": "Commands fail or return empty:\n\nIs Drafts running? → open -a Drafts\nIs Drafts Pro active? → Automation requires Pro\nPermissions granted? → System Settings > Privacy > Automation\n\nCommands hang:\n\nCheck if Drafts is showing a dialog"
      },
      {
        "title": "Notes",
        "body": "macOS ONLY (AppleScript-based)\nDrafts app MUST be running\nRequires Drafts Pro subscription\nAll UUIDs are Drafts-generated identifiers\nTags are case-sensitive"
      },
      {
        "title": "Version",
        "body": "Latest (from go install)"
      }
    ],
    "body": "Drafts CLI\n\nManage Drafts notes from the terminal on macOS.\n\nIMPORTANT REQUIREMENTS\n\nThis CLI ONLY works on macOS with Drafts app running.\n\nmacOS only - Uses AppleScript, will not work on Linux/Windows\nDrafts must be RUNNING - The app must be open for any command to work\nDrafts Pro required - Automation features require Pro subscription\n\nIf commands fail or hang, first check: open -a Drafts\n\nSetup\n\nInstall via Go:\n\ngo install github.com/nerveband/drafts/cmd/drafts@latest\n\n\nOr build from source:\n\ngit clone https://github.com/nerveband/drafts\ncd drafts && go build ./cmd/drafts\n\nCommands\nCreate a Draft\n# Simple draft\ndrafts create \"Meeting notes for Monday\"\n\n# With tags\ndrafts create \"Shopping list\" -t groceries -t todo\n\n# Flagged draft\ndrafts create \"Urgent reminder\" -f\n\n# Create in archive\ndrafts create \"Reference note\" -a\n\nList Drafts\n# List inbox (default)\ndrafts list\n\n# List archived drafts\ndrafts list -f archive\n\n# List trashed drafts\ndrafts list -f trash\n\n# List all drafts\ndrafts list -f all\n\n# Filter by tag\ndrafts list -t mytag\n\nGet a Draft\n# Get specific draft\ndrafts get <uuid>\n\n# Get active draft (currently open in Drafts)\ndrafts get\n\nModify Drafts\n# Prepend text\ndrafts prepend \"New first line\" -u <uuid>\n\n# Append text\ndrafts append \"Added at the end\" -u <uuid>\n\n# Replace entire content\ndrafts replace \"Completely new content\" -u <uuid>\n\nEdit in Editor\ndrafts edit <uuid>\n\nRun Actions\n# Run action on text\ndrafts run \"Copy\" \"Text to copy to clipboard\"\n\n# Run action on existing draft\ndrafts run \"Copy\" -u <uuid>\n\nGet Schema\n# Full schema for LLM integration\ndrafts schema\n\n# Schema for specific command\ndrafts schema create\n\nOutput Format\n\nJSON (default) - All commands return structured JSON:\n\n{\n  \"success\": true,\n  \"data\": {\n    \"uuid\": \"ABC123\",\n    \"content\": \"Note content\",\n    \"title\": \"Note title\",\n    \"tags\": [\"tag1\", \"tag2\"],\n    \"folder\": \"inbox\"\n  }\n}\n\n\nPlain text - Human-readable output:\n\ndrafts list --plain\n\nCommon Workflows\nQuick Capture\ndrafts create \"Remember to call dentist tomorrow\" -t reminder\n\nDaily Journal\ndrafts append \"$(date): Completed project review\" -u <journal-uuid>\n\nSearch and Review\n# List all drafts with a specific tag\ndrafts list -t work\n\n# Get full content of a draft\ndrafts get <uuid>\n\nTroubleshooting\n\nCommands fail or return empty:\n\nIs Drafts running? → open -a Drafts\nIs Drafts Pro active? → Automation requires Pro\nPermissions granted? → System Settings > Privacy > Automation\n\nCommands hang:\n\nCheck if Drafts is showing a dialog\nNotes\nmacOS ONLY (AppleScript-based)\nDrafts app MUST be running\nRequires Drafts Pro subscription\nAll UUIDs are Drafts-generated identifiers\nTags are case-sensitive\nVersion\n\nLatest (from go install)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/nerveband/drafts",
    "publisherUrl": "https://clawhub.ai/nerveband/drafts",
    "owner": "nerveband",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/drafts",
    "downloadUrl": "https://openagent3.xyz/downloads/drafts",
    "agentUrl": "https://openagent3.xyz/skills/drafts/agent",
    "manifestUrl": "https://openagent3.xyz/skills/drafts/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/drafts/agent.md"
  }
}