# Send Craft CLI to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "craft-cli",
    "name": "Craft CLI",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/nerveband/craft-cli",
    "canonicalUrl": "https://clawhub.ai/nerveband/craft-cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/craft-cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=craft-cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "craft-helper.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "craft-cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T04:27:17.316Z",
      "expiresAt": "2026-05-09T04:27:17.316Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=craft-cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=craft-cli",
        "contentDisposition": "attachment; filename=\"craft-cli-1.6.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "craft-cli"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/craft-cli"
    },
    "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."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/craft-cli",
    "downloadUrl": "https://openagent3.xyz/downloads/craft-cli",
    "agentUrl": "https://openagent3.xyz/skills/craft-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/craft-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/craft-cli/agent.md"
  }
}
```
## Documentation

### Craft CLI Skill

Interact with Craft Documents via the craft CLI tool. Fast, token-efficient, LLM-ready.

### Installation

The craft CLI binary should be installed at /usr/local/bin/craft.

If not installed:

curl -L https://github.com/nerveband/craft-cli/releases/download/v1.0.0/craft-darwin-arm64 -o craft
chmod +x craft
sudo mv craft /usr/local/bin/

### Configuration

Two Craft spaces are available:

### wavedepth Space (Business)

~/clawd/skills/craft-cli/craft config set-api https://connect.craft.do/links/5VruASgpXo0/api/v1

### Personal Space

~/clawd/skills/craft-cli/craft config set-api https://connect.craft.do/links/HHRuPxZZTJ6/api/v1

### Quick Switch (Helper Script)

# Switch to wavedepth space
~/clawd/skills/craft-cli/craft-helper.sh wavedepth

# Switch to personal space
~/clawd/skills/craft-cli/craft-helper.sh personal

# Check current space
~/clawd/skills/craft-cli/craft-helper.sh current

Check current configuration:

~/clawd/skills/craft-cli/craft config get-api

### List Documents

# JSON format (default - LLM-friendly)
~/clawd/skills/craft-cli/craft list

# Human-readable table
~/clawd/skills/craft-cli/craft list --format table

# Markdown format
~/clawd/skills/craft-cli/craft list --format markdown

### Search Documents

# Search for documents
~/clawd/skills/craft-cli/craft search "query terms"

# With table output
~/clawd/skills/craft-cli/craft search "query" --format table

### Get Document

# Get document by ID (JSON)
~/clawd/skills/craft-cli/craft get <document-id>

# Save to file
~/clawd/skills/craft-cli/craft get <document-id> --output document.md

# Different format
~/clawd/skills/craft-cli/craft get <document-id> --format markdown

### Create Document

# Create with title only
~/clawd/skills/craft-cli/craft create --title "My New Document"

# Create from file
~/clawd/skills/craft-cli/craft create --title "My Document" --file content.md

# Create with inline markdown
~/clawd/skills/craft-cli/craft create --title "Quick Note" --markdown "# Hello\\nThis is content"

# Create as child of another document
~/clawd/skills/craft-cli/craft create --title "Child Doc" --parent <parent-id>

### Update Document

# Update title
~/clawd/skills/craft-cli/craft update <document-id> --title "New Title"

# Update from file
~/clawd/skills/craft-cli/craft update <document-id> --file updated-content.md

# Update with inline markdown
~/clawd/skills/craft-cli/craft update <document-id> --markdown "# Updated\\nNew content"

# Update both title and content
~/clawd/skills/craft-cli/craft update <document-id> --title "New Title" --file content.md

### Delete Document

~/clawd/skills/craft-cli/craft delete <document-id>

### Info Commands

# Show API info and recent documents
~/clawd/skills/craft-cli/craft info

# List all available documents
~/clawd/skills/craft-cli/craft docs

### Version

~/clawd/skills/craft-cli/craft version

### Output Formats

json (default): Machine-readable JSON, ideal for LLMs and scripts
table: Human-readable table format
markdown: Markdown-formatted output

Set default format in config or use --format flag per command.

### API URL Override

Override the configured API URL for any command:

~/clawd/skills/craft-cli/craft list --api-url https://connect.craft.do/links/ANOTHER_LINK/api/v1

### Error Handling

The CLI provides clear error messages with exit codes:

Exit Code 0: Success
Exit Code 1: User error (invalid input, missing arguments)
Exit Code 2: API error (server-side issues)
Exit Code 3: Configuration error

Common errors:

authentication failed. Check API URL - Invalid/unauthorized API URL
resource not found - Document ID doesn't exist
rate limit exceeded. Retry later - Too many requests
no API URL configured. Run 'craft config set-api <url>' first - Missing config

### Workflow: List and Search

# List all documents in wavedepth space
~/clawd/skills/craft-cli/craft config set-api https://connect.craft.do/links/5VruASgpXo0/api/v1
~/clawd/skills/craft-cli/craft list --format table

# Search for specific documents
~/clawd/skills/craft-cli/craft search "proposal" --format table

### Workflow: Create and Update

# Create a new document
~/clawd/skills/craft-cli/craft create --title "Project Notes" --markdown "# Initial notes\\n\\nStart here."

# Get the document ID from output, then update
~/clawd/skills/craft-cli/craft update <doc-id> --title "Updated Project Notes"

# Verify the update
~/clawd/skills/craft-cli/craft get <doc-id> --format markdown

### Workflow: Export Document

# Get a specific document and save to file
~/clawd/skills/craft-cli/craft get <doc-id> --output exported-notes.md

### LLM Integration

# Get all documents as JSON (pipe to processing)
~/clawd/skills/craft-cli/craft list | jq '.[] | {id, title}'

# Search and extract specific fields
~/clawd/skills/craft-cli/craft search "meeting" | jq '.[].title'

### Tips

Default to JSON format for LLM consumption (it's the default)
Use table format when showing results to humans
Check configuration before operations: craft config get-api
Switch spaces easily with craft config set-api <url>
Override API URL temporarily with --api-url flag instead of changing config

### GitHub Repository

Source code and documentation: https://github.com/nerveband/craft-cli

### Version

Current version: 1.6.0
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: nerveband
- Version: 1.6.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T04:27:17.316Z
- Expires at: 2026-05-09T04:27:17.316Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/craft-cli)
- [Send to Agent page](https://openagent3.xyz/skills/craft-cli/agent)
- [JSON manifest](https://openagent3.xyz/skills/craft-cli/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/craft-cli/agent.md)
- [Download page](https://openagent3.xyz/downloads/craft-cli)