AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Aec Building

skill-sanpingli-skills-aec-building · by sanpingli

AEC building modeling skill — parametric architectural geometry for Agent harness. USE when the task involves creating building geometry (floors, columns, walls, curtain walls, stairs), running code compliance checks (GB 50016, JGJ/T 67), exporting to STEP/IFC/GLB, or orchestrating multi-step building design workflows via MCP tools. Supports modern office, traditional heritage, and custom-shape b…

No reviews yet
0 installs
21 views
0.0% view→install

Install

$ agentstack add skill-sanpingli-skills-aec-building

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-sanpingli-skills-aec-building)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Aec Building? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

aec-building SKILL

What this skill does

Generates parametric BREP building geometry through a 5-layer stack:

orchestrator (planner → executor → reporter)
    ↓ calls
mcp/server (19 粗粒度 MCP tools + JSON-RPC transport)
    ↓ calls
aec/ (Building + elements + grid + staircase)
    ↓ calls
core/ (shapes + booleans + references)
    ↓ exports via
export/ (STEP + IFC)

Architecture invariants

  1. Reference-driven — all geometry positioned via GridRef/LevelRef, never absolute coordinates
  2. Coarse-grained tools — one MCP tool call = one complete operation (e.g. "place all columns")
  3. Compliance = deterministic code — GB 50016 / JGJ/T 67 rules are pure functions, not LLM memory
  4. Failure = signal — error messages always include actionable suggestions + fix_action
  5. Building.summary() returns Open > IFC` 可得到可编辑模型

渲染流水线

Building (Appearance) → building_to_colored_glb() → model.glb
                                                        ↓
                        viewer_3d.py → Three.js PBR (阴影 + 色调映射 + 顶点色)

Recovery Patterns (路径 A/B 通用)

楼梯空间不足

  • 触发: create_staircaseSTAIR_GEOMETRY_INVALID
  • 修复: 读 suggestionsmodify_element 扩大核心筒墙 → 重试 create_staircase
  • 联动: modify_element 修改墙端点时,相交墙自动延长(cascaded_updates 列表)

疏散楼梯数量不足

  • 触发: check_compliance§5.5.17 violation with fix_action
  • 修复: 读 fix_action.tool → 调用 create_staircase 在建筑另一端

防火间距不足

  • 触发: check_compliance§6.2.2 violation
  • 修复: modify_element 调整 L 形折角处窗位

参数化联动机制

modify_element 修改墙的 startend 时,会自动查找端点相交的其他墙并同步更新。 返回的 cascaded_updates 列出所有被联动修改的墙及其新坐标。Agent 无需手动逐个修改相交墙。


Tool Call Granularity Rules

批量操作(一次 tool call)

  • place_columns: 全部柱子一次放完,用 skipx/skipy 排除 (路径 A)
  • place_columns_at: 全部柱子坐标一次传入 (路径 B)
  • create_floors: 多层楼板一次创建
  • auto_place_doors: 全部门一次放完
  • place_beams: 每层所有梁一次放完(逐层调用, 路径 A)
  • place_beams_at: 一类梁一次传入 (路径 B, 如"所有环向梁"一批)
  • place_windows: 同类窗户一次传入

逐个操作

  • create_staircase: 每部楼梯单独调用(不同位置 + 独立验证)
  • create_curtain_wall: 每个立面单独调用

绝不逐个

  • 不要一根柱子一个 tool call
  • 不要一面墙一个 tool call(除非类型不同需分批)

Context Management

  • 每次 tool call 后只记住:element_id(后续引用)、warnings(可能需处理)、error(需恢复)
  • 调用 get_summary 获取 <2KB 状态快照
  • 每 5-8 步调用一次 visual_check
  • take_snapshot 在关键节点保存状态,出错用 rollback 回退

Adding new element types

  1. Add dataclass to aec/elements.py
  2. Add *_to_brep() factory in aec/element_factory.py
  3. Add Building.add_*() method in aec/building.py
  4. Add MCP tool in mcp/server.py + mcp/transport.py TOOL_DEFINITIONS + executor method map
  5. Add tests

Adding new compliance rules

  1. Add check function in compliance/rules/gb50016.py or jgj_t67.py
  2. Wire into check_gb50016() dispatcher with scope key
  3. Every violation should include fix_action with tool + params when an automated fix is possible
  4. Add test in tests/test_compliance.py

Build & test

pip install -e ".[dev]"
pytest tests/ -v                    # all tests
pytest tests/ -k "not BREP"         # skip CadQuery-dependent tests
python examples/l_office_building.py           # 路径 A: 现代办公 MCP workflow
python examples/small_office_with_atrium.py    # 路径 A: full workflow with atrium
python examples/yingxian_pagoda.py             # 路径 B: 传统建筑 (八角木塔)
python examples/imperial_palace.py             # 路径 B: 传统建筑 (宫殿群)

Reference documents

  • [PRD & Architecture](docs/PRD_Architecture.md)
  • [Agent Harness Case Study (20 tool calls)](docs/AgentHarnessBREPGenerationCase_Study.md)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.