SkillsReviewed · HKUDS

cli-anything-siyuan

cli-anything-siyuan is a skill for AI assistants and developers automating SiYuan notes, but it requires a running SiYuan service and a separately installed command-line tool. It documents notebook, document and block operations, search, SQL access and Markdown export through SiYuan's HTTP API.

Researched 16 Nov 2026

In short.

cli-anything-siyuan is an instruction skill for AI assistants and developers who want terminal access to SiYuan notes, but it depends on a running SiYuan kernel and a separately installed CLI. It describes Python 3.10+ prerequisites, JSON output, note management, search, SQL access and Markdown export. The supplied files contain the skill instructions and an Apache 2.0 licence, without the CLI implementation or test results. Nothing was executed; installation success, compatibility and runtime reliability remain unknown.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is siyuan/agent-harness/cli_anything/siyuan/skills in HKUDS/CLI-Anything at revision 34f519533bc175d2fe287ab8316b0dd99bb9cc43. The supplied complete folder capture contains SKILL.md; the repository-root LICENSE is the accompanying notice outside that folder. CLI implementation files, package metadata, dependencies, SiYuan source and other repository skills are outside the supplied scope. No installation, command, API call or test was executed; runtime behavior remains unassessed.

The overview

Identity

The resource is the cli-anything-siyuan skill in HKUDS/CLI-Anything, located at siyuan/agent-harness/cli_anything/siyuan/skills/SKILL.md. It guides use of a CLI harness for SiYuan, described as a local-first note-taking and knowledge-management application.

