ruview-cli-api
できること
このスキルは、RuViewのコマンドラインツール、Web API、ブラウザ版の使い方を示します。スクリプトで操作したり、ほかのソフトウェアにつないだりしたい開発者向けです。
使う場面
- ✓スクリプトやターミナルからRuViewのコマンドを実行したいとき。
- ✓ほかのプログラムがHTTP経由でRuViewのデータを読む必要があるとき。
- ✓Webブラウザの中でRuViewを動かしたいとき。
スキルのリンク
https://github.com/ruvnet/RuView/blob/main/plugins/ruview/skills/ruview-cli-api/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“アプリからRuView APIを呼び出して、最新のセンシング結果を読む方法を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、コマンドラインのサブコマンドとそのオプションを一覧にし、APIサービスの起動方法と、ブラウザ版の位置付けを示します。各オプションには、簡単な説明と例のコマンドが付いています。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
RuView CLI, API & WASM
The programmatic surfaces of RuView — the wifi-densepose binary, the HTTP API, and the WebAssembly builds.
1. The wifi-densepose CLI binary (wifi-densepose-cli)
cd v2
cargo run -p wifi-densepose-cli -- --help # or: cargo build -p wifi-densepose-cli --release → target/release/wifi-densepose
cargo run -p wifi-densepose-cli -- version
Top-level subcommands: version, and mat (Mass Casualty Assessment Tool).
wifi-densepose mat … — disaster survivor detection
| Subcommand | Purpose | Key flags |
|---|---|---|
mat scan [zone] |
Start scanning for survivors | --disaster-type <…>, --sensitivity 0.0–1.0, --max-depth <m>, --continuous, --interval <ms>, --simulate |
mat status |
Current scan status | --detailed, --format <…>, --watch |
mat zones … |
Manage scan zones | zones list [--active-only], plus add/remove/update |
mat survivors |
List detected survivors with triage status | |
mat alerts |
View / manage alerts | |
mat export |
Export scan data | JSON or CSV |
Example:
cargo run -p wifi-densepose-cli -- mat scan rubble-A --disaster-type earthquake --sensitivity 0.7 --max-depth 5 --continuous --interval 2000
cargo run -p wifi-densepose-cli -- mat survivors --format json
cargo run -p wifi-densepose-cli -- mat export --format csv > survivors.csv
Use --simulate for testing without hardware. Background and user guide: docs/wifi-mat-user-guide.md, wifi-densepose-mat crate.
2. REST API (wifi-densepose-api, Axum)
Library crate (v2/crates/wifi-densepose-api/src/lib.rs) — the Axum router/handlers; configured via the wifi-densepose-config crate. It's wired into the server binaries (e.g. the sensing server / Docker image), not a standalone cargo run target by itself.
# Easiest way to exercise it: the Docker image exposes the API + dashboard on :3000
docker run -p 3000:3000 ruvnet/wifi-densepose:latest
# Then hit the HTTP endpoints (see the API module / docs for routes) and open http://localhost:3000
# v1 Python service config reference: example.env, pyproject.toml (archive/v1/)
When embedding the API crate in your own binary, take the router from wifi_densepose_api, supply config via wifi-densepose-config, and serve with Axum/Tokio. Keep input validation at the boundary (project rule).
3. WASM / browser & ESP32-WASM3
wifi-densepose-wasm— compiles the stack towasm32-unknown-unknownwith a JS-friendly API:
Seecd v2/crates/wifi-densepose-wasm wasm-pack build --target web --features mat # recommended (produces pkg/) cargo build --target wasm32-unknown-unknown --features mat # plain cargo buildv2/crates/wifi-densepose-wasm/README.mdfor the exported surface.wifi-densepose-wasm-edge— 60 edge modules (609 tests) that compile towasm32-unknown-unknownand run on ESP32-S3 via WASM3; shared utils insrc/vendor_common.rs. These are the ADR-041 edge-intelligence modules in WASM form.- Browser demos: pose-fusion (ADR-059), point-cloud (ADR-094) — deployed via GitHub Pages from the WASM build.
4. Where it fits
| You want to… | Use |
|---|---|
| Script a survivor scan / export results | wifi-densepose mat … |
| Expose sensing over HTTP | wifi-densepose-api (via a server binary / Docker) |
| Run sensing in a browser | wifi-densepose-wasm → wasm-pack build --target web |
| Run an edge module on an ESP32 in WASM | wifi-densepose-wasm-edge + WASM3 |
| A long-running CSI sink + training | wifi-densepose-sensing-server (see ruview-applications / ruview-model-training) |
Reference
- Crates:
wifi-densepose-cli,wifi-densepose-api,wifi-densepose-config,wifi-densepose-wasm,wifi-densepose-wasm-edge,wifi-densepose-mat - ADRs: 041 (edge modules), 059 (live ESP32 pipeline), 094 (point-cloud GitHub Pages)
docs/wifi-mat-user-guide.md,docs/edge-modules/,docs/security-audit-wasm-edge-vendor.md- Validate after changes:
cd v2 && cargo test -p wifi-densepose-cli -p wifi-densepose-api -p wifi-densepose-wasm --no-default-features
よくある質問
matコマンドとは何ですか?
大量傷病者対応(Mass Casualty Assessment)の部分のコマンドで、スキャンの開始、ゾーンの一覧、データの書き出しを行います。
Rustのインストールが必要ですか?
例はcargoを通じてコマンドラインを実行するため、それらの例にはRustのツールが必要です。
スキャンデータを書き出せますか?
はい。JSONまたはCSVを出力するexportサブコマンドが示されています。
詳細
作者による元の説明
Use the RuView `wifi-densepose` CLI binary (incl. MAT scan/status/zones/survivors/alerts/export subcommands), the REST API (`wifi-densepose-api`, Axum), and the browser/WASM build (`wifi-densepose-wasm`, `wifi-densepose-wasm-edge`). Use when integrating RuView into another program, scripting it from the shell, exposing it over HTTP, or shipping it to the browser / ESP32-WASM3.
repo: ruvnet/RuView
人気
- GitHubのスター
- 102k
- ランキング
- #855
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
AgentDB Advanced Features
102kエージェントが、複数のマシンにまたがるデータベースの同期や、ベクトル検索とメタデータによる絞り込みの組み合わせなど、AgentDBの高度な機能を示します。
AgentDB Learning Plugins
102kエージェントが、過去の経験から改善する強化学習の手法を使って、AgentDB向けの学習プラグインを作成・学習できるよう支援します。
AgentDB Memory Patterns
102kエージェントが、AgentDBを永続メモリとして使い、セッションをまたいで会話と文脈を覚えられるよう支援します。
AgentDB Performance Optimization
102kエージェントが、圧縮、高速な検索インデックス、キャッシュを使って、AgentDBの検索を高速化し、メモリ使用量を減らす方法を示します。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。