tibishu-note-search
Skill0 starsChanged 5 months agoMITView on GitHub
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.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-designSkill
- architecture-consultantSkill
- backend-patternsSkill
- ci-cdSkill
- code-reviewSkill
- containersSkill
- database-migrationsSkill
- doc-generatorSkill
- git-workflowSkill
- go-reviewSkill
- luaSkill
- markdownSkill
- nginxSkill
- nodejsSkill
- observabilitySkill
- product-managerSkill
- project-standards-initSkill
- prompt-designSkill
- python-reviewSkill
- reactSkill
- redisSkill
- relay-imagegenSkill
- releaseSkill
- security-baselineSkill
- semi-mcp-setupSkill
- tailwindcssSkill
- test-engineeringSkill
- tibishu-notesSkill
- typescript-reviewSkill
- unity-csharpSkill
- validation-lintSkill
- vueSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run the Names stage. It lists Markdown paths whose folder or filename matches the query without reading file contents.
- Very specific: line 20
Run the Headers stage only when filenames leave several plausible choices or no match.
- Very specific: line 23
Run the Content stage only when the first two stages cannot identify the note.
- Distinctive: line 25
Read the complete Markdown of the selected file only when needed to answer the request, then cite its path and distinguish recorded facts …
- Distinctive: line 28
Run the stages with the bundled helper.
- Distinctive: line 43
Treat directory names and filenames as the primary taxonomy.
- Very specific: line 46
Treat Blog front matter (title, description, date, categories, and tags) as the second-level index.
- Distinctive: line 59
Do not maintain a persistent index for the current small library: it adds invalidation work and can become stale while yielding little …
- Distinctive: line 61
Consider a regenerated header-only index only after measuring a real latency problem with a much larger collection.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Run the
Namesstage. It lists Markdown paths whose folder or filename matches the query without reading file contents. - Run the
Headersstage 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. - Run the
Contentstage only when the first two stages cannot identify the note. It usesrgto find matching files but does not load their full text. - 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.
& "$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, andtags) 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

