원클릭으로
lighty-design
通过 LightyDesign 桌面端 MCP 读取工作区、编辑 workbook/sheet、编辑 flowchart 并触发流程图代码导出的可复用工作流。适用于仓库维护者与接入本地 HTTP MCP 的 AI 客户端。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
通过 LightyDesign 桌面端 MCP 读取工作区、编辑 workbook/sheet、编辑 flowchart 并触发流程图代码导出的可复用工作流。适用于仓库维护者与接入本地 HTTP MCP 的 AI 客户端。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | lighty-design |
| description | 通过 LightyDesign 桌面端 MCP 读取工作区、编辑 workbook/sheet、编辑 flowchart 并触发流程图代码导出的可复用工作流。适用于仓库维护者与接入本地 HTTP MCP 的 AI 客户端。 |
| argument-hint | 要执行的 MCP 目标,例如:批量修改某个 Sheet;保存当前流程图并导出代码 |
该 Skill 提供一套与当前 LightyDesign MCP bridge 对齐的工作流,帮助 AI 通过桌面端本地 HTTP MCP 服务完成以下两类任务:
当前目标不是让 AI 直接读写底层 txt/json 文件,而是通过 MCP 工具复用现有工作区、Workbook、Sheet、FlowChart 与代码生成链路,完成查询、结构化编辑、保存和导出。
当前 Skill 覆盖两条主线:
http://127.0.0.1:39231/mcp。AI工具 中开启 MCP 服务。command/args 型配置。get_active_editor_context 会返回 editorMode 感知的上下文:
workbook 模式:返回 workspacePath、currentSheet、selection。flowchart 模式:返回 workspacePath、currentFlowChart、flowChartSelection。其中:
currentSheet 提供 workbookName、sheetName、列摘要、行列数和当前选区地址。selection 提供当前单元格区域的地址、列预览和 previewRows。currentFlowChart 提供 relativePath、filePath、名称、dirty 状态、节点/连线数量、validationIssueCount。flowChartSelection 提供 nodeIds、connectionKeys、focus、selectedNode、selectedConnection、pendingConnection。当前 MCP bridge 已暴露以下工具:
get_workspace_navigation、get_flowchart_navigation、get_active_editor_contextget_header_property_schemas、get_sheet_schema、get_sheet_rows、validate_column_typecreate_workbook、create_sheet、patch_sheet_rows、patch_sheet_columnsget_current_flowchart、get_current_flowchart_selection、get_flowchart_node_definition、get_flowchart_filesave_flowchart_file、export_flowchart_codegen注意:
workspacePath。workbookName / sheetName,也可在活动 Sheet 上下文存在时省略。relativePath,也可在活动流程图上下文存在时省略。save_flowchart_file 需要传入完整流程图文档对象,而不是局部补丁。export_flowchart_codegen 支持 single、batch、all 三种模式。收集上下文
get_active_editor_context,确认 editorMode、workspacePath 与当前活动对象。workspacePath、workbookName / sheetName 或 relativePath。get_workspace_navigation;FlowChart 走 get_flowchart_navigation。路由到正确编辑面
editorMode = workbook,进入 Workbook 流程。editorMode = flowchart,进入 FlowChart 流程。Workbook 流程
get_sheet_schema 获取列定义与元数据。get_sheet_rows 分页读取必要的行,而不是一次读取整表。get_header_property_schemas 与 validate_column_type 理解列属性和类型合法性。patch_sheet_rows 或 patch_sheet_columns 的结构化操作集合。dryRun = true,检查 summary、previewRows 或 schema 预览。FlowChart 流程
get_current_flowchart 或 get_flowchart_file 获取目标流程图的完整文档。get_flowchart_node_definition 读取相关节点定义。formatVersion、name、alias、nodes、flowConnections、computeConnections。validationIssueCount > 0,优先先解释并修复结构问题,再保存。save_flowchart_file 保存完整流程图文档。代码导出
export_flowchart_codegen。single:导出单个流程图;通常传一个 relativePath,或依赖当前活动流程图。batch:导出一组 relativePaths。all:导出当前工作区全部流程图。outputDirectoryPath、fileCount、flowChartCount 等摘要供用户确认。验证与汇总
editorMode = workbook 且用户未提供 workbookName / sheetName 时:优先使用 currentSheet 和 selection。editorMode = flowchart 且用户未提供 relativePath 时:优先使用 currentFlowChart.relativePath。get_active_editor_context,不要盲猜是 Sheet 还是 FlowChart。get_sheet_schema,再读 get_sheet_rows。get_flowchart_node_definition,再决定是否改文档。dryRun,必要时拆分为多批 patch。validationIssueCount > 0 时:优先修结构问题,不要直接覆盖保存。export_flowchart_codegen 的 single。batch 并显式提供 relativePaths。all。dryRun,除非用户明确要求直接提交。nodes、flowConnections、computeConnections。{
"surface": "sheet",
"target": {
"workbookName": "Items",
"sheetName": "Weapons"
},
"dryRun": true,
"summary": {
"insertedCount": 0,
"updatedCount": 3,
"deletedCount": 0
}
}
{
"tool": "save_flowchart_file",
"arguments": {
"workspacePath": "D:/Workspace/MyProject",
"relativePath": "Quest/Intro",
"document": {
"formatVersion": "1.0",
"name": "Intro",
"alias": null,
"nodes": [],
"flowConnections": [],
"computeConnections": []
}
}
}
{
"tool": "export_flowchart_codegen",
"arguments": {
"workspacePath": "D:/Workspace/MyProject",
"mode": "single",
"relativePath": "Quest/Intro"
}
}
workspacePath、Sheet 标识或 FlowChart relativePath。"读取当前活动表的 schema 和前 20 行,给出 patch_sheet_rows 的 dry-run 建议,并解释为什么这样改。"
"在 Events sheet 中,将 start_date 列标准化为 ISO 日期;先生成 patch_sheet_rows 的 dry-run 结果,再决定是否正式提交。"
"读取当前活动流程图与当前流程图选区,解释选中节点依赖的节点定义、端口和潜在结构问题。"
"把当前流程图中指定节点的某个属性值改掉,保存流程图,然后触发 export_flowchart_codegen 的 single 模式导出。"
"批量导出 Quest/Main 目录下的流程图代码;如果没有活动流程图上下文,请先从 get_flowchart_navigation 里找出对应 relativePaths。"
面向无源码用户的请求示例:
get_flowchart_file -> save_flowchart_file -> export_flowchart_codegen 的调用顺序与请求 JSON。"SKILL.md,用于指导 AI 正确使用当前 MCP 结构。AI工具 中开启 MCP 服务。http://127.0.0.1:39231/mcp。get_active_editor_context 开始,让 AI 先确认当前是 workbook 还是 flowchart 模式。get_sheet_schema / get_sheet_rows / patch_sheet_*;FlowChart 任务优先走 get_current_flowchart / get_flowchart_file / save_flowchart_file / export_flowchart_codegen。示例快速命令式提示:
"先读取当前活动编辑器上下文;如果当前是 Sheet,就读取 schema 与前 20 行并生成 patch_sheet_rows dry-run;如果当前是 FlowChart,就读取当前流程图、保存修改后的 document,并触发 export_flowchart_codegen。"
本 Skill 现在显式对齐当前仓库里的 MCP bridge 结构,而不是抽象的通用 REST 假设。后续如果 bridge 再新增 Workbook codegen、FlowChart 节点定义写入或更严格的保存校验,应同步更新本文件中的工具清单、决策分支和示例 prompts。