openclaw-pdf-to-cad
Skill13 starsChanged 7 months agoMITView on GitHub
OpenClaw Agent Skill for converting PDF engineering drawings into CAD-oriented delivery packages. Use this skill when an OpenClaw user provides a PDF engineering drawing and wants DXF/CAD output, preview files, a delivery package, and a quality report. Do not use it for JPG/PNG-only conversion promises, STEP, IGES, STL, SLDPRT, SLDASM, SolidWorks, assemblies, or other 3D model conversion tasks.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
If a user asks for JPG/PNG/scanned drawing conversion, explain that this skill prioritizes PDF engineering drawings.
- Distinctive: line 46
Treat OpenClaw as the primary runtime for this skill.
- Distinctive: line 47
Verify that the source file is a PDF before running the script.
- Distinctive: line 48
Run the bundled script from this skill folder.
- Distinctive: line 50
Use OCR only as fallback for scanned/image text and report OCR usage.
- Distinctive: line 53
Never invent dimensions, tolerances, materials, annotations, title-block values, or scale values.
- Distinctive: line 54
Never present uncertain OCR text, garbled text, or placeholder text as final engineering truth.
- Distinctive: line 55
Never send a raw DXF alone when the delivery folder exists.
- Very specific: line 70
When needs_review is true, say the output is a CAD candidate requiring manual review, not a final production drawing.
- Very specific: line 127
When dwg_path exists but recommended_cad_file remains DXF, tell the user that the DWG was generated but Unicode/CJK fidelity needs manual …
- Distinctive: line 131
When OCR text is present, tell the user the text was recovered from image/OCR and should be checked against the original PDF before …
- Very specific: line 147
If status is needs_review, include:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OpenClaw PDF to CAD
This is an OpenClaw Agent Skill. It is not a subagent, not a web platform, not a quoting system, and not a 3D/SolidWorks converter. It is a callable local skill that OpenClaw/Jarvis can invoke when a PDF engineering drawing is provided and a CAD-oriented delivery package is requested.
Role
Act as an automation assistant for PDF engineering drawing conversion. Produce a CAD candidate package and clearly report review risk. Do not replace a human engineer's final judgment.
Inputs
Supported baseline input:
.pdfengineering drawings, with best results on vector PDFs.
Risky or review-required input:
- scanned PDFs
- image-based PDFs
- mixed vector/raster PDFs
- blurry drawings
- drawings with missing, cropped, or unreadable dimensions
- PDF pages containing embedded JPG/PNG drawing images
Unsupported input for this skill:
.jpg,.jpeg,.pngas standalone source files- STEP, IGES, STL, SLDPRT, SLDASM, SolidWorks, assemblies
- 3D-to-2D drawing generation
If a user asks for JPG/PNG/scanned drawing conversion, explain that this skill prioritizes PDF engineering drawings. Scanned or raster content can only be handled as a review-required candidate when present in a PDF workflow.
Processing Contract
- Treat OpenClaw as the primary runtime for this skill.
- Verify that the source file is a PDF before running the script.
- Run the bundled script from this skill folder.
- Extract vector geometry and text where available.
- Use OCR only as fallback for scanned/image text and report OCR usage.
- Preserve Chinese/CJK text as Unicode where possible.
- Preserve text baseline/origin, font size, rotation, and width factor when available.
- Never invent dimensions, tolerances, materials, annotations, title-block values, or scale values.
- Never present uncertain OCR text, garbled text, or placeholder text as final engineering truth.
- Never send a raw DXF alone when the delivery folder exists.
- Return the delivery folder, zip path, recommended CAD file, preview PDF, and quality status.
Required needs_review Conditions
Set or preserve needs_review when any of the following are true:
- The PDF is scanned, image-based, mixed, blurry, low-confidence, or raster-heavy.
- The drawing contains embedded JPG/PNG content that affects geometry or text.
- OCR fallback was used for text that may affect dimensions, annotations, title blocks, or process notes.
- Extracted text contains
??, replacement glyphs, missing characters, or other garbled markers. - Dimensions, scale, tolerances, hole notes, bend notes, material notes, or title-block fields are missing or uncertain.
- DWG was generated but Unicode/CJK text fidelity has not been opened and verified in CAD software.
- The output is intended for quotation, production, cutting, machining, bending, or manufacturing review.
When needs_review is true, say the output is a CAD candidate requiring manual
review, not a final production drawing.
Command
./scripts/run_pdf_to_cad.sh /absolute/path/to/drawing.pdf --output-dir /absolute/path/to/outputsOptional fields:
./scripts/run_pdf_to_cad.sh /absolute/path/to/drawing.pdf \
--output-dir /absolute/path/to/outputs \
--customer-name "Customer" \
--project-name "Project" \
--label "delivery-name"Output Package
Baseline delivery package:
<label>_cad_delivery/
├── <source>.dxf
├── <source>.dwg # optional, only if converter is configured
├── preview.png
├── preview.pdf
├── quality_report.json
└── README.md
<label>_cad_delivery.zipThe package may be mapped into Lite, Pro, Plus/Studio, or Enterprise offerings outside this public skill. This repository does not implement billing, licensing, customer portals, private training, or enterprise API services.
Output Interpretation
The script prints JSON. Use these fields in the agent response:
status:ok,needs_review, orerrordelivery_dir: folder containing all deliverableszip_path: zipped delivery packagerecommended_cad_file: prefer DWG only if present and safe to recommend, otherwise DXFdxf_path: baseline DXF pathdwg_path: optional DWG path when conversion is configuredpreview_png: visual preview imagepreview_pdf: human-readable previewquality_report: detailed machine-readable reportsource_type: vector, scanned, mixed, or unknown/low-confidencecjk_text_count: number of preserved Chinese/CJK text entitiesgarbled_text_count: number of unresolved text entities that extracted as question marks or replacement glyphsocr_text_count: number of text entities recovered by OCR fallbackfindings: limitations and review notes
When dwg_path exists but recommended_cad_file remains DXF, tell the user
that the DWG was generated but Unicode/CJK fidelity needs manual CAD
verification before customer delivery.
When OCR text is present, tell the user the text was recovered from image/OCR and should be checked against the original PDF before quotation, production, or manufacturing use.
Handoff Message Template
PDF-to-CAD conversion finished.
Recommended CAD file: <recommended_cad_file>
Delivery ZIP: <zip_path>
Preview PDF: <preview_pdf>
Quality status: <status>
Review required: <yes/no>
Review notes: <findings or none>If status is needs_review, include:
This is an automatically generated CAD candidate. Please manually verify geometry,
dimensions, annotations, material notes, and title-block information before using
it for quotation, production, cutting, machining, or manufacturing.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

