
Floor plans as checked code
ArchLang: write floor plans as code, compiled and checked by a deterministic compiler. Skills to author, edit, review and export .arch plans through the archlang CLI, and the ArchLang MCP server.
Example path ·
https://mcp.archlang.uk/mcpArchLang compiles .arch text to SVG floor plans. Before writing any .arch, read the archlang://spec resource: the whole language (from a shell: npx -y @chanmeng666/archlang spec). The loop:
Write the plan as .arch source.
it. Errors are diagnostics, usually with a byte span, often a fix; applies the machine-applicable ones, edit the rest by hand.
it; check rooms, areas and doors against the brief.
with strict:true (parse, resolve, ); fix every warning, then back to 2.
once lint is clean, before export: it furnishes empty rectangular rooms on every storey and adds the missing sheet statements (paper, scale, dimensions, title, room schedule, legend). With a shell, the CLI runs the same loop at no context cost: archlang <cmd>, or npx -y @chanmeng666/archlang <cmd> without a global install.
5 in the ChatGPT listing