shinyorg/shiny/shiny-wifi

Claude Code and agent skill by shinyorg/shiny

Trust tier 2
  • community
LLM review pending
Source check pending

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

Generate code using Shiny.Net.Wifi for cross-platform Wi-Fi - scanning for access points, connecting and disconnecting, listing/forgetting/rejoining the networks the device has saved, monitoring the current network (SSID, signal, IP, DNS), and hosting a hotspot with connected-client listing on Android, iOS, Mac Catalyst, macOS, Windows, and Linux

Install

npx vskill@latest install shinyorg/shiny/shiny-wifi

SKILL.md

The same SKILL.md was published earlier as shinyorg/shiny/shiny-wifi.

Shiny.Net.Wifi Skill

You are an expert in Shiny.Net.Wifi, a cross-platform Wi-Fi library covering scanning, connect/disconnect, saved (known) network management, current-network monitoring and hotspot hosting.

When to Use This Skill

Invoke this skill when the user wants to:

  • List the Wi-Fi networks in range, with signal strength and security
  • Join or leave a named network from code
  • Read or watch the current network - SSID, BSSID, signal, IP, DNS, gateway, mask
  • List, forget, or rejoin the networks the device has saved
  • Raise a hotspot / access point and show the user its SSID and passphrase
  • See which devices are connected to a hotspot
  • Power the Wi-Fi radio on or off
  • Ask why Wi-Fi scanning "does not work on iOS"

⚠️ Read this before writing anything

Wi-Fi is the most unevenly exposed capability across these platforms. Half of what users ask for is impossible on at least one of them, and the impossibility is a platform policy decision, not a gap in this library. Do not write code that assumes an operation exists everywhere, and do not tell a user something will work on iOS when it will not.

Every manager publishes a WifiCapabilities flags property. Branch on it. Anything unavailable throws WifiNotSupportedException with a message naming the exact limit.

Capability matrix

OperationAndroidiOS / Mac CatalystmacOSWindowsLinux
Scan✅ (needs location)❌ no API✅✅✅
Connect✅ (system dialog from API 29)✅ (system dialog)✅✅✅
Disconnect✅✅ (removes the config)✅✅✅
Current network SSID✅ (needs location)✅ (needs entitlement + location)✅ (needs location)✅✅
IP / DNS / gateway✅✅✅✅✅
Radio state✅❌✅✅✅
Radio toggle⚠️ API ≤ 28 only❌✅✅✅
Hotspot⚠️ local-only, OS picks SSID❌ no API❌ no API✅ full tethering✅ AP mode
Hotspot clients❌❌❌✅✅
List known networks⚠️ own app only⚠️ own app only✅ whole machine✅ whole machine✅ whole machine
Forget a known network⚠️ own app only⚠️ own app only⚠️ needs admin auth✅✅ (polkit)
Connect by known id⚠️ API ≤ 28 only❌✅✅✅
The three things users most often ask for that cannot be done
  1. Scanning on iOS. There is no public API. NEHotspotHelper can list networks but its

entitlement is granted case by case by Apple to captive-network-assistant apps. Do not suggest CNCopyCurrentNetworkInfo or NEHotspotNetwork.fetchCurrent as a substitute - both report the joined network, not nearby ones.

  1. Reading the user's saved networks on a phone. Neither iOS nor Android will show an app the

networks the user saved. GetKnownNetworks() on those two returns only what your own app configured. Do not build a "manage all my Wi-Fi networks" screen for mobile.

  1. Naming an Android hotspot. SoftApConfiguration.Builder exposes only the channel to

non-system apps - setSsid/setPassphrase are @SystemApi. The OS generates both and you read them back off IHotspotSession.Info to show the user.

Library Overview

ItemValue
GitHubhttps://github.com/shinyorg/shiny
NuGetShiny.Net.Wifi, plus Shiny.Net.Wifi.Linux on Linux
NamespaceShiny.Net.Wifi (types); Shiny (registration extensions)
PlatformsAndroid, iOS, Mac Catalyst, macOS, Windows, Linux. No tvOS target — NEHotspotConfiguration and NEHotspotNetwork do not exist on tvOS, so there is no way to join a network, read the SSID, scan, or raise a hotspot there
How each platform is backed
PlatformManagerKnown networksHotspot
AndroidWifiManager + ConnectivityManagerWifiNetworkSuggestion (API 30+), WifiConfiguration below 29startLocalOnlyHotspot
iOS / Mac CatalystNEHotspotConfiguration + CaptiveNetworkNEHotspotConfigurationManager.getConfiguredSSIDsnone
macOSCoreWLAN (CWInterface)CWConfiguration.networkProfilesnone
WindowsWiFiAdapter (WinRT)wlanapi.dll - WinRT has no profile APINetworkOperatorTetheringManager
LinuxNetworkManager / D-BusSettings.ListConnections (UUID-keyed)NetworkManager AP mode + ipv4.method=shared
plain .NETSystem.Net.NetworkInformation (addressing only)nonenone

