本文へスキップ
Skillpedia
プロンプトとLLM81k · #1689

chat-format

できること

このスキルは、チャットのメッセージの一覧を、ローカルの AI モデルが期待する正確なテキスト形式に変えます。自分のパソコンで AI モデルを動かし、正しく整形されたプロンプトが必要な人向けです。

使う場面

  • ✓ローカルのモデルを動かしていて、プロンプトをそのテンプレートの形式にしたいとき。
  • ✓質問を、いくつかの名前付きの意図の一つに振り分ける小さなルーターがほしいとき。
  • ✓llama.cpp、Ollama などのローカルの実行環境向けにプロンプトを準備するとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvllm/skills/chat-format/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このチャットを、ローカルの llama3 モデル用のプロンプトに整形してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、メッセージとテンプレート名を受け取り、整形されたテキストを返します。どの AI モデルも呼び出しません。任意のルーターは、わずかなパターンだけを持ち、意図を選ぶためのものです。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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.
よくある質問

ホストされた AI の API でも使えますか?

いいえ。ソースによると、ホストされた API は、テンプレートの文字列ではなく、構造化されたメッセージを受け取ります。

ルーターには何パターンまで入りますか?

最大で約11パターンです。そのため、文書の検索ではなく、いくつかの意図の振り分けに向いています。

何がインストールされている必要がありますか?

小さな WASM のアドオンパッケージです。見つからない場合は、このスキルがインストールするよう伝えます。

詳細

作者による元の説明

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

人気

GitHubのスター
81k
ランキング
#1689
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル