/archlang:archlang-exportfrom archlang
Exports ArchLang .arch floor plans to SVG, PNG, PDF, or DXF files. Handles paper size, scale, multi-storey, and batch export via the archlang CLI or MCP tools.
Ships in archlang. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Produce drawing files from a .arch plan.
If archlang is not on the path, write npx -y @chanmeng666/archlang in its place.
Never run a bare arch: on Linux, macOS and Git Bash that name is the coreutils command.
This skill is a workflow, not a language reference. archlang compile --help lists every format and
flag; archlang spec describes the paper and scale statements.
archlang compile plan.arch --json writes nothing and reports ok
and the diagnostics. Do not export a plan with errors; fix it first.paper statement has no physical size.
archlang finish plan.arch --only sheet --dry-run --json shows the sheet statements the plan lacks
(paper, scale, dimensions, title block, room schedule, legend). archlang finish plan.arch --only sheet
adds them on the smallest sheet the drawing fits.paper and scale statements
to those values and compile again. If the drawing does not fit the sheet the plan declares,
archlang finish plan.arch --reissue -o issued.arch writes a copy in which only paper and scale
are replaced by ones that fit. Tell the user when the sheet they asked for cannot hold the
drawing at that scale.archlang compile plan.arch -o plan.svg --jsonarchlang compile plan.arch -f pdf -o plan.pdf --install --jsonarchlang compile plan.arch -f png -o plan.png --install --json
(-s 2 doubles the raster scale)archlang compile plan.arch -f dxf -o plan.dxf --jsonlevel blocks compiles to one file per storey,
named <stem>.L<level>.<ext>, and the JSON result lists them in outputs[]. To write one
storey to one named file, add --level <n>.batch does not create it. Then
archlang batch a.arch b.arch -f pdf -o out/ --json renders each input into it and returns one
result row per input.output (or outputs[] for a multi-storey plan) and
bytes in the JSON result and list the files for the user. For a PNG you can look at it; for the other formats report the
path, the sheet size and the scale.finish chose them.link tool's playground URL (or archlang link plan.arch) opens the
plan, where the user switches the drawing to 3D and Share → Download GLB writes a GLB. With
Node 20+, npx -y @chanmeng666/archlang-3d build plan.arch -o plan.glb writes and checks the GLB,
from the separate archlang-3d package, not the core; give the command, do not run it unless the
user asks. It previews the plan; it is not a design or construction file.Some hosts have no shell, or a shell that cannot reach npm: in ChatGPT's sandbox npx only times
out, and a retry ends in ENOTCACHED. Stop after the first such failure and do not substitute
another PDF tool. With the ArchLang MCP tools:
paper and scale, then check it with the validate tool and render it with
the compile tool. W_SCALE_OVERFLOW means the sheet cannot hold the drawing at that scale:
choose a smaller scale or a larger sheet, and say which.compile returns the drawing.link tool and give the user its playground URL. In the
Playground they open Share and press the format under Download.--install.2 is a fault in the plan source, not in the export: read the diagnostic.
3 is a wrong flag: run archlang compile --help.archlang finish plan.arch --reissue choose.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/archlangUse when the user wants to create, edit, or inspect an architectural floor plan / building layout as code — e.g. "draw a 2-bedroom apartment", "add a bathroom to this plan", "make the bedroom 1 m wider", "lay out an office floor". ArchLang is a tiny text language that compiles a .arch file to a professional floor-plan drawing (SVG/PNG/PDF/DXF). Drive it entirely through the `archlang` CLI; do not hand-render./archlang-brief-to-planUse when the user gives a written brief for a new floor plan (rooms, areas, how rooms connect, a plot size) and wants the drawing, e.g. "design a two-bedroom flat of about 75 m²" or "lay out a small office with four rooms". Writes an ArchLang .arch file from the brief, checks it against the brief with the archlang CLI, and finishes it as a sheet. Not for changing an existing plan (archlang-edit-plan) or for exporting one (archlang-export)./archlang-edit-planUse when the user wants to change an existing ArchLang .arch floor plan, e.g. "make the bedroom 1 m wider", "add a bathroom next to the hall", "move the front door to the south wall", "merge the kitchen into the living room". Reads the plan's facts with the archlang CLI, makes the smallest edit that does the job, and re-verifies. Not for writing a plan from a brief (archlang-brief-to-plan)./archlang-review-planUse when the user wants an existing ArchLang .arch floor plan checked rather than changed, e.g. "review this plan", "does this layout meet the brief?", "is every room reachable?", "check it for accessibility", "why does lint complain?". Reads the plan's facts, runs the lint profiles and the intent gate through the archlang CLI, and reports findings with suggested fixes. It edits nothing unless asked.npx claudepluginhub chanmeng666/archlang --plugin archlangOther plugins' skills for the same job