← スキル一覧に戻る

windows-safe-grep
by julianromli
windows-safe-grepは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 99🍴 18📅 2026年1月23日
SKILL.md
name: windows-safe-grep description: Use when grep/ripgrep fails on Windows due to paths with backslash-space sequences creating malformed paths like 'nul' from \n+ul
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
\ninisometricidis interpreted as a newline character - Combined with the following
ul, this creates a reference to the reserved Windows device namenul - 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"
Or use forward slashes and proper quoting:
rg --fixed-strings "SEARCH_TERM" "$(cygpath -u "D:\Projects\Vibe Code\isometricid")"
Alternative: Use find + grep
find "/d/Projects/Vibe Code/isometricid" -type f \( -name "*.ts" -o -name "*.js" -o -name "*.tsx" -o -name "*.jsx" \) -exec grep -H --line-number "SEARCH_TERM" {} \;
Usage
When grep fails with "Incorrect function (os error 1)" on Windows:
- Use this skill
- Replace the path with forward slashes:
D:\Projects\Vibe Code\isometricid→/d/Projects/Vibe Code/isometricid - Or use the bash command pattern with proper quoting
Example
rg --fixed-strings "polar_product_id" "/d/Projects/Vibe Code/isometricid/src"
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です