跳到正文
TakoAPI
返回技能列表

craft-cli

由 nerveband 提供

CLI Utilities
1.9k下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

前置要求

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

安装

clawhub install nerveband/craft-cli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接