用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/richfrem/garden-structure-designer --skill drawing-generator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Launches an independent adversarial drawing-review sub-agent to evaluate SVG outputs for builder usefulness before success can be claimed.
Designs the lateral stability system by placing knee braces or alternatives. Explains anti-racking mechanics.
Produces the three builder-facing documents that make the plugin output immediately usable for site procurement and construction: budget-estimate.md, lumber-purchase-list.md, and assembly-guide.md. Invoke as Step 13 of design-orchestrator after blueprints are validated.
基于 SOC 职业分类
正在显示 SKILL.md
| name | drawing-generator |
| description | Generates architectural SVG drawings and updates the composite dependency manifest. |
| allowed-tools | Read, Write, Bash |
| metadata | {"garden_structure_designer":{"consumes":["context/staging/structure.json"],"produces":["outputs/drawing-plan-view.svg","outputs/drawing-elevation-view.svg"],"validators":["plugins/garden-structure-designer/scripts/svg_validator.py"],"repair_axes":["svg_xml_invalid","svg_topology_mismatch","svg_coordinate_drift"]}} |
This skill generates the authoritative deterministic SVG outputs. It must not be bypassed by Markdown updates, render-prompt updates, or PNG concept generation.
For any revision touching outputs/, this skill MUST regenerate or explicitly validate all of:
outputs/drawing-plan-view.svg outputs/blueprint-plan.svg
outputs/drawing-elevation-view.svg outputs/blueprint-elevation.svg
outputs/drawing-isometric-view.svg outputs/blueprint-isometric.svg
outputs/drawing-perspective-view.svg outputs/blueprint-component-isolation.svg
All SVG geometry must be derived strictly from:
context/staging/structure.jsonAll generated SVGs must embed:
<!-- COORDINATE MAP: {...} -->
<!-- SAW_SETTINGS: {...} -->
All structural elements must carry semantic attributes:
data-role="post" data-role="beam" data-role="rafter"
data-role="brace" data-role="footing"
A revision is incomplete unless each SVG passes svg_validator.py. Photorealistic PNG images are visual references only and must never substitute for validated SVG geometry.
context/staging/structure.json generated by structural-engine (includes members, roof, hub, footings, geometry sections).
context/staging/joinery-model.json
context/staging/bracing-model.json
geometry_engine.py (if structure.json geometry section is missing or out of date).render_drawings.py to deterministically generate SVG files without hallucination.svg_validator.py on each output.All generated drawings MUST include visible member ID labels. This is a first-class architectural requirement.
Every primary structural member (post, beam, rafter, hub, brace) MUST carry a visible → {ID} label:
→ P1, → B3, → R2, → HUB, → Brace2astructure.json member IDAll structural elements MUST embed BOTH:
<g data-role="beam" data-tag="B3">
<polygon ... />
<text data-label="B3">→ B3</text>
</g>
data-role alone is insufficient. data-tag is required for bidirectional traceability.
All generated SVGs MUST embed data-role and data-tag attributes on structural elements:
<polygon data-role="post" data-tag="P1" x="..." y="..." fill="#c8a96e" />
python3 scripts/render_drawings.py context/staging/structure.json
This skill MUST NOT claim its own SVG outputs are complete or successful.
After generating all SVGs, this skill's responsibility ends. It must NOT:
PASS, READY, or DESIGN COMPLETE.The adversarial drawing gate is mandatory and independent:
python3 plugins/garden-structure-designer/scripts/run_drawing_red_team.py \
--svg-dir outputs \
--model context/staging/structure.json \
--report-dir context/staging \
--md-dir outputs
If context/staging/drawing-red-team-report.json does not exist or has may_claim_success: false,
the package status is BLOCKED and this skill has NOT successfully completed the pipeline.
Passing svg_validator.py alone is not sufficient for pipeline completion.
If generated SVGs fail the red-team gate, this skill must not immediately rewrite drawing logic.
First determine whether the failure is caused by:
context/staging and plugins/garden-structure-designer/context/staging;structure.json;schema-validation-report.json;physics-validation-report.json;Only rewrite render_drawings.py after confirming:
structure.json is current and its geometry section is populated;If the failure is a path/reporting problem, fix the path/reporting problem first.