技能

设计与多媒体 社区

技能解读

当前原文的自动摘译,尚未人工审校。

触发

当任务需要室内设计工作流程中的一个步骤时使用。

首次使用提醒

在对话中第一次使用此技能时,提醒用户图像生成是可配置的,并告诉他们config/image-provider.json支持哪些模型供应商。支持的供应商: openai aliyun tencent

订单

确认该任务是室内设计任务。仅将任务路由到一个步骤:plan、2d_svg、bom 或images。收集该步骤缺少的所需上下文。阅读所需的参考资料。生成步骤工件。

分类

plan设计策略需求分析分区逻辑机房方案

所需参考资料

references/task-types.md references/output-contract.md references/image-provider-config.md references/image-agents/*.md prompts/router.md

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
设计与多媒体
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@CodingFeng101 · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
需简单配置
是否需要外部接口密钥
需要 · Vendor-specific
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
  • 命令执行
网络行为
允许外网请求
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# CAD Skill

## Trigger

Use when the task requires one step in an interior-design workflow.

## First-Use Reminder

On the first use of this skill in a conversation, remind the user that image generation is configurable and tell them which model vendors are supported in `config/image-provider.json`.

Supported vendors:

- `openai`
- `aliyun`
- `tencent`
- `bytedance`
- `zhipu`
- `google`
- `xai`
- `bfl`
- `adobe`

## Order

1. Confirm the task is an interior-design task.
2. Route the task to one step only: `plan`, `2d_svg`, `bom`, or `images`.
3. Collect missing required context for that step.
4. Read the required references.
5. Produce the step artifact.
6. Export preview artifacts when requested.
7. Bundle artifacts when requested.

## Classification

- `plan`
  - design strategy
  - requirement analysis
  - zoning logic
  - room program
- `2d_svg`
  - new floorplan drafting
  - floorplan edits
  - redraw requests
- `bom`
  - bill of materials
  - procurement-ready lists
- `images`
  - analysis boards
  - renovation drawing boards
  - render sheets

## Required References

- `references/task-types.md`
- `references/output-contract.md`
- `references/image-provider-config.md`
- `references/image-agents/*.md`
- `prompts/router.md`
- `prompts/plan.md`
- `prompts/svg-router.md`
- `prompts/svg-patch.md`
- `prompts/svg-replace.md`
- `prompts/bom.md`
- `prompts/overall-analysis-board.md`
- `prompts/key-strategy-board.md`
- `prompts/master-renovation-scheme.md`
- `prompts/renovation-plan-layout.md`
- `prompts/floor-finish-plan.md`
- `prompts/reflected-ceiling-plan.md`
- `prompts/wall-setting-out-plan.md`
- `prompts/mep-plan.md`
- `prompts/elevation-index-and-interior-elevations.md`
- `prompts/detail-drawings.md`

## Routing Contract

- Route one step at a time.
- Prefer `plan` when no usable plan exists.
- Use `2d_svg` for drawing, redrawing, and localized floorplan edits.
- Use `bom` only when a plan exists.
- Use `images` only when the task is to produce analysis boards, drawing boards, or render images.

## Plan Contract

- Output one `cad_plan` artifact only.
- Keep assumptions explicit.
- Keep room names, functional needs, and constraints executable.
- Do not output SVG, BOM, or image tasks in the same step.

## 2D SVG Contract

- Output one `cad_patch` artifact or one full SVG result.
- Use patch for small precise edits.
- Use replace for broad redraws or unstable patch cases.
- Keep output limited to the 2D floorplan step.
- Export a local preview image when requested.

## BOM Contract

- Output one `cad_bom.csv` artifact only.
- Base BOM on the current plan and 2D SVG.
- Keep columns normalized and machine-readable.

## Images Contract

- Use `prompts/overall-analysis-board.md` to generate the text-model prompt for the overall analysis board.
- Use `prompts/key-strategy-board.md` to generate the text-model prompt for the key strategy board.
- Use `prompts/master-renovation-scheme.md` first to generate the text-model prompt for the master renovation scheme, then lock that JSON as the source of truth.
- After the master scheme, use one dedicated prompt file per sheet to generate seven different text-model prompts:
  - `prompts/renovation-plan-layout.md`
  - `prompts/floor-finish-plan.md`
  - `prompts/reflected-ceiling-plan.md`
  - `prompts/wall-setting-out-plan.md`
  - `prompts/mep-plan.md`
  - `prompts/elevation-index-and-interior-elevations.md`
  - `prompts/detail-drawings.md`
- Do not reuse one prompt for all seven outputs.
- For every analysis board or sheet, first produce a dedicated image prompt with the host model, then pass that image prompt to the configured image provider.
- Require `config/image-provider.json` before image generation.
- Do not ask the user to paste API keys into chat.
- Stop and tell the user to fill `config/image-provider.json` when provider, apiKey, or model is missing.

## Scripts

- `scripts/generate-cad-image.mjs`
- `scripts/export-cad-2d-image.mjs`
- `scripts/build-cad-bundle.mjs`

## Deliverables

Preferred:

- `cad_plan.json`
- `floorplan.svg`
- `floorplan.png`
- `cad_bom.csv`
- generated image files
- metadata JSON

Optional on request:

- `floorplan.jpg`
- prompt text files

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。