소스 정보
- 저장소
- ffsshhttiikk/opencode-agents-skills
- 최근 소스 활동
- 2026년 2월 28일 22:51
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill electrical-engineering명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | electrical-engineering |
| description | Electrical engineering fundamentals and design |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"engineers, technicians, students","category":"engineering"} |
import numpy as np
from scipy import signal
# Ohm's Law
def ohms_law(V=None, I=None, R=None):
"""Calculate unknown using V=IR"""
if V is not None and R is not None:
return V / R
elif V is not None and I is not None:
return V / I
elif I is not None and R is not None:
return I * R
# Kirchhoff's Current Law (KCL)
def kcl(node_currents):
"""Sum of currents at node = 0"""
return sum(node_currents)
# Kirchhoff's Voltage Law (KVL)
def kvl(loop_voltages):
"""Sum of voltages in loop = 0"""
return sum(loop_voltages)
# Power calculations
def electrical_power(V, I=None, R=None):
"""P = VI = I²R = V²/R"""
if I is not None:
return V * I
elif R is not None:
return V**2 / R
# AC circuits
def impedance(R, X_L=0, X_C=0):
"""Complex impedance Z = R + j(XL - XC)"""
return complex(R, X_L - X_C)
def apparent_power(P, Q):
"""S = √(P² + Q²)"""
return np.sqrt(P**2 + Q**2)
def power_factor(P, S):
"""PF = P/S"""
return P / S
# Thevenin equivalent
class TheveninEquivalent:
def __init__(self, V_th, R_th):
self.V_th = V_th # Open circuit voltage
self.R_th = R_th # Equivalent resistance
def max_power_transfer(self):
"""Maximum power when R_load = R_th"""
return {
"R_load": self.R_th,
"P_max": self.V_th**2 / (4 * self.R_th)
}
# Norton equivalent
class NortonEquivalent:
def __init__(self, I_n, R_n):
self.I_n = I_n # Short circuit current
self.R_n = R_n # Equivalent resistance
# Three-phase power
class ThreePhasePower:
@staticmethod
def line_to_phase(V_line, connection="Y"):
if connection == "Y":
return V_line / np.sqrt(3)
else: # Delta
return V_line
@staticmethod
def total_power(V_line, I_line, PF):
# Y: S = √3 × V_L × I_L
# Δ: S = √3 × V_L × I_L
S = np.sqrt(3) * V_line * I_line
P = S * PF
Q = S * np.sqrt(1 - PF**2)
return {"S": S, "P": P, "Q": Q}
@staticmethod
def voltage_drop(percent, V):
"""Allowable voltage drop"""
return percent / 100 * V
| Component | Symbol | Function |
|---|---|---|
| Resistor | R | Current limiting, voltage division |
| Capacitor | C | Energy storage, filtering |
| Inductor | L | Energy storage, filtering |
| Diode | D | One-way current flow |
| Transistor | Q | Amplification, switching |
| Op-Amp | UA | Signal amplification |
# First order low-pass filter
def lp_filter_fc(R, C):
"""Cutoff frequency f_c = 1/(2πRC)"""
return 1 / (2 * np.pi * R * C)
# Sallen-Key second order
def sallen_key_components(fc, Q):
"""Calculate component values"""
# Given fc and Q, solve for R and C
wc = 2 * np.pi * fc
# R1 = R2 = R, C1 = C2 = C
C = 1 / (wc * Q * R) # Solve for C given R
return {"R": R, "C": C}