add-path-type-assertions-or-realpath-resolve-calls-in-path-joini
add-path-type-assertions-or-realpath-resolve-calls-in-path-joini is a Claude Code skill that adds path-type checks or realpath/resolve calls to path-joining utilities. It activates around path.join, realpath, and fs path work.
MIT ★ 539 updated 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a claude-codeWhat add-path-type-assertions-or-realpath-resolve-calls-in-path-joini does
The skill adds path-type checks or realpath/resolve calls to utilities that join paths. It also checks path.join and path.resolve calls for a preceding absoluteness check or path resolution.
Test fixtures use absolute paths. The skill calls for tests that cover its trigger condition and the forbidden shortcut.
What it helps with
- add path-type checks to a path-joining utility
- use realpath or resolve in path utilities
- check path.join and path.resolve calls for absolute paths
- create test fixtures with absolute paths
Example prompts for the agent
- Add a path-type check to the utility that uses
path.join. - Check the
path.resolvecalls and add an absoluteness check. - Update the tests for
realpathand create fixtures with absolute paths.
How to install add-path-type-assertions-or-realpath-resolve-calls-in-path-joini
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a claude-code2Manually: put the files in place
~/.claude/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a codex2Manually: put the files in place
.agents/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a cursor2Manually: put the files in place
.cursor/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .opencode/skills/generated/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini2Manually: put the files in place
.github/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.md1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a gemini-cli2Platform CLI
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .opencode/skills/generated/add-path-type-assertions-or-realpath-resolve-calls-in-path-joiniManually: put the files in place
.devin/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about add-path-type-assertions-or-realpath-resolve-calls-in-path-joini
How do I install add-path-type-assertions-or-realpath-resolve-calls-in-path-joini in Claude Code?
Run npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a claude-code. The skill file is at ~/.claude/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.md.
What does add-path-type-assertions-or-realpath-resolve-calls-in-path-joini do?
It adds path-type checks or realpath/resolve calls to path-joining utilities. It also checks that path.join and path.resolve calls have an absoluteness check or resolution before them.
What tests does this skill call for?
Tests should cover the skill's trigger condition and the forbidden shortcut. Test fixtures should use absolute paths.
Source text
SKILL.md · MIT
--- 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 metadata: triggers: '["path.join","realpath","fs path"]' generated_from_knowledge: '[]' source_knowledge_ids: '[]' generated_at: "2026-07-02T02:35:49.870Z" confidence: "0.60" status: active version: "2" 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 - 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 - (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.
© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm