feat: 支持 Agent 通用路径与 uv 隔离运行 - #8
Open
Bluezeamer wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动摘要
SKILL.md调整为 Agent 中立:脚本统一相对于当前 skill 根目录解析,不再硬编码~/.claude/skills/ssh-skill。uv run环境执行,无需全局运行pip install。uv run "<skill-root>/scripts/..."调用脚本。改动动机
当前 SSH 核心实现本身并不依赖某个特定的编程 Agent,但 skill 指令和示例固定使用 Claude Code 的安装路径,导致相同脚本无法可靠地被 Codex 或其他支持 Agent Skills 的实现复用。
同时,原文档要求直接安装 Paramiko 到宿主 Python 环境。改用 PEP 723 后,
uv会在首次运行时创建隔离环境并缓存依赖,不会修改系统 Python 环境。改动范围
本 PR 不修改以下行为:
本次只修改 Agent 集成方式、脚本调用文档、内嵌依赖元数据,以及与依赖缺失相关的错误提示。
验证结果
SKILL.md通过 skill 格式校验器。uv run <脚本> --help检查。ast.parse语法解析。python3仍无法导入 Paramiko,确认依赖未污染全局环境。git diff --check通过。运行依赖
uv首次执行
uv run时会下载并缓存 Paramiko 及其传递依赖,后续执行会复用隔离缓存。