telnyx-iot-ruby

telnyx-iot-ruby is a skill for Claude Code from team-telnyx/ai. It costs 42 tokens per session (11,422 once invoked), scanned A, a copy of telnyx-iot-curl, MIT.

A Ruby SDK guide for managing Telnyx IoT SIM cards, eSIMs, data plans, and wireless connections. IoT means internet-connected devices that exchange data without direct user control.

In plain words
What is it for?
Use it to build machine-to-machine systems that provision connectivity and manage IoT devices.
Why use it?
It provides Ruby examples for connecting device-management code to Telnyx and handling failed API requests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the telnyx-platform plugin — 92 skills, 1 agent, 3 hooks shipped together

Good fit Use it to build machine-to-machine systems that provision connectivity and manage IoT devices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/team-telnyx/ai/telnyx-iot-ruby
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add team-telnyx/ai --skill telnyx-iot-ruby
Clone the repo
git clone --depth 1 https://github.com/team-telnyx/ai

Made for: Claude Code.

Or install telnyx-platform, the plugin that ships this one along with the rest of its 92 skills, 1 agent, 3 hooks.

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 telnyx-iot-ruby

README.md
[![agentmods](https://agentmods.dev/badge/skills/team-telnyx/ai/telnyx-iot-ruby.svg)](https://agentmods.dev/skills/team-telnyx/ai/telnyx-iot-ruby)
Your own site
<a href="https://agentmods.dev/skills/team-telnyx/ai/telnyx-iot-ruby"><img src="https://agentmods.dev/badge/skills/team-telnyx/ai/telnyx-iot-ruby.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,422 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 95% copy Near-identical to another mod 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.00042 $0.11422
Opus 5 $0.00021 $0.05711
Sonnet 5 $0.00008 $0.02284
Haiku 4.5 $0.00004 $0.01142

Measured 2d ago against content hash a6eb7587b3cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

telnyx-iot-ruby 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 2d ago.

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.

Origin

This is a copy

95% identical to telnyx-iot-curl — 659 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

providers/claude/plugins/telnyx-platform/skills/telnyx-iot-ruby/SKILL.md · 1,011 lines

How it starts

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

Telnyx Iot - Ruby

Installation

gem install telnyx

Setup

require "telnyx"

client = Telnyx::Client.new(
  api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
)

All examples below assume client is already initialized as shown above.

Error Handling

All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:

begin
  result = client.messages.send_(to: "+13125550001", from: "+13125550002", text: "Hello")
rescue Telnyx::Errors::APIConnectionError
  puts "Network error — check connectivity and retry"
rescue Telnyx::Errors::RateLimitError
  # 429: rate limited — wait and retry with exponential backoff
  sleep(1) # Check Retry-After header for actual delay
rescue Telnyx::Errors::APIStatusError => e
  puts "API error #{e.status}: #{e.message}"
  if e.status == 422
    puts "Validation error — check required fields and formats"
  end
end

Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).

Important Notes

  • Pagination: Use .auto_paging_each for automatic iteration: page.auto_paging_each { |item| puts item.id }.

Purchase eSIMs

Purchases and registers the specified amount of eSIMs to the current user's account.
If sim_card_group_id is provided, the eSIMs will be associated with that group. Otherwise, the default group for the current user will be used.

POST /actions/purchase/esims — Required: amount

Optional: product (string), sim_card_group_id (uuid), status (enum: enabled, disabled, standby), tags (array[string]), whitelabel_name (string)

purchase = client.actions.purchase.create(amount: 10)

puts(purchase)

Returns: actions_in_progress (boolean), authorized_imeis (array | null), created_at (string), current_billing_period_consumed_data (object), data_limit (object), eid (string | null), esim_installation_status (enum: released, disabled), iccid (string), id (uuid), imsi (string), msisdn (string), record_type (string), resources_with_in_progress_actions (array[object]), sim_card_group_id (uuid), status (object), tags (array[string]), type (enum: physical, esim), updated_at (string), version (string), voice_enabled (boolean)

Read the full file on GitHub · 1,011 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. 2d ago First seen · 1,011 lines · 42 tokens per session scan A a6eb7587b3cf

Subscribe to this mod's changes

telnyx-iot-ruby is a skill published in the GitHub repository team-telnyx/ai (213 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 11,422 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to telnyx-iot-curl, differing in 659 lines, and is treated as a copy.

Related

Other skills, from other repositories

spark-environment-setup

Set up a working ML training/inference environment on NVIDIA DGX Spark (GB10, aarch64, CUDA 13). Use when installing PyTorch/Unsloth/TRL/vLLM on DGX Spark, hitting libcudart or wheel-ABI errors on aarch64, or choosing between NGC containers and bare pip installs.

wshobson/agents · 76 tokens

terraform-module-library

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

wshobson/agents · 44 tokens

tdmcp-ai-party-mixer-design

Orchestrates the AI-Controlled Party mixer/Soundcraft Ui24R design team. Use whenever the user wants to design, update, refine, re-run, or implement-plan the Soundcraft Ui24R scene-arming expansion, mixer-aware AI party, operator-approved mixer cues, snapshots/cues/show control, Companion bridge, or any follow-up…

Pantani/tdmcp · 103 tokens

local-inference-tuning

Select and tune a local LLM inference engine for the user's hardware. Use when setting up or auditing local/private model serving, choosing between MLX, llama.cpp, Ollama, and vLLM, estimating model fit, deciding cache/storage policy, tuning batching and KV cache flags, running smoke benchmarks, or exposing an…

markoblogo/abvx-agent-skills · 76 tokens

isaac-sim

NVIDIA Isaac Sim: installation and container setup, GPU/driver requirements, USD scenes, robots and sensors, the ROS 2 bridge, and headless/livestream operation for remote servers. Use when: 'isaac sim', 'omniverse', GPU photorealistic simulation, synthetic data generation, or NVIDIA robotics ecosystem work. State the…

robium-ai/robium · 125 tokens

isaac-lab

NVIDIA Isaac Lab: reinforcement-learning and imitation-learning workflows on top of Isaac Sim: prebuilt environments and tasks, training runs, and exporting policies. Use when: 'isaac lab', 'GPU RL for robots', 'train in isaac', sim-to-real policy training in the NVIDIA stack. Load after isaac-sim basics are settled…

robium-ai/robium · 128 tokens