The skill is an instruction file rather than the CLI implementation. Its original folder is [https://github.com/HKUDS/CLI-Anything/tree/main/siyuan/agent-harness/cli_anything/siyuan/skills]. The findings describe the captured revision, not any later contents of that moving link.

Assessment

The skill is a plausible fit for existing SiYuan users who want an assistant to retrieve notes or perform named editing operations from the terminal. Its useful detail is the combination of command groups, machine-readable output guidance, authentication references and troubleshooting information.

The instructions support understanding the intended interface, but they do not demonstrate that the package installs successfully or that the commands behave as described. No execution or runtime testing was performed.

Users

Likely users include SiYuan notebook owners automating repeated tasks, developers building note-processing scripts, and people giving an AI assistant structured access to their knowledge base.

Beginners need some familiarity with a terminal, Python package installation and identifiers for notebooks, documents and blocks. Experienced developers get SQL access, JSON output guidance and an HTTP integration point, although detailed API schemas are absent.

Capabilities

Documented notebook operations include listing, creating, renaming, deleting and opening notebooks. Document operations include creation with Markdown content, listing, tree navigation, path lookup by ID, renaming and deletion.

Block commands cover insertion, updating, deletion, retrieval of kramdown source and listing children. Other documented features include full-text block search, SQL queries against the block database, Markdown document export, tag listing, kernel version lookup, connection status and an interactive REPL.

The guide also documents accepting document Markdown through standard input, which can avoid shell-escaping problems. These are described capabilities, not verified results.

Using it

Requirements

The guide requires Python 3.10 or newer and a running SiYuan kernel. It gives the default connection address as [http://127.0.0.1:6806] and identifies SiYuan Settings → About as the place to find the API token.

A separate cli-anything-siyuan installation is required. The material specifies neither a CLI package version nor a supported SiYuan release range, operating-system matrix or hardware requirement. It names no required AI model or provider.

Mechanism

The skill supplies instructions for invoking the CLI; the CLI connects to SiYuan's running kernel over HTTP. Commands expose notebook, document and block operations through that connection.

The guide recommends --json for machine-readable output and describes API errors as containing code and msg fields. It also exposes SQL-level access to the block database. Complete output schemas, request handling, retry behavior and SQL restrictions are not established by the supplied file.

Setup

The documented package-install command is pip install cli-anything-siyuan. An alternative is pip install -e . from the agent-harness directory. Package availability and installation success are unknown.

Start SiYuan and obtain its API token from Settings → About. The troubleshooting guidance refers to SIYUAN_TOKEN and ~/.siyuan-cli.json for authentication, but does not show the configuration file format.

A reasonable initial connection check is cli-anything-siyuan --json status, followed by cli-anything-siyuan --json notebook list. These are suggested uses of the documented interface; no output was observed.

Example

For an assistant asked to find meeting notes, cli-anything-siyuan --json search meeting expresses a full-text search without requesting an edit. cli-anything-siyuan --json notebook list can first identify the available notebooks.

For an already known document ID, cli-anything-siyuan export md DOCUMENT_ID requests Markdown export; replace DOCUMENT_ID with the actual identifier. The supplied material does not establish the precise search response schema or where exported content is delivered.

Assessment & evidence

Limitations

Only the skill instructions and accompanying licence are supplied. The CLI implementation, dependency declarations, tests, benchmarks and runtime logs are absent, so compatibility, reliability and performance remain unassessed.

The interface includes commands intended to change or delete notes. The guide does not describe confirmation prompts, rollback, recovery or permission granularity. Its SQL command is documented without a statement of enforced query restrictions.

The default loopback address describes the client connection. It does not establish how an AI assistant handles retrieved note content or how stored credentials are protected; those properties are unknown.

Reasoning

The practical appeal is that common SiYuan operations have named commands and a documented JSON mode. That design could help an assistant compose retrieval and editing tasks, but no improvement in accuracy, speed or effort has been measured.

Its fit depends on already using SiYuan and being able to maintain the local CLI-to-kernel connection. Users seeking a self-contained note application or a complete integration implementation would need more than this instruction file.

Alternatives

Using the underlying SiYuan application directly is a possible route for manual note work. For developers, making direct HTTP API calls is another possible route, inferred from the integration mechanism described in the guide.

Neither route was evaluated against this skill. The supplied material documents no competing skill or CLI, so comparative features, implementation effort, reliability and cost are unknown.

Evidence

The source material consists of the selected SKILL.md and the repository-root LICENSE, both pinned to revision 34f519533bc175d2fe287ab8316b0dd99bb9cc43.

The skill source is [https://raw.githubusercontent.com/HKUDS/CLI-Anything/34f519533bc175d2fe287ab8316b0dd99bb9cc43/siyuan/agent-harness/cli_anything/siyuan/skills/SKILL.md]. The licence source is [https://raw.githubusercontent.com/HKUDS/CLI-Anything/34f519533bc175d2fe287ab8316b0dd99bb9cc43/LICENSE].

These files support the documented interface and licence terms. They provide no observed installation results, command responses or completed automation journeys.

Access & freshness

Costs

No purchase price, subscription fee, usage rate or support price is specified for the CLI or SiYuan. Total operating cost is unknown, including any separate AI assistant or model charges.

The accompanying Apache 2.0 licence grants no-charge copyright and specified patent permissions under its terms. That establishes reuse permissions, not the price of dependencies, hosting, support or third-party services.

Rights

The accompanying repository LICENSE supplies Apache License 2.0 terms, allowing reproduction, modification and redistribution subject to its conditions. Redistribution requires a copy of the licence, prominent notices on modified files, retention of applicable source notices and preservation of relevant NOTICE attributions if such a file is included.

The licence includes a contributor patent grant with termination conditions, does not generally grant trademark rights and provides the work without warranties. These materials do not establish separate licensing terms for SiYuan, dependencies or users' note content.

Freshness

The supplied snapshot was captured at 2026-11-16T22:12:29.537Z from revision 34f519533bc175d2fe287ab8316b0dd99bb9cc43. That timestamp is a capture date, not a release date.

The pinned revision identifies the text described here. It does not establish an installed CLI version, compatibility with newer SiYuan releases or whether upstream has changed since capture.

Actions

Confirm that the CLI installs in your Python environment and connects to your SiYuan version. Begin with status, notebook listing and a representative search, then inspect the actual JSON output before building automation around it.

Check Markdown export with a known document and use a disposable notebook to evaluate creation, updates and deletion before automating changes to important notes. Confirm the token configuration and review how your chosen assistant handles retrieved content. These outcomes remain unverified.

Evidence for this report

LICENSEnotice · checked 2026-11-16