canvas-design
Create posters and visual art as PNG or PDF, guided by a design philosophy.
ANanthropics/skills203k3,265 new stars in the last 7 days
Rebuild and validate AutoCAD drawings from a source DWG, a PDF-derived intermediate DWG, or a raster reference image paired with authoritative dimensions and drawing requirements. Use when Codex must profile and exactly reproduce a .dwg, convert a PDF into a validated intermediate DWG before exact redraw, or convert an image plus metrics into parameter-driven AutoLISP/AutoCAD geometry and optional 3D solids.
Use one of three input modes, then validate the resulting DWG:
Do not infer a complex DWG from screenshots or visual style alone when the source DWG is available. First extract or copy actual source entities, then validate against the original.
For final delivery, prefer exact DWG entity copy through AutoCAD COM. Generated AutoLISP/Python reconstruction should only be used when the user specifically needs auditable source code and exact extracted entity data is available.
For image + metrics input, treat supplied dimensions, units, counts, and layout constraints as authoritative. Use image pixels only to identify topology, ordering, visual relationships, and unspecified details. When the image conflicts with a supplied metric, follow the metric and report the discrepancy.
For PDF input, do not claim exact source-DWG fidelity unless an original DWG is available. First identify what the PDF contains: extractable vector paths, embedded raster images, extractable text, or a mix of these. Convert that evidence into an intermediate DWG, document the conversion limits, and then validate the intermediate DWG with the normal DWG redraw workflow.
When the user provides a DWG, follow this repeatable flow:
python path\to\scripts\dwg_prompt_builder.py --source input.dwg --output input-redraw-prompt.md --restart-autocad --acad-exe "C:\Path\To\acad.exe"
python path\to\scripts\dwg_redraw.py --source input.dwg --output outputs\redraw_exact.dwg --restart-autocad --acad-exe "C:\Path\To\acad.exe"
Use this mode when the user provides a PDF and no source DWG is available. The goal is a reproducible CAD redraw from PDF evidence, followed by normal DWG validation against the generated intermediate DWG.
TEXT/MTEXT only when it is extractable or OCR-confirmed; otherwise preserve it as traced geometry or mark it as uncertain.LINEWORK, TEXT, BORDER, DIM, CENTER, and CONSTRUCTION, unless the PDF or user supplies a layer convention.python path\to\scripts\dwg_prompt_builder.py --source intermediate.dwg --output intermediate-redraw-prompt.md
python path\to\scripts\dwg_redraw.py --source intermediate.dwg --output outputs\redraw_from_pdf.dwg
Validation is expected to match the intermediate DWG's entity counts and object distribution. Also visually compare the intermediate and final DWG against the original PDF.Use this mode when the user supplies one or more PNG/JPG/JPEG references plus written dimensions or a parameter table.
When autocad-image-redraw is installed, use its visual-analysis conventions for image topology and visible annotations while retaining this skill's parameter authority, AutoLISP/COM build, and DWG validation contract.
Every generated custom prompt must include:
pywin32.Use references/prompt-template.md as the template when composing the custom prompt manually. Prefer scripts/dwg_prompt_builder.py when AutoCAD COM is available.
Documents.Count, ActiveDocument.Name, Documents.Open, or ModelSpace fails with <unknown>, use --restart-autocad --acad-exe "path\to\acad.exe" so the script starts from a clean AutoCAD process.<COMObject Open> from Documents.Open() instead of a document object. After opening, use ActiveDocument and verify ActiveDocument.ModelSpace.Count.When exact entity copy is not acceptable and the user truly needs generated source code, extract structured data first:
DXFOUT: export text DXF and inspect TABLES, BLOCKS, and ENTITIES.DATAEXTRACTION: export entity coordinates, radii, lengths, layers, and block attributes.-LAYER ? *: list layers, colors, linetypes, and lineweights.-STYLE ? *: list text styles and fonts.-DIMSTYLE ? *: list dimension style settings.LIST: inspect selected entity geometry.Use references/prompt-template.md for a compact prompt template when generating AutoLISP or Python redraw code from extracted data.
Use scripts/dwg_prompt_builder.py to generate a drawing-specific prompt:
python scripts\dwg_prompt_builder.py --source input.dwg --output input-redraw-prompt.md
python scripts\dwg_prompt_builder.py --source input.dwg --output input-redraw-prompt.md --restart-autocad --acad-exe "C:\Path\To\acad.exe"
Use scripts/dwg_redraw.py for deterministic AutoCAD COM redraw and validation:
python scripts\dwg_redraw.py --source input.dwg --output outputs\redraw_exact.dwg
python scripts\dwg_redraw.py --source input.dwg --output outputs\redraw_exact.dwg --restart-autocad --acad-exe "C:\Path\To\acad.exe"
python scripts\dwg_redraw.py --source input.dwg --output outputs\redraw_modelspace_only.dwg --modelspace-only
The scripts require Windows, AutoCAD, Python 3.10+, and pywin32.
Create posters and visual art as PNG or PDF, guided by a design philosophy.
ANanthropics/skills203k3,265 new stars in the last 7 days
Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.
ANanthropics/skills203k3,265 new stars in the last 7 days
Create and edit Word docs with TOC, page numbers, headers and more.
ANanthropics/skills203k3,265 new stars in the last 7 days
Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.
ANanthropics/skills203k3,265 new stars in the last 7 days
Co-write specs, proposals and decision docs through a structured, iterative workflow.
ANanthropics/skills203k3,265 new stars in the last 7 days
Create and edit slide decks, generate slides from templates, and extract text.
ANanthropics/skills203k3,265 new stars in the last 7 days