把这个寄给你的代理人
将其粘贴到任何编码代理中。技能在skills.sh中列出: https://skills.sh/ChanMeng666/archlang
1. Run: npx -y skills add ChanMeng666/archlang --yes
2. Run: npx -y @chanmeng666/archlang spec (read it before writing anything)
3. Write my floor plan as plan.arch from this brief: <describe rooms, areas, adjacencies>
4. Run: npx -y @chanmeng666/archlang compile plan.arch -o plan.svg --json
then describe plan.arch --json, validate plan.arch --strict --json (same prefix); fix, recompile
5. Run: npx -y @chanmeng666/archlang finish plan.arch, then compile again to export.
对于MCP客户端: claude mcp add archlang -- npx -y @chanmeng666/archlang-mcp.
https://github.com/user-attachments/assets/a60f3174-6a8c-4a42-b24a-fac030d39627
试一试
npx skills add ChanMeng666/archlang
然后问你的编码代理:
设计一个约54平方米的一居室公寓,前门在北墙上。
它编写计划,编译并检查它。这是一个57行的文本:
为什么文本
- 改变一个数字,一个东西就会动。 没有其他东西被重画。
- 同样的资料给出了同样的图字节对字节。
- 代理可以检查自己的计划 不用看任何图像。
flowchart LR
B([Brief]) --> W[Write .arch]
W --> C{Compiles?}
C -->|no| F[Apply the fix<br/>the error carries] --> C
C -->|yes| V{Matches<br/>the brief?}
V -->|no| W
V -->|yes| O([SVG · DXF · PDF · PNG])
1.44到1.47新增
每个链接到一个简短的部分与一个例子,上 archlang.uk / whats-new.
- 数量和起飞:
archlang takeoff plan.arch --format csv - 锁着的元素:
archlang impact new.arch --against old.arch --lock shell,front - 墙状态:
status existing|demolish|new,拆除画了虚线 - 帝国的长度:
12ft6in - 复习表:
archlang preview plan.arch --review - 循环叠加:
archlang compile plan.arch --overlay circulation - 叠加层:
keep stacked core on levels 1 2 - 跨层意图:
archlang validate plan.arch --intent intent.json - Plan JSON遗漏了什么:
archlang compile plan.arch -f json - 更多lint报告:
W_WALL_END_SHORT,W_FURNITURE_ON_STAIR
给你的代理
这一页是所有人需要的。其他一切都是为代理编写的:克隆回购并指向您的 AGENTS.md或者在一次呼叫中调用整个语言;
npx -y @chanmeng666/archlang context
完整的概述 · 语言参考 · 发布说明 (安装: node_modules/@chanmeng666/archlang/CHANGELOG.md)· 贡献 · 麻省理工学院
ArchLang是背后的引擎 ArchCanvas. 建造的 陈孟.