iancleary/rfstack/gainlineup

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 gainlineup crate to model ordered RF hardware chains with gain, noise figure, compression, IP3, dynamic range, and AM-AM or AM-PM behavior. Do not use for raw S-parameter networks or end-to-end radio links.

Install

npx vskill@latest install iancleary/rfstack/gainlineup

SKILL.md

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

Gain Lineup

For tolerance, yield, or probabilistic margin analysis, use rf-monte-carlo and its hardware cascade reference.

Model an RF chain as one Input followed by ordered Block values. Add the crate with cargo add gainlineup.

Build the model

  1. Define Input with signal power in dBm, frequency and bandwidth in Hz, and

optional source noise temperature in kelvin.

  1. Define one Block per stage with gain, noise figure, and optional output P1dB

and output IP3.

  1. Call cascade_vector_return_vector when intermediate nodes matter. Call

cascade_vector_return_output when only the final result matters.

  1. Use block or cascade sweep APIs for AM-AM and gain-compression curves.
  2. Use AmplifierModel for AM-PM or richer amplifier characterization.

Use touchstone when stages come from .sNp network data, linkbudget for radio-link closure, and rfconversions for isolated scalar conversions.

Preserve lineup semantics

  • Stage order changes cascaded noise and linearity results.
  • Negative gain_db represents loss. A passive loss normally has an equal,

positive noise_figure_db at the reference temperature.

  • P1dB and IP3 fields are output-referred dBm values.
  • noise_temperature_k belongs to the input source; it is not a block noise

figure.

  • SignalNode cumulative fields describe the chain through that node.
  • The current compression model clamps output at output P1dB plus 1 dB. State

this approximation when results approach compression.

  • Use unit-suffixed TOML fields. Short aliases such as pin, f, and bw can

hide that their units are dBm and Hz.

Verification

Check at least one node-by-node result, not only the final output. A useful fixture has an early LNA, a passive loss, and a later gain stage. Verify total gain, plausible Friis noise figure, signal power, and any configured compression or IP3 result. Use tolerances for floating-point values. Add a sweep assertion when changing compression behavior.

The CLI reads TOML and writes HTML. Use it for reviewable lineup reports; use the library for programmatic analysis. Enable RUST_LOG=gainlineup=debug when intermediate cascade math needs diagnosis.

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

Security

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

Quality evaluation

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

Source

Popularity

7-day trend score
5

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/gainlineup/badge)](https://verified-skill.com/skills/iancleary/rfstack/gainlineup)

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