skillfed

Path Locator Checker Yashu

This skill detects JavaScript code patterns that rely on current file location (__dirname, import.meta.url, process.cwd()) to locate resources—a pattern that breaks when bundlers merge files or change output structure. It scans a skill's scripts/ directory, reports findings, and offers repairs that anchor paths to the skill root directory instead.

Path Locator Checker Yashu scans JavaScript files for path-location dependencies that break after bundling.

AI-generated summary based on this skill's SKILL.md

8 3 unlicensed — metadata only updated by steelan9199

Install

steelan9199/wechat-publisher/path-locator-checker-yashu · repository language: JavaScript

git clone https://github.com/steelan9199/wechat-publisher
cp -r wechat-publisher ~/.claude/skills/path-locator-checker-yashu

generated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub

npx skillfed install steelan9199/wechat-publisher/path-locator-checker-yashu

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What does Path Locator Checker Yashu do?

Path Locator Checker Yashu detects JavaScript code patterns that rely on current file location (__dirname, import.meta.url, process.cwd()) to locate resources. It scans a skill's scripts/ directory, reports findings, and offers repairs that anchor paths to the skill root directory instead, preventing breakage when bundlers merge files or change output structure.

How do I validate directory paths with this tool?

Path Locator Checker Yashu validates directory paths by scanning your skill's scripts/ directory for problematic location-dependent patterns. It checks for __dirname, import.meta.url, and process.cwd() usage, then verifies path correctness and accessibility before suggesting repairs that anchor paths to your skill root.

Can Path Locator Checker Yashu check if a path exists?

Yes. Path Locator Checker Yashu checks if a file or path exists before processing by examining your JavaScript code for location-dependent patterns. It verifies path correctness and accessibility, ensuring your resources remain locatable even after bundling or directory restructuring.

How does this tool locate files in the system?

Path Locator Checker Yashu locates files and directories within the filesystem by scanning scripts/ for patterns like __dirname, import.meta.url, and process.cwd(). Rather than relying on current file location, it anchors paths to the skill root directory, making file discovery robust across bundling and deployment scenarios.

What path validation does Path Locator Checker Yashu perform?

Path Locator Checker Yashu performs comprehensive path validation by detecting JavaScript patterns that break under bundling, verifying path correctness and accessibility, and offering repairs. It ensures your skill's resource paths remain valid and functional regardless of how bundlers reorganize your code structure.

Related skills

Tags

file-system-navigation path-validation filesystem-utility location-verification directory-lookup