本文へ移動
cccskills
無料GitHub で公開

cli-anything-siyuan

SiYuan (思源笔记) CLI — manage notebooks, documents, blocks, and search your knowledge base from the terminal.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

cli-anything-siyuan

CLI harness for SiYuan (思源笔记), a local-first knowledge management and note-taking application.

This CLI connects to a running SiYuan kernel via its HTTP API (http://127.0.0.1:6806) and provides structured access to notebooks, documents, blocks, search, and export.

Prerequisites

  • SiYuan must be running (Settings → About shows the API token)
  • Python 3.10+
  • Install: pip install cli-anything-siyuan or pip install -e . from agent-harness/

Command Groups

notebook — Notebook management

SubcommandDescription
listList all notebooks
create <name>Create a new notebook
rename <id> <name>Rename a notebook
remove <id>Delete a notebook
open <id>Open a notebook

doc — Document management

SubcommandDescription
create <notebook> <path> [--md "content"]Create a document
list <notebook> [path]List documents
tree <notebook> [--path / --depth]Show doc tree
get <id>Get document path by ID
rename <id> <title>Rename a document
remove <id>Delete a document

block — Block operations

SubcommandDescription
insert <data> [--previous / --parent]Insert a block
update <id> <data>Update a block
delete <id>Delete a block
get <id>Get block kramdown source
children <id>Get child blocks

Other commands

CommandDescription
sql <stmt>Execute SQL on the block database
search <query>Full-text search across blocks
export md <doc-id>Export document as Markdown
tag listList all tags
versionShow SiYuan kernel version
statusShow connection and session status
replStart interactive REPL

Agent Guidance

  • Always use --json for machine-readable output
  • Power search: use sql "SELECT * FROM blocks WHERE content LIKE '%keyword%'" for SQL-level access
  • Document IDs look like 20210817205410-2kvfpfn (timestamp-based)
  • API token can be found in SiYuan Settings → About
  • Connection defaults: http://127.0.0.1:6806

Examples

# List notebooks (JSON)
cli-anything-siyuan --json notebook list

# Create a document with Markdown (--md flag, watch shell escaping)
cli-anything-siyuan doc create nb1 /projects/new --md "## Title\n\nContent"

# Create a document — pipe Markdown via stdin (avoids shell escaping)
# PowerShell here-string (literal, no escaping needed):
@'
## Title
Content with `backticks` and (parentheses) and "quotes"
'@ | cli-anything-siyuan doc create nb1 /projects/new --md -

# Bash heredoc:
# cat <<'EOF' | cli-anything-siyuan doc create nb1 /projects/new --md -
# ## Title
# Content with `backticks` and (parentheses)
# EOF

# SQL search
cli-anything-siyuan sql "SELECT id, content FROM blocks WHERE content LIKE '%meeting%' LIMIT 5"

# Export
cli-anything-siyuan export md doc123

# Enter REPL
cli-anything-siyuan

Error Handling

  • Connection errors: check that SiYuan is running and the API token is correct
  • API errors: returned as {"code": N, "msg": "..."} — check the message field
  • Auth errors: verify the token in ~/.siyuan-cli.json or SIYUAN_TOKEN env var

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when the user wants OpenClaw to build, refine, test, or validate a CLI-Anything harness for a GUI application or source repository. Adapts the CLI-Anything methodology to OpenClaw without changing the generated Python harness format.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/CLI-Anything5.2万2026年9月22日 更新

Use when the user wants Reasonix to build, refine, test, or validate a CLI-Anything harness for a GUI application or source repository. Adapts the CLI-Anything methodology to Reasonix without changing the generated Python harness format.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/CLI-Anything5.2万2026年9月22日 更新

Use when the user wants Codex to build, refine, test, validate, or list CLI-Anything harnesses for GUI applications or source repositories. Adapts the full CLI-Anything methodology to Codex without changing the generated Python harness format.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/CLI-Anything5.2万2026年9月22日 更新

3MF mesh geometry editor — detect and resize cylindrical holes, repair meshes, compare 3D printing files. Works with BambuStudio and PrusaSlicer 3MF files.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/CLI-Anything5.2万2026年9月22日 更新

Command-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI agents and power users who need to manage filtering, DNS rewrites, clients, DHCP, and query logs without a GUI.

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/CLI-Anything5.2万2026年9月22日 更新

Command-line interface for Anygen - A stateful command-line interface for AnyGen OpenAPI — generate professional slides, documents, webs...

日本語の概要は準備中です。原文の説明を表示しています。

HKUDS/CLI-Anything5.2万2026年9月22日 更新

HKUDS のスキルをすべて見る

このスキルの問題を報告する