Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working in this CAD workspace.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working in this CAD workspace.
This is a Claude Code workspace for conversational 3D modeling using CAD-Query via MCP (Model Context Protocol). The workspace provides documentation, examples, and structure for generating parametric CAD models that can be exported as STL files for 3D printing.
This workspace uses an external CAD-Query MCP server that provides:
generate_cad_query - Tool for generating CAD-Query Python scripts from descriptions (currently stub implementation)verify_cad_query - Tool for validating generated CAD models before presentationdocs/cadquery/ - Complete CAD-Query reference documentation for Claude to studyexamples/ - Sample CAD-Query scripts demonstrating modeling techniquesoutputs/ - Directory where generated STL files and visualizations are saveddocs/cadquery/ to understand CAD-Query syntax and methodsexamples/ for modeling patterns and best practicesgenerate_cad_query MCP tool to create Python scriptsverify_cad_query MCP tool to validate designsoutputs/ directoryAll CAD-Query scripts must end with
show_object(result) for MCP server processing:
import cadquery as cq result = cq.Workplane("XY").box(10, 10, 10) show_object(result) # Required for MCP server
This workspace uses a CAD-Query MCP server that provides these tools:
generate_cad_queryGenerates CAD-Query Python scripts from natural language descriptions.
Parameters:
description: Natural language description of the desired 3D modelparameters: Optional specific dimensions or constraintsUsage Example:
# Claude calls this MCP tool generate_cad_query( description="Create a coffee mug with a handle, 10cm tall and 8cm diameter", parameters="height=100mm, diameter=80mm, handle_width=15mm" )
verify_cad_queryValidates generated CAD models before presenting to users.
Parameters:
file_path: Path to the CAD-Query Python file to verifyverification_criteria: Description of what aspects to verifyUsage Example:
# Claude calls this MCP tool verify_cad_query( file_path="outputs/coffee_mug.py", verification_criteria="coffee mug with handle, 10cm height, 8cm diameter" )
docs/cadquery/)Complete CAD-Query documentation converted to searchable markdown format:
classreference.md - Complete API reference with all classes and methodsexamples.md - Comprehensive examples galleryprimer.md - Core CAD-Query concepts and API layersworkplane.md - Workplane operations and methodsselectors.md - Object selection and filteringsketch.md - 2D sketching operationsexamples/)Study these sample CAD-Query scripts:
box.py - Simple box with hole (basic operations)coffee_mug.py - Coffee mug with handle (revolve, union operations)donut.py - Torus shape (revolve operations)snowman.py - Multi-sphere assembly (assembly modeling)# Install workspace dependencies uv sync # Run tests uv run pytest # Code quality checks ./run_lint.sh
The MCP server generates files in the
outputs/ directory:
{model_name}.py - Generated CAD-Query Python script{model_name}.stl - STL export for 3D printing{model_name}.step - STEP export for CAD software{model_name}_*.svg - Visualization files (optional)# Before generating any CAD model, study the relevant documentation # Read docs/cadquery/classreference.md for API methods # Read docs/cadquery/examples.md for modeling patterns # Study examples/ directory for similar models
# NOTE: generate_cad_query is currently a stub implementation # For now, manually create CAD-Query scripts based on documentation and examples # Use the generate_cad_query MCP tool with clear descriptions generate_cad_query( description="Clear, detailed description of the 3D model", parameters="Specific dimensions and constraints" )
# CRITICAL: Always verify before presenting results to users verify_cad_query( file_path="path/to/generated/model.py", verification_criteria="Description of what to verify" )
Only after verification passes, present the generated STL file and model description to the user.
# Create feature branch for workspace changes git checkout -b feature/workspace-improvements # Make changes and commit git add . && git commit -m "Improve workspace documentation" # Create PR gh pr create --title "Workspace improvements"
verify_cad_query before presenting any CAD outputs to usersdocs/cadquery/ extensively for CAD-Query syntaxexamples/ for modeling patterns and best practices