Keenetic Rciのロゴ

Keenetic Rci

コミュニティ
salatmaster
keenetic-rci

Use when a Keenetic question is not covered by the curated tools and you need rci_call - explains the RCI tree, the paths that exist, the responses that will blow up your context, and the traps that make a wrong call look like success

概要

公開者salatmaster
リポジトリkeenetic-mcp
スキル名keenetic-rci
スター
31
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    salatmasterがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Keenetic Rci」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/salatmaster/keenetic-mcp/tree/main/plugins/keenetic/skills/keenetic-rci
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/salatmaster/keenetic-mcp.git /tmp/keenetic-mcp
mkdir -p .claude/skills
cp -r /tmp/keenetic-mcp/plugins/keenetic/skills/keenetic-rci .claude/skills/keenetic-rci
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでKeenetic Rciを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にKeenetic Rciを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Keenetic Rciは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Reaching the Keenetic API directly

The curated tools cover the common questions. rci_call covers everything else. It is deliberately unrestricted, so the responsibility for calling it well is yours.

What RCI actually is

Not REST. It is a JSON mirror of the router's command-line tree, so a URL path is a path through that tree. There are two branches:

FormWhat it gives you
GET show/...operational state, the equivalent of a show command
GET <config path>the running configuration, as JSON
POST with a bodyexecutes a command; the body mirrors the same tree

GET with an empty path returns the entire running configuration, about 35 KB.

Find the syntax instead of guessing it

This is the single most useful technique. The router stores its own configuration as valid CLI, so it will tell you the exact syntax of anything it is already doing:

rci_call { "method": "GET", "path": "show/running-config" }

Read the lines around whatever you want to change. A host with a routing policy appears as host <mac> policy Policy0, which maps to {"ip":{"hotspot":{"host":{"mac":"...","policy":"Policy0"}}}}. Guessing field names instead produces silent no-ops, described below.

Deleting something: no goes beside the arguments

The negation is not a wrapper key. The router shows an already-negated line as "no": true sitting next to that line's arguments, and a delete is written the same way round. The object's own name travels in name:

json
{"ip": {"policy": {"no": true, "name": "Policy1"}}}
{"interface": {"no": true, "name": "Wireguard1"}}
{"ip": {"name-server": {"no": true, "address": "1.1.1.1", "domain": "", "interface": "Wireguard1"}}}

A successful delete answers with a status block that names what went, for example removed policy "Policy1". or interface "Wireguard1" removed.. No such block means nothing happened, whatever the HTTP code said.

References clean up on their own: removing Wireguard1 also dropped the no permit global Wireguard1 line that Policy0 still carried.

Confirmed on KeeneticOS 5.1.1.

Three traps

A wrong field name looks exactly like success. Send a field into a branch that does not have it and the router answers {} with no error and changes nothing. Always read the value back after a write and confirm it actually changed. The curated write tools do this for you; rci_call does not.

Errors arrive inside HTTP 200. A failure is reported as {"status":[{"status":"error","code":...,"message":...}]} in the body. The server raises those as errors for you, but if you see a status block with a level other than error, that is informational and not a failure: a successful write returns {"status":[{"status":"message","message":"rule \"permit\" applied..."}]}.

A config branch does not echo what you write. known/host returns only [{"mac":"..."}] and never includes the name, even straight after a successful rename. Verify a change against whichever view actually exposes the field, which for names is show/ip/hotspot.

Paths worth knowing

Confirmed on KeeneticOS 5.1. Smaller firmware has fewer of them; call get_system_info and read the component list before assuming a feature exists.

PathContents
show/versionmodel, firmware, installed components, hardware features
show/systemCPU, memory, uptime, conntrack usage
show/interfaceevery interface, about 32 KB
show/ip/hotspotevery known device with full telemetry
show/ip/routerouting table
show/associationsWi-Fi stations
show/internet/statusreachability checks
show/last-changewho changed the config, and whether it is saved
show/ip/dhcp/bindingsDHCP leases
show/ip/policy, ip/policyconnection policies
ip/hotspot/hostper-device access and policy configuration
known/hostdevice registration and names
ip/staticport forwarding

Responses that will blow up your context

The server caps every response, but a capped response is still a wasted call. Measured on a mid-range router:

PathSize
show/ip/natover 100 KB, hundreds of rows
show/processesabout 70 KB
show/netfilterabout 34 KB, and plain text, not JSON
show/interfaceabout 32 KB
show/running-configabout 15 KB, an array of CLI lines

Ask for a narrow path. show/interface/Bridge0 instead of show/interface.

Paths that do not exist

Do not assume a component implies a path of the same name. On 5.1 these are all 404, even with the corresponding component installed:

show/wireguard, show/log, show/ipsec, show/components/list, show/ntce, show/skydns, show/wlan

WireGuard state lives under show/interface/Wireguard3, not show/wireguard.

Interface names containing a slash

Every Wi-Fi access point is named like WifiMaster0/AccessPoint0. The slash is read as another path segment, so GET show/interface/WifiMaster0/AccessPoint0 is a 404. Ask by name instead:

rci_call { "method": "POST",
           "body": { "show": { "interface": { "name": "WifiMaster0/AccessPoint0" } } } }

The get_interface tool already does this.

Before you write anything

Read keenetic-safe-changes. Writes through rci_call skip the verification and the automatic backup that the curated tools provide, so prefer update_device and set_interface_state whenever they fit.

よくある質問

AIスキル「Keenetic Rci」では何ができますか?

Use when a Keenetic question is not covered by the curated tools and you need rci_call - explains the RCI tree, the paths that exist, the responses that will blow up your context, and the traps that make a wrong call look like success

TypingMindでKeenetic Rciを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Keenetic Rciはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにKeenetic Rciをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/salatmaster/keenetic-mcp/tree/main/plugins/keenetic/skills/keenetic-rciを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Keenetic Rciを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Keenetic Rciで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもKeenetic Rciを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Keenetic Rci」は無料ですか?

はい。salatmasterがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