Command Palette

Search for a command to run...

Назад к скиллам
скилл № 11944

Shelly

Control and automate Shelly devices with local RPC workflows, secure access modes, cloud API coordination, and safe multi-device execution.

БесплатноБез исполняемых скриптов
clawicот clawic★ 23 звезды на GitHub

Установить Shelly в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Setup

On first use, read setup.md and align activation boundaries, local network scope, and write-safety defaults before sending Shelly commands.

When to Use

Use this skill when the user needs practical Shelly execution: local RPC control, status and telemetry reads, cloud-assisted operations, device grouping, or staged automations. Use this instead of generic IoT advice when outcomes depend on Shelly-specific RPC behavior, transport channel choice, and safe multi-device rollouts.

Architecture

Memory lives in ~/Clawic/data/shelly/. See memory-template.md for structure and status values.

~/Clawic/data/shelly/
|-- memory.md                 # Core context and activation boundaries
|-- environments.md           # LAN segments, cloud context, and endpoint mapping
|-- devices.md                # Device registry, components, and command patterns
|-- automations.md            # Sequencing rules, schedules, and rollback plans
`-- incidents.md              # Failure signatures and validated recoveries

Quick Reference

Use the smallest file needed for the current task.

Topic File
Setup and activation behavior setup.md
Memory and workspace templates memory-template.md
Protocol and transport choices protocol-matrix.md
Access and authentication models auth-and-access.md
Device command and state workflows device-operations.md
Multi-device rollout playbooks orchestration-playbooks.md
Diagnostics and recovery troubleshooting.md

Requirements

  • Shelly devices reachable in the target local network, or cloud account access for cloud mode
  • For cloud operations: SHELLY_CLOUD_TOKEN set in environment
  • For reliable automation: stable device ids, component ids, and execution boundaries

Never ask users to paste production secrets in chat logs. Prefer local environment variables and redacted examples.

Data Storage

Keep local operational notes in ~/Clawic/data/shelly/:

  • network and endpoint decisions
  • device component maps and verified RPC methods
  • automation policies, sequencing, and rollback constraints
  • incident signatures and mitigations

Core Rules

1. Select the Correct Control Plane Before Acting

  • Decide local-only, cloud-assisted, or mixed mode before issuing commands.
  • Block execution when control plane is ambiguous because status and command outcomes become inconsistent.

2. Resolve Transport Channel by Task and Scale

  • Use local HTTP RPC for direct control and deterministic reads.
  • Use WebSocket notifications for near real-time state updates and MQTT for event pipelines where broker integration is required.

3. Discover Components and Capabilities Before Writes

  • Read device status and component layout before command generation.
  • Generate writes only for existing component ids and supported method parameters.

4. Use Read-Before-Write and Read-After-Write Loops

  • Capture baseline state before every write.
  • Verify resulting state after execution and stop rollout on mismatch.

5. Enforce Explicit Safety Gates for High-Impact Actions

  • Start in read-only inspection and dry-run planning mode.
  • Require explicit confirmation before relay power toggles, heating control, locks, alarms, or bulk updates.

6. Keep Local and Cloud Views Consistent

  • Reconcile device identity and state if local RPC and cloud responses diverge.
  • Prefer local device truth for immediate state decisions when reachable.

7. Design Automations as Idempotent and Observable

  • Use deterministic run ids, bounded retries, and hard stop conditions.
  • Log each execution step with expected state checks to avoid duplicate or partial transitions.

8. Preserve Security and Privacy Boundaries

  • Use least-privilege credentials and only declared endpoints.
  • Read cloud token from environment variables and never write raw secrets to local notes.

Common Traps

  • Mixing local and cloud control without precedence rules -> conflicting state and duplicate writes.
  • Sending RPC methods without validating component ids -> rejected calls or wrong target behavior.
  • Treating transport choice as interchangeable -> latency and reliability mismatches under load.
  • Bulk execution without canary checks -> large blast radius when one method is misconfigured.
  • Assuming notification streams imply successful writes -> command accepted but desired final state not reached.
  • Storing cloud tokens in plaintext notes -> unnecessary credential exposure.

External Endpoints

Endpoint Data Sent Purpose
http:///rpc RPC method names, params, and request identifiers Local Shelly device control and status retrieval
ws:///rpc RPC messages and event subscriptions Local WebSocket notifications and event streaming
mqtt:// Device state and command topics with payloads MQTT-based event and automation integration
https://*.shelly
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • _meta.json
  • auth-and-access.md
  • device-operations.md
  • memory-template.md
  • orchestration-playbooks.md
  • protocol-matrix.md
  • setup.md
  • troubleshooting.md

FAQ

Что делает скилл Shelly?

Control and automate Shelly devices with local RPC workflows, secure access modes, cloud API coordination, and safe multi-device execution.

Как установить скилл Shelly?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Shelly запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Shelly с