siyuan-mcp-search-query

siyuan-mcp-search-query is a skill for Codex from yangtaihong59/siyuan-plugins-mcp-sisyphus. It costs 49 tokens per session (428 once invoked), scanned A, original, MIT.

A playbook for searching and querying notes in SiYuan, a local note-taking and knowledge-management application. It covers text and meaning-based search, links between notes, assets, and read-only database queries.

In plain words
What is it for?
Use it to search notes, find backlinks and references, locate images, run limited read-only SQL queries, and perform approved find-and-replace edits.
Why use it?
It provides a consistent way to find the right notes, inspect them by ID or path, and avoid unsafe or incomplete queries. Changes require finding and reviewing the exact targets first.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to search notes, find backlinks and references, locate images, run limited read-only SQL queries, and perform approved find-and-replace edits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-mcp-search-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yangtaihong59/siyuan-plugins-mcp-sisyphus --skill siyuan-mcp-search-query
Clone the repo
git clone --depth 1 https://github.com/yangtaihong59/siyuan-plugins-mcp-sisyphus

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for siyuan-mcp-search-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-mcp-search-query/github.svg)](https://agentmods.dev/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-mcp-search-query)
Your own site
<a href="https://agentmods.dev/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-mcp-search-query"><img src="https://agentmods.dev/badge/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-mcp-search-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for siyuan-mcp-search-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-mcp-search-query"><img src="https://agentmods.dev/badge/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-mcp-search-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 428 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00428
Opus 5 $0.00024 $0.00214
Sonnet 5 $0.00010 $0.00086
Haiku 4.5 $0.00005 $0.00043

Measured 12d ago against content hash 4bdb9ffd2dc9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

siyuan-mcp-search-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/siyuan-mcp/siyuan-mcp-search-query/SKILL.md · 43 lines

What it actually says

Search and Query SiYuan with MCP

Search to identify candidates, read the target by ID or path, and only then edit. Use explicit pagination for repeatable results.

search(action="fulltext", query="keyword", page=1, pageSize=20)
search(action="semantic", query="concept or meaning", typeShortcodes=["h","p"], page=1, pageSize=20)
search(action="fulltext", query="keyword", parentId="<doc-id>", typeShortcodes=["h","p"])
search(action="query_sql", stmt="SELECT id, hpath, content FROM blocks WHERE type = 'p' ORDER BY updated DESC LIMIT 10")
search(action="get_backlinks", id="<block-or-doc-id>", mode="both")
search(action="search_refs", id="<block-id>", beforeLen=512)
search(action="search_assets", query="diagram", exts=["png","jpg","webp"])

SQL must be read-only and must include LIMIT. Useful tables include blocks, blocks_fts, attributes, refs, spans, and assets.

Find and replace

This action mutates content. First search, read each target, show the exact old/new text and IDs, and obtain explicit approval.

search(action="find_replace", k="old text", r="new text", ids=["<doc-id>"])

Read the changed blocks again. Recent writes can take time to enter the search index; verify a fresh mutation by ID or path rather than assuming an empty search means failure. Use siyuan://help/action/search/query_sql for live SQL action constraints.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 43 lines · 49 tokens per session scan A 4bdb9ffd2dc9

Subscribe to this mod's changes

siyuan-mcp-search-query is a skill published in the GitHub repository yangtaihong59/siyuan-plugins-mcp-sisyphus (104 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 428 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens