Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

chanmeng666от 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 10000x8000 with walls from rooms exterior 200 partition 100 is 10,200 x 8,200 outside and 9,800 x 7,800 clear, so 10 x 8 m clear is 10200x8200 and 10 x 8 m outside is 9800x7800. 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_outer gives the centreline and outside sizes, net_area_m2 the clear floor, and keep 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 bedroom previews a change to a let and writes nothing; archlang impact new.arch --against plan.arch --lock bedroom checks an edited copy. Exit 2 is E_LOCKED_ELEMENT_CHANGED (change the edit, not the lock) or E_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 in lets inside plan, 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 is W_KEEP_VIOLATED with a signed residual, failing validate --strict.
  • A straight stair is entered at one end: with dir up the end of its long axis with the larger coordinate (the bottom of a portrait footprint, the right of a landscape one), with dir down the other. Keep a landing clear there (W_STAIR_NO_LANDING); to enter from the other end, place it mirrored (archlang spec, stair).

What ArchLang can do

  • Compile .arch to SVG, DXF, TXT, PDF, PNG or Plan JSON; it never reads images, so a plan from a photo is written by you.
  • validate --strict and lint check soundness (doors on walls, reachability, clearances) and give a fix per finding.
  • describe reports rooms, areas and adjacency; takeoff reports quantities as csv or md.
  • fix, repair and finish rewrite the source; each takes --dry-run to 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=value shows what one top-level let would move.
  • keep lines in the plan hold a relation through every edit and report a residual.
  • level blocks give storeys; axes gives one grid; keep stacked aligns shafts.
  • validate --intent checks a plan against a brief; score measures it.
  • Plan JSON in (compile --from-json) and out (-f json).
  • link prints a playground URL; preview renders 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)

  1. Learn the language first. Run archlang spec and read it — the entire language in one page. (archlang context prints everything: spec + this workflow + CLI reference + error catalog; a small model starts with archlang context --level starter, one screen.) Do this before writing any .arch.
  2. Write the plan to a .arch file (or pipe via stdin with -), preferring the placement sugar below so you never hand-compute a coordinate.
  3. Render it: archlang compile plan.arch -o plan.svg --json. The JSON is { ok, diagnostics, summary }.
  4. Auto-fix the mechanical faults: if ok is false, run archlang fix plan.arch --dry-run --json to preview the machine-applicable edits (off-wall opening → attachment form, out-of-range position clamped, …), then re-run without --dry-run to apply. Anything fix can't resolve stays in diagnostics[].fix for you to edit by hand. Exit code 2 means a deterministic user error — fix it, don't blindly retry (1 = IO/internal, 3 = bad usage).
  5. See the plan without an image: `archlang compile plan.arch -f txt
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить ArchLang с