用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill electrical命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | electrical |
| description | Electrical systems and applications |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"electricians, technicians, homeowners","category":"engineering"} |
# Electrical safety parameters
SAFETY_THRESHOLDS = {
"current_mA": {
"perception": 1, # mA - sensation
"muscular_control": 10, # mA - can't let go
"ventricular_fibrillation": 100, # mA
"cardiac_arrest": 1000 # mA
},
"voltage_levels": {
"low": "< 50V",
"medium": "50V - 1000V",
"high": "> 1000V"
}
}
# PPE requirements
PPE_CATEGORIES = {
"voltage_class": {
"0-50V": "None required",
"50-500V": "Class 00 insulated tools",
"500V-1kV": "Class 0 insulated tools, gloves",
"1kV-36kV": "Class 2+ gloves, blankets"
}
}
# Wire gauge selection (AWG)
WIRE_GAUGES = {
15: {"ampacity": 15, "use": "Lighting circuits"},
20: {"ampacity": 20, "use": "General outlets"},
30: {"ampacity": 30, "use": "Appliances, dryers"},
40: {"ampacity": 40, "use": "Ranges, AC units"},
50: {"ampacity": 50, "use": "Large appliances"}
}
# Voltage drop calculation
def voltage_drop_percent(I, L, AWG, V):
"""VD% = (2 × K × I × L) / CM
K = 10.4 (copper), L = one-way length
"""
cm = {14: 4110, 12: 6530, 10: 10380, 8: 16540}.get(AWG, 10380)
k = 10.4 # Copper
vd = (2 * k * I * L) / cm
return (vd / V) * 100
| Device | Rating | Application |
|---|---|---|
| Circuit Breaker | 15-200A | Overcurrent protection |
| GFCI | 15-20A | Ground fault protection |
| AFCI | 15-20A | Arc fault protection |
| Surge Protector | Varies | Transient protection |
| Transformer | Varies | Voltage conversion |
# Panel scheduling
PANEL_SCHEDULE = {
"main": {
"rating": "100A, 200A typical",
"breakers": "Single or double pole"
},
"branch": {
"types": ["15A", "20A", "30A", "40A", "50A"],
"spacing": "1/2 inch per breaker"
}
}
| Circuit | Voltage | Application |
|---|---|---|
| General Purpose | 120V | Lighting, outlets |
| Small Appliance | 120V | Kitchen, laundry |
| Fixed Appliance | 240V | Ranges, dryers |
| HVAC | 240V | Air conditioning |
| Sub-panel | 240V | Distribution |