skills/standard/office-env-setup/SKILL.md
环境探测、缺依赖降级、能力档位 A–E;run/pip/desktop/web 不可用时的办事路径
npx skillsauth add sunflowermm/XRK-AGT office-env-setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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>告知路径:aistream.yaml → tools.file.runEnabled: true,需管理员改配置并重启。
更新「能力档位」勾选、工具表、探测记录日期。改 ENV 前一句话告知用户。
| 场景 | 技能 | |------|------| | 跑命令细节 | office-env-shell | | 文件操作 | office-env-workspace | | 网页 | office-env-web | | 本机打开 | office-env-desktop |
development
统一回复版式:短、结构化、可复制;减少空话
tools
MCP 工具地图:默认工作流、web_search、何时启用 desktop/browser/memory
development
检索栈:web_search(13 提供商 + parallel-free 免费通道)、web_fetch、与 office-research 分工
data-ai
工作区 Markdown 记忆 + memory 工作流向量记忆的使用边界