Install
openclaw skills install @yehuzi2026/magneto-skill-master名称:万磁王技能万事通 描述:(同 SKILL.md description) 版本:v1.0.0 标签:技能安装、标书、招投标、自动化、WorkBuddy 武汉宏刚行科技发展有限公司出品
openclaw skills install @yehuzi2026/magneto-skill-master本地中文触发名:
万磁王技能万事通;开源版 Slug:magneto-skill-master。
从任意 Git 仓库把外部技能安全、干净地装到本机,并让它能用。本技能沉淀了"下载 → 审计 → 适配 → 安装 → 装依赖 → 验证"的完整流水线,专为 WorkBuddy on Windows 环境调优,路径可移植(不写死用户名)。
bid-writer-pro、bidwriter、bid-doc、tender-writer 即按此流程安装。skills/<name>/、<repo>/<name>/ 下)。git clone --depth 1 <url>(Gitee 同样支持 git clone)。WorkBuddy/tmp_xxx),不要直接克隆进技能目录。SKILL.md,并查看其顶层结构(scripts / references / templates / assets)。SKILL.md、scripts/、references/ 的高危模式(命令见 references/audit_patterns.md)。skills-security-check 技能不可用时,改用 references/audit_patterns.md 的 grep 命令手动审计。agent_created: true;name / description 含中文触发词。install.bat / run_script.bat / .venv/Scripts/python.exe):
install.bat、install.py(会创建本地 .venv 或向全局 pip 安装,污染系统)。run_script.sh 包装器(模板见 references/run_script_template.sh),统一调用受管 venv 的 python。SKILL.md 内所有 run_script.bat 替换为 bash run_script.sh ,并改写"脚本调用方式"段落,说明受管 venv 路径。s.count("\uufffd") 并精确替换(示例见 references/audit_patterns.md)。~/.workbuddy/skills/<name>/(用户级,跨项目复用)。SKILL.md 存在且 frontmatter 正确(含 agent_created: true)。$HOME 推导并转原生 Windows 路径):
VENV_PY_POSIX="$HOME/.workbuddy/binaries/python/envs/default/Scripts/python.exe"
# Git Bash 下用 cygpath 转成 Windows 风格,避免 /c/... 被原生 Python 忽略
command -v cygpath >/dev/null 2>&1 && VENV_PY="$(cygpath -w -a "$VENV_PY_POSIX")" || VENV_PY="$VENV_PY_POSIX"
/c/Users/... 会被原生 Windows Python 忽略(exit 0 但不建目录),必须用转换后的 Windows 风格路径。pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
若在本机 WorkBuddy 沙箱内执行,需关闭沙箱并加 --no-cache-dir(沙箱内 safe-delete/回收站不可用会导致安装失败)。py_compile scripts/*.py 全部通过bash run_script.sh <某脚本> --help 做端到端冒烟测试cygpath -w -a 转换);/c/... 会被原生 Python 忽略。--no-cache-dir,否则沙箱内失败。cygpath -w -a 把脚本目录转成原生 Windows 路径,避免 Git Bash 的 MSYS 把 /c/... 参数误转成 C:\c\...。.docx 排版回退。完成后告知:技能名、来源仓库、安装位置、能力简介、触发方式、依赖状态、审计结论(P2/需确认项)、以及使用提示(例如"在对话里说:帮我根据这份招标文件写投标书")。