मुख्य सामग्री पर जाएँ
Skillpedia
लेखन58k · #3247

cli-anything-siyuan

यह क्या करती है

यह स्किल AI एजेंट को SiYuan के साथ काम करने देती है, जो ज्ञान-आधार बनाने के लिए एक लोकल नोट्स ऐप है। यह उन लोगों के लिए है जो SiYuan में नोट्स रखते हैं और चाहते हैं कि उनका एजेंट उन्हें व्यवस्थित और खोजने में मदद करे।

कब इस्तेमाल करें

  • ✓जब आप SiYuan में नई नोटबुक या नया दस्तावेज़ बनाना चाहते हैं।
  • ✓जब आपको अपने पूरे ज्ञान-आधार में किसी विषय पर नोट्स खोजने हैं।
  • ✓जब आप किसी मौजूदा दस्तावेज़ में टेक्स्ट का block बदलना या जोड़ना चाहते हैं।

Skill का लिंक

https://github.com/HKUDS/CLI-Anything/blob/main/siyuan/agent-harness/cli_anything/siyuan/skills/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/CLI-Anything/blob/main/siyuan/agent-harness/cli_anything/siyuan/skills/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे SiYuan नोट्स में spring project के बारे में जो भी है, खोजिए और उसका सारांश एक नए दस्तावेज़ में लिखिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट API token के साथ आपके कंप्यूटर पर SiYuan ऐप से उसके लोकल API के ज़रिए जुड़ता है। वह नोटबुक, दस्तावेज़ और blocks पढ़ता और लिखता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

cli-anything-siyuan

CLI harness for SiYuan (思源笔记), a local-first knowledge management and note-taking application.

This CLI connects to a running SiYuan kernel via its HTTP API (http://127.0.0.1:6806) and provides structured access to notebooks, documents, blocks, search, and export.

Prerequisites

  • SiYuan must be running (Settings → About shows the API token)
  • Python 3.10+
  • Install: pip install cli-anything-siyuan or pip install -e . from agent-harness/

Command Groups

notebook — Notebook management

Subcommand Description
list List all notebooks
create <name> Create a new notebook
rename <id> <name> Rename a notebook
remove <id> Delete a notebook
open <id> Open a notebook

doc — Document management

Subcommand Description
create <notebook> <path> [--md "content"] Create a document
list <notebook> [path] List documents
tree <notebook> [--path / --depth] Show doc tree
get <id> Get document path by ID
rename <id> <title> Rename a document
remove <id> Delete a document

block — Block operations

Subcommand Description
insert <data> [--previous / --parent] Insert a block
update <id> <data> Update a block
delete <id> Delete a block
get <id> Get block kramdown source
children <id> Get child blocks

Other commands

Command Description
sql <stmt> Execute SQL on the block database
search <query> Full-text search across blocks
export md <doc-id> Export document as Markdown
tag list List all tags
version Show SiYuan kernel version
status Show connection and session status
repl Start interactive REPL

Agent Guidance

  • Always use --json for machine-readable output
  • Power search: use sql "SELECT * FROM blocks WHERE content LIKE '%keyword%'" for SQL-level access
  • Document IDs look like 20210817205410-2kvfpfn (timestamp-based)
  • API token can be found in SiYuan Settings → About
  • Connection defaults: http://127.0.0.1:6806

Examples

# List notebooks (JSON)
cli-anything-siyuan --json notebook list

# Create a document with Markdown (--md flag, watch shell escaping)
cli-anything-siyuan doc create nb1 /projects/new --md "## Title\n\nContent"

# Create a document — pipe Markdown via stdin (avoids shell escaping)
# PowerShell here-string (literal, no escaping needed):
@'
## Title
Content with `backticks` and (parentheses) and "quotes"
'@ | cli-anything-siyuan doc create nb1 /projects/new --md -

# Bash heredoc:
# cat <<'EOF' | cli-anything-siyuan doc create nb1 /projects/new --md -
# ## Title
# Content with `backticks` and (parentheses)
# EOF

# SQL search
cli-anything-siyuan sql "SELECT id, content FROM blocks WHERE content LIKE '%meeting%' LIMIT 5"

# Export
cli-anything-siyuan export md doc123

# Enter REPL
cli-anything-siyuan

Error Handling

  • Connection errors: check that SiYuan is running and the API token is correct
  • API errors: returned as {"code": N, "msg": "..."} — check the message field
  • Auth errors: verify the token in ~/.siyuan-cli.json or SIYUAN_TOKEN env var
अक्सर पूछे जाने वाले सवाल

क्या SiYuan चालू होना चाहिए?

हाँ। SiYuan kernel चालू होना चाहिए, और API token Settings में About के नीचे मिलता है।

क्या यह मेरे नोट्स एक्सपोर्ट कर सकती है?

हाँ। स्किल में दस्तावेज़ों के लिए एक्सपोर्ट विकल्प हैं।

क्या यह नोट्स मिटा सकती है?

हाँ। नोटबुक और दस्तावेज़ों को हटाने के लिए remove कमांड हैं, इसलिए सावधानी से इस्तेमाल करें।

जानकारी

लेखक का मूल विवरण

SiYuan (思源笔记) CLI — manage notebooks, documents, blocks, and search your knowledge base from the terminal.

repo: HKUDS/CLI-Anything

लोकप्रियता

GitHub स्टार
58k
रैंकिंग में स्थान
#3247
लाइसेंस
Apache-2.0
अपडेट की गई
21/9/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

cli-anything-3mf

58k

यह आपके एजेंट को 3D प्रिंटिंग फ़ाइलों का निरीक्षण और सुधार करने देती है, जिसमें गोल छेद खोजना, उनका आकार बदलना, मेश ठीक करना और दो फ़ाइलों की तुलना शामिल है।

डिज़ाइनइमेज और आइकन

cli-anything-qgis

58k

यह आपके एजेंट को टर्मिनल से QGIS मैप प्रोजेक्ट खोलने, संपादित करने और निर्यात करने देती है, जिसमें लेयर, फ़ीचर, प्रिंट लेआउट और प्रोसेसिंग टूल शामिल हैं।

डेटाएनालिसिस और स्प्रेडशीट

cli-anything-adguardhome

58k

यह आपके एजेंट को AdGuard Home, एक नेटवर्क-व्यापी ऐड ब्लॉकर, प्रबंधित करने देती है, जिसमें फ़िल्टर, DNS rewrites, क्लाइंट और क्वेरी लॉग शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

cli-anything-anygen

58k

यह आपके एजेंट को लिखे गए प्रॉम्प्ट से AnyGen सेवा का उपयोग करके स्लाइड, दस्तावेज़, वेबसाइट और आरेख बनवाने देती है।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

मिलती-जुलती skills