paths
OfficialUse vscode-uri paths for cross-platform TS code.
Authorforcedotcom
Version1.0.0
Installs0
System Documentation
What problem does it solve?
vscode path handling can become inconsistent across platforms when mixing node:path utilities with filesystem manipulations. This skill guides you to prefer vscode-uri URIs and the Utils API to normalize path handling in TypeScript projects.
Core Features & Use Cases
- Prefer vscode-uri Utils for path operations (join, basename, dirname, extname) over node:path to ensure cross-platform consistency.
- Use URI↔path conversions via FsService: toUri(filePath) and uriToPath(uri) for seamless interop between URIs and paths.
- Raw path to URI: use URI.file(path) or toUri for memfs in web contexts to maintain consistent access patterns.
- Align /src imports and path joins with vscode-uri-based utilities to reduce platform-specific bugs and improve code portability.
Quick Start
Configure your project to replace node:path with vscode-uri Utils for all /src path operations.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: paths Download link: https://github.com/forcedotcom/salesforcedx-vscode/archive/main.zip#paths Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.