用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jacobgao5/hermes-agent --skill appliance-fault-diagnosis命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | appliance-fault-diagnosis |
| description | Diagnose home appliance faults using local knowledge base before searching external sources |
| version | 1.0.0 |
| metadata | {"hermes":{"tags":["appliance","refrigerator","fault-codes","knowledge-base","troubleshooting"]}} |
When users report appliance problems (especially refrigerators), always check the local knowledge base first before searching externally.
~/mydocs/knowledgebase/
家电维修.txt - Contains fault codes and descriptions| Filename | Actual Content | Pages |
|---|---|---|
BN81-27185G-690_EUG_ROPDVBCNF_CN_S-CHI_250818.0.pdf | Samsung TV user manual | 254 |
DA68-04798R-06_RF8500_Defeature_CN_SVC.pdf | Samsung Refrigerator RF50DG5021 user manual | 46 |
DB68-12848B-01_QG_FAC_MEMORY_SC_ZH-CH_2026.03.17.pdf | Samsung AC (Air Conditioner) quick guide | 16 |
OID78248_IB_T-PJT_WD8000D_7LCD_ZH-CN_260113.pdf | Samsung WD8000D Washing Machine manual | (unverified) |
⚠️ Critical Lesson: PDF filenames may NOT match content (e.g., "RF8500" filename contains RF50DG5021 refrigerator manual). Always verify by extracting first few pages before referencing.
ls -la ~/hermes-agent/mydocs/knowledgebase/
Note: Path is ~/hermes-agent/mydocs/knowledgebase/ (relative to hermes-agent directory).
cat ~/hermes-agent/mydocs/knowledgebase/家电维修.txt
Contains basic fault codes for refrigerators (C71, C72, C73, C76).
Install pymupdf if needed:
~/hermes-agent/venv/bin/python -m pip install pymupdf -q
Extract and verify PDF content (first 30 pages):
import pymupdf
# Use absolute path
doc = pymupdf.open("/home/user/hermes-agent/mydocs/knowledgebase/<filename>.pdf")
# Extract first 30 pages to identify content
text = ""
for i, page in enumerate(doc[:30]):
text += f"\n=== 第 {i+1} 页 ===\n"
text += page.get_text()
print(text[:15000]) # Limit output
print(f"\n\n总页数:{len(doc)}")
Search for specific content (error codes, symptoms):
import pymupdf
doc = pymupdf.open("/home/user/hermes-agent/mydocs/knowledgebase/<filename>.pdf")
# Search all pages for keywords
for i, page in enumerate(doc):
text = page.get_text()
if "高温" in text or "报警" in text or "错误" in text:
print(f"\n=== 第 {i+1} 页 ===")
print(text[:2000])
Extract specific sections (e.g., pages 39-46 for troubleshooting):
import pymupdf
doc = pymupdf.open("/home/user/hermes-agent/mydocs/knowledgebase/<filename>.pdf")
text = ""
for i, page in enumerate(doc[38:46]): # Pages 39-46 (0-indexed)
text += f"\n=== 第 {i+39} 页 ===\n"
text += page.get_text()
print(text[:12000])
From 家电维修.txt (basic fault codes):
| Code | Fault | Solution |
|---|---|---|
| C71 | 冷冻室高温检测 | Check freezer door closed, no hot food stored |
| C72 | 冷藏室高温检测 | Check refrigerator door closed, no hot food stored |
| C73 | 整个冰箱高温检测 | Check all doors closed |
| C76 | 自动注水溢出错误 | Remove rubber plug from water bucket bottom, drain, replace plug |
From Refrigerator Manual (DA68-04798R-06) - Comprehensive Troubleshooting:
| Symptom | Possible Cause | Solution |
|---|---|---|
| 冷藏室/冷冻室不工作 | 电源线未正确插入 | 正确插入电源线 |
| 冷藏室/冷冻室温度高 | 温度控制设置偏高 | 设置更低温度 |
| 冷藏室/冷冻室温度高 | 冰箱靠近热源或阳光直射 | 让冰箱远离阳光直射或热源 |
| 冷藏室/冷冻室温度高 | 冰箱过载,食物挡住通风口 | 请勿过载冰箱,请勿让食物挡住通风口 |
| 冷藏室/冷冻室过度制冷 | 温度控制设置偏低 | 设置更高温度 |
| 箱口发热 | 防露管正常工作 | 非故障,正常现象 |
| 冰箱有异味 | 食物变质 | 清洁冰箱,取出变质食物 |
| 冰箱有异味 | 有强烈气味的食物 | 确保紧紧包裹有强烈气味的食物 |
| 通风口周围结霜 | 食物挡住通风口 | 确保没有食物挡住通风口 |
| 内壁结霜 | 关门有缝隙 | 确保食物没挡住门,清洁门垫圈 |
| 内壁冷凝 | 门保持打开,湿气进入 | 排出湿气,勿长时间开门 |
| 内壁冷凝 | 含大量水分的食物 | 确保紧紧包裹食物 |
Samsung Customer Service: 400-810-5858 (all Samsung appliances)
When user reports a fault code:
Models: RF50DG5021CWSC, RF50DG5021EMSC
| Parameter | Value |
|---|---|
| Total Capacity | 501 L |
| Refrigerator | 325 L (1~7℃) |
| Freezer | 88 L (-23~-15℃) |
| Multi-Zone | 88 L (-23~3℃) |
| Dimensions | 834×600×1920 mm (W×D×H) |
| Power | 220V~/50Hz, 2.5A, 170W |
| Refrigerant | R-600a / 86g |
| Energy Rating | Level 1 |
| Noise | 36 dB(A) |
| Annual Consumption | 361 kW·h/y |
Temperature Settings:
Smart Features: SmartThings app support, Wi-Fi (2.4GHz), Ion Deodorization (model dependent)
Extract all embedded images (diagrams, installation figures):
import pymupdf
import os
pdf_path = "/home/user/hermes-agent/mydocs/knowledgebase/<filename>.pdf"
output_dir = "/home/user/hermes-agent/mydocs/knowledgebase/images"
os.makedirs(output_dir, exist_ok=True)
doc = pymupdf.open(pdf_path)
image_count = 0
for page_num in range(len(doc)):
page = doc[page_num]
image_list = page.get_images(full=True)
if image_list:
print(f"第 {page_num + 1} 页 找到 {len(image_list)} 张图片")
for img_index, img in enumerate(image_list):
xref = img[0]
base_image = doc.extract_image(xref)
image_bytes = base_image["image"]
image_ext = base_image["ext"]
filename = f"{output_dir}/<prefix>_p{page_num+1}_img{img_index+1}.{image_ext}"
with open(filename, "wb") as f:
f.write(image_bytes)
image_count += 1
print(f"✅ 总共提取 {image_count} 张图片")
Typical image locations in refrigerator manual:
Matplotlib Chinese font issue:
# Will produce warnings like:
# UserWarning: Glyph 20919 (\N{CJK UNIFIED IDEOGRAPH-51B7}) missing from font(s) DejaVu Sans
Fallback: Use ASCII art for structural diagrams:
╔══════════════════════════════════════════════════════════╗
║ 三星冰箱 RF50DG5021 内部结构示意图 ║
╠══════════════════════════════════════════════════════════╣
║ ┌────────────────────────────────────────────────────┐ ║
║ │ 冷藏室 (325L) 1~7℃ │ ║
║ │ ┌────────────────────────────────────────────┐ │ ║
║ │ │ ████████████████████████████████████████ │搁板│ ║
║ │ └────────────────────────────────────────────┘ │ ║
║ │ ┌──────────────┐ ┌──────────────┐ │ ║
║ │ │ 抽屉 │ │ 抽屉 │ │ ║
║ │ └──────────────┘ └──────────────┘ │ ║
║ └────────────────────────────────────────────────────┘ ║
║ ┌────────────────────────────────────────────────────┐ ║
║ │ 变温室 (88L) -23℃~3℃ │ ║
║ └────────────────────────────────────────────────────┘ ║
║ ┌────────────────────────────────────────────────────┐ ║
║ │ 冷冻室 (88L) -23℃~-15℃ │ ║
║ └────────────────────────────────────────────────────┘ ║
╚══════════════════════════════════════════════════════════╝
/home/user/hermes-agent/mydocs/knowledgebase/~/hermes-agent/venv/bin/python -m pip install pymupdf -q~/hermes-agent/mydocs/knowledgebase/ (relative to hermes-agent project directory)基于 SOC 职业分类