Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tomevault-io/tomes --skill file-ops명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | file-ops |
| description | > Use when this capability is needed. |
Before running any file system command, detect the user's OS and load the matching reference for platform-specific syntax:
references/linux.md (GNU coreutils, grep, find, ripgrep, fd)references/macos.md (BSD find/stat/sed, Spotlight, Homebrew tools)references/windows.md (PowerShell: Get-ChildItem, Select-String, Get-Content)OS detection:
uname -s 2>/dev/null || echo Windows
| Syntax | Meaning |
|---|---|
. | Current working directory |
.. | Parent directory |
./src | src/ relative to cwd |
../../config | Two levels up, then into config/ |
/home/user/project | Absolute path (Unix) |
C:\Users\user\project | Absolute path (Windows) |
~/Documents | Home directory shortcut (Unix shells expand ~) |
Paths containing spaces, parentheses, or special characters must be quoted:
"./my project/src" — double quotes (variables expand inside)'./my project/src' — single quotes (literal, no expansion)./my\ project/src — backslash escaping per characterpath/to/dir — refers to the directory itselfpath/to/dir/ — refers to the contents (relevant for rsync, cp -r, tab completion)Globs are shell-level filename matching patterns. They do NOT use regex syntax.
| Pattern | Matches | Does not match |
|---|---|---|
* | any sequence of characters (except /) | nothing across directories |
? | exactly one character | empty string |
[abc] | one of a, b, or c | d, ab |
[a-z] | one lowercase letter | A, 1 |
[!abc] or [^abc] | any char except a, b, c | a |
** | any depth of directories (in tools that support it) | — |
| Task | Pattern |
|---|---|
| All Rust source files | *.rs |
| All TOML configs | *.toml |
| All test files | *_test.* or test_*.* |
| All hidden files | .* |
All files in src/ subtree | src/**/* (requires ** support) |
| Images by extension | *.{png,jpg,svg} (brace expansion, bash/zsh) |
| Single-char extension | *.? |
Files starting with config | config* |
| Logs with date suffix | app-2025-??-??.log |
{a,b,c} expands to multiple alternatives before glob matching:
*.{rs,toml} expands to *.rs *.toml{src,tests}/**/*.rs expands to src/**/*.rs tests/**/*.rsfile.{bak,orig,tmp} expands to file.bak file.orig file.tmpRegex is used for searching inside file contents (grep, ripgrep, Select-String). Not to be confused with globs.
| Pattern | Matches |
|---|---|
. | any single character |
\d | digit [0-9] (PCRE/ripgrep; use [0-9] in POSIX) |
\w | word character [a-zA-Z0-9_] |
\s | whitespace (space, tab, newline) |
\b | word boundary |
^ | start of line |
$ | end of line |
[abc] | character class |
[^abc] | negated character class |
(a|b) | alternation |
(...) | grouping |
| Pattern | Meaning |
|---|---|
* | zero or more of preceding |
+ | one or more of preceding |
? | zero or one of preceding |
{3} | exactly 3 |
{2,5} | 2 to 5 |
{3,} | 3 or more |
| Task | Pattern |
|---|---|
| Function definitions (Rust) | fn\s+\w+\( |
| Function definitions (Python) | def\s+\w+\( |
| Function definitions (JS/TS) | (function|const|let)\s+\w+\s*[=(] |
| Import/use statements | ^(use|import|from)\s+ |
| TODO/FIXME/HACK markers | (TODO|FIXME|HACK) |
| IP addresses (v4, approximate) | \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} |
| Email addresses (simple) | [\w.+-]+@[\w-]+\.[\w.]+ |
| URLs | https?://[^\s"'>]+ |
| Struct/class definitions | (struct|class|interface)\s+\w+ |
| Error/panic patterns | (error|Error|panic|PANIC|unwrap\(\)) |
| Environment variables | [A-Z_]{2,}=[^\s]+ |
| Semantic version | \d+\.\d+\.\d+ |
| Lines with trailing whitespace | \s+$ |
| Empty lines | ^$ |
| Lines longer than 100 chars | .{101,} |
| Hex color codes | #[0-9a-fA-F]{3,8} |
| SQL-like queries | (SELECT|INSERT|UPDATE|DELETE)\s+ |
| JSON keys | "[^"]+"\s*: |
To search for literal ., *, +, ?, (, ), [, ], {, }, |, ^, $, \ — prefix with backslash:
fn() literally: fn\(\)[TODO] literally: \[TODO\]*.rs literally: \*\.rs$HOME literally: \$HOMECommon directories that should be excluded from search to avoid noise and improve performance:
| Directory | Context |
|---|---|
target/ | Rust build artifacts |
node_modules/ | JavaScript dependencies |
.git/ | Git internal data |
__pycache__/ | Python bytecode cache |
.venv/, venv/ | Python virtual environments |
build/, dist/ | Generic build output |
.next/, .nuxt/ | Framework build caches |
vendor/ | Vendored dependencies (Go, PHP, Ruby) |
.idea/, .vscode/ | IDE configuration |
coverage/, .nyc_output/ | Test coverage reports |
head, --max-count, or depth flags.When the user says "find all files containing X", combine file finding with content search:
-t rust, --include '*.py') to narrow scope.Cargo.toml, package.json, pyproject.toml) to identify the tech stack.diff -u (Unix) or Compare-Object (PowerShell) from the OS reference.Show files and directories at a given path with details (permissions, size, timestamps). Support recursive listing with depth limits.
Locate files by exact name, extension, glob/regex pattern. Filter by modification time, size, type (file/directory). Exclude build artifacts and VCS directories.
Find lines matching a pattern across files. Support case-insensitive search, regex, context lines, file type filtering, directory exclusions, word-boundary matching, inverted matching, and match counting.
Display full file or specific portions: first/last N lines, line range, with line numbers.
Determine file type/encoding, line/word/byte counts, size, disk usage. Find largest files, count files by extension.
Show differences between two files in side-by-side or unified (patch) format.
View and modify file permissions. Find files by owner or permission bits.
Compute file hashes (SHA-256, MD5) for integrity verification.
Source: bug-ops/zeph — distributed by TomeVault.