tibishu-note-search
weiweimhy/agent-skills/tibishu-note-search/SKILL.md
Find and read Markdown notes in the knowledge base configured by TIBISHU_NOTES_PATH through a fast, layered search. Use when a user asks to locate, identify, list, inspect, or summarize existing Tibishu notes, especially when the note's folder, filename, Blog front matter, or body text may identify it.
Skill0 starsChanged 3 months ago
What's in it
- Tibishu Note Search
- Search Order
- Reading Rules
- Indexing Boundary
--- name: tibishu-note-search description: Find and read Markdown notes in the knowledge base configured by TIBISHU_NOTES_PATH through a fast, layered search. Use when a user asks to locate, identify, list, inspect, or summarize existing Tibishu notes, especially when the note's folder, filename, Blog front matter, or body text may identify it. --- # Tibishu Note Search Resolve the note root from `TIBISHU_NOTES_PATH`: read the process environment variable first, then the Windows user environment value when the process value is empty. If neither is set, stop and ask the user to configure **笔记库 → 笔记路径** in the desktop app. Search the resolved root read-only. Minimize file content loaded into the conversation: paths and filenames first, Blog front matter second, and body text only as a fallback. Do not create indexes, edit notes, or open unrelated complete files. ## Search Order 1. Run the `Names` stage. It lists Markdown paths whose folder or filename matches the query without reading file contents. 2. Run the `Headers` stage only when filenames leave several plausible choices or no match. It reads only the opening YAML front matter of filename matches; when there are no filename matches, it scans only all note headers. 3. Run the `Content` stage only when the first two stages cannot identify the note. It uses `rg` to find matching files but does not load their full text. 4. Read the complete Markdown of the selected file only when needed to answer the request, then cite its path and distinguish recorded facts from inference. Run the stages with the bundled helper. Replace the query with the user's keywords and stop as soon as the result is unambiguous. ```powershell & "$PSScriptRoot\scripts\Find-TibishuNotes.ps1" -Stage Names -Query "HTTPS" & "$PSScriptRoot\scripts\Find-TibishuNotes.ps1" -Stage Headers -Query "HTTPS" & "$PSScriptRoot\scripts\Find-TibishuNotes.ps1" -Stage Content -Query "HTTPS" ``` The helper returns only paths and short metadata. It is read-only and uses `rg --files` plus `rg --files-with-matches` when ripgrep is available, with a PowerShell fallback. ## Reading Rules - Treat directory names and filenames as the primary taxonomy. Search exact project, product, protocol, or topic terms before using broad natural-language questions. - Treat Blog front matter (`title`, `description`, `date`, `categories`, and `tags`) as the second-level index. Do not read past its closing `---` during the header stage. - On a body match, inspect the header before reading the full note so similarly named notes remain distinguishable. - For a list request, return matching paths and metadata rather than complete note bodies. For a question that requires content, read the smallest selected set of notes. - Preserve Markdown, unknown extensions, and personal content exactly. This skill never modifies the resolved note root. ## Indexing Boundary Do not maintain a persistent index for the current small library: it adds invalidation work and can become stale while yielding little speed benefit. Consider a regenerated header-only index only after measuring a real latency problem with a much larger collection.
More agent context in weiweimhy/agent-skills
33 other files this repository gives its agents.
AGENTS.md
Skill
- api-designapi-design/SKILL.md
- architecture-consultantarchitecture-consultant/SKILL.md
- backend-patternsbackend-patterns/SKILL.md
- ci-cdci-cd/SKILL.md
- code-reviewcode-review/SKILL.md
- containerscontainers/SKILL.md
- database-migrationsdatabase-migrations/SKILL.md
- doc-generatordoc-generator/SKILL.md
- git-workflowgit-workflow/SKILL.md
- go-reviewgo-review/SKILL.md
- lualua/SKILL.md
- markdownmarkdown/SKILL.md
- nginxnginx/SKILL.md
- nodejsnodejs/SKILL.md
- observabilityobservability/SKILL.md
- product-managerproduct-manager/SKILL.md
- project-standards-initproject-standards-init/SKILL.md
- prompt-designprompt-design/SKILL.md
- python-reviewpython-review/SKILL.md
- reactreact/SKILL.md
- redisredis/SKILL.md
- relay-imagegenrelay-imagegen/SKILL.md
- releaserelease/SKILL.md
- security-baselinesecurity-baseline/SKILL.md
- semi-mcp-setupsemi-mcp-setup/SKILL.md
- tailwindcsstailwindcss/SKILL.md
- test-engineeringtest-engineering/SKILL.md
- tibishu-notestibishu-notes/SKILL.md
- typescript-reviewtypescript-review/SKILL.md
- unity-csharpunity-csharp/SKILL.md
- validation-lintvalidation-lint/SKILL.md
- vuevue/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

