소스 정보
- 저장소
- miles990/claude-software-skills
- 최근 소스 활동
- 2026년 1월 8일 02:34
- 감지된 SKILL.md 언어
- 영어
- 스타
- 20
- 포크
- 5
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/miles990/claude-software-skills --skill edge-iot명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
Enterprise-grade repository analysis with arc42/C4 architecture documentation, technical debt quantification, security assessment, and multi-stakeholder reporting
Claude Code Plugin 開發、發布、安裝、更新與 Marketplace 管理完整指南
Flame Engine core fundamentals - components, input, collision, camera, animation, scenes
| name | edge-iot |
| description | Edge computing, IoT protocols, and embedded systems integration |
| domain | development-stacks |
| version | 1.0.0 |
| tags | ["edge","iot","mqtt","embedded","raspberry-pi","arduino","esp32"] |
| triggers | {"keywords":{"primary":["iot","edge","embedded","mqtt","raspberry pi","arduino","esp32"],"secondary":["sensor","actuator","microcontroller","firmware","zigbee","bluetooth"]},"context_boost":["device","hardware","physical","smart home"],"context_penalty":["web","frontend","cloud","saas"],"priority":"medium"} |
Building applications for edge devices, IoT protocols, and embedded systems integration.
# docker-compose.yml
services:
mosquitto:
image: eclipse-mosquitto:2
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- mosquitto_data:/mosquitto/data
- mosquitto_log:/mosquitto/log
volumes:
mosquitto_data:
mosquitto_log:
# mosquitto.conf
listener 1883
listener 9001
protocol websockets
allow_anonymous false
password_file /mosquitto/config/passwd
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
import mqtt from 'mqtt';
class MQTTClient {
private client: mqtt.MqttClient;
private subscriptions = new Map<string, Set<Function>>();
constructor(brokerUrl: string, options?: mqtt.IClientOptions) {
this.client = mqtt.connect(brokerUrl, {
clientId: `node_${Math.random().toString(16).slice(2, 10)}`,
clean: true,
reconnectPeriod: 5000,
...options,
});
this.client.on('connect', () => {
console.log('MQTT connected');
// Resubscribe to all topics
this.subscriptions.forEach((_, topic) => {
this.client.subscribe(topic);
});
});
this..(, {
handlers = .(topic);
message = .(payload);
handlers.( (topic, message));
});
..(, {
.(, error);
});
}
() {
(!..(topic)) {
..(topic, ());
..(topic);
}
..(topic)!.(handler);
{
..(topic)?.(handler);
(..(topic)?. === ) {
..(topic);
..(topic);
}
};
}
() {
payload = message ===
? message
: .(message);
..(topic, payload, {
: ,
...options,
});
}
(: ): <> {
handlers = <>();
..( {
(.(pattern, topic)) {
topicHandlers.( handlers.(h));
}
});
handlers;
}
(: , : ): {
patternParts = pattern.();
topicParts = topic.();
( i = ; i < patternParts.; i++) {
(patternParts[i] === ) ;
(patternParts[i] === ) ;
(patternParts[i] !== topicParts[i]) ;
}
patternParts. === topicParts.;
}
(: ): {
str = payload.();
{
.(str);
} {
str;
}
}
() {
..();
}
}
mqtt = (, {
: ,
: ,
});
mqtt.(, {
deviceId = topic.()[];
.(, data);
});
mqtt.(, {
.(, data);
});
mqtt.(, {
: ,
: .(),
});
class DeviceSimulator {
private mqtt: MQTTClient;
private deviceId: string;
private interval: NodeJS.Timeout | null = null;
constructor(deviceId: string, brokerUrl: string) {
this.deviceId = deviceId;
this.mqtt = new MQTTClient(brokerUrl);
// Subscribe to commands
this.mqtt.subscribe(`devices/${deviceId}/commands`, (_, command) => {
this.handleCommand(command);
});
}
start(intervalMs = 5000) {
this.interval = setInterval(() => {
this.sendTelemetry();
}, intervalMs);
}
stop() {
if (this.interval) {
clearInterval(this.);
. = ;
}
}
() {
telemetry = {
: + .() * ,
: + .() * ,
: + .() * ,
: + .() * ,
: .(),
};
..(, telemetry);
}
() {
.(, command);
(command.) {
:
..(, {
: ,
: .(),
});
;
:
;
}
}
}
// Edge function to process IoT data
export default {
async fetch(request: Request, env: Env): Promise<Response> {
const url = new URL(request.url);
// Device telemetry ingestion
if (url.pathname === '/ingest' && request.method === 'POST') {
const data = await request.json();
const deviceId = request.headers.get('X-Device-ID');
// Validate device
const device = await env.KV.get(`device:${deviceId}`);
if (!device) {
return new Response('Unauthorized', { status: 401 });
}
// Process at edge
const processed = processData(data);
// Store in Durable Object for aggregation
const aggregator = env.AGGREGATOR.get(
env.AGGREGATOR.(deviceId)
);
aggregator.(request., {
: ,
: .(processed),
});
(processed.) {
(, {
: ,
: .({
deviceId,
: processed.,
}),
});
}
();
}
(, { : });
},
};
() {
alert = data. > ? : ;
{
...data,
: .(),
alert,
};
}
{
: ;
: [] = [];
() {
. = state;
}
(: ): <> {
data = request.();
..(data);
(.. > ) {
..();
}
aggregates = {
: .(),
: .(),
: ..,
};
...(, aggregates);
(.(aggregates));
}
(: ): {
values = .
.( r[field])
.( v === );
values.( a + b, ) / values.;
}
}
# boot.py - WiFi connection
import network
import time
def connect_wifi(ssid, password):
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('Connecting to WiFi...')
wlan.connect(ssid, password)
timeout = 10
while not wlan.isconnected() and timeout > 0:
time.sleep(1)
timeout -= 1
if wlan.isconnected():
print('Connected:', wlan.ifconfig())
return True
else:
print('Failed to connect')
return False
connect_wifi('MyNetwork', 'password')
# main.py - Sensor reading and MQTT
from machine import Pin, ADC
from umqtt.simple import MQTTClient
import json
import time
import dht
# Configuration
MQTT_BROKER = '192.168.1.100'
DEVICE_ID = 'esp32-001'
TOPIC_TELEMETRY = f'devices/{DEVICE_ID}/telemetry'
TOPIC_COMMANDS = f'devices/{DEVICE_ID}/commands'
# Hardware setup
led = Pin(2, Pin.OUT)
dht_sensor = dht.DHT22(Pin(4))
light_sensor = ADC(Pin(34))
# MQTT client
client = MQTTClient(DEVICE_ID, MQTT_BROKER)
def on_message(topic, msg):
topic = topic.decode()
data = json.loads(msg.decode())
print(f'Command received: {data}')
if data.get('action') == 'led_on':
led.on()
elif data.get('action') == 'led_off':
led.off()
elif data.get('action') == 'blink':
for _ in range(5):
led.on()
time.sleep(0.2)
led.off()
time.sleep(0.2)
client.set_callback(on_message)
client.connect()
client.subscribe(TOPIC_COMMANDS)
def read_sensors():
dht_sensor.measure()
return {
'temperature': dht_sensor.temperature(),
: dht_sensor.humidity(),
: light_sensor.read(),
: time.time()
}
():
last_publish =
publish_interval =
:
client.check_msg()
current_time = time.time()
current_time - last_publish >= publish_interval:
:
data = read_sensors()
client.publish(TOPIC_TELEMETRY, json.dumps(data))
()
last_publish = current_time
Exception e:
()
time.sleep()
__name__ == :
main()
#include <WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <DHT.h>
// Configuration
const char* ssid = "MyNetwork";
const char* password = "password";
const char* mqtt_server = "192.168.1.100";
const char* device_id = "esp32-001";
// Hardware
#define DHT_PIN 4
#define DHT_TYPE DHT22
#define LED_PIN 2
#define LIGHT_PIN 34
DHT dht(DHT_PIN, DHT_TYPE);
WiFiClient espClient;
PubSubClient client(espClient);
unsigned long lastPublish = 0;
const long publishInterval = 5000;
void setup_wifi() {
delay(10);
Serial.println("Connecting to WiFi...");
WiFi.begin(ssid, password);
while (WiFi.() != WL_CONNECTED) {
();
Serial.();
}
Serial.();
Serial.(WiFi.());
}
{
StaticJsonDocument<> doc;
(doc, payload, length);
* action = doc[];
((action, ) == ) {
(LED_PIN, HIGH);
} ((action, ) == ) {
(LED_PIN, LOW);
}
}
{
(!client.()) {
Serial.();
(client.(device_id)) {
Serial.();
topic[];
(topic, , device_id);
client.(topic);
} {
Serial.();
Serial.(client.());
();
}
}
}
{
StaticJsonDocument<> doc;
doc[] = dht.();
doc[] = dht.();
doc[] = (LIGHT_PIN);
doc[] = ();
buffer[];
(doc, buffer);
topic[];
(topic, , device_id);
client.(topic, buffer);
Serial.();
}
{
Serial.();
(LED_PIN, OUTPUT);
dht.();
();
client.(mqtt_server, );
client.(callback);
}
{
(!client.()) {
();
}
client.();
now = ();
(now - lastPublish >= publishInterval) {
lastPublish = now;
();
}
}
interface Device {
id: string;
name: string;
type: string;
status: 'online' | 'offline' | 'error';
lastSeen: Date;
metadata: Record<string, any>;
config: Record<string, any>;
}
class DeviceRegistry {
constructor(
private db: Database,
private mqtt: MQTTClient
) {
// Listen for device status
this.mqtt.subscribe('devices/+/status', (topic, status) => {
const deviceId = topic.split('/')[1];
this.updateStatus(deviceId, status);
});
}
async register(device: Omit<Device, 'status' | 'lastSeen'>) {
: = {
...device,
: ,
: (),
};
...({ : fullDevice });
..(, device.);
fullDevice;
}
() {
...({
: { : deviceId },
: { config },
});
..(, config, { : });
}
() {
..(, command);
...({
: {
deviceId,
command,
: (),
},
});
}
() {
...({
: { : deviceId },
: {
: status.,
: (),
},
});
}
}