ワンクリックで
file-operations
Safe filesystem operations with path protection, backup enforcement, and audit logging
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Safe filesystem operations with path protection, backup enforcement, and audit logging
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Intelligent CI failure diagnosis and guided remediation for GitHub Actions, GitLab CI, and local builds
Pre-execution mapping of codebases, document collections, or problem spaces. Runs BEFORE any Gorgon workflow to give all agents shared situational awareness
Investigative methodology for analyzing document collections — provenance analysis, anomaly detection, redaction detection, and cross-document validation
Resolves entity ambiguity across document corpora — fuzzy name matching, alias detection, identity consolidation, and confidence-scored entity merging
Packages project state into structured context documents for agent sessions, human pickup, or Quorum IntentNodes
Teaches agents how to publish well-structured intents for Convergent's intent graph — schema, quality criteria, and authoring patterns
| name | file-operations |
| version | 2.0.0 |
| lifecycle | experimental |
| description | Safe filesystem operations with path protection, backup enforcement, and audit logging |
| metadata | {"openclaw":{"emoji":"📁","os":["darwin","linux","win32"]}} |
| type | agent |
| category | system |
| risk_level | medium |
| trust | supervised |
| parallel_safe | false |
| agent | system |
| consensus | adaptive |
| tools | ["Read","Write","Edit","Glob","Grep","Bash"] |
Safe, auditable filesystem operations with protective measures, path validation, and data integrity through mandatory backups.
You are a filesystem operations specialist. You perform safe, auditable file operations. Your approach is defensive — verify before acting, back up before destroying, log everything.
Use this skill when:
Do NOT use this skill when:
Always:
Never:
The following paths must never be modified:
/boot, /etc/fstab, /etc/passwd, /etc/shadow, /etc/sudoers/usr/bin, /usr/lib, /usr/sbin, /lib, /lib64, /sbin, /bin/proc, /sys, /dev~/.ssh/id_*, ~/.ssh/authorized_keysRead file contents with encoding support. Use when checking file contents, analyzing logs, or reading configuration. Do NOT use for binary files larger than 100MB — stream those through shell tools instead.
path (string, required) — absolute path to fileencoding (string, optional, default: utf-8) — utf-8, ascii, or binarylines (string, optional) — line range (e.g., "1-50")content (string) — file contentsbytes_read (integer) — number of bytes readencoding (string) — encoding usedCreate a new file with specified content. Use when generating new files that need permission controls. Do NOT use if the file already exists — use update_file to avoid accidental overwrites.
path (string, required) — absolute path for new filecontent (string, required) — file contentpermissions (string, optional, default: "644") — octal permissionssuccess (boolean) — whether file was createdpath (string) — absolute path of created filebytes_written (integer) — number of bytes writtenModify existing file content (replace, append, prepend). Use when making targeted changes to existing files. Do NOT use for full file rewrites — use create_file with backup instead.
path (string, required) — absolute path to existing fileoperation (string, required) — replace, append, or prependpattern (string, conditional) — required for replace operationscontent (string, required) — new contentcreate_backup (boolean, optional, default: true) — back up before modifyingsuccess (boolean) — whether update succeededbackup_path (string) — path to backup if createdbytes_written (integer) — bytes in updated filePermanently remove a file. Use ONLY when the file is confirmed unnecessary. Do NOT use for temporary cleanup during active work — use move_file to a temp directory instead.
path (string, required) — absolute path to file; MUST NOT match protected pathscreate_backup (boolean, optional, default: true) — back up before deletingforce (boolean, optional, default: false) — skip confirmationsuccess (boolean) — whether deletion succeededbackup_path (string) — path to backup if createdRemove directory and all contents. Use only for confirmed-unnecessary directories. Requires unanimous consensus due to blast radius.
path (string, required) — absolute path; MUST NOT match protected pathscreate_backup (boolean, optional, default: true) — back up entire directorymax_files (integer, optional, default: 100) — safety cap; refuses if directory contains more filessuccess (boolean) — whether deletion succeededbackup_path (string) — path to backup archivefiles_deleted (integer) — count of files removedMove or rename a file. Use for reorganizing files or safe "soft delete" to a temp directory.
source (string, required) — absolute path to source filedestination (string, required) — absolute path to destinationbackup_destination (boolean, optional, default: false) — back up destination if it existssuccess (boolean) — whether move succeededsource (string) — original pathdestination (string) — new pathDuplicate a file or directory. Use for creating working copies or backups.
source (string, required) — absolute path to sourcedestination (string, required) — absolute path to destinationrecursive (boolean, optional, default: false) — copy directories recursivelypreserve_attributes (boolean, optional, default: true) — preserve permissions, timestampssuccess (boolean) — whether copy succeededbytes_copied (integer) — total bytes copiedFind files matching name or content criteria. Use for discovery when file locations are unknown. Do NOT use for known patterns in known directories — use Glob or Grep directly.
path (string, required) — directory to search withinpattern (string, optional) — glob pattern for filenamescontent_match (string, optional) — regex for content matchingmax_depth (integer, optional, default: 10) — maximum directory depthmatches (array) — list of matching file pathsmatch_count (integer) — number of resultsChange file permissions or ownership. Use only when permissions are explicitly wrong. Do NOT use speculatively.
path (string, required) — absolute path; MUST NOT match protected pathspermissions (string, optional) — octal permissions (e.g., "644")owner (string, optional) — new ownergroup (string, optional) — new grouprecursive (boolean, optional, default: false) — apply recursively; NEVER with 777success (boolean) — whether change was appliedprevious_permissions (string) — permissions before changeBefore reporting file operations as complete, verify:
Pause and reason explicitly when:
| Error Type | Action | Max Retries |
|---|---|---|
| Permission denied, file locked | Retry after brief wait | 3 |
| Disk full, filesystem read-only | Report immediately, do not attempt fix | 0 |
| Protected path violation | Refuse operation, report path and rule | 0 |
| Same error after 3 retries | Stop, report what was attempted and failed | — |
If this skill's protocol is violated:
{
"operation": "read_file | create_file | update_file | ...",
"success": true,
"path": "/absolute/path/to/file",
"intent": "Why this operation was performed",
"backup_path": "/path/to/backup (if applicable)",
"details": { ... },
"error": null
}