iancleary/rfstack/touchstone

Claude Code and agent skill by iancleary/rfstack

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use the public Rust touchstone crate to parse, inspect, generate, resample, convert, cascade, save, or plot Touchstone S-parameter networks. Use for .sNp data and network matrices, not scalar RF conversions or abstract gain blocks.

Install

npx vskill@latest install iancleary/rfstack/touchstone

SKILL.md

The same SKILL.md was published earlier as iancleary/rfstack/touchstone.

Touchstone

For uncertainty propagation from measured networks, use rf-monte-carlo to define the sampling model and preserve correlations before evaluating network realizations.

Use touchstone when measured or simulated S-parameter data is the source of truth. Add the library with cargo add touchstone; install its CLI only when a file or directory plotting workflow is requested.

Select an entry point

  • Parse a file with Network::new(path).
  • Parse uploaded or embedded data with Network::from_bytes or

Network::from_str.

  • Create synthetic data with NetworkBuilder and SMatrix.
  • Read traces with s_db, s_ri, or s_ma.
  • Read a complete frequency point with s_matrix_at or sample_at.
  • Use resample for a new frequency grid.
  • Use Y, Z, or ABCD conversion only when its rank and impedance assumptions fit.
  • Save through save, write_touchstone, or to_touchstone_string.

Use rfconversions for scalar math, gainlineup for abstract hardware stages, and linkbudget for end-to-end radio links.

Preserve network semantics

  • Port indices are 1-based. s_db(2, 1) means S21.
  • Parsed and requested frequencies are in Hz, regardless of the file's declared

display unit.

  • Preserve network.warnings; they carry non-fatal parser diagnostics.
  • Interpolate real and imaginary components. Do not interpolate wrapped phase or

dB magnitude independently.

  • Choose Extrapolation::Error by default. Use Clamp only when the caller

accepts boundary-value extrapolation.

  • Inspect reference_impedance(). Do not reduce per-port impedance metadata to

the scalar z0 field without an explicit assumption.

  • ABCD conversion and ordinary cascade are two-port operations. Confirm rank,

frequency alignment, reference impedance, and port orientation first.

  • Prefer fallible parsing and serialization APIs. Do not use panic-style

wrappers in service or batch paths.

Verification

Test through public APIs with a small fixture. Check rank, frequency bounds, reference impedance, warnings, and one decisive S-parameter. For round trips, parse the serialized output and compare complex values with tolerances. For a cascade, include a simple through or attenuator network with a known result.

The CLI can generate HTML and open a browser. Treat browser launch as a visible side effect and use the library API when only data transformation is needed.

For current signatures, use the installed source or <https://docs.rs/touchstone>. The upstream source is <https://github.com/iancleary/touchstone>.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/iancleary/rfstack/touchstone/badge)](https://verified-skill.com/skills/iancleary/rfstack/touchstone)

Something wrong with this skill or its page? Tell us.