cnc-programming
Expert skill for CNC programming and toolpath optimization using CAM software
What this skill does
# CNC Programming Skill
## Purpose
The CNC Programming skill provides expert capabilities for CNC programming and toolpath optimization using CAM software, enabling efficient and accurate machining of mechanical components.
## Capabilities
- Mastercam, NX CAM, Fusion 360 workflow automation
- Toolpath strategy selection (roughing, finishing)
- Cutting parameter optimization (feeds, speeds)
- Tool selection and library management
- Work holding and fixture consideration
- Toolpath simulation and verification
- G-code generation and post-processing
- Cycle time estimation and optimization
## Usage Guidelines
### Machining Strategy
#### Roughing Operations
1. **Material Removal Strategies**
| Strategy | Application | Advantages |
|----------|-------------|------------|
| Adaptive/Dynamic | General roughing | Constant chip load |
| Pocket | Enclosed areas | Efficient material removal |
| Facing | Flat surfaces | Surface prep |
| Plunge rough | Deep pockets | Axial chip evacuation |
2. **Stock Allowance**
```
Finishing allowance = 0.25-0.5 mm (typical)
Semi-finish allowance = 0.5-1.0 mm
Rough allowance = Stock - finish - semi-finish
```
3. **Step-Over Guidelines**
```
Adaptive roughing: 10-25% tool diameter
Pocket roughing: 50-75% tool diameter
Depth of cut: 1-2x tool diameter (end mills)
```
#### Finishing Operations
1. **Surface Finish Strategies**
| Strategy | Application | Surface Finish |
|----------|-------------|----------------|
| Parallel | Flat surfaces | Ra 0.8-1.6 um |
| Contour | Walls, profiles | Ra 0.8-1.6 um |
| Scallop | 3D surfaces | Ra 1.6-3.2 um |
| Pencil | Corners, fillets | Clean-up |
2. **Step-Over for Finish**
```
Cusp height = r - sqrt(r^2 - (s/2)^2)
For cusp height = 0.01 mm, r = 5 mm:
Step-over s = 0.89 mm
```
### Cutting Parameters
#### Speed and Feed Calculation
```
Cutting Speed (SFM): V = pi * D * N / 12 (imperial)
V = pi * D * N / 1000 (metric)
Feed Rate: F = f * z * N
Where:
V = cutting speed (SFM or m/min)
D = tool diameter
N = spindle speed (RPM)
f = feed per tooth
z = number of teeth
F = feed rate (IPM or mm/min)
```
#### Material-Specific Parameters
| Material | Speed (SFM) | Feed/Tooth (in) | Notes |
|----------|-------------|-----------------|-------|
| Aluminum | 500-1000 | 0.004-0.008 | High spindle, coolant |
| Steel (mild) | 80-120 | 0.003-0.006 | Flood coolant |
| Steel (hard) | 50-80 | 0.002-0.004 | Reduce speed |
| Stainless | 60-100 | 0.002-0.005 | Rigid setup |
| Titanium | 40-60 | 0.002-0.004 | High pressure coolant |
### Tool Selection
#### End Mill Selection
| Application | Tool Type | Coating |
|-------------|-----------|---------|
| Aluminum roughing | 2-3 flute, polished | Uncoated/ZrN |
| Aluminum finishing | 2-3 flute, high helix | Uncoated |
| Steel roughing | 4+ flute, variable helix | AlTiN/TiAlN |
| Steel finishing | 4+ flute | AlTiN |
| Hardened steel | Ball nose, solid carbide | AlCrN |
#### Tool Life Management
```
Tool life tracking:
- Material removed (cm3)
- Cutting time (minutes)
- Parts produced
Replace at:
- Wear land > 0.3 mm
- Surface finish degradation
- Dimension out of tolerance
```
### Work Holding
#### Fixture Considerations
1. **Clamping Force**
- Calculate cutting forces
- Apply safety factor (2-3x)
- Distribute clamp forces
- Avoid part distortion
2. **Accessibility**
- Clear all tool paths
- Consider tool length
- Allow chip evacuation
- Enable coolant flow
### Program Verification
1. **Simulation Checks**
- Tool collision detection
- Fixture interference
- Rapid traverse clearance
- Stock remaining verification
2. **First Article**
- Reduced feed rate (50%)
- Single block mode
- Verify dimensions
- Adjust offsets as needed
## Process Integration
- ME-018: CNC Programming and Verification
## Input Schema
```json
{
"part_model": "CAD file reference",
"material": {
"name": "string",
"hardness": "string (e.g., HRC 30)"
},
"machine": {
"type": "3-axis|4-axis|5-axis|lathe",
"controller": "Fanuc|Siemens|Haas|other",
"spindle_max": "number (RPM)",
"rapids": "number (mm/min)"
},
"tolerances": {
"dimensional": "number (mm)",
"surface_finish": "number (Ra um)"
},
"production_volume": "prototype|low|medium|high"
}
```
## Output Schema
```json
{
"program_info": {
"program_number": "string",
"operations": "number",
"total_tools": "number"
},
"cycle_time": {
"machining": "number (min)",
"non-cutting": "number (min)",
"total": "number (min)"
},
"tool_list": [
{
"tool_number": "number",
"description": "string",
"diameter": "number (mm)",
"length": "number (mm)"
}
],
"setup_sheet": {
"work_offset": "string",
"fixture": "string",
"stock_size": "array [L, W, H]"
},
"nc_file": "file reference"
}
```
## Best Practices
1. Verify model accuracy before programming
2. Use consistent tool numbering conventions
3. Include adequate clearance planes
4. Optimize tool paths for minimum air cutting
5. Simulate complete program before machining
6. Document setup requirements clearly
## Integration Points
- Connects with CAD Modeling for geometry
- Feeds into Process Planning for operations
- Supports FAI Inspection for first article
- Integrates with DFM Review for manufacturability
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.