Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill cam명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | cam |
| description | Computer-aided manufacturing processes |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"manufacturing engineers, CNC programmers","category":"engineering"} |
# G-code fundamentals
class GCodeGenerator:
# Rapid move (positioning)
def rapid(self, x=None, y=None, z=None):
coords = self._format_coords(x, y, z)
return f"G0 {coords}"
# Linear feed (cutting move)
def linear_feed(self, x=None, y=None, z=None, feed=100):
coords = self._format_coords(x, y, z)
return f"G1 {coords} F{feed}"
# Circular interpolation (clockwise)
def clockwise_arc(self, x, y, i, j, feed=100):
return f"G2 X{x} Y{y} I{i} J{j} F{feed}"
# Circular interpolation (counter-clockwise)
def counterclockwise_arc(self, x, y, i, j, feed=100):
return f"G3 X{x} Y{y} I{i} J{j} F{feed}"
# Tool change
def tool_change(self, tool_number):
return f"M6 T{tool_number}"
# Spindle control
def spindle_on(self, rpm, clockwise=True):
direction = "M3" if clockwise else "M4"
return f"{direction} S{rpm}"
def spindle_off(self):
return "M5"
| Operation | Description | Applications |
|---|---|---|
| Facing | Flat surface on top | Stock removal |
| Roughing | Bulk material removal | Near-net shape |
| Finishing | Final surface quality | Precision surfaces |
| Pocket milling | Internal cavities | Molds, pockets |
| Profile milling | Contour following | Complex shapes |
| Drilling | Hole creation | Fasteners, passes |
| Tapping | Thread creation | Threaded holes |
| Turning | Rotational cutting | Cylindrical parts |
# Cutting parameters calculation
class CuttingParameters:
@staticmethod
def calculate_sfm(diameter, rpm):
"""Surface feet per minute"""
return 3.14159 * diameter * rpm / 12
@staticmethod
def calculate_rpm(sfm, diameter):
"""Revolutions per minute"""
return (sfm * 12) / (3.14159 * diameter)
@staticmethod
def calculate_feed_rate(rpm, chip_load, num_flutes):
"""IPM = RPM × chip load × number of flutes"""
return rpm * chip_load * num_flutes
@staticmethod
def calculate_mrr(depth, width, feed_rate):
"""Material removal rate (cubic inches/min)"""
return depth * width * feed_rate
# Post-processor configuration
POST_PROCESSOR_CONFIG = {
"controller": "Fanuc",
"output_format": "NC file",
"settings": {
"line_numbers": True,
"decimal_places": 3,
"modal": True,
"tool_change": "M6",
"coolant": {
"on": "M8",
"off": "M9"
}
}
}
| Software | Specialty |
|---|---|
| MasterCAM | General purpose CNC |
| Fusion 360 | Cloud-based CAM |
| SolidCAM | Integrated with SolidWorks |
| Delcam | Complex geometries |
| GibbsCAM | Multi-axis machining |
| HSMWorks | High-speed machining |