cross-platform-paths Skill
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. Published by microsoft in vscode-python-environments.
Decision snapshot
Is this a fit?
Testing, Writing, Includes SKILL.md, Reusable instructions
Compatibility not yet detected.
Permission behavior not yet detected.
Copy skill directory
2 months ago · MIT license
No specific cautions were detected. Review the source and requested permissions before installing.
What is cross-platform-paths Skill?
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. Published by microsoft in vscode-python-environments. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.
Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement. See how SkillIndex evaluates profiles.
Key capabilities
- Includes SKILL.md support
- Reusable instructions support
- Testing
- Writing
- Testing use cases
- Writing use cases
Declared skill metadata
- Source file: .github/skills/cross-platform-paths/SKILL.md
These fields retain source and confidence evidence from the indexed SKILL.md.
Compatibility and setup
- Install or run with Copy skill directory
When to use cross-platform-paths Skill
- Use it for testing.
- Use it for writing.
Built with
Editorial notes
Source
- Creator: microsoft
- Repository: microsoft/vscode-python-environments
- Skill file: .github/skills/cross-platform-paths/SKILL.md
What it does
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.
Skill instructions
Cross-Platform Path Handling CRITICAL: This extension runs on Windows, macOS, and Linux. Path bugs are the 1 source of issues. Core Rules Rule 1: Never Concatenate Paths with / typescript // ❌ WRONG: POSIX-style path concatenation const envPath = homeDir + '/.venv/bin/python'; // ✅ RIGHT: Use path.join() const envPath = path.join(homeDir, '.venv', 'bin', 'python'); Rule 2: Use path.resolve() for Comparisons, Not path.normalize() typescript // ❌ 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; Rule 3: Use Uri.file().fsPath for VS Code Paths typescript // ❌ WRONG: Raw str
Verified compatibility and discovery
Frequently asked questions
What is cross-platform-paths?
cross-platform-paths is a open-source AI agent skill with Copy skill directory. 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.
Who is cross-platform-paths best for?
cross-platform-paths is best for reusing agent instructions, scripts, and references, testing workflows, writing workflows.
How do I install cross-platform-paths?
Install or run cross-platform-paths using Copy skill directory. Check cross-platform-paths for the latest setup command.
Is cross-platform-paths actively maintained?
cross-platform-paths may need a closer maintenance check before production use.
Project health auto-fetched from the source repository.
Maintain this resource?
Review this source-backed profile, send a correction with evidence, or link to it from your documentation. Claims verify your relationship to the project; profile facts still require source evidence and editorial review.