On Linux, reference `Shiny.Net.Wifi.Linux` instead of the base package. It declares AddWifi()/AddWifiHotspot() with NetworkManager-backed implementations of the same interfaces. The base package declares those two methods only on its platform targets (Android, Apple, Windows) - on plain net11.0 they come from the Linux package, so the call is never ambiguous. The plain .NET stub (NetWifiManager / NetWifiHotspot) is not registered by anything: a Windows or macOS console app that wants addressing-only Wi-Fi info registers it itself, and every Wi-Fi-specific call on it throws - it is a deliberate stub, not a fallback.

csharp
// plain net11.0 on Windows/macOS only - there is no AddWifi() there
services.AddSingleton<IWifiManager>(sp => new NetWifiManager(sp.GetRequiredService<ILogger<NetWifiManager>>()));

Registration

csharp
builder.Services.AddWifi(); // IWifiManager
builder.Services.AddWifiHotspot(); // IWifiHotspot

Both are singletons. Register only what you use - each one costs a native watcher only once something subscribes to its Changed event.

Scanning

csharp
public class NetworkPicker(IWifiManager wifi)
{
public async Task<IReadOnlyList<WifiNetwork>> Load(CancellationToken ct)
{
if (!wifi.Capabilities.HasFlag(WifiCapabilities.Scan))
return []; // iOS - show a "join by name" field instead
var access = await wifi.RequestAccess(ct);
if (access != AccessState.Available)
throw new InvalidOperationException("Location access is needed to scan for networks");
var found = await wifi.Scan(ct);
// one SSID appears once per radio on a multi-band or mesh network, so results are unique
// on BSSID - group and take the strongest if you are building a picker
return found
.GroupBy(x => x.Ssid)
.Select(g => g.MaxBy(x => x.SignalStrengthPercent)!)
.Where(x => !x.IsHidden)
.ToList();
}
}

WifiNetwork carries Ssid, Bssid, Security, SignalStrengthDbm (null where the platform reports only a percentage), SignalStrengthPercent (0-100, always populated), FrequencyMhz, IsHidden, and computed Band / Channel / IsOpen.

Always call `RequestAccess` before `Scan`. Android returns an empty list rather than an error when location has not been granted; the library turns that into WifiPermissionException so it does not look like an empty neighbourhood, but asking first is better than catching.

Connecting

csharp
var request = new WifiConnectionRequest("Kitchen")
{
Passphrase = "hunter2hunter2",
Remember = true, // save the profile for automatic rejoin
Timeout = TimeSpan.FromSeconds(20)
};
try
{
var joined = await wifi.Connect(request, ct);
logger.LogInformation("On {Ssid} at {Ip}", joined.Ssid, joined.IPv4Address);
}
catch (WifiConnectionException ex)
{
// wrong passphrase, out of range, the user declined the system prompt, or DHCP timed out
}

Connect returns only once an address has been assigned, not when association completes - a WifiNetworkInfo with no IP on it is useless to the caller. On iOS, where ApplyConfiguration can report success without joining (a wrong passphrase, typically), Connect also waits for the current network to name the requested SSID and throws WifiConnectionException if the device stays on another one - this check needs location access (RequestAccess), without which the SSID cannot be read.

Hidden networks: set IsHidden = true (and Security). Windows matches the nameless entry in the scan report and passes the SSID to the join. Linux sends Security = Wep as a static WEP key (wep-key0); every other passphrase is WPA-PSK, or SAE for Wpa3Psk. When Remember = false on Linux, a refused join is reported as-is - it is not retried as a saved profile.

Leave `Security` as `Unknown` unless you are joining a hidden network. The platform reads the scheme off the beacon; a hidden network has no beacon to read, so it has to be told.

Android 10+ and iOS both show a system dialog naming the network. Neither lets an app join silently, and on Android the join itself lasts only while your app holds the request. Remember still does something everywhere: it writes an ordinary profile on Windows, macOS and Linux, keeps the hotspot configuration on iOS, and on Android 11+ registers a WifiNetworkSuggestion next to the join so the OS can come back to the network later. See Known (saved) networks below.

Known (saved) networks

csharp
if (wifi.Capabilities.HasFlag(WifiCapabilities.KnownNetworks))
{
foreach (var known in await wifi.GetKnownNetworks(ct))
Console.WriteLine($"{known.Ssid} ({known.Security}) id={known.Id}");
}
// forget one - safe to call even if it was never saved
if (wifi.Capabilities.HasFlag(WifiCapabilities.ForgetNetwork))
await wifi.Forget(known.Id, ct);
// rejoin one without handing the passphrase over again
if (wifi.Capabilities.HasFlag(WifiCapabilities.ConnectKnownNetwork))
await wifi.Connect(known.Id, ct);

KnownWifiNetwork carries Id, Ssid, Security, IsHidden and AddedByThisApp.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

7-day trend score
0

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/shinyorg/shiny/shiny-wifi/badge)](https://verified-skill.com/skills/shinyorg/shiny/shiny-wifi)

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