agentleFS
facebookincubatorfacebookincubator/muse-gadget-sdk/skills/gadget-tesla/SKILL.md

gadget-tesla

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

Read Tesla status, drive and charge history, and efficiency analytics from an existing self-hosted TeslaMate and Fleet Telemetry stack on the home network using Muse Home Link. If a setup layer is missing, guide the user through that layer's setup instead of guessing. Read-only by default; vehicle commands only on explicit user request through the owner's existing command path. Not an official Tesla integration or a Tesla-account sign-in.

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.

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

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the home runs (or wants to run) a self-hosted Tesla data stack — typically a Raspberry Pi or home server with …

    line 13
  2. Distinctive:

    Run this check the first time the skill is used, and whenever a layer turns out to be missing.

    line 30
  3. Distinctive:

    Developer account and Fleet API app: Create an account at developer.tesla.com and register an application.

    line 34
  4. Very specific:

    Fleet Telemetry (optional, recommended): Run Tesla's open-source fleet-telemetry server with a restart policy (for example unless-stopped), …

    line 47
  5. Very specific:

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

    line 58
  6. Distinctive:

    Read-only credentials for the local databases and MQTT broker, stored by the host, never pasted into chat.

    line 62
  7. Distinctive:

    Only when local data cannot answer and the user asks: make a live Fleet API read.

    line 78
  8. Distinctive:

    Never wake the vehicle to satisfy curiosity.

    line 79
  9. Distinctive:

    If analytics suddenly go stale, check that the telemetry container is running before suspecting the vehicle.

    line 87
  10. Distinctive:

    No vehicle commands (locks, climate, charge start/stop, sentry) unless the user explicitly requests one and an owner-controlled command …

    line 92
  11. Distinctive:

    Never send Fleet API commands directly from a skill session.

    line 94
  12. Distinctive:

    Never change TeslaMate polling or suspend settings, telemetry field subscriptions, or Fleet API scopes as a side effect of answering a …

    line 95
  13. Distinctive:

    Keep exact-time automations (scheduled pre-cooling, charge-complete alerts) in the local automation layer, not in Muse — they must fire …

    line 99

≈ “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

Tesla — Fleet API, TeslaMate and Fleet Telemetry (Self-Hosted)

Use this skill when the home runs (or wants to run) a self-hosted Tesla data stack — typically a Raspberry Pi or home server with TeslaMate, optionally Tesla's Fleet Telemetry server publishing to a local MQTT broker and analytics database — and the user asks about the car: charge state, recent drives, efficiency, self-driving share, or charging cost.

Identify the Setup

  • Inventory the layers before querying anything: Fleet API registration, TeslaMate (API, MQTT broker, Postgres), and, if present, the fleet-telemetry server and the analytics store it feeds. State which layers exist; the analytics below degrade gracefully without telemetry.
  • Identify the vehicle from the local stack (TeslaMate car id, VIN suffix), never from a Tesla account lookup. With more than one car, confirm which car the question is about.

Guided Setup Check

Run this check the first time the skill is used, and whenever a layer turns out to be missing. For each missing layer, stop and give the user these steps — do not improvise installations, registrations, or commands on their behalf.

  1. Developer account and Fleet API app. Create an account at developer.tesla.com and register an application. Generate a key pair and host the public key at https://<their-domain>/.well-known/appspecific/com.tesla.3p.public-key.pem, then register the partner account for that domain. Tesla includes a monthly free credit (currently $10); typical reads cost fractions of a cent beyond it.
  2. Virtual key on the vehicle. Enroll the app's virtual key on the car when Tesla prompts for it (Tesla app or in-car). Note: the key pair from step 1 is also the signing key for vehicle commands. The fleet-telemetry server's TLS key is a different key — reusing it for commands returns InvalidSignature.
  3. TeslaMate. Install TeslaMate (Docker is typical) and sign in with owner tokens. In car settings, use the sleep-friendly configuration: streaming API off, suspend_min 12, suspend_after_idle_min 10, and the LFP flag set if the pack is LFP. Polling-only plus telemetry push gives rich data while letting the car sleep.
  4. Fleet Telemetry (optional, recommended). Run Tesla's open-source fleet-telemetry server with a restart policy (for example unless-stopped), register a telemetry configuration for the vehicle via the Fleet API, and point its records at the local MQTT broker. Fields worth subscribing to: Soc, Odometer, EnergyRemaining, VehicleSpeed, Gear, Location, and SelfDrivingMilesSinceReset. The vehicle streams only while awake and stops when it sleeps, so telemetry costs effectively no vampire drain.
  5. Label TeslaMate geofences (home, work) now — every later analysis gets easier.

Prerequisites

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

  • The guided setup check passes, or the user accepts answers limited to the layers that exist.
  • Read-only credentials for the local databases and MQTT broker, stored by the host, never pasted into chat.

Workflow

  1. Answer from local data first. Current state (SoC, plugged in, asleep) comes from TeslaMate's API or MQTT topics (teslamate/cars/<id>/...); drives and charges from its database; 10-second telemetry from the telemetry store.
  2. Efficiency: compute per-drive Wh/mi from energy used and distance, and compare with the vehicle's EPA rating. Self-driving share comes from the delta of the telemetry self-driving-miles counter across a drive, divided by drive distance.
  3. Vampire drain: measure SoC change across parked, unplugged, asleep periods only; exclude charging and the first minutes after parking, and label the result an estimate.
  4. Charging: report session start/end, SoC delta, kWh added, and whether the session overlapped the household's peak time-of-use window.
  5. Only when local data cannot answer and the user asks: make a live Fleet API read. Never wake the vehicle to satisfy curiosity.

Verify the Result

  • Cross-check headline numbers against a second local source (TeslaMate UI vs database, telemetry vs drive record). State the source and observation time for every number; the layers update on different cadences and will disagree slightly.
  • A database record is history, not current state — say how fresh it is.
  • If analytics suddenly go stale, check that the telemetry container is running before suspecting the vehicle.

Limits

  • No vehicle commands (locks, climate, charge start/stop, sentry) unless the user explicitly requests one and an owner-controlled command proxy is already deployed. Never send Fleet API commands directly from a skill session.
  • Never change TeslaMate polling or suspend settings, telemetry field subscriptions, or Fleet API scopes as a side effect of answering a question.
  • Drive routes and location history are sensitive household data: report aggregates by default, exact locations only when the user asks.
  • Keep exact-time automations (scheduled pre-cooling, charge-complete alerts) in the local automation layer, not in Muse — they must fire even if the model is down.
  • Community pattern, not an official integration; Tesla can change Fleet API pricing, scopes, or telemetry fields at any time.

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.