RIPDPI: Skill for Claude Code

.agents/skills/ws-tunnel-telegram/SKILL.md

ws-tunnel-telegram is a skill for Claude Code, Codex from po4yka/RIPDPI. It costs 51 tokens per session (3,791 once invoked), scanned A, original, BSD-3-Clause.

A WebSocket tunnel that carries Telegram's MTProto traffic inside an encrypted web connection. It classifies Telegram data centres, detects obfuscated traffic, chooses a TLS backend, and supports direct, always-tunnelled, or fallback modes.

In plain words
What is it for?
Use it when changing Telegram data-centre routing, encrypted DNS lookup for tunnel endpoints, MTProto detection, or the tunnel relay loop.
Why use it?
It helps traffic pass through networks that block or inspect Telegram's direct MTProto connections.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is po4yka/RIPDPI's own configuration. It tells Claude Code and Codex how to work on RIPDPI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything RIPDPI configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/po4yka/RIPDPI/main/.agents/skills/ws-tunnel-telegram/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/po4yka/RIPDPI

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ws-tunnel-telegram

README.md
[![agentmods](https://agentmods.dev/badge/skills/po4yka/ripdpi/ws-tunnel-telegram/github.svg)](https://agentmods.dev/skills/po4yka/ripdpi/ws-tunnel-telegram)
Your own site
<a href="https://agentmods.dev/skills/po4yka/ripdpi/ws-tunnel-telegram"><img src="https://agentmods.dev/badge/skills/po4yka/ripdpi/ws-tunnel-telegram/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.

agentmods 80×15 button for ws-tunnel-telegram

Your own site · 80×15
<a href="https://agentmods.dev/skills/po4yka/ripdpi/ws-tunnel-telegram"><img src="https://agentmods.dev/badge/skills/po4yka/ripdpi/ws-tunnel-telegram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.03791
Opus 5.5 $0.00020 $0.01516
Sonnet 5.5 $0.00010 $0.00758
Haiku 4.5 $0.00005 $0.00379

Measured yesterday against content hash f9f5f53ad70d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ws-tunnel-telegram 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.

.agents/skills/ws-tunnel-telegram/SKILL.md · 236 lines

How it starts

The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WebSocket Tunnel for Telegram (ripdpi-ws-tunnel)

1. Purpose

middlebox/DPI blocks Telegram by detecting MTProto signatures on direct TCP to known DC IPs. The WS tunnel wraps MTProto inside WSS to kws*.web.telegram.org, so DPI sees standard TLS + HTTP Upgrade rather than raw MTProto.

WsTunnelMode lives in ripdpi-config/src/model/group.rs; the adaptive runtime setting lives in model/runtime.rs:

  • Off -- disabled (default)
  • Always -- every Telegram connection uses WS tunnel immediately
  • Fallback -- try desync first; escalate to WS tunnel only on failure

2. Architecture

Three crates now share this pipeline. ripdpi-ws-transport-port owns DC classification and the WsTransport trait boundary; ripdpi-ws-bootstrap owns encrypted-DNS resolution of the WS endpoint; ripdpi-ws-tunnel owns the concrete MTProto/TLS/WS implementation and re-exports the transport-port types so most call sites only need to depend on ripdpi-ws-tunnel.

App -> TUN -> ripdpi-proxy -> handshake pipeline
  1. classify_target(target_ip)             -- ripdpi-ws-transport-port/src/dc.rs (dc_from_ip / dc_from_ipv6)
  2. read 64-byte MTProto init from client  -- ripdpi-proxy-runtime/.../handshake/ws_tunnel.rs
  3. classify_mtproto_seed(init)            -- ripdpi-ws-tunnel/src/mtproto.rs: ValidatedMtproto{dc}
  4. resolve_ws_tunnel_addr(dc)             -- ripdpi-ws-bootstrap/src/resolver.rs: encrypted DNS
  5. open_ws_tunnel_with_timeout(dc, ..)    -- ripdpi-ws-tunnel/src/connect.rs: TLS + WS handshake
  6. ws_relay(client, ws, seed_request)     -- ripdpi-ws-tunnel/src/relay.rs (+ relay/ submodules)

Runtime entry points (ripdpi-proxy-runtime/src/runtime/handshake/ws_tunnel.rs):

  • should_ws_tunnel_first() -- WsTunnelMode::Always + known Telegram IP
  • should_ws_tunnel_fallback() -- WsTunnelMode::Fallback + known Telegram IP
  • run_ws_tunnel() / run_ws_tunnel_with_seed() -- classify, resolve, relay

WsTunnelResult enum: ValidatedMtproto, NotMtproto, UnmappableDc, ShortInit, BootstrapFailed, WsOpenOrRelayFailed.

Read the full file on GitHub · 236 lines

Changes

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.

  1. yesterday First seen · 236 lines · 51 tokens per session scan A f9f5f53ad70d

Subscribe to this mod's changes

ws-tunnel-telegram is a skill published in the GitHub repository po4yka/RIPDPI (85 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 51 tokens to every session and 3,791 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.

Related

ws-tunnel-telegram compared with skills from other repositories

ws-tunnel-telegram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ws-tunnel-telegrampo4yka/RIPDPISkill85yesterdayBSD-3-ClauseA51Claude Code, Codex
maui-networking-offline-datadotnet/maui-labsSkill235yesterdayMITA87Claude Code, Codex
maui-aspire-clientdotnet/maui-labsSkill235yesterdayMITA100Claude Code, Codex
compose-dataMeet-Miyani/compose-skillSkill30315d agoMITA151Claude Code
remote-api-footgunsmaxrave-dev/kotlin-footgunsSkill2.1k9d agoGPL-3.0A55Claude Code
network-tracingnexus-labs-automation/mobile-observabilitySkill1162mo agoMITA31Claude Code
offline-firstTalissonVitorino/kmp-ios-skillsSkill162mo agoMITA26Claude Code, Codex