with one click
office-env-setup
环境探测、缺依赖降级、能力档位 A–E;run/pip/desktop/web 不可用时的办事路径
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
环境探测、缺依赖降级、能力档位 A–E;run/pip/desktop/web 不可用时的办事路径
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
当你需要从“应用视角”看 XRK-AGT(启动流程、Web 控制台、前后端协作、典型技术栈组合)时使用。
当你需要开发或排查 HTTP API(core/*/http/*.js)、理解 HttpApi 基类、HttpApiLoader、业务层约定时使用。
编写或审查 core/*/www 静态页、校园 WebView 兼容、HttpResponse 前端解包时使用。浏览器环境 ≠ Node 26。
编写或审查 core/src 代码时的写法与性能规范(全局裸名、状态、I/O、异步、HTTP)。改 Core 前必读。
当你需要快速理解 system-Core 提供哪些 HTTP API/工作流/插件/Tasker/Web 控制台能力,或定位某个模块在哪实现时使用。
当需要从整体理解 XRK-AGT 的架构、目录、运行流程和技术栈时使用。
| name | office-env-setup |
| description | 环境探测、缺依赖降级、能力档位 A–E;run/pip/desktop/web 不可用时的办事路径 |
run 失败、pip install 失败、desktop 工具报错工作区根目录 ENV.md(无则按模板创建并标注「未探测」)。不要重复问用户已知项。
| 档 | 条件 | 能做什么 |
|---|---|---|
| A | 文件工具 | Markdown 文稿、聊天表格、工作区存草稿 |
| B | + desktop | 打开文件夹/浏览器/剪贴板(文档生成用 C 档 run) |
| C | + run 开启 | Python 脚本、pandoc、docx/xlsx 转换 |
| D | + Python 可用 | pandas/pypdf/pptx 等 |
| E | + web/browser | 调研、抓公开网页 |
python --version
pip --version
where pandoc
where soffice
pdftotext -v
无 run 时:用 system_info(desktop)侧面了解 OS,并向用户说明无法自动探测 CLI。
| 任务 | 首选 | 缺环境时 |
|---|---|---|
| Word 交付 | run + pandoc / python-docx | Markdown + 说明「请 Word 粘贴」 |
| Excel 交付 | run + pandas/openpyxl | office-sheet 聊天表 + CSV 文本 |
| PDF 读 | run + pypdf/pdfplumber | 用户粘贴;或 pdftotext |
| PDF 合并 | run + qpdf/pypdf | 请用户本地合并 |
| PPT | run + python-pptx | Markdown 大纲(office-pptx) |
| 图表 | run + matplotlib | ASCII 表或文字描述趋势 |
| 录音转写 | run + faster-whisper | 请用户提供文字稿 |
| 网页调研 | web_fetch | 用户提供截图/粘贴 |
| CSV 大表 | run + pandas | 分块 read + 手工汇总 |
原则:永远先交付可验收的降级产物,再附「若开启 run / 安装 XX 可自动化」。
pip install <pkg> 或 pip install --user <pkg>告知路径:ai-workflow.yaml → tools.file.runEnabled: true,需管理员改配置并重启。
更新「能力档位」勾选、工具表、探测记录日期。改 ENV 前一句话告知用户。
| 场景 | 技能 |
|---|---|
| 跑命令细节 | office-env-shell |
| 文件操作 | office-env-workspace |
| 网页 | office-env-web |
| 本机打开 | office-env-desktop |