Zum Inhalt springen
Skillpedia
Prompts & LLMs81k · #1689

chat-format

Was er macht

Dieser Skill wandelt eine Liste von Chat-Nachrichten in das genaue Textformat um, das ein lokales KI-Modell erwartet. Er ist für Menschen gedacht, die KI-Modelle auf dem eigenen Computer betreiben und korrekt formatierte Prompts brauchen.

Wann du ihn nutzt

  • ✓Wenn du ein lokales Modell betreibst und den Prompt im Vorlagenformat brauchst.
  • ✓Wenn du einen kleinen Router willst, der eine Frage an eine von wenigen benannten Absichten weitergibt.
  • ✓Wenn du Prompts für llama.cpp, Ollama oder eine ähnliche lokale Laufzeitumgebung vorbereitest.

Link zum Skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvllm/skills/chat-format/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvllm/skills/chat-format/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Formatiere diesen Chat als Prompt für mein lokales llama3-Modell.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill nimmt die Nachrichten und den Namen der Vorlage und gibt den formatierten Text zurück. Er ruft kein Modell auf. Der optionale Router enthält nur wenige Muster und dient dazu, zwischen Absichten zu wählen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Chat Format

Format prompts for multi-provider LLM inference with context retrieval.

When to use

When you need a prompt string in a local model's chat template (for llama.cpp, Ollama or another local runtime), or a small embedding-based router over a handful of patterns. It does not call a model and it does not format for hosted APIs: Anthropic, OpenAI and Gemini take structured messages, not a template string.

Steps

  1. Format chat — call mcp__plugin_ruflo-core_ruflo__ruvllm_chat_format with messages ([{role, content}]) and template: one of llama3, mistral, chatml, phi, gemma, or a model id to auto-detect. Both fields are required. It returns the formatted string. It needs @ruvector/ruvllm-wasm (npm i -g @ruvector/ruvllm-wasm); without it the call fails with an install hint.
  2. Create a router (optional) — ruvllm_hnsw_create with dimensions (for example 384), maxPatterns, efSearch. The WASM router holds about 11 patterns at most (ruvllm-wasm v2.0.1), so use it for routing between a few named intents, not for document retrieval. For real document search use memory_search or the ruflo-rag-memory plugin.
  3. Add patterns — ruvllm_hnsw_add with routerId, a name, and an embedding whose length equals the router's dimensions (you produce the embedding, for example with embeddings_generate).
  4. Route a query — ruvllm_hnsw_route with routerId, the query embedding, and k (default 3).
  5. Check status — ruvllm_status shows whether the WASM module loaded. Routers live in the MCP server process only; they are gone when it restarts.
Häufige Fragen

Funktioniert er mit gehosteten KI-APIs?

Nein. Die Quelle sagt, gehostete APIs nehmen strukturierte Nachrichten statt einer Vorlagenzeichenfolge.

Wie viele Muster kann der Router enthalten?

Höchstens etwa elf. Er eignet sich daher für die Zuordnung zu wenigen Absichten, nicht für die Suche in Dokumenten.

Was muss ich installieren?

Ein kleines WASM-Erweiterungspaket, das der Skill installiert, falls es fehlt.

Details

Originalbeschreibung des Autors

Format chat messages in a local model's template (llama3, mistral, chatml, phi, gemma, or a model id) and route queries over a small WASM HNSW pattern index (about 11 patterns). Use when preparing prompts for local runtimes.

repo: ruvnet/ruflo

Beliebtheit

GitHub-Sterne
81k
Platz im Ranking
#1689
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills