Borrowing it
Nothing to install: this file belongs to po4yka/RIPDPI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/po4yka/RIPDPI/main/.agents/skills/diagnostics-system/SKILL.mdgit clone --depth 1 https://github.com/po4yka/RIPDPIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/po4yka/ripdpi/diagnostics-system)<a href="https://agentmods.dev/skills/po4yka/ripdpi/diagnostics-system"><img src="https://agentmods.dev/badge/skills/po4yka/ripdpi/diagnostics-system/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/po4yka/ripdpi/diagnostics-system"><img src="https://agentmods.dev/badge/skills/po4yka/ripdpi/diagnostics-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.05171 |
| Opus 5.5 | $0.00022 | $0.02068 |
| Sonnet 5.5 | $0.00011 | $0.01034 |
| Haiku 4.5 | $0.00006 | $0.00517 |
Grade A, and why
diagnostics-system scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 451 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagnostics System
1. Overview
The diagnostics system is a two-tier pipeline:
- Rust engine (
native/rust/crates/ripdpi-monitor-engine/plus theripdpi-diagnostics-*crates) -- executes network probes in a background thread, producing aScanReportwith structuredProbeResultandProbeObservationvalues. - Kotlin orchestration (
core/diagnostics/) -- manages lifecycle, catalog loading, JNI bridge, report enrichment, persistence, and policy application.
The Rust engine is stateless per scan; the Kotlin layer owns state, scheduling, and cross-scan coordination (remembered network policies, resolver overrides).
Telemetry primitives live in native/rust/crates/ripdpi-telemetry/ and provide
LatencyHistogram and LatencyDistributions for in-process latency recording.
2. Scan Types
Two ScanKind variants exist:
| Kind | Purpose | Typical profile |
|---|---|---|
Connectivity |
Tests reachability of domains, DNS, TCP, QUIC, services, circumvention tools, Telegram, and throughput targets. Results are bucketed into healthy/attention/failed/inconclusive. | default, dpi-detector-full, ru-* profiles |
StrategyProbe |
Evaluates path optimization strategy candidates (TCP and QUIC) against a target set, then recommends the best configuration. Requires RAW_PATH mode (outside the VPN tunnel). |
automatic-probing (quick_v1), automatic-audit (full_matrix_v1) |
Connectivity scans are general-purpose. Strategy probe scans are the automatic calibration mechanism -- they test multiple bypass configurations and select the most effective one for the current network.
3. Rust Engine Pipeline
Entry point
MonitorSession::start_scan() in lib.rs validates the wire request, spawns
a worker thread, and calls run_engine_scan() (in engine.rs).
Stage-based execution model
The engine uses a plan-then-execute architecture:
- Plan (
engine/plan.rs):build_execution_plan()creates anExecutionPlanwith an orderedVec<ExecutionStageId>. For connectivity scans the order is derived fromprobe_tasksfamilies (or a default sequence). For strategy probes,strategy_stage_order()builds: Environment -> (Web, only when in-path mode with a route and domain targets) -> StrategyDnsBaseline ->StrategyTcpCandidates/StrategyQuicCandidates(QUIC first whenconfirm_good_dpi_evidenceis set, TCP first otherwise) ->StrategyConnectionConcurrency->StrategyRecommendation. Readstrategy_stage_order()directly before restating this order; it is a stale-prone list, not a fixed constant.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 451 lines · 56 tokens per session scan A b145a3865daa
diagnostics-system is a skill published in the GitHub repository po4yka/RIPDPI (85 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 56 tokens to every session and 5,171 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.
diagnostics-system compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnostics-systempo4yka/RIPDPI | Skill | 85 | yesterday | BSD-3-Clause | A | 56 | Claude Code, Codex |
| argent-react-native-app-workflowsoftware-mansion/argent | Skill | 3.2k | today | Apache-2.0 | A | 46 | Claude Code, Codex |
| nightly-audit-engineer-getting-startedmakecindy/cindy | Skill | 9.5k | today | Apache-2.0 | A | 46 | Claude Code, Codex |
| nightly-audit-engineer-opsmakecindy/cindy | Skill | 9.5k | today | Apache-2.0 | A | 43 | Claude Code, Codex |
| argent-react-native-optimizationsoftware-mansion/argent | Skill | 3.2k | today | Apache-2.0 | A | 71 | Claude Code, Codex |
| nightly-audit-engineer-evidencemakecindy/cindy | Skill | 9.5k | today | Apache-2.0 | A | 37 | Claude Code, Codex |
| argent-metro-debuggersoftware-mansion/argent | Skill | 3.2k | today | Apache-2.0 | A | 104 | Claude Code, Codex |