What problem does it solve?
This Skill solves the problem of programmatically searching, reading, creating, updating, and deleting blocks and documents in a self-hosted SiYuan knowledge base instead of doing everything manually in the UI.
Core Features & Use Cases
- Full-text and SQL search: Find relevant blocks/documents quickly using
/api/search/fullTextSearchBlock and safe SELECT queries via /api/query/sql.
- Block and document management: Read content (Kramdown), traverse child blocks, create notebooks/documents, append/update blocks, rename documents, and delete blocks or documents.
- Attributes and export: Set custom attributes on blocks and export documents as Markdown for downstream workflows.
Use case example: You want to build an automated daily notes workflow that searches for meetings from yesterday, appends a new agenda section into the right document, sets a priority attribute, and exports the updated document as Markdown.
Quick Start
Ask your assistant: "Using the siyuan skill, export the Markdown of document ID 20210808180117-6v0mkxr from my local SiYuan instance and return the content."