Summary
当用户需要执行本地命令、安装或使用 CLI 工具、转换 Office/PDF 文档、搜索网页信息、提取 URL 正文、操作浏览器自动化,或询问"用什么工具""怎么安装""如何提取"时,必须立即使用此技能。涵盖 shell 执行、uv/bun/brew…
zhuxining/skills · Archived
当用户需要执行本地命令、安?
npx skills add zhuxining/skills --skill local-tools-guide
当用户需要执行本地命令、安装或使用 CLI 工具、转换 Office/PDF 文档、搜索网页信息、提取 URL 正文、操作浏览器自动化,或询问"用什么工具""怎么安装""如何提取"时,必须立即使用此技能。涵盖 shell 执行、uv/bun/brew…
This repository is archived — consider an actively maintained alternative.
Obsidian CLI 操作 MyObsidian vault 的强制协议。每当用户提到 Obsidian、vault、知识库、笔记、Dail…
43 installsSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern fr…
5 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Guidance for distinctive, intentional visual design when building new UI or reshaping an existi…
866.4K installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
568.9K installsOther skills from zhuxining/skills · top by installs.
npx skills add zhuxining/skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
10,697 B
SUMMARY.md
450 B
本技能是本地与内置工具的总入口。目标是先判断任务类型,再选择最小、可靠、可复现的工具路径。
| 如果你需要了解... | 阅读 |
|---|---|
| 搜索、技术文档查询 (ctx7/ddgs) | [references/search-tools.md](references/search-tools.md) |
| URL 正文提取策略 (web_fetch/browser-use) | [references/fetch-tools.md](references/fetch-tools.md) |
| 浏览器自动化操作 (browser-use) | [references/browser-use.md](references/browser-use.md) |
| 文档转换(PDF/Office/网页转 Markdown) | [references/document-tools.md](references/document-tools.md) |
| 本地工具盘点 (uv/bun/brew/其他) | [references/local-inventory.md](references/local-inventory.md) |
| Python/Node/Brew 包管理 | [references/package-tools.md](references/package-tools.md) |
| Shell 执行最佳实践 | [references/shell-runtime.md](references/shell-runtime.md) |
uv 和 bun、用户 shell 为 zshcurl \| sh、pip --user、npm -g、cargo install 等方式新增安装| 用户意图 | 处理 |
|---|---|
| 执行本地命令、依赖用户 PATH/env、排查 CLI 可用性 | 使用 shell/runtime 流程 |
| 使用或安装 Python CLI、一次性运行 Python 工具 | 使用 uv / uvx / uv tool 流程 |
| 使用或安装 Node CLI、全局 Bun 工具 | 使用 bun / bunx / bun add -g 流程 |
| 使用或安装系统级 CLI、Homebrew 工具 | 使用 Homebrew 流程 |
使用非 uv / bun / brew 来源的已有 CLI |
仅允许使用,禁止通过该来源安装 |
| 盘点当前机器可用工具 | 使用本地工具盘点流程 |
| 转换本地文档、Office/PDF/网页内容转 Markdown | 使用文档转换流程 |
| 搜索、查找、调研、查最新信息、找资料 | 使用搜索发现流程 |
| 目标站点或应用已有 OpenCLI adapter、用户要求"把网站当 CLI 用"、需要结构化站点命令 | 转交 OpenCLI 专用 skill/工具,先确认 adapter 和命令 schema |
| 用户明确要求 Agent Reach、需要全网可达性视野、平台 API 输出整理或 agent-reach 健康检查 | 转交 Agent Reach 专用 skill/工具,本指南只做路由 |
| 查询编程库、框架、API、SDK、错误信息 | 优先使用技术文档流程 |
| 只提供 URL,或要求提取、抓取、转 Markdown | 使用正文提取流程 |
| 候选链接核验、确认标题/时间/关键事实 | 使用链接核验流程 |
| 需要点击、登录态、截图、表单、动态页面 | 使用浏览器交互流程 |
| 要摘要、观点分析、五维阅读、深度解读 | 本技能只提供来源或正文,后续由当前任务继续分析 |
| 场景 | 优先链 | 参考 |
|---|---|---|
| shell 执行 | exec -> 必要时 zsh -lc '<command>' -> 说明环境限制 |
references/shell-runtime.md |
| Python CLI | 已安装命令 -> uvx <tool> -> uv tool install <pkg> |
references/package-tools.md |
| Node CLI | 已安装命令 -> bunx <pkg> -> bun add -g <pkg> |
references/package-tools.md |
| Homebrew CLI | 已安装命令 -> brew list --formula -> brew install <formula> |
references/package-tools.md |
| 非三工具链来源 CLI | which -a / PATH 目录盘点 -> 只使用已有入口,禁止安装 |
references/package-tools.md |
| 本地工具盘点 | which -a -> uv tool list -> bun pm ls -g -> brew list -> PATH 目录盘点 |
references/local-inventory.md |
| 文档转换 | markitdown -> 文件类型专用工具 -> OOXML/XML/PDF fallback |
references/document-tools.md |
| 搜索发现 | web_search -> ddgs -> browser-use 搜索页 |
references/search-tools.md |
| 站点/应用结构化操作 | OpenCLI 专用 skill/工具 -> opencli list / opencli <site> --help -f yaml |
references/local-inventory.md |
| 全网可达性/平台视野 | Agent Reach 专用 skill/工具 -> agent-reach doctor / agent-reach watch |
references/local-inventory.md |
| 候选链接核验 | web_fetch -> browser-use |
references/search-tools.md |
| 正文提取 | web_fetch -> browser-use open <URL> -> state/eval |
references/fetch-tools.md |
| 页面交互/高级控制 | browser-use open <URL> -> state -> click/input/eval/screenshot -> --session / python |
references/browser-use.md |
| 技术文档 | ctx7 library -> ctx7 docs -> 定向 web_search |
references/search-tools.md |
zsh -lc 或明确记录 shell 假设。uvx / bunx,长期复用才考虑全局安装。uv tool install、bun add -g 或 brew install;禁止用 curl | sh、npm -g、pip --user、cargo install 等方式绕过这三条工具链。uv / bun / brew 来源的已有 CLI 可以使用,但只能按现有入口调用,不负责安装、升级或迁移。web_fetch 代替搜索。browser-use。ctx7,找不到再用定向网页搜索。browser-use open <URL>,再读取 state;需要登录态、cookies 或指定 Chrome profile 时,先用 browser-use profile list 确认可用 profile,必要时询问用户选择。web_fetch 失败、内容不足或主体缺失后直接使用 browser-use;不要再插入本地 HTML 清洗 CLI 作为中间降级。用户提供一个 URL
│
├─→ 步骤 1: web_fetch(url)
│ ├─ 成功(内容完整 ≥100 字符)→ 输出结果 ✓
│ └─ 失败或内容不足 ───────────────┐
│ │
└─→ 步骤 2: browser-use eval │
├─ 成功 → 输出结果 ✓
└─ 失败 → 报告失败原因及已尝试工具 ✗
用户需要搜索信息
│
├─→ 步骤 1: web_search(query) [Agent 内置]
│ ├─ 成功 → 输出结果 ✓
│ └─ 不可用或结果不足 ──────────────┐
│ │
├─→ 步骤 2: ddgs text -q <query> │
│ ├─ 成功 → 输出结果 ✓
│ └─ 超时/限流/结果不足 ───────────┤
│ │
└─→ 步骤 3: browser-use 打开搜索页 │
├─ 成功 → 输出结果 ✓
└─ 失败 → 报告失败原因 ✗
用户查询编程库/框架/API 文档
│
├─→ 步骤 1: ctx7 library <name> <query>
│ ├─ 成功 → 输出结果 ✓
│ └─ 未找到库或文档 ────────────────┐
│ │
├─→ 步骤 2: ctx7 docs <libraryId> │
│ ├─ 成功 → 输出结果 ✓
│ └─ 失败(最多 3 次尝试)──────────┤
│ │
└─→ 步骤 3: web_search 定向官方文档 │
├─ 成功 → 提取正文并输出 ✓
└─ 失败 → 报告失败原因 ✗
如果本轮使用了工具,最终回复末尾按调用顺序追加:
**工具使用记录**
| 顺序 | 工具 | 用途 | 结果 |
| --- | --- | --- | --- |
| 1 | `exec` | 盘点 uv tools | 成功,列出 12 个工具 |
| 2 | `exec` | 检查 Bun 全局包 | 失败:sandbox 限制无法读取 ~/.bun |
| 3 | `web_fetch` | 提取文章正文 | 部分成功:返回 1500 字符,可能缺失代码块 |
| 4 | `browser-use` | 重新提取完整内容 | 成功:返回完整正文 |
结果列填写规范:
规则:
新增工具时优先更新参考文件中的路由表,记录:
只有触发边界、核心优先链或输出职责变化时,才修改本文件。