pcad-to-autocad — Claude Code skill: conversion and setup
The pcad-to-autocad skill guides the conversion of P-CAD files into AutoLISP and their rendering in AutoCAD. Use it to automate the route from a .pcad drawing to an AutoCAD run.
no license 1 installs ★ 1 updated 2026-02-01
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a claude-codeWhat pcad-to-autocad does
The guide uses a Python script, pcad_to_autolisp.py, to turn a .pcad file into .lsp. The script also writes a neighboring .scr file, which you can drop into AutoCAD or pass when launching the application with /b.
You need Python and an installed copy of AutoCAD, and the .pcad file must use UTF-8. Rendering cannot run without AutoCAD. The guide recommends a project-local folder or h:\automation_temp to avoid path and permission problems. If AutoCAD raises numberp: nil, check whether variables used by barshape segments are declared in params or derive.
What it helps with
- convert a
.pcadfile into an.lspscript - generate an
.scrloader for AutoCAD - launch AutoCAD with the generated script
- trace
numberp: nilerrors inbarshapesegments
Example prompts for the agent
- Convert
drawing.pcadtodrawing.lspand explain how to render it in AutoCAD. - Create the
.scrloader forlayout.pcadand show how to run it in AutoCAD. - AutoCAD raises
numberp: nilforbarshape; help me inspectparamsandderive.
How to install pcad-to-autocad
1Skills CLI (Vercel)
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a claude-code2Manually: put the files in place
~/.claude/skills/pcad-to-autocad/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/pcad-to-autocad/
1Skills CLI (Vercel)
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a codex2Manually: put the files in place
.agents/skills/pcad-to-autocad/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a cursor2Manually: put the files in place
.cursor/skills/pcad-to-autocad/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install BinLi2016/Uchannel .agent/skills/pcad-to-autocad2Manually: put the files in place
.github/skills/pcad-to-autocad/SKILL.md1Skills CLI (Vercel)
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a gemini-cli2Platform CLI
gemini skills install https://github.com/BinLi2016/Uchannel --path .agent/skills/pcad-to-autocadManually: put the files in place
.devin/skills/pcad-to-autocad/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about pcad-to-autocad
How do I install pcad-to-autocad in Claude Code?
Run npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a claude-code. The skill file is at ~/.claude/skills/pcad-to-autocad/SKILL.md.
What does pcad-to-autocad do?
It guides you through turning P-CAD code into AutoLISP, then loading it in AutoCAD for rendering with a generated .scr script.
How can I troubleshoot numberp: nil?
Check that variables used in barshape segments are literals or declared in params or derive. The guide says to move local dims definitions into derive when geometry needs them.