siyuan
Was er macht
Dieser Skill verbindet deinen Agenten mit SiYuan, einer Notiz-App, die du auf deinem eigenen Rechner oder Server betreibst. Er ist für Menschen gedacht, die eine private Wissensdatenbank führen und ihren Agenten damit arbeiten lassen wollen.
Wann du ihn nutzt
- ✓Wenn dein Agent deine SiYuan-Notizen nach einem Thema durchsuchen soll.
- ✓Wenn dein Agent eine Notiz oder ein Dokument in SiYuan anlegen oder aktualisieren soll.
- ✓Wenn du das API-Token aus den SiYuan-Einstellungen holen und für den Agenten speichern musst.
Link zum Skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/siyuan/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Durchsuche meine SiYuan-Notizen nach allem, was ich über das Budget für das dritte Quartal geschrieben habe, und fasse es zusammen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill sendet POST-Anfragen mit curl an deinen SiYuan-Server und nutzt dein API-Token. Er liest die Antwort und meldet Fehler aus dem Feld message.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
SiYuan Note API
Use the SiYuan kernel API via curl to search, read, create, update, and delete blocks and documents in a self-hosted knowledge base. No extra tools needed -- just curl and an API token.
Prerequisites
- Install and run SiYuan (desktop or Docker)
- Get your API token: Settings > About > API token
- Store it in
${HERMES_HOME:-~/.hermes}/.env:SIYUAN_TOKEN=your_token_here SIYUAN_URL=http://127.0.0.1:6806SIYUAN_URLdefaults tohttp://127.0.0.1:6806if not set.
API Basics
All SiYuan API calls are POST with JSON body. Every request follows this pattern:
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/..." \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"param": "value"}'
Responses are JSON with this structure:
{"code": 0, "msg": "", "data": { ... }}
code: 0 means success. Any other value is an error -- check msg for details.
ID format: SiYuan IDs look like 20210808180117-6v0mkxr (14-digit timestamp + 7 alphanumeric chars).
Quick Reference
| Operation | Endpoint |
|---|---|
| Full-text search | /api/search/fullTextSearchBlock |
| SQL query | /api/query/sql |
| Read block | /api/block/getBlockKramdown |
| Read children | /api/block/getChildBlocks |
| Get path | /api/filetree/getHPathByID |
| Get attributes | /api/attr/getBlockAttrs |
| List notebooks | /api/notebook/lsNotebooks |
| List documents | /api/filetree/listDocsByPath |
| Create notebook | /api/notebook/createNotebook |
| Create document | /api/filetree/createDocWithMd |
| Append block | /api/block/appendBlock |
| Update block | /api/block/updateBlock |
| Rename document | /api/filetree/renameDocByID |
| Set attributes | /api/attr/setBlockAttrs |
| Delete block | /api/block/deleteBlock |
| Delete document | /api/filetree/removeDocByID |
| Export as Markdown | /api/export/exportMdContent |
Common Operations
Search (Full-Text)
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/search/fullTextSearchBlock" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "meeting notes", "page": 0}' | jq '.data.blocks[:5]'
Search (SQL)
Query the blocks database directly. Only SELECT statements are safe.
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/query/sql" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"stmt": "SELECT id, content, type, box FROM blocks WHERE content LIKE '\''%keyword%'\'' AND type='\''p'\'' LIMIT 20"}' | jq '.data'
Useful columns: id, parent_id, root_id, box (notebook ID), path, content, type, subtype, created, updated.
Read Block Content
Returns block content in Kramdown (Markdown-like) format.
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/block/getBlockKramdown" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "20210808180117-6v0mkxr"}' | jq '.data.kramdown'
Read Child Blocks
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/block/getChildBlocks" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "20210808180117-6v0mkxr"}' | jq '.data'
Get Human-Readable Path
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/filetree/getHPathByID" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "20210808180117-6v0mkxr"}' | jq '.data'
Get Block Attributes
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/attr/getBlockAttrs" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "20210808180117-6v0mkxr"}' | jq '.data'
List Notebooks
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/notebook/lsNotebooks" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{}' | jq '.data.notebooks[] | {id, name, closed}'
List Documents in a Notebook
curl -s -X POST "${SIYUAN_URL:-http://127.0.0.1:6806}/api/filetree/listDocsByPath" \
-H "Authorization: Token $SIYUAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"notebook": "NOTEBOOK_ID", "path": "/"}' | jq '.data.files[] | {id, name}'
Häufige Fragen
Wo finde ich das API-Token?
Der Skill sagt, du öffnest die SiYuan-Einstellungen, gehst zu About und kopierst das API-Token.
Welche Adresse nutzt er?
Er nutzt SIYUAN_URL, wenn du sie setzt, sonst standardmäßig http://127.0.0.1:6806.
Braucht er weitere Werkzeuge?
Nein. Der Skill sagt, er braucht nur curl und dein API-Token.
Details
Originalbeschreibung des Autors
Query and edit a SiYuan knowledge base via its API.
Beliebtheit
- GitHub-Sterne
- 260k
- Platz im Ranking
- #545
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
agent-merge-conflict-arbiter
260kLöst einen Git-Merge-Konflikt zwischen den Branches zweier Agenten als neutrale dritte Partei und erzeugt ein zusammengeführtes Ergebnis für das Repo.
antigravity-cli
260kFührt dich durch Installation, Aktualisierung und Fehlersuche des Antigravity-Kommandozeilenwerkzeugs, einschließlich Plugins, Anmeldung und Sandbox.
blackbox
260kLässt deinen Agenten eine Coding-Aufgabe an das Blackbox-KI-Kommandozeilenwerkzeug übergeben, das mehrere KI-Modelle nutzt und das beste Ergebnis auswählt.
dynamic-workflow
260kBringt deinem Agenten bei, große Stapel gleichartiger Arbeit als gespeichertes Skript auszuführen, sodass nur geprüfte Ergebnisse in die Hauptunterhaltung zurückkehren.
Ähnliche Skills
obsidian-vault-maintainer
394kHilft deinem Agenten, einen Obsidian-tauglichen Gedächtnis-Vault ordentlich zu halten, mit funktionierenden Wiki-Links, einheitlichen Eigenschaften und sicheren generierten Abschnitten.
wiki-maintainer
394kHilft deinem Agenten, ein OpenClaw-Gedächtnis-Wiki mit wiederholbaren Seiten, sicheren verwalteten Blöcken und Prüfungen auf Widersprüche oder Lücken zu pflegen.
obsidian
394kLässt deinen Agenten Obsidian-Notizen, Aufgaben, Links und Eigenschaften mit der offiziellen Obsidian-Kommandozeile lesen, durchsuchen, erstellen und bearbeiten.