shinyorg/shiny/shiny-wifi
Claude Code and agent skill by shinyorg/shiny
- community
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-wifiSKILL.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
| Operation | Android | iOS / Mac Catalyst | macOS | Windows | Linux | |
|---|---|---|---|---|---|---|
| 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
- Scanning on iOS. There is no public API.
NEHotspotHelpercan 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.
- 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.
- Naming an Android hotspot.
SoftApConfiguration.Builderexposes 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
| Item | Value | |
|---|---|---|
| GitHub | https://github.com/shinyorg/shiny | |
| NuGet | Shiny.Net.Wifi, plus Shiny.Net.Wifi.Linux on Linux | |
| Namespace | Shiny.Net.Wifi (types); Shiny (registration extensions) | |
| Platforms | Android, 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
| Platform | Manager | Known networks | Hotspot | |
|---|---|---|---|---|
| Android | WifiManager + ConnectivityManager | WifiNetworkSuggestion (API 30+), WifiConfiguration below 29 | startLocalOnlyHotspot | |
| iOS / Mac Catalyst | NEHotspotConfiguration + CaptiveNetwork | NEHotspotConfigurationManager.getConfiguredSSIDs | none | |
| macOS | CoreWLAN (CWInterface) | CWConfiguration.networkProfiles | none | |
| Windows | WiFiAdapter (WinRT) | wlanapi.dll - WinRT has no profile API | NetworkOperatorTetheringManager | |
| Linux | NetworkManager / D-Bus | Settings.ListConnections (UUID-keyed) | NetworkManager AP mode + ipv4.method=shared | |
| plain .NET | System.Net.NetworkInformation (addressing only) | none | none |
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.
Registration
Both are singletons. Register only what you use - each one costs a native watcher only once something subscribes to its Changed event.
Scanning
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
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
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
- SKILL.md in the repositoryCheckingskills/shiny-wifi/SKILL.md
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
[](https://verified-skill.com/skills/shinyorg/shiny/shiny-wifi)