Apple Container Test Runner
RustPython/RustPython
Runs RustPython tests inside a Linux container built with Apple's container CLI, so macOS users can compare Linux results with their local ones.
Critical patterns for cross-platform path handling in this VS Code extension.
$ npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install microsoft/vscode-python-environments cross-platform-paths --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/microsoft/vscode-python-environments.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/cross-platform-paths .claude/skills/cross-platform-paths && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cross-platform-paths" agent skill from https://github.com/microsoft/vscode-python-environments/tree/main/.github/skills/cross-platform-paths into .claude/skills/cross-platform-paths/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-platform-paths", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/microsoft/vscode-python-environments/tree/main/.github/skills/cross-platform-pathsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install microsoft/vscode-python-environments cross-platform-paths --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-python-environments.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/cross-platform-paths .agents/skills/cross-platform-paths && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cross-platform-paths" agent skill from https://github.com/microsoft/vscode-python-environments/tree/main/.github/skills/cross-platform-paths into .agents/skills/cross-platform-paths/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-platform-paths", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install microsoft/vscode-python-environments cross-platform-paths --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-python-environments.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/cross-platform-paths .cursor/skills/cross-platform-paths && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cross-platform-paths" agent skill from https://github.com/microsoft/vscode-python-environments/tree/main/.github/skills/cross-platform-paths into .cursor/skills/cross-platform-paths/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-platform-paths", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/microsoft/vscode-python-environments.git --path .github/skills/cross-platform-paths--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install microsoft/vscode-python-environments cross-platform-paths --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-python-environments.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/cross-platform-paths .gemini/skills/cross-platform-paths && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cross-platform-paths" agent skill from https://github.com/microsoft/vscode-python-environments/tree/main/.github/skills/cross-platform-paths into .gemini/skills/cross-platform-paths/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-platform-paths", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install microsoft/vscode-python-environments cross-platform-pathsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/microsoft/vscode-python-environments.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/cross-platform-paths .github/skills/cross-platform-paths && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cross-platform-paths" agent skill from https://github.com/microsoft/vscode-python-environments/tree/main/.github/skills/cross-platform-paths into .github/skills/cross-platform-paths/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-platform-paths", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install microsoft/vscode-python-environments cross-platform-paths --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/vscode-python-environments.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/cross-platform-paths .opencode/skills/cross-platform-paths && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cross-platform-paths" agent skill from https://github.com/microsoft/vscode-python-environments/tree/main/.github/skills/cross-platform-paths into .opencode/skills/cross-platform-paths/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-platform-paths", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cross-platform-pathsCritical patterns for cross-platform path handling in this VS Code extension.
Cross Platform Paths is an agent skill from microsoft/vscode-python-environments, published by the product's own GitHub organization. Critical patterns for cross-platform path handling in this VS Code extension. Windows vs POSIX path bugs are the 1 source of issues. Use this skill when reviewing or writing path-related code.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA. It works with Visual Studio Code, Linux, macOS and Bash. The repository describes itself as: VS Code extension for Python environment and package management. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 4faeedf. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cross Platform Paths loads about 1.5k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 226 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from microsoft/vscode-python-environments at commit 4faeedf, republished under its MIT licence (© microsoft). 226 words, ~1,495 tokens.
.claude/skills/cross-platform-paths/SKILL.md (or your agent's skills folder).CRITICAL: This extension runs on Windows, macOS, and Linux. Path bugs are the #1 source of issues.
/// ❌ WRONG: POSIX-style path concatenation
const envPath = homeDir + '/.venv/bin/python';
// ✅ RIGHT: Use path.join()
const envPath = path.join(homeDir, '.venv', 'bin', 'python');// ❌ WRONG: path.normalize keeps relative paths relative on Windows
const normalized = path.normalize(fsPath);
// path.normalize('\test') → '\test' (still relative!)
// ✅ RIGHT: path.resolve adds drive letter on Windows
const normalized = path.resolve(fsPath);
// path.resolve('\test') → 'C:\test' (absolute!)
// When comparing paths, use resolve() on BOTH sides:
const pathA = path.resolve(fsPath);
const pathB = path.resolve(e.environmentPath.fsPath);
return pathA === pathB;// ❌ WRONG: Raw string comparison
if (filePath === otherPath) {
}
// ✅ RIGHT: Compare fsPath to fsPath
import { Uri } from 'vscode';
const fsPathA = Uri.file(pathA).fsPath;
const fsPathB = Uri.file(pathB).fsPath;
if (fsPathA === fsPathB) {
}| Issue | Details |
|---|---|
| Drive letters | Paths start with C:\, D:\, etc. |
| Backslashes | Separator is \, not / |
| Case insensitivity | C:\Test equals c:\test |
| Long paths | Paths >260 chars may fail |
| Mapped drives | Z:\ may not be accessible |
| pyenv-win | Uses pyenv.bat, not pyenv or pyenv.exe |
| Poetry cache | %LOCALAPPDATA%\pypoetry\Cache\virtualenvs |
| UNC paths | \\server\share\ format |
| Issue | Details |
|---|---|
| Case sensitivity | Depends on filesystem (usually insensitive) |
| Homebrew symlinks | Complex symlink chains in /opt/homebrew/ |
| Poetry cache | ~/Library/Caches/pypoetry/virtualenvs |
| XCode Python | Different from Command Line Tools Python |
| Issue | Details |
|---|---|
| Case sensitivity | Paths ARE case-sensitive |
| /bin symlinks | /bin may be symlink to /usr/bin |
| XDG directories | ~/.local/share/virtualenvs for pipenv |
| Poetry cache | ~/.cache/pypoetry/virtualenvs |
| Hidden files | Dot-prefixed files are hidden |
import * as os from 'os';
import * as path from 'path';
// Home directory
const home = os.homedir(); // Works cross-platform
// Construct paths correctly
const venvPath = path.join(home, '.venv', 'bin', 'python');
// Windows: C:\Users\name\.venv\bin\python
// macOS: /Users/name/.venv/bin/python
// Linux: /home/name/.venv/bin/pythonconst isWindows = process.platform === 'win32';
// Python executable
const pythonExe = isWindows ? 'python.exe' : 'python';
// Activate script
const activateScript = isWindows
? path.join(venvPath, 'Scripts', 'activate.bat')
: path.join(venvPath, 'bin', 'activate');
// pyenv command
const pyenvCmd = isWindows ? 'pyenv.bat' : 'pyenv';import { normalizePath } from './common/utils/pathUtils';
// Use normalizePath() for map keys and comparisons
const key = normalizePath(filePath);
cache.set(key, value);
// But preserve original for user display
traceLog(`Discovered: ${filePath}`); // Keep original// ❌ WRONG: Assuming Uri
function process(locator: Uri | string) {
const fsPath = locator.fsPath; // Crashes if string!
}
// ✅ RIGHT: Handle both types
function process(locator: Uri | string) {
const fsPath = locator instanceof Uri ? locator.fsPath : locator;
// Now normalize for comparisons
const normalized = path.resolve(fsPath);
}import * as fs from 'fs';
import * as path from 'path';
// Check file exists (cross-platform)
const configPath = path.join(projectRoot, 'pyproject.toml');
if (fs.existsSync(configPath)) {
// File exists
}
// Use async version when possible
import { promises as fsPromises } from 'fs';
try {
await fsPromises.access(configPath);
// File exists
} catch {
// File does not exist
}// ❌ WRONG: Unescaped paths in shell commands
terminal.sendText(`python ${filePath}`);
// D:\path\file.py becomes "D:pathfile.py" in some shells!
// ✅ RIGHT: Quote paths
terminal.sendText(`python "${filePath}"`);
// For Git Bash on Windows, escape backslashes
const shellPath = isGitBash ? filePath.replace(/\\/g, '/') : filePath;When testing path-related code:
Pay special attention to:
C:\Program Files\Python~/проекты/$, &, (, )© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/cross-platform-paths of microsoft/vscode-python-environments.
Open the folder on GitHubat commit 4faeedf
Cross Platform Paths next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cross Platform Paths this skillmicrosoft/vscode-python-environments | 141 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Apple Container Test RunnerRustPython/RustPython | 22k | — | ~467 | Automated safety check: Pass | MIT | |
| Adu Motion Videoadunext/adu-motion-video | 166 | — | ~2.3k | Automated safety check: Pass | MIT | |
| UvBiFangKNT/mtga | 1.2k | — | ~541 | Automated safety check: Pass | AGPL-3.0 | |
| Cross Platform Guardianwcygan/dotfiles | 196 | — | ~514 | Automated safety check: Pass | None | |
| Code Change Verificationopenai/openai-agents-python | 30k | — | ~1.4k | Automated safety check: Pass | MIT |
RustPython/RustPython
Runs RustPython tests inside a Linux container built with Apple's container CLI, so macOS users can compare Linux results with their local ones.
adunext/adu-motion-video
使用完整动画工程包,把新口播、文案与自有素材制作成可编辑动效视频和 60fps MP4;也支持轻量 TPL、手绘续接、字幕与改旧片。支持 Windows、macOS、Linux,以及 Codex、Claude Code、豆包、DeepSeek、WorkBuddy 等可读写文件并运行命令的助手。
BiFangKNT/mtga
在 Windows/macOS/Linux 上使用 uv 执行 Python 运行、依赖同步、锁文件管理、Python 版本管理与工具命令(uv run、uv sync、uv lock、uv python、uv tool)。当任务涉及“用 uv 运行脚本/命令”“临时依赖(--with)”“锁文件一致性(--locked/--frozen)”“跨平台…
wcygan/dotfiles
Protect macOS, Ubuntu, Fedora, and Linux/WSL compatibility in this dotfiles repository.
openai/openai-agents-python
Run the required final formatting, lint, type, and test checks after eligible SDK changes pass review.
xiaods/k8e
Run a goal end to end inside an isolated K8E sandbox pod (gVisor / Kata / Firecracker) instead of on the host: exec bash / Python / Node / TypeScript, install packages, move files in and out, reuse…
microsoft/vscode-python-environments
Environment manager-specific discovery patterns and known issues.
microsoft/vscode-python-environments
Run E2E tests to verify complete user workflows like environment discovery, creation, and selection.
microsoft/vscode-python-environments
Run integration tests to verify that extension components work together correctly.
microsoft/vscode-python-environments
Run smoke tests to verify extension functionality in a real VS Code environment.
microsoft/vscode-python-environments
Debug a failing test using an iterative logging approach, then clean up and document the learning.
microsoft/vscode-python-environments
Generate a codebase health snapshot for technical debt tracking and planning.
Works with
Categories
Critical patterns for cross-platform path handling in this VS Code extension. Cross Platform Paths is an agent skill from microsoft/vscode-python-environments, published by the product's own GitHub organization. Critical patterns for cross-platform path handling in this VS Code extension.
Cross Platform Paths fits situations like: writing path-related code.
Run `npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a claude-code`. Or copy the skill folder (.github/skills/cross-platform-paths in microsoft/vscode-python-environments) into .claude/skills/cross-platform-paths in your project. Claude Code loads it when a task matches its description.
Run `npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a codex`. Or copy the skill folder (.github/skills/cross-platform-paths in microsoft/vscode-python-environments) into .agents/skills/cross-platform-paths in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/vscode-python-environments --skill cross-platform-paths -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cross-platform-paths, .gemini/skills/cross-platform-paths, .github/skills/cross-platform-paths and .opencode/skills/cross-platform-paths in your project.
SKILL.md names no scripts, command-line tools or credentials: Cross Platform Paths is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cross Platform Paths is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cross Platform Paths: Apple Container Test Runner (RustPython/RustPython, 22k stars), Adu Motion Video (adunext/adu-motion-video, 166 stars), Uv (BiFangKNT/mtga, 1.2k stars) and Cross Platform Guardian (wcygan/dotfiles, 196 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
microsoft (a GitHub organization, an official publisher) maintains it in microsoft/vscode-python-environments, which has 141 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 7, 2026.
Source: microsoft/vscode-python-environments on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.