SkilldexAll articles

Keep skill asset paths portable

Test exact path spelling, package-relative resolution, and clean extraction across supported systems.

A relative path can resolve on a developer’s machine even if its capitalization differs from the archived file name. A script can also work when started from the author’s current directory and break in the host that launches it from a different location.

Resolve from a stable package root

A helper should locate its shipped assets using a well-defined package directory rather than relying on the caller’s working directory. Document paths in the form the host expects. Resolve them before reading and check that the resulting locations belong to the intended package or an authorized input directory.

Check actual file names

Compare every referenced asset to the archive with exact case. Avoid relying on normalization differences between common filesystems when choosing names. Test a clean extraction outside the repository so incidental source files cannot make an incomplete package succeed.

Cover cross-platform surprises

Verify names with spaces where supported, line endings, and launch commands for each documented environment. When a runtime cannot support a platform, fail with a useful reason rather than treating an invalid path as an empty template. Keep the fixture small enough that it runs for every release.

Sources