google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
moai-domain-iot
Enterprise IoT patterns with MQTT, Edge Computing, and Device Management
Full skill instructions
Enterprise IoT Architecture: From Sensors to Cloud
Focus: MQTT, Edge Computing, Industrial IoT, Security
Stack: Python, Mosquitto, Docker, TensorFlow Lite
Production-ready patterns for scalable, secure IoT systems.
| Protocol | Range | Bandwidth | Power | Use Case |
|---|---|---|---|---|
| MQTT | Any | Low-Med | Low | Real-time telemetry, Command/Control |
| LoRaWAN | 10km+ | Very Low | Very Low | Remote sensors, Agriculture |
| WiFi 6 | <100m | High | High | Video streaming, High-bandwidth data |
| BLE | <100m | Low | Low | Wearables, Proximity |
Production-grade client with auto-reconnection and buffering.
import json
import logging
import paho.mqtt.client as mqtt
from datetime import datetime
class IoTClient:
def __init__(self, client_id, broker, port=1883, username=None, password=None):
self.client = mqtt.Client(client_id=client_id, protocol=mqtt.MQTTv5)
if username:
self.client.username_pw_set(username, password)
self.client.on_connect = self.on_connect
self.client.on_message = self.on_message
self.client.on_disconnect = self.on_disconnect
self.connected = False
self.topics = []
def connect(self):
try:
self.client.connect(self.broker, self.port, keepalive=60)
self.client.loop_start()
except Exception as e:
logging.error(f"Connection failed: {e}")
def on_connect(self, client, userdata, flags, rc, properties=None):
if rc == 0:
self.connected = True
logging.info("Connected to broker")
for topic, qos in self.topics:
client.subscribe(topic, qos)
else:
logging.error(f"Connection failed with code {rc}")
def publish_telemetry(self, device_id, data):
if not self.connected:
return False
payload = {
"device_id": device_id,
"ts": datetime.utcnow().isoformat(),
"data": data
}
info = self.client.publish(
f"devices/{device_id}/telemetry",
json.dumps(payload),
qos=1
)
return info.rc == mqtt.MQTT_ERR_SUCCESS
def subscribe_command(self, device_id, callback):
topic = f"devices/{device_id}/commands/#"
self.topics.append((topic, 1))
self.client.message_callback_add(topic, callback)
if self.connected:
self.client.subscribe(topic, 1)
Local buffering and aggregation before cloud upload.
import asyncio
from collections import deque
class EdgeProcessor:
def __init__(self, buffer_size=100):
self.buffer = deque(maxlen=buffer_size)
self.cloud_client = IoTClient("edge-gateway", "cloud.broker.com")
async def process_reading(self, sensor_id, value):
# 1. Local Anomaly Detection
if value > 100: # Simple threshold
await self.trigger_local_alert(sensor_id, value)
# 2. Buffer for Aggregation
self.buffer.append((sensor_id, value))
# 3. Batch Upload
if len(self.buffer) >= 50:
await self.flush_to_cloud()
async def flush_to_cloud(self):
batch = list(self.buffer)
self.buffer.clear()
# Calculate aggregates
avg_val = sum(v for _, v in batch) / len(batch)
payload = {
"count": len(batch),
"avg": avg_val,
"raw": batch
}
self.cloud_client.publish_telemetry("edge-01", payload)
Running lightweight models on edge devices.
import tensorflow as tf
import numpy as np
class EdgeModel:
def __init__(self, model_path):
self.interpreter = tf.lite.Interpreter(model_path=model_path)
self.interpreter.allocate_tensors()
self.input_details = self.interpreter.get_input_details()
self.output_details = self.interpreter.get_output_details()
def predict(self, input_data):
# Preprocess
input_data = np.array(input_data, dtype=np.float32)
input_data = np.expand_dims(input_data, 0)
# Set input
self.interpreter.set_tensor(self.input_details[0]['index'], input_data)
# Run inference
self.interpreter.invoke()
# Get output
output = self.interpreter.get_tensor(self.output_details[0]['index'])
return output[0]
version: "3.8"
services:
mosquitto:
image: eclipse-mosquitto:2.0
ports:
- "1883:1883"
- "8883:8883"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
edge-service:
build: .
restart: always
depends_on:
- mosquitto
environment:
- MQTT_BROKER=mosquitto
- DEVICE_ID=gateway-01
devices:
- "/dev/gpiomem:/dev/gpiomem" # GPIO access
influxdb:
image: influxdb:2.7
ports:
- "8086:8086"
volumes:
- influxdb-data:/var/lib/influxdb2
# mosquitto.conf
listener 1883
protocol mqtt
listener 8883
protocol mqtt
cafile /mosquitto/config/certs/ca.crt
certfile /mosquitto/config/certs/broker.crt
keyfile /mosquitto/config/certs/broker.key
persistence true
persistence_location /mosquitto/data/
# Security
allow_anonymous false
password_file /mosquitto/config/passwd
acl_file /mosquitto/config/acl
Connectivity:
Data Flow:
Security:
moai-domain-ml: Edge ML modelsmoai-security-devsecops: Secure deploymentmoai-cloud-aws-advanced: AWS IoT Core integrationLast Updated: 2025-11-20
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.