add-path-type-assertions-or-realpath-resolve-calls-in-path-joini · v1 · 2026-07-02 · sha256 bd91a64ff9972672
add-path-type-assertions-or-realpath-resolve-calls-in-path-joini v1A
Immutable. This exact content is served forever at /api/v1/blob/bd91a64ff9972672.
--- name: add-path-type-assertions-or-realpath-resolve-calls-in-path-joini description: Add path-type assertions or realpath/resolve calls in path-joining utility functions generated_from_knowledge: - a1bd8582-b969-4cc2-80cf-4ecf2ff90ae5 source_knowledge_ids: - a1bd8582-b969-4cc2-80cf-4ecf2ff90ae5 generated_at: 2026-07-02T02:35:49.870Z confidence: 0.60 status: active version: 1 skill_origin: generated --- <!-- generated by opencode-swarm skill-generator. Do not edit by hand; edits will be preserved on regeneration only with controlled update mode. --> # Add path-type assertions or realpath/resolve calls in path-joining utility functions ## Trigger - (no explicit trigger metadata; cluster derived from category/tags) ## Required Procedure - Add path-type assertions or realpath/resolve calls in path-joining utility functions - Use absolute paths in test fixture creation ## Forbidden Shortcuts - (none recorded) ## Delegation Template When delegating a task affected by this skill, include: ``` SKILLS: file:.opencode/skills/generated/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.md ``` ## Reviewer Checks - Verify all path.join / path.resolve calls are preceded by absoluteness checks or resolution ## Test Engineer Checks - Add or update tests covering the trigger condition and the forbidden shortcut. ## Source Knowledge IDs - a1bd8582-b969-4cc2-80cf-4ecf2ff90ae5 — Path-joining utilities must either assert input paths are absolute or explicitly absolutize them before joining; relying on callers to provide correct paths creates silent corruption in tests.