agentleFS
weiweimhyweiweimhy/agent-skills/tibishu-note-search/SKILL.md

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.

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
  1. Very specific:

    Run the Names stage. It lists Markdown paths whose folder or filename matches the query without reading file contents.

    line 18
  2. Very specific:

    Run the Headers stage only when filenames leave several plausible choices or no match.

    line 20
  3. Very specific:

    Run the Content stage only when the first two stages cannot identify the note.

    line 23
  4. Distinctive:

    Read the complete Markdown of the selected file only when needed to answer the request, then cite its path and distinguish recorded facts …

    line 25
  5. Distinctive:

    Run the stages with the bundled helper.

    line 28
  6. Distinctive:

    Treat directory names and filenames as the primary taxonomy.

    line 43
  7. Very specific:

    Treat Blog front matter (title, description, date, categories, and tags) as the second-level index.

    line 46
  8. Distinctive:

    Do not maintain a persistent index for the current small library: it adds invalidation work and can become stale while yielding little …

    line 59
  9. Distinctive:

    Consider a regenerated header-only index only after measuring a real latency problem with a much larger collection.

    line 61

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

& "$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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.