siyuan-sisyphus-search-query

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

A command-line guide for searching and querying SiYuan notes, documents, and blocks. It covers text search, meaning-based search, read-only database queries, links to related content, assets, and controlled find-and-replace.

In plain words
What is it for?
Use it to find notes by words or meaning, inspect backlinks and references, search images and other assets, run limited SQL queries, and perform verified replacements in matching content.
Why use it?
It helps locate the right content before reading or changing it and requires database queries to be read-only and limited in size. This reduces the risk of editing the wrong document or returning unbounded results.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to find notes by words or meaning, inspect backlinks and references, search images and other assets, run limited SQL queries, and perform verified replacements in matching content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-sisyphus-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-sisyphus-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-sisyphus-search-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-sisyphus-search-query/github.svg)](https://agentmods.dev/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-sisyphus-search-query)
Your own site
<a href="https://agentmods.dev/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-sisyphus-search-query"><img src="https://agentmods.dev/badge/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-sisyphus-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-sisyphus-search-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-sisyphus-search-query"><img src="https://agentmods.dev/badge/skills/yangtaihong59/siyuan-plugins-mcp-sisyphus/siyuan-sisyphus-search-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 538 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.
Origin 88% copy Near-identical to another mod 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.00058 $0.00538
Opus 5 $0.00029 $0.00269
Sonnet 5 $0.00012 $0.00108
Haiku 4.5 $0.00006 $0.00054

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

Security

Grade A, and why

siyuan-sisyphus-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

This is a copy

88% identical to siyuan-mcp-search-query — 40 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

What it actually says

Search and Query SiYuan with the CLI

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

siyuan-sisyphus search fulltext --query 'keyword' --page '1' --page-size '20' --json
siyuan-sisyphus search semantic --query 'concept or meaning' --type-shortcodes-json '["h","p"]' --page '1' --page-size '20' --json
siyuan-sisyphus search fulltext --query 'keyword' --parent-id '<doc-id>' --type-shortcodes-json '["h","p"]' --json
siyuan-sisyphus search query-sql --stmt 'SELECT id, hpath, content FROM blocks WHERE type = '"'"'p'"'"' ORDER BY updated DESC LIMIT 10' --json
siyuan-sisyphus search get-backlinks --id '<block-or-doc-id>' --mode 'both' --json
siyuan-sisyphus search search-refs --id '<block-id>' --before-len '512' --json
siyuan-sisyphus search search-assets --query 'diagram' --exts-json '["png","jpg","webp"]' --json

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.

siyuan-sisyphus search find-replace --k 'old text' --r 'new text' --ids-json '["<doc-id>"]' --json

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-sisyphus help 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 · 58 tokens per session scan A b8247c6193e5

Subscribe to this mod's changes

siyuan-sisyphus-search-query is a skill published in the GitHub repository yangtaihong59/siyuan-plugins-mcp-sisyphus (104 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 538 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to siyuan-mcp-search-query, differing in 40 lines, and is treated as a copy.

Related

Other skills, from other repositories