ArchLang
БесплатноБез исполняемых скриптовНе проверенUse 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…
от chanmeng666940 установок в других каталогахОб этом скилле
ArchLang — author floor plans as code
ArchLang turns a small .arch text file into a professional floor-plan drawing. It is built for
agents: deterministic, self-correcting (errors carry a machine code, a prose fix, and often a
machine-applicable fix archlang fix can apply), and verifiable without ever looking at an image
(archlang describe).
Before you write or edit
- Ask the units, and whether each size is nominal (to wall centrelines), outside or clear (net),
before the first room. Plan numbers are millimetres on centrelines: one room
size 10000x8000withwalls from rooms exterior 200 partition 100is 10,200 x 8,200 outside and 9,800 x 7,800 clear, so 10 x 8 m clear is10200x8200and 10 x 8 m outside is9800x7800. That one-thickness rule holds for a room ringed by the shell; a room beside a partition loses half of each wall it stands on.archlang describe plan.arch --json --select bbox,bbox_outergives the centreline and outside sizes,net_area_m2the clear floor, andkeep min clear <room> <mm>checks a room's narrower clear span (a broken one quotes both spans). - Edit in place, never redraw. Change the fewest statements the request needs, and lock the
authored ids (
id=) it does not name.archlang impact plan.arch --set W=3600 --lock bedroompreviews a change to aletand writes nothing;archlang impact new.arch --against plan.arch --lock bedroomchecks an edited copy. Exit2isE_LOCKED_ELEMENT_CHANGED(change the edit, not the lock) orE_LOCK_UNNAMED(the lock names no authored id, or one only above the lowest storey, which locks do not compare yet). Put sizes a brief may change inlets insideplan, so a resize is one--set, not a coordinate hunt. - A number the brief fixes is a
keep(keep min clear living 3800): it moves nothing, and a broken one isW_KEEP_VIOLATEDwith a signed residual, failingvalidate --strict. - A straight
stairis entered at one end: withdir upthe end of its long axis with the larger coordinate (the bottom of a portrait footprint, the right of a landscape one), withdir downthe other. Keep a landing clear there (W_STAIR_NO_LANDING); to enter from the other end,placeit mirrored (archlang spec,stair).
What ArchLang can do
- Compile
.archto SVG, DXF, TXT, PDF, PNG or Plan JSON; it never reads images, so a plan from a photo is written by you. validate --strictandlintcheck soundness (doors on walls, reachability, clearances) and give a fix per finding.describereports rooms, areas and adjacency;takeoffreports quantities as csv or md.fix,repairandfinishrewrite the source; each takes--dry-runto preview first.--expected-hash <source_hash>on those refuses a stale file (exit 4).impact --against old.arch --lock <ids>exits 2 when a locked element moved: edit in place, never redraw.impact --set NAME=valueshows what one top-levelletwould move.keeplines in the plan hold a relation through every edit and report a residual.levelblocks give storeys;axesgives one grid;keep stackedaligns shafts.validate --intentchecks a plan against a brief;scoremeasures it.- Plan JSON in (
compile --from-json) and out (-f json). linkprints a playground URL;previewrenders a PNG.
Setup (zero-install)
The CLI runs straight from npm — no clone, no build:
npx -y @chanmeng666/archlang --help
Or npm i -g @chanmeng666/archlang for a global archlang command. Every call below is written
archlang <cmd>; without the global install, write npx -y @chanmeng666/archlang <cmd>. Never run
a bare arch: the package installs it as an alias, but on Linux, macOS and Git Bash coreutils
owns that name, so the shell runs the wrong program.
The loop (always follow this)
- Learn the language first. Run
archlang specand read it — the entire language in one page. (archlang contextprints everything: spec + this workflow + CLI reference + error catalog; a small model starts witharchlang context --level starter, one screen.) Do this before writing any.arch. - Write the plan to a
.archfile (or pipe via stdin with-), preferring the placement sugar below so you never hand-compute a coordinate. - Render it:
archlang compile plan.arch -o plan.svg --json. The JSON is{ ok, diagnostics, summary }. - Auto-fix the mechanical faults: if
okis false, runarchlang fix plan.arch --dry-run --jsonto preview the machine-applicable edits (off-wall opening → attachment form, out-of-range position clamped, …), then re-run without--dry-runto apply. Anythingfixcan't resolve stays indiagnostics[].fixfor you to edit by hand. Exit code2means a deterministic user error — fix it, don't blindly retry (1= IO/internal,3= bad usage). - See the plan without an image: `archlang compile plan.arch -f txt
Установить ArchLang в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ArchLang?
Use 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?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ArchLang запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic