What problem does it solve?
Managing a SiYuan knowledge base normally requires the desktop UI; this Skill lets AI agents and terminal users create notebooks, edit documents and blocks, run SQL queries, and search content programmatically through the SiYuan kernel's HTTP API.
Core Features & Use Cases
- Notebook and Document Management: Create, rename, list, and delete notebooks and documents, and browse the document tree.
- Block-Level Editing: Insert, update, delete, and inspect individual content blocks, including retrieving kramdown source.
- SQL and Full-Text Search: Query the block database directly with SQL or run full-text search across all notes.
- Use Case: An AI agent can create a new document with Markdown content piped via stdin, then run
sql "SELECT * FROM blocks WHERE content LIKE '%meeting%'" to retrieve related notes for a summary.
Quick Start
Ask the agent to list all SiYuan notebooks in JSON format using the cli-anything-siyuan notebook list command.