| 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 |
| triggers | ["path.join","realpath","fs path"] |
| generated_from_knowledge | [] |
| source_knowledge_ids | [] |
| generated_at | 2026-07-02T02:35:49.870Z |
| confidence | 0.6 |
| status | active |
| version | 2 |
| skill_origin | generated |
Add path-type assertions or realpath/resolve calls in path-joining utility functions
Trigger
- path.join
- realpath
- fs path
Required Procedure
- Add path-type assertions or realpath/resolve calls in path-joining utility functions
- Use absolute paths in test fixture creation
Forbidden Shortcuts
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.