/archlang:archlang-brief-to-planfrom archlang
Turns a written brief for a floor plan into a checked .arch file using the archlang CLI. Walks through reading the language spec, listing requirements, checking assumptions, and writing the plan.
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.
Turn a written brief into a checked .arch floor plan. Every step is a CLI call; never judge the
plan from the SVG markup.
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. The language is whatever archlang spec prints.
archlang CLI commands below and no other program.plan.arch here or the name the user gives, in the user's working
directory, plus the drawings the CLI renders beside it. If a file of that name already exists,
ask the user before replacing it.archlang spec and read all of it before writing a line. For one
command's flags and examples run archlang <cmd> --help, for example archlang finish --help..arch, write down each item
the brief does not mention and, for each, either the assumption you take (draw it or not, and
why) or a question for the user. If you cannot ask, follow your assumption and list it in the
report. This skill gives no sizes: fit an assumed item to the plan's own rooms, or add a room for
it. An assumption never outranks the brief: if one would change a number or a connection the
brief states, do not draw it, and say so. Draw a bedroom's wardrobe together with its bed, since
finish furnishes only empty rooms. Do not quietly add or leave out any item on the list.plan.arch. Give every room an id, a label and a uses. Attach doors and windows
to walls and place furniture by anchor, as archlang spec shows, instead of computing coordinates.
Give every room a door or an opening.archlang compile plan.arch -o plan.svg --json. If ok is false, read each
diagnostics[].fix. Preview the mechanical fixes with archlang fix plan.arch --dry-run --json,
then apply them with archlang fix plan.arch. Fix the rest by hand and compile again.archlang describe plan.arch --select rooms,doors,windows,furniture,totals --json.
Compare room count, labels, each area, what each door connects, which rooms have windows and
which furniture is drawn with the list from step 2 plus the step 3 items you chose to draw. Edit
and repeat from step 5 until they match. area_m2 is measured on
wall centrelines; net_area_m2 is the floor no wall stands on.archlang lint plan.arch --json. Fix each warning, or keep it on purpose and
say why. If a room cannot be reached or a bedroom has no window, archlang suggest plan.arch --json
returns door and window statements you can paste.archlang finish plan.arch --dry-run --json shows the furniture and sheet
statements it would add; archlang finish plan.arch applies them. Read unresolved: it names each
room left empty and each statement left out, with the reason. finish can add an item you chose
in step 3 not to draw (a wardrobe in an empty bedroom): run step 6's describe again, and either
remove it or report it as drawn.archlang validate plan.arch --strict --json must exit 0, or you must be able
to name each remaining warning as deliberate. Then archlang preview plan.arch -o plan.png to show
the user.archlang score plan.arch --taste generic --json
and archlang preview plan.arch --review, which writes plan.review.png (one storey per sheet:
add --level <n> for each upper storey). The score is a sourced 0–1 taste score (privacy
gradient, daylight, proportion, corner doors, …) whose criteria[].advice A_* codes name what
to improve; coverage.weight says how much of it could be judged, and score is null when
nothing could. It never gates, and a score capped at 0.5 means a validity lint warning still
stands. The review image rings and numbers every warned element; on a lint-clean plan it still
shows the access graph (which rooms each door joins, which rooms the entrance reaches) and which
door is the main entrance or that the choice is a tie: check those against your list from
steps 2 and 3. If they contradict the brief, that is a fault in the plan, not taste: go back to step 6,
fix it, and run this step again. Taste advice is not an error: do not iterate on it and do not
change the plan to raise the score. Report it; the user decides.coverage.weight, as "judged 11/12 of
the weight") and whether it is capped, or that nothing could be judged (score is null); each
A_* advice code with its criterion's message; and plan.review.png. Say that the advice is
not an error, that you did not change the plan for it, and that acting on it is the user's choice.net_area_m2 is the floor no wall stands on, area_m2 the larger
centreline figure. If a room has no net_area_m2, say its net area could not be computed.archlang link plan.arch (or the MCP link tool) gives a playground URL
where the user switches the drawing to 3D and can press Share → Download GLB. With Node 20+,
npx -y @chanmeng666/archlang-3d view plan.arch --replay -o plan.html writes it as one HTML file
that opens offline, from the separate archlang-3d package; give the command, do not run it unless
the user asks. It previews the plan; it is not a design or construction file.2 is a fault in the source. Read the diagnostic and fix it; do not run the same
command again unchanged. 3 is a wrong flag: run archlang <cmd> --help.archlang explain <CODE> --json. It does not know the A_* advice
codes (it exits 3): a taste criterion's message and source are its explanation.archlang validate plan.arch --intent intent.json --feedback --json. The archlang-review-plan
skill covers this.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-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)./npx claudepluginhub chanmeng666/archlang --plugin archlangOther plugins' skills for the same job