yzsp-studio/mediakit-shared-suite / creative-design
creative-design
Unverified当用户要求从零生成或设计商业、品牌、社交媒体及知识表达类创意图片,编辑、复刻或审查已有视觉成品,或进行系列延展、多比例适配、多资产视觉系统设计时使用。触发任务包括做图、出图、生成图片、设计海报、主视觉/KV、Banner、封面、社媒配图、社媒长图、电商主图、详情页、产品图、Logo、IP 角色、吉祥物、包装、品牌应用物料、活动物料、宣传册、落地页、知识科普海报、信息图、教学图、教材插图、课件配图、思维导图、知识图谱、流程图、数据图表、科学结构图、公式推导图、工程图纸,以及分图层 HTML/CSS 视觉设计。
references/cli/tree.md
View on GitHub# `design-cli design-workspace +tree`
## 用途
返回指定 Path 下的整棵目录树,只有层级关系,不返回任何 Item、Frame 或摘要。因此它不随内容数量增长,可以一次拉完。
用来定位分支:看清项目怎么组织,决定接下来 `+ls` 哪个目录。
## 命令
```bash
design-cli design-workspace +tree \
--canvas-workspace-id <canvas_workspace_id> \
[--path <path>]
```
## 参数与请求
| CLI 参数 | 必填 | JSON 字段 |
|---|---:|---|
| `--canvas-workspace-id` | 是 | `canvas_workspace_id` |
| `--path` | 否 | 目录路径,**必须以 `/` 开头**;未传或为空时取根路径 `/` |
```json
{"canvas_workspace_id":"10001","path":"/"}
```
## 输出
`xml_data` 内为 `<directory_tree>`,`<tree>` 中是 ASCII 目录树文本:
```xml
<directory_tree canvas_workspace_id="10001" path="/">
<directory path="characters">
<directory path="female-lead">
<directory path="expressions"/>
</directory>
<directory path="male-lead"/>
</directory>
<directory path="deliverables"/>
</directory_tree>
```
顶层 `<path>` 是请求参数的回显,便于确认请求没被改写。
🔴 **树里 `<directory>` 的 `path` 是目录名片段,不是完整路径** —— 这是本命令唯一不以 `/` 开头的地方。要 `+ls` 某个目录时沿层级拼出完整路径、**并补上开头的 `/`**:上例 `expressions` 对应 `/characters/female-lead/expressions`。不想自己拼就用 [`+ls`](ls.md),它的 `child_paths` 直接给以 `/` 开头的完整路径。
从子路径查询时,树根就是该子路径:
```xml
<directory_tree>
<canvas_workspace_id>10001</canvas_workspace_id>
<path>/characters</path>
<tree>
characters/
├── female-lead/
│ ├── three-views/
│ └── expressions/
└── male-lead/
</tree>
</directory_tree>
```
退出码与错误处理见 [`README.md`](README.md)。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |