cli-anything-siyuan
Skill by HKUDS
Manages SiYuan notebooks, documents, blocks and search from the terminal. Gives AI assistants command-line access to a running SiYuan knowledge base. Intended for users who keep their notes in SiYuan.
Install cli-anything-siyuan
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.claude/skills && cp -r /tmp/CLI-Anything/siyuan/agent-harness/cli_anything/siyuan/skills ~/.claude/skills/cli-anything-siyuanRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/CLI-Anything/siyuan/agent-harness/cli_anything/siyuan/skills ~/.gemini/antigravity-cli/skills/cli-anything-siyuanAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cli-anything-siyuan in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
cli-anything-siyuan is a command-line harness for SiYuan (思源笔记), a local-first knowledge management and note-taking application. It connects to a running SiYuan kernel through its HTTP API, at http://127.0.0.1:6806 by default. Commands cover notebooks, documents, blocks, SQL queries, full-text search, Markdown export, tags and an interactive REPL.
The source describes it as giving structured access to notebooks, documents, blocks, search and export. It supports machine-readable output with the --json flag and reads an API token from ~/.siyuan-cli.json or the SIYUAN_TOKEN variable. It is aimed at users who keep a SiYuan knowledge base and want scripted or agent-driven access to it from the terminal.
Written from the project's SKILL.md and checked against it.
What it can do
- notebookList, create, rename, remove and open notebooks.
- docCreate, list, show as a tree, get by ID, rename and remove documents.
- blockInsert, update, delete and read blocks, and list child blocks.
- sqlRun SQL statements against the block database.
- searchRun full-text search across blocks.
- export mdExport a document as Markdown.
- tag listList all tags in the knowledge base.
- statusShow connection and session status.
- replStart an interactive REPL.
What you need
- SiYuan running locally
- SiYuan API token from Settings → About
- Python 3.10+
- pip to install cli-anything-siyuan
Try asking
- List my SiYuan notebooks and show the document tree for one of them.
- Search my SiYuan notes for anything that mentions meeting.
- Export document doc123 from SiYuan as Markdown.
Good to know
- Requires a running SiYuan kernel; connection errors occur otherwise.
- Passing Markdown with --md needs care because of shell escaping; piping via stdin is suggested.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: siyuan/agent-harness/cli_anything/siyuan/skills/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md3 KB
Alternatives to cli-anything-siyuan
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
cli-anything-siyuan: common questions
Does cli-anything-siyuan need SiYuan to be running?
Yes. The source says SiYuan must be running, and the CLI connects to the kernel through its HTTP API at http://127.0.0.1:6806 by default.
Where do I find the SiYuan API token?
The source says it is in SiYuan Settings → About. Auth errors can be checked against the token in ~/.siyuan-cli.json or the SIYUAN_TOKEN environment variable.
How do I write Markdown content without shell escaping problems?
The source recommends piping the Markdown into doc create with --md - using a PowerShell here-string or a Bash heredoc.
How do I install cli-anything-siyuan?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cli-anything-siyuan free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cli-anything-siyuan safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cli-anything-siyuan?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
