windows-safe-grep

Installation
SKILL.md

Windows-Safe Grep Skill

Problem

On Windows, paths containing backslash-space sequences (e.g., D:\Projects\Vibe Code\isometricid) can cause ripgrep to fail because:

  • The \n in isometricid is interpreted as a newline character
  • Combined with the following ul, this creates a reference to the reserved Windows device name nul
  • Error: rg: D:\Projects\Vibe Code\isometricid\nul: Incorrect function. (os error 1)

Solution

Use bash commands with proper path quoting to work around this Windows-specific issue:

Safe Grep Command Pattern

rg --fixed-strings "SEARCH_TERM" "/d/Projects/Vibe Code/isometricid"
Related skills

More from julianromli/opencode-template

Installs
5
GitHub Stars
140
First Seen
Feb 4, 2026