xiaohongshu
xiaohongshu
freecad-automation
AI-powered automation agent for FreeCAD CAD operations including natural
Full skill instructions
AI-powered automation for FreeCAD CAD operations with natural language processing, batch processing, and marine engineering specialization.
version: 1.0.0
python_min_version: '3.10'
dependencies:
cad-engineering: '>=1.0.0,<2.0.0'
gmsh-meshing: '>=1.0.0,<2.0.0'
compatibility:
tested_python:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
os:
- Windows
- Linux
- macOS
Added:
Changed:
This skill integrates agent capabilities from /agents/freecad/:
digitalmodel package installed{
"settings": {
"parallel_workers": 4,
"max_workers": 8,
"cache_enabled": true,
"cache_size_mb": 500,
"auto_save": true,
"auto_save_interval": 300,
"validation_level": "strict",
"error_recovery": true,
"retry_attempts": 3,
"timeout_seconds": 600
}
}
{
"marine_engineering": {
"units": "metric",
"standards": ["DNV", "ABS", "API"],
"vessel_types": ["FPSO", "FSO", "FLNG", "Semi-sub", "TLP", "Spar"],
"analysis_types": ["stability", "mooring", "structural", "hydrodynamic"]
}
}
from digitalmodel.agents.freecad import FreeCADAgent
# Initialize agent
agent = FreeCADAgent()
# Natural language operation
result = agent.execute_prompt("Create a box 100x50x25mm with chamfered edges")
# Check result
print(f"Created: {result['object_name']}")
print(f"Volume: {result['properties']['volume']} mm3")
# Batch processing with pattern matching
results = agent.batch_process(
pattern="*.FCStd",
input_directory="./models",
operation="export_step",
parallel_workers=4
)
# Process results
for file_name, result in results.items():
if result["success"]:
print(f"Exported: {file_name}")
else:
print(f"Failed: {file_name} - {result['error']}")
# Generate parametric variations
agent.parametric_study(
base_model="hull_template.FCStd",
parameters={
"length": [150, 175, 200, 225],
"beam": [25, 30, 35],
"draft": [10, 12, 15]
},
output_directory="hull_variations/",
export_formats=["STEP", "STL"]
)
# Generate Python script from natural language
script = agent.generate_script(
"Create parametric gear with 20 teeth, module 2mm,
pressure angle 20 degrees, exportable to STEP"
)
# Save script
with open("gear_generator.py", "w") as f:
f.write(script)
# Execute script
exec(script)
from digitalmodel.agents.freecad.marine import HullDesigner
# Initialize hull designer
hull = HullDesigner()
# Create hull from parameters
hull_model = hull.create(
length=280.0,
beam=48.0,
depth=26.0,
draft=18.0,
block_coefficient=0.85,
hull_type="FPSO"
)
# Generate panel mesh for hydrodynamics
hull.generate_panel_mesh(
model=hull_model,
panel_size=2.0,
output_file="hull_panels.dat"
)
# Export for OrcaFlex
hull.export_orcaflex(
model=hull_model,
output_file="orcaflex_models/fpso_hull.yml"
)
# Show capabilities
python run_freecad_agent.py --show-capabilities
# Process single file
python run_freecad_agent.py --file model.FCStd --operation "add fillet radius 5mm"
# Batch processing
python run_freecad_agent.py \
--pattern "*.FCStd" \
--input-directory ./models \
--output-directory ./exports \
--parallel 4
# Natural language command
python run_freecad_agent.py \
--prompt "Create a hull with 150m length and 25m beam"
| Pattern | Description |
|---|---|
*.FCStd | All FreeCAD files |
*_asm.FCStd | Assembly files |
*_part.FCStd | Part files |
*_drw.FCStd | Drawing files |
Supported export formats:
// Initialize CAD processing swarm
mcp__claude-flow__swarm_init { topology: "star", maxAgents: 4 }
// Spawn specialized agents
mcp__claude-flow__agent_spawn { type: "coder", name: "freecad-automator" }
mcp__claude-flow__agent_spawn { type: "reviewer", name: "geometry-validator" }
// Store CAD operation status
mcp__claude-flow__memory_usage {
action: "store",
key: "freecad/batch/status",
namespace: "cad",
value: JSON.stringify({
operation: "batch_export",
files_processed: 45,
files_total: 100,
format: "STEP"
})
}
// Share geometry with analysis agents
mcp__claude-flow__memory_usage {
action: "store",
key: "freecad/geometry/hull",
namespace: "shared",
value: JSON.stringify({
file: "hull_panels.dat",
panels: 5000,
ready_for_analysis: true
})
}
| Metric | Value |
|---|---|
| Batch Processing | Up to 5x faster than sequential |
| Memory Optimization | Efficient large assembly handling |
| Error Recovery | Automatic retry with exponential backoff |
| Caching | Intelligent operation caching |
# Add FreeCAD to Python path
import sys
sys.path.append('/path/to/FreeCAD/lib')
# Reduce parallel workers for large files
agent = FreeCADAgent(config={
"settings": {
"parallel_workers": 2,
"memory_limit_mb": 2048
}
})
agents/freecad/agent_config.jsonxiaohongshu
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