Skip to content

docs(skill): place PTOAS venv inside the checkout - #1311

Open
mouliangyu wants to merge 2 commits into
mainfrom
docs/skill-venv-inside-workspace
Open

docs(skill): place PTOAS venv inside the checkout#1311
mouliangyu wants to merge 2 commits into
mainfrom
docs/skill-venv-inside-workspace

Conversation

@mouliangyu

Copy link
Copy Markdown
Collaborator

变更内容

将 PTOAS 的隔离虚拟环境(venv)位置从父目录$PTO_SOURCE_DIR/../.venv)统一为工作区内$PTO_SOURCE_DIR/.venv),使工作区自包含,避免误用全局 python / ptoas / conda 环境。

背景

ptoas-development skill 之前允许在 checkout 父目录创建 venv(README standard layout),而 ptoas-workspace-manager 创建的 worktree 一直是 venv 在内部。两种布局并存导致 agent 在探测时可能被旧缓存/全局环境带偏。本次统一为工作区内布局,与 manager 一致。

改动文件

  • .agents/skills/ptoas-development/SKILL.md:workspace contract 的 VENV_DIR 改为 $PTO_SOURCE_DIR/.venv;probe 脚本移除父目录 fallback;initialize 段 venv 创建位置改为工作区内
  • README.md / README_en.md:venv 创建与激活路径同步更新为 $PTO_SOURCE_DIR/.venv

验证

  • quick_validate.py .agents/skills/ptoas-developmentSkill is valid!

Move the isolated venv from the parent directory to
/.venv so the workspace stays self-contained and
global python/ptoas/conda environments are never used. Update the
ptoas-development skill contract, probe, and initialize snippets,
and sync the README instructions (zh/en).
The venv now lives at /.venv, so section 3.0 must
clone PTOAS before ; otherwise the destination
directory does not exist yet. Move the clone from section 3.3 to
section 3.0 and drop the now-duplicate clone step (zh/en).
@mouliangyu
mouliangyu marked this pull request as ready for review August 20, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant