bug(skill): 中文 SKILL.md 硬编码某台机器的 conda 环境(conda run -n dl),误导用户与 AI agent
TL;DR (EN): The Chinese SKILL.md hardcodes a private conda env name (dl) in its "环境检查" section and recommends conda run -n dl agent-reach doctor --json. This is invalid for pipx/Windows users, contradicts docs/install.md, and misleads AI agents. Introduced in a19a171f, still on main. Suggest replacing with platform-neutral guidance.
问题描述
agent_reach/skill/SKILL.md(中文版,会随安装分发到 ~/.agents/skills、~/.config/opencode/skills、~/.claude/skills 等目录供各家 AI agent 读取)的「环境检查」一节,把某台开发机的私有 conda 环境写成了面向所有用户的通用说明:
本机 Python 环境默认是 conda
dl;若agent-reach不在 PATH,用conda run -n dl agent-reach ...前缀。
# 检查可用 channel 与每个平台当前激活的后端
conda run -n dl agent-reach doctor --json(当前 main 分支 L131–L139。)
为什么这是 bug
- 对绝大多数用户不成立。
dl只是某台机器的 conda 环境名。照抄conda run -n dl agent-reach doctor --json:没装 conda 的机器报conda: command not found;装了 conda 但没这个环境的报EnvironmentNameNotFound。用户还会被误导以为「用 agent-reach 必须先装 conda」。 - 与项目自身的安装说明矛盾。
docs/install.md推荐 pipx 安装,装完即可直接调用agent-reach,全程不涉及 conda;「不在 PATH 时用 conda run 前缀」这个前提和建议都不成立。 - 「本机」措辞不应出现在发行版文档里。SKILL.md 是分发给所有用户的,不是作者个人笔记。
- 对 Windows 用户完全无效。项目支持 Windows(install.md 有 PowerShell 指引),但这行只对一台装了 conda 的机器成立。
- 中英文版本不一致。
SKILL_en.md没有这段内容(0 处conda),说明是误入内容而非有意设计。 - 会实际误导 AI agent。SKILL.md 的读者是 AI agent,它们会把
conda run -n dl agent-reach ...当作推荐调用方式执行或转述给用户。我们就是被这行误导、排查了半天本机 Python/conda 环境后才确认本机从未装过 conda、也完全不需要。
引入位置(git 证据)
- 引入提交:
a19a171f(2026-09-15,"feat: 新增 Boss直聘 channel(岗位搜索 + JD 全文)(#627)") - 父提交
da5044d2:该文件conda命中 0 处;a19a171f起出现 3 处。 - 目前
main仍存在;v1.5.0 发行包内agent_reach/skill/SKILL.md与 main 一致(md5 校验相同)。
复现:
curl -s https://raw.githubusercontent.com/Panniantong/agent-reach/main/agent_reach/skill/SKILL.md | grep -n 'conda'
# 133:> 本机 Python 环境默认是 conda `dl`;若 `agent-reach` 不在 PATH,用
# 138:conda run -n dl agent-reach doctor --json
gh api "repos/Panniantong/agent-reach/contents/agent_reach/skill/SKILL.md?ref=da5044d2" --jq .content | base64 -d | grep -c conda # 0
gh api "repos/Panniantong/agent-reach/contents/agent_reach/skill/SKILL.md?ref=a19a171f" --jq .content | base64 -d | grep -c conda # 3建议修法(跨平台)
删掉机器私有的 conda 措辞,改为通用写法,例如:
若
agent-reach不在 PATH,使用完整路径调用(macOS/Linux:~/.local/bin/agent-reach;Windows:%USERPROFILE%\.local\bin\agent-reach.exe),或先pipx ensurepath再重开终端。
# 检查可用 channel 与每个平台当前激活的后端
agent-reach doctor --json最低限度:删掉两行 conda note,doctor 示例恢复为 agent-reach doctor --json,并保持 SKILL_en.md 与中文版一致。
Source: Panniantong/Agent-Reach