Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

craft-cli

bởi nerveband

CLI Utilities
1.9kLượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Interact with Craft Documents via the `craft` CLI tool.

Mô tả

Kỹ năng này làm gì

A CLI tool for interacting with Craft Documents through the Craft API. Supports listing, searching, creating, updating, and deleting documents across multiple Craft spaces. Output formats include JSON, table, and markdown.

Returns JSON by default, making it easy to pipe Craft document data into scripts or LLM workflows without parsing HTML or using a GUI.

Khi nào nên dùng

  • Searching Craft docs for a meeting note by keyword
  • Creating a new document from a markdown file
  • Exporting a Craft document to a local file
  • Switching between personal and business Craft spaces
  • Piping document lists to other tools for processing

Quy trình ví dụ

ĐẦU VÀO

User asks: find all documents mentioning 'proposal' and export the first result

AGENT
  1. 1

    Run craft search 'proposal' to get matching documents

  2. 2

    Parse the JSON output to extract the first document ID

  3. 3

    Run craft get <document-id> --output proposal.md to save the file

  4. 4

    Confirm the export by reading the saved file

ĐẦU RA

A local markdown file containing the matched Craft document's content

Yêu cầu

  • Craft API URL (obtained from a Craft Connect link for your space)
  • craft CLI binary installed at /usr/local/bin/craft

Cài đặt

clawhub install nerveband/craft-cli

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết