Skip to content
Skillpedia
Prompts & LLMs81k · #1689

chat-format

What it does

This skill turns a list of chat messages into the exact text format a local AI model expects. It is for people running AI models on their own computer who need correctly formatted prompts.

When to use it

  • ✓When you run a local model and need the prompt in its template format.
  • ✓When you want a small router that sends a question to one of a few named intents.
  • ✓When you are preparing prompts for llama.cpp, Ollama or a similar local runtime.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvllm/skills/chat-format/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Format this chat as a prompt for my local llama3 model.”

5 new skills a week. 1 minute to read.

How it works

The skill takes the messages and the template name and returns the formatted text. It does not call any model. The optional router holds only a few patterns and is meant for choosing between intents.

Technical content (original SKILL.md)

Original text by the author, straight from 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.
FAQ

Does it work with hosted AI APIs?

No. The source says hosted APIs take structured messages, not a template string.

How many patterns can the router hold?

About eleven at most, so it suits routing between a few intents rather than searching documents.

What do I need installed?

A small WASM add-on package, which the skill says to install if it is missing.

Details

Original description by the author

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

Popularity

GitHub stars
81k
Ranking position
#1689
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills