xiaohongshu
xiaohongshu
cad-engineering
Expert CAD Engineering Specialist with comprehensive knowledge of CAD
Full skill instructions
Expert guidance on Computer-Aided Design systems, file formats, conversion technologies, and interoperability between CAD platforms.
version: 1.0.0
python_min_version: '3.10'
compatibility:
tested_python:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
os:
- Windows
- Linux
- macOS
Added:
Changed:
This skill integrates agent capabilities from /agents/cad-engineering-specialist/:
| Software | Capabilities |
|---|---|
| FreeCAD | Parametric 3D modeling, Python scripting, workbench customization |
| LibreCAD | 2D drafting, DXF/DWG handling, command-line operations |
| OpenSCAD | Programmatic 3D modeling, CSG operations, parametric design |
| QCAD | Professional 2D CAD, scripting interface, batch processing |
| BRL-CAD | Solid modeling, ray-tracing, geometric analysis |
| Blender | CAD integration, mesh to solid conversion, technical visualization |
| KiCAD | PCB design, electrical schematics, 3D board visualization |
| Software | Capabilities |
|---|---|
| AutoCAD | Full command set, AutoLISP/VBA automation, custom tools |
| SolidWorks | Feature-based modeling, API programming, PDM integration |
| CATIA | V5/V6 platforms, complex surfaces, PLM workflows |
| Inventor | Parametric design, iLogic rules, Vault integration |
| Fusion 360 | Cloud collaboration, generative design, CAM integration |
| Creo/Pro-E | Advanced assembly, mechanism design |
| NX | High-end manufacturing, synchronous technology |
| Category | Formats |
|---|---|
| Native | DWG, DXF, DGN, IGES, STEP, STL, SAT, Parasolid |
| Exchange | IFC, COLLADA, OBJ, FBX, 3DS, VRML, X3D |
| Documentation | PDF, SVG, EPS, DWF, 3D PDF |
This specialist agent delegates to software-specific agents:
delegation:
software_specific_agents:
freecad:
path: agents/freecad
capabilities:
- parametric_modeling
- assembly_design
- technical_drawings
gmsh:
path: agents/gmsh
capabilities:
- mesh_generation
- finite_element_preprocessing
- mesh_optimization
| Category | Tools |
|---|---|
| Commercial | AutoDWG, AnyDWG, Print2CAD, Scan2CAD, pdf2cad |
| Open-Source | Inkscape+pstoedit, potrace, autotrace, pdf2dxf |
| Libraries | OpenCV, Tesseract OCR, CADLib, LibreDWG, TeighaFile |
| Cloud Services | Zamzar, CloudConvert, CAD Exchanger |
| AI/ML Tools | Deep learning drawing recognition, neural vectorization |
from digitalmodel.agents.cad import PDFAnalyzer
# Analyze PDF type
analyzer = PDFAnalyzer()
analysis = analyzer.analyze("drawing.pdf")
print(f"PDF Type: {analysis['type']}") # vector/raster/hybrid
print(f"Creation Method: {analysis['creation_method']}")
print(f"Embedded Fonts: {analysis['fonts']}")
print(f"Layer Info: {analysis['layers']}")
print(f"Scale Detection: {analysis['detected_scale']}")
# Get conversion recommendation
recommendation = analyzer.recommend_conversion()
print(f"Recommended Tool: {recommendation['tool']}")
print(f"Expected Accuracy: {recommendation['accuracy']}")
print(f"Manual Cleanup: {recommendation['cleanup_required']}")
from digitalmodel.agents.cad import CADConverter
converter = CADConverter()
# Pre-processing for scanned PDFs
converter.preprocess(
input_file="scanned_drawing.pdf",
operations=[
"denoise",
"deskew",
"contrast_enhance"
]
)
# Vectorization with tuned parameters
result = converter.convert(
input_file="scanned_drawing.pdf",
output_file="drawing.dxf",
options={
"line_tolerance": 0.5,
"arc_detection": True,
"text_recognition": True,
"dimension_extraction": True
}
)
# Post-processing cleanup
converter.postprocess(
file="drawing.dxf",
operations=[
"remove_duplicates",
"close_gaps",
"standardize_layers"
]
)
from digitalmodel.agents.cad import FormatConverter
converter = FormatConverter()
# Convert STEP to DXF with projection
result = converter.convert(
input_file="model.step",
output_file="drawing.dxf",
projection="front", # top, front, right, isometric
scale=1.0,
layer_mapping={
"visible_edges": "0",
"hidden_edges": "hidden",
"dimensions": "dimensions"
}
)
# Convert between DWG versions
result = converter.convert(
input_file="drawing_2024.dwg",
output_file="drawing_2010.dwg",
target_version="2010" # For compatibility
)
from digitalmodel.agents.cad import BatchConverter
batch = BatchConverter()
# Convert all STEP files to IGES
results = batch.convert_directory(
input_directory="./step_files",
output_directory="./iges_files",
input_format="STEP",
output_format="IGES",
parallel=True,
workers=4
)
# Generate conversion report
batch.generate_report(results, "conversion_report.html")
from digitalmodel.agents.cad import DrawingAnalyzer
analyzer = DrawingAnalyzer()
# Analyze technical drawing
analysis = analyzer.analyze("technical_drawing.dxf")
# Extract information
print(f"Drawing Scale: {analysis['scale']}")
print(f"Units: {analysis['units']}")
print(f"Layers: {analysis['layers']}")
print(f"Blocks: {analysis['blocks']}")
print(f"Dimensions: {len(analysis['dimensions'])}")
print(f"Text Annotations: {len(analysis['text'])}")
# Validate against standards
validation = analyzer.validate(
standard="ISO", # or "ANSI", "DIN", "JIS"
checks=["layer_naming", "line_types", "dimensions"]
)
// Initialize CAD expertise swarm
mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 5 }
// Spawn specialized agents
mcp__claude-flow__agent_spawn { type: "analyst", name: "format-analyzer" }
mcp__claude-flow__agent_spawn { type: "coder", name: "converter" }
mcp__claude-flow__agent_spawn { type: "reviewer", name: "quality-checker" }
// Store conversion configuration
mcp__claude-flow__memory_usage {
action: "store",
key: "cad/conversion/config",
namespace: "cad",
value: JSON.stringify({
source_format: "PDF",
target_format: "DXF",
method: "vectorization",
accuracy_target: 0.95
})
}
# Check for conversion losses
losses = converter.check_losses(
original="model.step",
converted="model.iges"
)
if losses["geometry_count_diff"] > 0:
print(f"Lost {losses['geometry_count_diff']} entities")
if losses["accuracy_loss"] > 0.01:
print(f"Accuracy loss: {losses['accuracy_loss']*100:.1f}%")
# Check format version before conversion
info = converter.get_format_info("drawing.dwg")
print(f"DWG Version: {info['version']}")
print(f"Created By: {info['application']}")
print(f"Compatible With: {info['compatible_versions']}")
agents/cad-engineering-specialist/agent.yamlxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience