[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73CZVMC0JPCVG403CMMEKD5":3,"skill-same:01M73CZVMC0JPCVG403CMMEKD5":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M73CZVMC0JPCVG403CMMEKD5","zwcad-ai-drawing",null,"Draws geometry in ZWCAD 2026 using MCP tools (primary) or the Python CAD Agent (fallback). Prefer direct MCP tool calls for structured requests; use the CAD Agent only for ambiguous natural-language prompts that require LLM translation.","5throck\u002Fai-workspace-standards","5throck","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10958964?v=4","01M73BFEH0V0VS483TW4JD49JW","01M73BFEJ5VQZJHJSFTVPAZGDM",25,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-architect\u002F.claude\u002Fskills\u002Fzwcad-ai-drawing\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: zwcad-ai-drawing\ndescription: \"Draws geometry in ZWCAD 2026 using MCP tools (primary) or the Python CAD Agent (fallback). Prefer direct MCP tool calls for structured requests; use the CAD Agent only for ambiguous natural-language prompts that require LLM translation.\"\nversion: 1.3.0\nscope: co-architect\nstatus: active\nlast_reviewed: \"2026-09-09\"\ngemini-parity: sync\nowner: zwcad-drafter\nmetadata: \n  type: task\n  triggers:\n    - draw\n    - cad draw\n    - ai draw in zwcad\n    - draw a house plan\n    - draw a rectangle in zwcad\n    - draw a circle in zwcad\n    - draw a line in zwcad\n    - draw a layout in zwcad\nprerequisites: none\n---\n\n# ZWCAD AI Drawing Skill\n\nThis skill allows the agent to create geometry in ZWCAD 2026 via two execution paths. **Prefer the MCP direct path** for structured drawing requests where coordinates and parameters can be determined. Use the **CAD Agent fallback** only when the prompt is too ambiguous for the agent to compute exact coordinates.\n\n## Context\n\nThe primary drawing path for ZWCAD 2026: structured requests execute as direct MCP tool calls; ambiguous natural-language prompts fall back to the Python CAD Agent for LLM translation, with an interactive prompting loop as the last resort. Path selection is decided first (`## Execution Path Decision`), then the matching step procedure runs.\n\n## Execution Steps\n\n1. Decide the execution path: MCP direct (primary), CAD Agent fallback, or interactive loop (`## Execution Path Decision`).\n2. MCP direct — issue the structured tool calls against the running session (`## Step 1`).\n3. CAD Agent fallback — route ambiguous natural language through the CAD Agent chain (`## Step 2` \u002F `## Step 3a`).\n4. Interactive prompting loop — iterate with the user when automation cannot disambiguate (`## Step 3`).\n\n## Output Format\n\nDrawn geometry in the live ZWCAD session (walls, doors, windows, annotations on the target layers) plus a per-call result summary naming the path taken (MCP \u002F CAD Agent \u002F interactive) and any tool errors returned by the session.\n\n## Related Skills\n\n- `cad-server-manager` — owns the server session this skill talks to.\n- `cad-svg-preview` — visual review of what was drawn.\n- `generate-room-elevation` — elevation drawing built on the same session.\n\n---\n\n## When to Use This Skill\n\nUse this skill when the user requests to draw geometry, plans, or room divisions in ZWCAD, for example:\n* \"Draw a square of size 50 by 50 at (10, 10)\"\n* \"Draw a small house plan dividing it into Living Room and Bedroom\"\n* \"Draw a layout with Office A and Office B\"\n\n---\n\n## Execution Path Decision\n\n| Condition | Path |\n|-----------|------|\n| User provides concrete coordinates, dimensions, or a structured layout that the agent can calculate | **Path A — MCP Direct** (Step 1) |\n| User request is vague or requires creative spatial decisions the agent cannot make deterministically | **Path B — CAD Agent Fallback** (Step 2) |\n| User wants an interactive chat session for iterative drawing | **Path C — Interactive Mode** (Step 3) |\n\n> [!TIP]\n> Most drawing requests from the design-delivery workflow (Phase 4) follow a confirmed SketchUp handoff package with known coordinates. These should always use **Path A**.\n\n---\n\n## Step 1 — MCP Direct (Primary Path)\n\nCall `zwcad-mcp` tools directly. The MCP server is auto-spawned by the host (Claude Code \u002F Gemini \u002F Antigravity) as configured in `.mcp.json`.\n\n### Available MCP Tools\n\n#### Drawing & Geometry\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_draw_line` | `start_point` [x,y,z], `end_point` [x,y,z] | `layer`, `color` | Straight line segment |\n| `zwcad_draw_polyline` | `vertices` [x1,y1,x2,y2,...] (min 4 values) | `closed` (bool), `layer` | 2D lightweight polyline |\n| `zwcad_draw_circle` | `center` [x,y,z], `radius` | `layer`, `color` | Circle in ModelSpace |\n| `zwcad_draw_arc` | `center` [x,y,z], `radius`, `start_angle`, `end_angle` | `layer`, `color` | Arc (angles in degrees) |\n| `zwcad_draw_text` | `text`, `insertion_point` [x,y,z], `height` | `rotation`, `layer` | Single-line text object |\n| `zwcad_draw_mtext` | `position` [x,y,z], `width`, `text` | `layer`, `height` | Multi-line text entity |\n| `zwcad_draw_aligned_dimension` | `start` [x,y,z], `end` [x,y,z], `text_position` [x,y,z] | `text_override`, `layer` | Aligned dimension |\n| `zwcad_apply_hatch` | `polyline_handle` (string) | `pattern_name`, `pattern_type`, `associativity`, `layer`, `color` | Hatch fill on closed polyline |\n| `zwcad_insert_block` | `block_name`, `position` [x,y,z] | `scale` [x,y,z], `rotation`, `layer` | Block reference insertion |\n\n#### Query & Inspection\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_get_active_document_info` | — | — | Active document metadata (filename, layers, entity count, units) |\n| `zwcad_get_selected_geometry` | — | — | Properties of currently selected entities |\n| `zwcad_list_layers` | — | — | All layers with frozen\u002Flocked\u002Fcolor state |\n| `zwcad_extract_model` | — | `layers` (string[]) | All entities + CA_METADATA project tags |\n\n#### Layer Management\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_set_layer_state` | `layer_name` | `frozen` (bool), `locked` (bool) | Freeze\u002Fthaw and lock\u002Funlock a layer |\n\n#### Undo Transactions\n\n| Tool | Required Parameters | Description |\n|------|---------------------|-------------|\n| `zwcad_start_undo_marker` | — | Begin an undo transaction group |\n| `zwcad_end_undo_marker` | — | End an undo transaction group |\n\n#### Compliance\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_check_compliance` | — | `layers` (string[]) | Check drawing against zoning bylaws |\n\n#### File Management (M2-A)\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_save_drawing` | — | `filepath` (string) | Save active drawing (SaveAs if filepath provided) |\n| `zwcad_open_drawing` | `filepath` (string) | — | Open a DWG file |\n| `zwcad_new_drawing` | — | `template` (string) | Create a new drawing |\n| `zwcad_close_drawing` | — | `save_changes` (bool) | Close active drawing |\n\n#### Modify Tools (M2-B)\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_move_entity` | `handle` (string), `offset` [dx,dy,dz] | — | Move entity by offset |\n| `zwcad_copy_entity` | `handle` (string) | `offset` [dx,dy,dz] | Copy entity with optional offset |\n| `zwcad_rotate_entity` | `handle` (string), `center` [x,y,z], `angle` (degrees) | — | Rotate entity around center |\n| `zwcad_delete_entity` | `handle` (string) | — | Delete entity by handle |\n| `zwcad_mirror_entity` | `handle` (string), `point1` [x,y,z], `point2` [x,y,z] | — | Mirror entity across axis |\n| `zwcad_offset_entity` | `handle` (string), `distance` (float) | — | Offset entity by distance |\n\n#### Layer Enhancement (M2-C)\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_create_layer` | `name` (string) | `color` (int) | Create a new layer with optional color |\n| `zwcad_set_entity_layer` | `handle` (string), `layer_name` (string) | — | Move entity to a layer |\n| `zwcad_delete_layer` | `name` (string) | — | Delete a layer |\n| `zwcad_apply_layer_standards` | — | — | Auto-create standard A-* architectural layers |\n\n### Layer Naming Convention\n\nFollow the project layer standard defined in `agents\u002Fzwcad-drafter.md`:\n\n| Layer | Usage |\n|-------|-------|\n| `A-WALL` | Walls |\n| `A-DOOR` | Doors |\n| `A-WIND` | Windows |\n| `A-DIMS` | Dimensions |\n| `A-ANNO` | Annotations \u002F labels |\n| `A-HATCH` | Hatching \u002F fill patterns |\n| `A-SITE` | Site plan elements |\n| `A-GRID` | Grid lines |\n\n### Example Workflow (MCP Direct)\n\n```\n1. zwcad_start_undo_marker\n2. zwcad_draw_polyline(vertices=[0,0,500,0,500,300,0,300], closed=true, layer=\"A-WALL\")\n3. zwcad_draw_text(text=\"Living Room\", insertion_point=[250,150,0], height=5, layer=\"A-ANNO\")\n4. zwcad_draw_aligned_dimension(start=[0,0,0], end=[500,0,0], text_position=[250,-20,0], layer=\"A-DIMS\")\n5. zwcad_end_undo_marker\n```\n\n---\n\n## Step 2 — CAD Agent Fallback (Complex Natural Language)\n\nUse this path when the user's request is ambiguous or requires creative spatial decisions that cannot be deterministically computed.\n\n### Step 2a: Verify LLM API Key\n\nThe CAD agent loads environment variables from the project root `.env` file on startup.\nVerify that the `.env` file contains at least one of the following API keys:\n\n| Key | Provider |\n|-----|----------|\n| `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` | Anthropic (GLM) |\n| `GEMINI_API_KEY` | Google Gemini |\n| `OPENAI_API_KEY` | OpenAI |\n\n> [!CAUTION]\n> If none of these keys are present in `.env`, the LLM translation step will fail. Ask the user to add an API key to the `.env` file at the project root.\n\n### Step 2b: Execute Drawing Command\n\nRun the Python CAD agent from the project root:\n```bash\npython src\u002Fagent\u002Fcad_agent.py --prompt \"\u003Cuser_prompt>\"\n```\nThe CAD Agent will internally use an LLM to translate the natural language prompt into drawing commands.\n\n---\n\n## Step 3 — Interactive Prompting Loop (Optional)\n\nIf the user requests to enter an interactive chat session to draw multiple things dynamically, run:\n```bash\npython src\u002Fagent\u002Fcad_agent.py --interactive\n```\n\n---\n\n## Step 3a — CAD Agent Chain Mode (M3-A)\n\nFor high-quality outputs, use the 4-step AI prompt chain instead of single-step generation:\n\n```bash\npython src\u002Fagent\u002Fcad_agent.py --server --port 3333\n# Then POST to http:\u002F\u002F127.0.0.1:3333\u002Fdraw with mode: \"chain\"\n```\n\nThe chain executes 4 steps:\n1. **Interpret** — LLM analyzes the prompt into structured design intent (entity types, dimensions, constraints)\n2. **Generate** — LLM generates JSON drawing commands from the enriched intent context\n3. **Validate** — LLM cross-checks commands against intent (score, issues, suggestions)\n4. **Execute** — If valid, commands execute on ZWCAD. If validation fails, up to 2 auto-revision cycles run\n\n> [!TIP]\n> Use chain mode for complex multi-entity drawings or when accuracy is critical (e.g. regulatory submissions). The validation step catches coordinate errors and missing entities before they reach ZWCAD.\n\n### Error Recovery (M3-C)\n\nAll drawing executions (both single-step and chain mode) are wrapped in automatic undo protection:\n- `start_undo_marker` is called before execution\n- On success, `end_undo_marker` closes the transaction\n- On failure, the system sends an UNDO command to ZWCAD to rollback partial changes\n\n---\n\n## Step 4 — Verify Drawing Status\n\n* Check the console logs returned by the command execution.\n* Ensure the log outputs:\n  - `Successfully connected` or `Successfully launched new ZWCAD instance`\n  - `Bound to active drawing`\n  - `Added lightweight polyline` or `Added line`\u002F`Added MText`\n  - `Successfully executed drawing instruction.`\n* If ZWCAD was launched in the background, remind the user that it will have minimized and restored itself to focus in the foreground of their desktop, showing the newly created drawings.\n\n## Related Skills\n\n\u003C!-- Link related skills here -->\n","# ZWCAD AI Drawing Skill\n\nThis skill allows the agent to create geometry in ZWCAD 2026 via two execution paths. **Prefer the MCP direct path** for structured drawing requests where coordinates and parameters can be determined. Use the **CAD Agent fallback** only when the prompt is too ambiguous for the agent to compute exact coordinates.\n\n## Context\n\nThe primary drawing path for ZWCAD 2026: structured requests execute as direct MCP tool calls; ambiguous natural-language prompts fall back to the Python CAD Agent for LLM translation, with an interactive prompting loop as the last resort. Path selection is decided first (`## Execution Path Decision`), then the matching step procedure runs.\n\n## Execution Steps\n\n1. Decide the execution path: MCP direct (primary), CAD Agent fallback, or interactive loop (`## Execution Path Decision`).\n2. MCP direct — issue the structured tool calls against the running session (`## Step 1`).\n3. CAD Agent fallback — route ambiguous natural language through the CAD Agent chain (`## Step 2` \u002F `## Step 3a`).\n4. Interactive prompting loop — iterate with the user when automation cannot disambiguate (`## Step 3`).\n\n## Output Format\n\nDrawn geometry in the live ZWCAD session (walls, doors, windows, annotations on the target layers) plus a per-call result summary naming the path taken (MCP \u002F CAD Agent \u002F interactive) and any tool errors returned by the session.\n\n## Related Skills\n\n- `cad-server-manager` — owns the server session this skill talks to.\n- `cad-svg-preview` — visual review of what was drawn.\n- `generate-room-elevation` — elevation drawing built on the same session.\n\n---\n\n## When to Use This Skill\n\nUse this skill when the user requests to draw geometry, plans, or room divisions in ZWCAD, for example:\n* \"Draw a square of size 50 by 50 at (10, 10)\"\n* \"Draw a small house plan dividing it into Living Room and Bedroom\"\n* \"Draw a layout with Office A and Office B\"\n\n---\n\n## Execution Path Decision\n\n| Condition | Path |\n|-----------|------|\n| User provides concrete coordinates, dimensions, or a structured layout that the agent can calculate | **Path A — MCP Direct** (Step 1) |\n| User request is vague or requires creative spatial decisions the agent cannot make deterministically | **Path B — CAD Agent Fallback** (Step 2) |\n| User wants an interactive chat session for iterative drawing | **Path C — Interactive Mode** (Step 3) |\n\n> [!TIP]\n> Most drawing requests from the design-delivery workflow (Phase 4) follow a confirmed SketchUp handoff package with known coordinates. These should always use **Path A**.\n\n---\n\n## Step 1 — MCP Direct (Primary Path)\n\nCall `zwcad-mcp` tools directly. The MCP server is auto-spawned by the host (Claude Code \u002F Gemini \u002F Antigravity) as configured in `.mcp.json`.\n\n### Available MCP Tools\n\n#### Drawing & Geometry\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_draw_line` | `start_point` [x,y,z], `end_point` [x,y,z] | `layer`, `color` | Straight line segment |\n| `zwcad_draw_polyline` | `vertices` [x1,y1,x2,y2,...] (min 4 values) | `closed` (bool), `layer` | 2D lightweight polyline |\n| `zwcad_draw_circle` | `center` [x,y,z], `radius` | `layer`, `color` | Circle in ModelSpace |\n| `zwcad_draw_arc` | `center` [x,y,z], `radius`, `start_angle`, `end_angle` | `layer`, `color` | Arc (angles in degrees) |\n| `zwcad_draw_text` | `text`, `insertion_point` [x,y,z], `height` | `rotation`, `layer` | Single-line text object |\n| `zwcad_draw_mtext` | `position` [x,y,z], `width`, `text` | `layer`, `height` | Multi-line text entity |\n| `zwcad_draw_aligned_dimension` | `start` [x,y,z], `end` [x,y,z], `text_position` [x,y,z] | `text_override`, `layer` | Aligned dimension |\n| `zwcad_apply_hatch` | `polyline_handle` (string) | `pattern_name`, `pattern_type`, `associativity`, `layer`, `color` | Hatch fill on closed polyline |\n| `zwcad_insert_block` | `block_name`, `position` [x,y,z] | `scale` [x,y,z], `rotation`, `layer` | Block reference insertion |\n\n#### Query & Inspection\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_get_active_document_info` | — | — | Active document metadata (filename, layers, entity count, units) |\n| `zwcad_get_selected_geometry` | — | — | Properties of currently selected entities |\n| `zwcad_list_layers` | — | — | All layers with frozen\u002Flocked\u002Fcolor state |\n| `zwcad_extract_model` | — | `layers` (string[]) | All entities + CA_METADATA project tags |\n\n#### Layer Management\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_set_layer_state` | `layer_name` | `frozen` (bool), `locked` (bool) | Freeze\u002Fthaw and lock\u002Funlock a layer |\n\n#### Undo Transactions\n\n| Tool | Required Parameters | Description |\n|------|---------------------|-------------|\n| `zwcad_start_undo_marker` | — | Begin an undo transaction group |\n| `zwcad_end_undo_marker` | — | End an undo transaction group |\n\n#### Compliance\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_check_compliance` | — | `layers` (string[]) | Check drawing against zoning bylaws |\n\n#### File Management (M2-A)\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_save_drawing` | — | `filepath` (string) | Save active drawing (SaveAs if filepath provided) |\n| `zwcad_open_drawing` | `filepath` (string) | — | Open a DWG file |\n| `zwcad_new_drawing` | — | `template` (string) | Create a new drawing |\n| `zwcad_close_drawing` | — | `save_changes` (bool) | Close active drawing |\n\n#### Modify Tools (M2-B)\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_move_entity` | `handle` (string), `offset` [dx,dy,dz] | — | Move entity by offset |\n| `zwcad_copy_entity` | `handle` (string) | `offset` [dx,dy,dz] | Copy entity with optional offset |\n| `zwcad_rotate_entity` | `handle` (string), `center` [x,y,z], `angle` (degrees) | — | Rotate entity around center |\n| `zwcad_delete_entity` | `handle` (string) | — | Delete entity by handle |\n| `zwcad_mirror_entity` | `handle` (string), `point1` [x,y,z], `point2` [x,y,z] | — | Mirror entity across axis |\n| `zwcad_offset_entity` | `handle` (string), `distance` (float) | — | Offset entity by distance |\n\n#### Layer Enhancement (M2-C)\n\n| Tool | Required Parameters | Optional Parameters | Description |\n|------|---------------------|---------------------|-------------|\n| `zwcad_create_layer` | `name` (string) | `color` (int) | Create a new layer with optional color |\n| `zwcad_set_entity_layer` | `handle` (string), `layer_name` (string) | — | Move entity to a layer |\n| `zwcad_delete_layer` | `name` (string) | — | Delete a layer |\n| `zwcad_apply_layer_standards` | — | — | Auto-create standard A-* architectural layers |\n\n### Layer Naming Convention\n\nFollow the project layer standard defined in `agents\u002Fzwcad-drafter.md`:\n\n| Layer | Usage |\n|-------|-------|\n| `A-WALL` | Walls |\n| `A-DOOR` | Doors |\n| `A-WIND` | Windows |\n| `A-DIMS` | Dimensions |\n| `A-ANNO` | Annotations \u002F labels |\n| `A-HATCH` | Hatching \u002F fill patterns |\n| `A-SITE` | Site plan elements |\n| `A-GRID` | Grid lines |\n\n### Example Workflow (MCP Direct)\n\n```\n1. zwcad_start_undo_marker\n2. zwcad_draw_polyline(vertices=[0,0,500,0,500,300,0,300], closed=true, layer=\"A-WALL\")\n3. zwcad_draw_text(text=\"Living Room\", insertion_point=[250,150,0], height=5, layer=\"A-ANNO\")\n4. zwcad_draw_aligned_dimension(start=[0,0,0], end=[500,0,0], text_position=[250,-20,0], layer=\"A-DIMS\")\n5. zwcad_end_undo_marker\n```\n\n---\n\n## Step 2 — CAD Agent Fallback (Complex Natural Language)\n\nUse this path when the user's request is ambiguous or requires creative spatial decisions that cannot be deterministically computed.\n\n### Step 2a: Verify LLM API Key\n\nThe CAD agent loads environment variables from the project root `.env` file on startup.\nVerify that the `.env` file contains at least one of the following API keys:\n\n| Key | Provider |\n|-----|----------|\n| `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` | Anthropic (GLM) |\n| `GEMINI_API_KEY` | Google Gemini |\n| `OPENAI_API_KEY` | OpenAI |\n\n> [!CAUTION]\n> If none of these keys are present in `.env`, the LLM translation step will fail. Ask the user to add an API key to the `.env` file at the project root.\n\n### Step 2b: Execute Drawing Command\n\nRun the Python CAD agent from the project root:\n```bash\npython src\u002Fagent\u002Fcad_agent.py --prompt \"\u003Cuser_prompt>\"\n```\nThe CAD Agent will internally use an LLM to translate the natural language prompt into drawing commands.\n\n---\n\n## Step 3 — Interactive Prompting Loop (Optional)\n\nIf the user requests to enter an interactive chat session to draw multiple things dynamically, run:\n```bash\npython src\u002Fagent\u002Fcad_agent.py --interactive\n```\n\n---\n\n## Step 3a — CAD Agent Chain Mode (M3-A)\n\nFor high-quality outputs, use the 4-step AI prompt chain instead of single-step generation:\n\n```bash\npython src\u002Fagent\u002Fcad_agent.py --server --port 3333\n# Then POST to http:\u002F\u002F127.0.0.1:3333\u002Fdraw with mode: \"chain\"\n```\n\nThe chain executes 4 steps:\n1. **Interpret** — LLM analyzes the prompt into structured design intent (entity types, dimensions, constraints)\n2. **Generate** — LLM generates JSON drawing commands from the enriched intent context\n3. **Validate** — LLM cross-checks commands against intent (score, issues, suggestions)\n4. **Execute** — If valid, commands execute on ZWCAD. If validation fails, up to 2 auto-revision cycles run\n\n> [!TIP]\n> Use chain mode for complex multi-entity drawings or when accuracy is critical (e.g. regulatory submissions). The validation step catches coordinate errors and missing entities before they reach ZWCAD.\n\n### Error Recovery (M3-C)\n\nAll drawing executions (both single-step and chain mode) are wrapped in automatic undo protection:\n- `start_undo_marker` is called before execution\n- On success, `end_undo_marker` closes the transaction\n- On failure, the system sends an UNDO command to ZWCAD to rollback partial changes\n\n---\n\n## Step 4 — Verify Drawing Status\n\n* Check the console logs returned by the command execution.\n* Ensure the log outputs:\n  - `Successfully connected` or `Successfully launched new ZWCAD instance`\n  - `Bound to active drawing`\n  - `Added lightweight polyline` or `Added line`\u002F`Added MText`\n  - `Successfully executed drawing instruction.`\n* If ZWCAD was launched in the background, remind the user that it will have minimized and restored itself to focus in the foreground of their desktop, showing the newly created drawings.\n\n## Related Skills\n\n\u003C!-- Link related skills here -->\n",{"name":5,"owner":23,"scope":24,"status":25,"version":26,"metadata":27,"description":7,"gemini-parity":38,"last_reviewed":39,"prerequisites":40},"zwcad-drafter","co-architect","active","1.3.0",{"type":28,"triggers":29},"task",[30,31,32,33,34,35,36,37],"draw","cad draw","ai draw in zwcad","draw a house plan","draw a rectangle in zwcad","draw a circle in zwcad","draw a line in zwcad","draw a layout in zwcad","sync","2026-09-09","none","main","1162ccc568cf90c01b3886d6143cbfd851a37883","templates\u002Fco-architect\u002F.claude\u002Fskills\u002Fzwcad-ai-drawing",9,"https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards","https:\u002F\u002Fgithub.com\u002F5throck","Experienced in digital transformation, enterprise IT, startup acceleration, and business strategy. Focused on building practical systems that connect technolo","2026-11-14 21:22:34",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add 5throck\u002Fai-workspace-standards --skill zwcad-ai-drawing",{"tool":55,"command":56},"bunx","bunx skills add 5throck\u002Fai-workspace-standards --skill zwcad-ai-drawing",{"tool":58,"command":59},"pnpm","pnpm dlx skills add 5throck\u002Fai-workspace-standards --skill zwcad-ai-drawing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-architect\u002F.claude\u002Fskills\u002Fzwcad-ai-drawing\u002FSKILL.md",true,[],[64,72,77,82,87,92],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":71},"01M7BBJDYHJMGTJYSC37JVWY8S","i18n-layout","Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL\u002Fbidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF\u002FBOM issues surface.","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":73,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":71},"01M7BBJ9XHAAS1AVGKZZ841VBZ","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.hermes\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":78,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":71},"01M7BBJ5C3X8TKFKG5R9P9P49W","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.gemini\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":83,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":71},"01M7BBJ1B52X0QMJ2QVBMPJB37","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.codex\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":88,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":71},"01M7BBHX91BW2Q2R276MRX5AW3","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.claude\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":93,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":71},"01M7BBHQWGXPSFRWN1PRC2NMMV","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.agents\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[]]