agentleFS
facebookincubatorfacebookincubator/muse-gadget-sdk/skills/gadget-shelly-plugs/SKILL.md

gadget-shelly-plugs

Skill2.6k starsChanged 25 days agoApache-2.0View on GitHub

Switch Shelly Gen 4 plugs and read supported power or energy measurements through Muse Home Link. Use the local Shelly RPC API after confirming the actual plug and attached load; not the Gen 1 protocol.

1 other project uses a version of this, 1 of them edited.

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 13 mentionsNov 2026: 1 mention
Dec 2025Jun 2026Nov 2026
Mentions a month of the facebookincubator/muse-gadget-sdk repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about facebookincubator/muse-gadget-sdk

The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 14

Talked about on GitHub, Bluesky and Hacker News (14 times).

On GitHub · 11

6 more on GitHub

On Hacker News · 1

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when fresh discovery identifies a Shelly Gen 4 plug and the user requests switching or power readings.

    line 11
  2. Very specific:

    Read /rpc/Shelly.GetDeviceInfo and check model, app, gen, firmware and auth_en.

    line 16
  3. Very specific:

    Read and follow the Home Link networking and safety rules in ~/docs/devices/home_link.md.

    line 21
  4. Very specific:

    When auth_en is true, use the documented HTTP/RPC digest authentication with approved stored credentials.

    line 24
  5. Very specific:

    Read /rpc/Switch.GetStatus?id=0 before acting.

    line 29
  6. Very specific:

    Read Switch.GetStatus again.

    line 32
  7. Very specific:

    Check output for relay state and apower for measured watts.

    line 36
  8. Distinctive:

    Do not create schedules, install scripts, reset or update firmware, or modify protection thresholds under a switching request.

    line 42
  9. Very specific:

    Prefer explicit on/off to /rpc/Switch.Toggle.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Shelly Plugs (Gen 4): Switching and Power Metering

Use this skill when fresh discovery identifies a Shelly Gen 4 plug and the user requests switching or power readings.

Identify the Device

  • Match _http._tcp model/hostname metadata such as ShellyPlugUSG4-<device-id>; prefixes and names alone are insufficient.
  • Read /rpc/Shelly.GetDeviceInfo and check model, app, gen, firmware and auth_en. Use the current discovered IPv4/port, never a remembered DHCP address.
  • Gen 1 does not use this RPC path. Gen 2+ API similarity is not a claim that every device has the Gen 4 plug's capabilities.

Prerequisites

Read and follow the Home Link networking and safety rules in ~/docs/devices/home_link.md.

  • Identify what is plugged in before switching, especially networking, heating, medical or other consequential loads.
  • When auth_en is true, use the documented HTTP/RPC digest authentication with approved stored credentials; the device username is admin. Never place the password in a command.

Workflow

  1. Confirm identity, then read /rpc/Shelly.GetStatus and the intended switch component. Shelly Plug US Gen 4 uses switch ID 0; confirm component IDs on other compatible hardware.
  2. Read /rpc/Switch.GetStatus?id=0 before acting. Retain output, apower and relevant fault flags.
  3. Request the desired state with /rpc/Switch.Set?id=0&on=true or on=false. A write remains a state-changing action even when the vendor uses an HTTP GET endpoint.
  4. For an explicitly requested temporary action, Switch.Set accepts toggle_after=<seconds> so reversal runs on the plug; explain the timer and its consequences before setting it.
  5. Read Switch.GetStatus again. The Switch.Set reply's was_on is the previous state, not the resulting state.

Verify the Result

  • Check output for relay state and apower for measured watts. Relay-on with zero watts may mean an idle or disconnected load, not failed control.
  • Report actual voltage/current/energy fields and units when exposed; aenergy totals are in watt-hours.
  • On an uncertain response, read current state before retrying. Do not use toggle as a retry of an explicit on/off request.

Limits

  • Do not create schedules, install scripts, reset or update firmware, or modify protection thresholds under a switching request.
  • Gen 4 may expose illuminance, MQTT, BLE or Matter, but those are not assumed alternative runtime paths here.
  • Prefer explicit on/off to /rpc/Switch.Toggle; persistent Switch.SetConfig changes need their own requested scope.

Sources

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.