iancleary/rfstack/gainlineup
Claude Code and agent skill by iancleary/rfstack
- community
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/gainlineupSKILL.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
- Define
Inputwith signal power in dBm, frequency and bandwidth in Hz, and
optional source noise temperature in kelvin.
- Define one
Blockper stage with gain, noise figure, and optional output P1dB
and output IP3.
- Call
cascade_vector_return_vectorwhen intermediate nodes matter. Call
cascade_vector_return_output when only the final result matters.
- Use block or cascade sweep APIs for AM-AM and gain-compression curves.
- Use
AmplifierModelfor 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_dbrepresents 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_kbelongs to the input source; it is not a block noise
figure.
SignalNodecumulative 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, andbwcan
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
- SKILL.md in the repositoryCheckingskills/gainlineup/SKILL.md
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
[](https://verified-skill.com/skills/iancleary/rfstack/gainlineup)