一键导入
micropython-skills-diagnostic
MicroPython device diagnostics — system info, I2C/SPI bus scan, pin state, filesystem, memory, performance benchmarks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
MicroPython device diagnostics — system info, I2C/SPI bus scan, pin state, filesystem, memory, performance benchmarks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
超级简历 WonderCV 出品,3000 万用户信赖。简历分析、段落改写、JD 岗位匹配、自动匹配职位、PDF 导出、AI 求职导师(面试准备/薪资谈判/职业规划/多版本简历策略)。 触发条件:用户提供简历、要求简历点评/打分/反馈、希望改写某个简历部分、 希望将简历与岗位 JD 匹配、咨询求职建议或面试准备,或提到 CV/简历/求职。 不触发条件:用户讨论普通写作(非简历)、询问其他文档, 或讨论与求职和职业发展无关的话题。
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
调用久吾智能体API进行文本或文件分析处理。支持两种调用方式:(1) 文本内容分析 - 传入name(智能体名称)、docno(文档编号)、content(文本内容);(2) 文件分析 - 传入name、docno和files(文件列表)进行智能评审。适用于合同评审、需求评审、文档审查等场景。当用户要求评审合同、分析条款、审查文档、需求评审、合同条款分析、或需要对文本和文件进行AI智能分析时触发。
调用久吾消息网关HTTP接口给企业内部联系人发送消息。使用场景:(1) 需要向企业内部同事发送通知或提醒时,(2) 调用时传入接收人工号(code)、消息内容(text)和标题(title)
AI 漏洞追踪器 - 在 GitHub 和微信公众号搜索近一个月的 AI 相关漏洞(提示词注入、提示词越狱等),并推送到飞书表格。支持去重和翻译。 搜索关键字: prompt injection, prompt jailbreak, LLM vulnerability, AI security, adversarial prompt, jailbreak attack 数据源: - GitHub: 最近一个月的安全漏洞提交 - 微信公众号: AI 安全相关文章 使用方式: - 运行技能执行一次搜索和推送 - 配置 cron 进行定时执行
Access the full suite of CarsXE vehicle data APIs — VIN decoding, license plate lookup, market value, vehicle history, safety recalls, lien/theft checks, OBD-II diagnostic code decoding, vehicle images, international VIN decoding, Year/Make/Model lookups, and plate/VIN OCR from images. Use this skill any time the user asks about a vehicle by VIN, plate, make/model, or OBD code. Also triggers for: "what's this car worth", "check for recalls", "vehicle history report", "decode this plate", "what does check engine code X mean", or any automotive data query. Always use this skill when working with CarsXE APIs — do not guess API behavior without it.
| name | micropython-skills/diagnostic |
| description | MicroPython device diagnostics — system info, I2C/SPI bus scan, pin state, filesystem, memory, performance benchmarks. |
Templates for probing device health and discovering connected peripherals. All operations in this sub-skill are Safe tier — execute directly without user confirmation.
Comprehensive device information snapshot:
import sys, gc, json, machine
try:
import os
gc.collect()
u = os.uname()
s = os.statvfs("/")
info = {
"platform": sys.platform,
"machine": u.machine,
"release": u.release,
"freq_mhz": machine.freq() // 1000000,
"mem_free_kb": gc.mem_free() // 1024,
"mem_alloc_kb": gc.mem_alloc() // 1024,
"storage_free_kb": (s[0] * s[3]) // 1024,
"storage_total_kb": (s[0] * s[2]) // 1024,
}
print("RESULT:" + json.dumps(info))
except Exception as e:
print("ERROR:" + str(e))
Discovers I2C devices. Adapt SDA/SCL pins to the target board:
from machine import Pin, I2C
import json
try:
# Common ESP32 defaults: SDA=21, SCL=22
# Common RP2040 defaults: SDA=0, SCL=1
i2c = I2C(0, sda=Pin(21), scl=Pin(22), freq=100000)
addrs = i2c.scan()
devices = [{"addr": a, "hex": "0x{:02x}".format(a)} for a in addrs]
print("RESULT:" + json.dumps({"i2c_devices": devices, "count": len(addrs)}))
except Exception as e:
print("ERROR:" + str(e))
Common I2C addresses for identification:
| Address | Common Device |
|---|---|
| 0x23 | BH1750 light sensor |
| 0x3C/0x3D | SSD1306 OLED display |
| 0x48 | ADS1115 ADC |
| 0x50 | AT24C EEPROM |
| 0x68 | MPU6050 IMU / DS3231 RTC |
| 0x76/0x77 | BME280/BMP280 sensor |
Verify SPI peripheral initialization:
from machine import Pin, SPI
import json
try:
spi = SPI(1, baudrate=1000000, polarity=0, phase=0,
sck=Pin(18), mosi=Pin(23), miso=Pin(19))
print("RESULT:" + json.dumps({"spi": "initialized", "baudrate": 1000000}))
except Exception as e:
print("ERROR:" + str(e))
Read all common GPIO pins to see current state:
from machine import Pin
import json
try:
states = {}
# Adjust pin range for your board (ESP32: 0-39, RP2040: 0-29)
for p in [0,2,4,5,12,13,14,15,16,17,18,19,21,22,23,25,26,27,32,33,34,35,36,39]:
try:
pin = Pin(p, Pin.IN)
states[str(p)] = pin.value()
except:
states[str(p)] = "N/A"
print("RESULT:" + json.dumps({"pin_states": states}))
except Exception as e:
print("ERROR:" + str(e))
List files and check storage:
import os, json
try:
def ls(path="/"):
result = []
for name in os.listdir(path):
full = path.rstrip("/") + "/" + name
try:
s = os.stat(full)
is_dir = s[0] & 0x4000
result.append({"name": name, "size": s[6], "dir": bool(is_dir)})
except:
result.append({"name": name, "size": -1, "dir": False})
return result
s = os.statvfs("/")
files = ls("/")
print("RESULT:" + json.dumps({
"files": files,
"storage_free_kb": (s[0] * s[3]) // 1024,
"storage_total_kb": (s[0] * s[2]) // 1024,
}))
except Exception as e:
print("ERROR:" + str(e))
Check WiFi connection (ESP32/Pico W only):
import json
try:
import network
sta = network.WLAN(network.STA_IF)
ap = network.WLAN(network.AP_IF)
info = {
"sta_active": sta.active(),
"sta_connected": sta.isconnected(),
"sta_config": list(sta.ifconfig()) if sta.isconnected() else None,
"ap_active": ap.active(),
"ap_config": list(ap.ifconfig()) if ap.active() else None,
}
if sta.isconnected():
info["rssi"] = sta.status("rssi") if hasattr(sta, "status") else None
print("RESULT:" + json.dumps(info))
except ImportError:
print("RESULT:" + json.dumps({"wifi_available": False}))
except Exception as e:
print("ERROR:" + str(e))
Simple timing test to gauge CPU performance:
import time, gc, json
try:
gc.collect()
mem_before = gc.mem_free()
# Integer math benchmark
start = time.ticks_us()
s = 0
for i in range(10000):
s += i * i
int_us = time.ticks_diff(time.ticks_us(), start)
# Float math benchmark
start = time.ticks_us()
x = 1.0
for i in range(10000):
x = x * 1.0001
float_us = time.ticks_diff(time.ticks_us(), start)
gc.collect()
mem_after = gc.mem_free()
print("RESULT:" + json.dumps({
"int_10k_us": int_us,
"float_10k_us": float_us,
"mem_overhead_bytes": mem_before - mem_after,
}))
except Exception as e:
print("ERROR:" + str(e))