Logo von File Retrieval

File Retrieval

Organisation
THU-SAGE
file-retrieval

Find a file on the local filesystem, show previews, and send it to the user after confirmation. Use when the user asks to find, locate, retrieve, or send a file.

Übersicht

HerausgeberTHU-SAGE
Repositorysyll
Skill-Namefile-retrieval
Sterne
303
Forks
2
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von THU-SAGE auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill File Retrieval in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/THU-SAGE/syll/tree/main/syll/skills/file-retrieval
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/THU-SAGE/syll.git /tmp/syll
mkdir -p .claude/skills
cp -r /tmp/syll/syll/skills/file-retrieval .claude/skills/file-retrieval
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie File Retrieval in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt File Retrieval automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist File Retrieval nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

File Retrieval

Use this skill when the user asks you to find a file on the local machine and deliver it through the current channel. Common phrasings: "find my X", "send me the X", "grab the X from my desktop", "I need the X file".

This skill uses three tools: find_file, file_preview, attach_file.

Procedure

The workflow spans two turns. Never collapse them into one.

Turn 1: discovery and preview

  1. Send a short message announcing the search. Example: "going to check the desktop now" / "looking for it now".
  2. Call find_file(query=..., root=..., extensions=[...]). Pick root based on what the user said (default ~/Desktop if unspecified and the request is casual; ~ for a full-home search; ~/Documents or ~/Downloads when hinted). Always pass extensions when the file type is known (e.g. ["pptx","ppt"], ["pdf"]).
  3. Branch on the result count:
    • 0 results: apologize briefly, ask whether to try another keyword or a different root. End the turn. Do not preview.
    • 1 result: continue to step 4. One hit is not implicit confirmation — still preview and still ask.
    • 2–5 results: continue to step 4.
    • More than 5: send a message saying the count is large and you will preview only the top 5 by modification time. Slice to the top 5 and continue.
  4. Send a message announcing the preview step. Example: "found N, rendering thumbnails so you can pick".
  5. Call file_preview(paths=[...]) with all candidate paths in one call.
  6. Produce the final reply for this turn. It must contain:
    • A numbered list of candidates.
    • For each candidate: filename, size, modification time, and the full absolute path written in the reply text.
    • A question asking the user to pick.
  7. Stop this turn. Do not call attach_file yet.

Why the absolute path must be in the reply text: the next turn's LLM context only preserves your previous assistant text, not tool-call arguments. If the path is missing from the text, you will lose it and have to re-run find_file.

Turn 2: confirmation and send

  1. Resolve the user's choice ("1", "the first one", "the newest", "that one") against the candidate list from your previous reply.
  2. If the choice is ambiguous, ask for clarification. Do not guess.
  3. Call attach_file(path=<resolved absolute path>).
  4. Final reply: a short confirmation that the file is on its way.

Worked Example (English)

User: find the weekly report pptx on my desktop

You, Turn 1:

  • message: "okay, taking a look at the desktop"

  • find_file(query="weekly", root="~/Desktop", extensions=["pptx","ppt"]) → 3 results

  • message: "found 3 — rendering thumbnails so you can pick"

  • file_preview(paths=[...])

  • Final reply:

    Found 3 on your desktop ✨

    [1] weekly_20260410.pptx 2.1MB 2026-04-10 18:23 (newest) /Users/you/Desktop/weekly_20260410.pptx [2] weekly_template.pptx 1.8MB 2026-03-01 10:00 /Users/you/Desktop/weekly_template.pptx [3] weekly_20260403.pptx 2.0MB 2026-04-03 17:50 /Users/you/Desktop/archive/weekly_20260403.pptx

    Thumbnails are above. Which one should I send?

    (Per SOUL.md: address the user by name occasionally at natural moments — most often as a handoff in Turn 2 like "here you go, Bo". Do not wedge it into every sentence.)

User, Turn 2: 1

You, Turn 2:

  • attach_file(path="/Users/you/Desktop/weekly_20260410.pptx")

  • Final reply:

    Here you go — weekly_20260410.pptx ☁️

Worked Example (Chinese)

User: 帮我找桌面上的周报 ppt

You, Turn 1:

  • message: "好呀,我去桌面看看"

  • find_file(query="周报", root="~/Desktop", extensions=["pptx","ppt"]) → 3 results

  • message: "找到 3 个,给你看看缩略图"

  • file_preview(paths=[...])

  • Final reply:

    找到 3 个周报候选 ✨

    [1] 周报_20260410.pptx 2.1MB · 04-10 18:23(最新) /Users/you/Desktop/周报_20260410.pptx [2] 周报_template.pptx 1.8MB · 03-01 /Users/you/Desktop/周报_template.pptx [3] 周报_20260403.pptx 2.0MB · 04-03 /Users/you/Desktop/archive/周报_20260403.pptx

    缩略图都贴上了,要发哪个?

User, Turn 2: 1

You, Turn 2:

  • attach_file(path="/Users/you/Desktop/周报_20260410.pptx")

  • Final reply:

    给你~ 周报_20260410.pptx ☁️

Rules (do not break these)

  • Never call attach_file in the same turn as find_file. The preview-and-ask step is mandatory.
  • Always write absolute paths into the reply text, not just into tool call arguments.
  • One result still requires confirmation. Do not auto-send on a single hit.
  • Progress messages must carry information. "Looking…" with no substance is noise. "Found 3, rendering thumbnails" is good.
  • Stop at zero results. Do not widen the search silently — ask the user whether to try another location or keyword.
  • On empty or ambiguous user replies in Turn 2, ask; do not guess which candidate they meant.

Häufig gestellte Fragen

Was macht der KI-Skill File Retrieval?

Find a file on the local filesystem, show previews, and send it to the user after confirmation. Use when the user asks to find, locate, retrieve, or send a file.

Warum File Retrieval in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. File Retrieval besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich File Retrieval in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/THU-SAGE/syll/tree/main/syll/skills/file-retrieval ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können File Retrieval nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit File Retrieval verwenden?

So viele Sie möchten. In TypingMind können Sie File Retrieval mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill File Retrieval kostenlos?

Ja. Der Skill wird von THU-SAGE auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