chat-format
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.
How do I install this agent skill?
npx skills add https://github.com/ruvnet/ruflo --skill chat-formatIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is generally safe but processes external data and documents for LLM context, creating a potential surface for indirect prompt injection.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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
- Format chat — call
mcp__plugin_ruflo-core_ruflo__ruvllm_chat_formatwithmessages([{role, content}]) andtemplate: one ofllama3,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. - Create a router (optional) —
ruvllm_hnsw_createwithdimensions(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 usememory_searchor theruflo-rag-memoryplugin. - Add patterns —
ruvllm_hnsw_addwithrouterId, aname, and anembeddingwhose length equals the router's dimensions (you produce the embedding, for example withembeddings_generate). - Route a query —
ruvllm_hnsw_routewithrouterId, the queryembedding, andk(default 3). - Check status —
ruvllm_statusshows whether the WASM module loaded. Routers live in the MCP server process only; they are gone when it restarts.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/ruvnet/ruflo/chat-format">View chat-format on skillZs</a>