Install
openclaw skills install gcadclaw通过 pygcadwin 实现 GstarCAD 二维图纸的自然语言生成、修改、校验与修复。支持机械零件、装配体、工程图纸的 DWG 自动化输出,包含截图反馈和实体验证。
openclaw skills install gcadclawNote on naming.
gcadclawis the external, marketplace-style skill bundle (Windows setup-wizard payload,agents/openai.yamlpersona) and is configured to installpygcadwindirectly from PyPI. It is distinct from the in-appcadclawagent indata/graphs/agents_config.json, which is anllm_toolagent driven by thegcad-coder-generalandgcad-design2d-generalskills. Both can coexist.
Create or modify 2D GstarCAD drawings from natural-language requirements using the pygcadwin PyPI package, then prove the result with structured feedback artifacts.
Use these defaults unless the user specifies otherwise. Do not ask for clarification just because the user omitted units, "2D", output format, base plane, origin, or common drafting conventions.
pygcadwin.pygcadwin.Gcad..dwg plus feedback artifacts.Ask one focused clarification only when the drawing is impossible, fit-critical, safety-critical, compliance-bound, or lacks any usable dimensions. Otherwise proceed with explicit assumptions and record them in the brief.
brief.md.scripts/capture_feedback.py or equivalent pygcadwin enumeration to write before_entities.json.pygcadwin.run_actions() sequence that uses typed APIs: ensure_layer, create_segment, create_circle, create_arc, create_polyline, create_rect, create_text, create_dimension, create_hatch, create_table, zoom_extents, save_as, and snapshot.pygcadwin.Gcad(create_if_missing=True, visible=True) and cad.context; keep calculations explicit and named before creating geometry.after_entities.json and compare entity counts, layers, object names, handles, colors, linetypes, and lineweights against the brief.ctx.zoom_extents() or a scoped view operation, then ctx.view.snapshot().save(<png>) or the snapshot tool. Verify that the PNG is nonblank. Do not mark a drawing-modifying task complete without a nonblank PNG screenshot.feedback.md or feedback.json with files, checks run, screenshot path, repair attempts, assumptions, and remaining caveats.pygcadwin API exists.pygcadwin API names; inspect the installed package or PyPI project docs when uncertain.Every completed drawing workflow must persist:
brief.mdactions.jsonlbefore_entities.jsonafter_entities.jsonreview.png or a more specific PNG screenshot namefeedback.md or feedback.json.dwg path when save succeedsRead references/feedback-loop.md before implementing or repairing a feedback-producing workflow. Read references/2d-pygcadwin-workflow.md when translating prose into pygcadwin drawing code.
Live drawing, DWG save, and screenshot workflows require Windows with GstarCAD installed and registered as a COM server. Install pygcadwin from PyPI with python scripts/setup_python_env.py; the PyPI package declares its Windows automation dependencies.
When a check fails:
feedback.md with the failed attempt and final state.If screenshot capture fails after one repair attempt, report partial completion and keep entity evidence, action logs, and DWG output available. Do not call the workflow fully successful.
<!-- BEGIN AUTO-GENERATED PYTHON PACKAGE SETUP -->This Skill installs pygcadwin directly from PyPI:
https://pypi.org/project/pygcadwin/
When this Skill is used in a fresh Python environment:
Validate the import:
python scripts/validate_env.py
If validation fails, install the PyPI package:
python scripts/setup_python_env.py
Validate again:
python scripts/validate_env.py
The expected import is pygcadwin. The skill does not bundle a local wheel for this package.