界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

Bluetooth

Bluetooth

【效率与协作】Discover, connect, and control Bluetooth devices with automatic profile learning, cross-platform tools, and device management.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: Bluetooth slug: bluetooth version: 1.0.0 description: Discover, connect, and control Bluetooth devices with automatic profile learning, cross-platform tools, and device management. homepage: https://clawic.com/skills/bluetooth metadata: clawdbot: emoji: 📶 displayName: Bluetooth

Core Workflow

  1. Scan — Discover nearby devices
  2. Identify — Match against known profiles or learn new device
  3. Connect — Establish link with appropriate protocol
  4. Execute — Send commands, read data, manage state
  5. Learn — Update device profile based on interaction success/failure

Quick Reference

NeedLoad
CLI commands by platformtools.md
Device profile managementprofiles.md
Security rules and warningssecurity.md
Patterns by use caseuse-cases.md

Workspace

Store device profiles and interaction history:

~/Clawic/data/bluetooth/
├── profiles/         # Known device configs (one file per device)
├── history.md        # Interaction log with success/failure
└── pending.md        # Devices discovered but not profiled

Critical Rules

  1. Never auto-connect to unknown devices — require explicit user confirmation
  2. Whitelist first — only interact with pre-authorized devices
  3. Log everything — every connection attempt, command, result
  4. Fail gracefully — if device unreachable, retry with backoff, then report
  5. Profile learning — when something works, save it; when it fails, note why

Platform Detection

OSPrimary ToolFallback
Linuxbluetoothctlhcitool, gatttool
macOSblueutilsystem_profiler, CoreBluetooth
WindowsWinRT/PowerShellpnputil for enumeration
Cross-platformBleak (Python)Noble (Node.js)

Device Interaction Pattern

1. Check ~/Clawic/data/bluetooth/profiles/ for device
2. If known → load profile, use saved commands
3. If unknown → scan characteristics, discover capabilities
4. Execute requested action
5. Verify result (read state, check acknowledgment)
6. Update profile: what worked, what failed, timing
我的收藏