Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ZaxbyHub/opencode-swarm --skill add-path-type-assertions-or-realpath-resolve-calls-in-path-joini -a claude-code
Open on GitHub

What 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.resolve calls and add an absoluteness check.
  • Update the tests for realpath and 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-code

2Manually: put the files in place

~/.claude/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/add-path-type-assertions-or-realpath-resolve-calls-in-path-joini/

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

Similar skills

All skills for Code review and refactoring →

From the same set121

The whole set →
swarm-implement Adapts the canonical opencode-swarm implementation workflow for multi-file features, refactoring, and structured validation. CX Codex +1 ★ 539repo stars opt-in-tool-registration The opt-in-tool-registration skill sets a pattern for registering opt-in tools through a separate map and conditional merging in agents/index.ts. Use it when adding a feature controlled by a flag. CX Codex +1 ★ 539repo stars ensure-all-tests-pass-after-code-changes ensure-all-tests-pass-after-code-changes — a skill that keeps the agent honest about tests: run them after an edit, and don't hand a failing branch to review. Test updates ship with the code. CX Codex +1 ★ 539repo stars codebase-review-swarm codebase-review-swarm executes quote-grounded codebase audits across security, QA, and performance. Suitable for full-repository assessments where no source files may be touched. CX Codex +1 ★ 539repo stars run-failing-tests-immediately-after-test-gate-failure run-failing-tests-immediately-after-test-gate-failure is a Claude Code skill that makes the agent rerun failing tests when test_gate fails and repair the root cause before claiming the task is done. CX Codex +1 ★ 539repo stars run-tests-on-the-unmodified-codebase-before-starting-to-establis run-tests-on-the-unmodified-codebase-before-starting-to-establis is a Claude Code skill that requires running tests on untouched code before edits, recording failures to distinguish them from new regressions. CX Codex +1 ★ 539repo stars engineering-conventions The engineering-conventions skill sets a workflow for changes that could affect opencode-swarm’s engineering invariants. Use it when editing architecture, tests, or session state. CX Codex +1 ★ 539repo stars include-test-files-that-assert-on-behavior-being-changed-in-decl include-test-files-that-assert-on-behavior-being-changed-in-decl is a Claude Code skill that puts tests for changed behaviour in scope, so an agent fixes code alongside its checks. CX Codex +1 ★ 539repo stars

Project sponsors

Companies that keep this analytics open