file-tidy
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses shell commands to modify system settings and search for file references. It executes
defaults write com.apple.screencapture locationandkillall SystemUIServeron macOS to change the default screenshot directory to the skill's inbox. It utilizesrg(ripgrep) to search for absolute file paths within configuration and shell profile files, including~/.zshrc,~/.config, and.envfiles, to identify potential broken links caused by moving files. The test suite (scripts/test_file_tidy.py) employssubprocess.runto execute the main engine during validation. - [CREDENTIALS_UNSAFE]: The skill is designed to manage and organize sensitive files. It identifies and categorizes files containing identity documents, passwords, tokens, keys, and credentials into a designated 'Sensitive Zone' (e.g.,
~/Files/99_sensitive). It scans highly sensitive paths such as~/.zshrc,~/.config, and various.envfiles to find references to moved files. The instructions explicitly forbid the agent from opening or printing the contents of files identified as sensitive to the interaction transcript. - [INDIRECT_PROMPT_INJECTION]: The skill processes arbitrary data from user-controlled directories, creating a potential attack surface. Ingestion points: The agent is instructed to scan the
Downloadsfolder, theDesktop, and other user-specified directories to classify new files. Boundary markers: The skill provides a logical boundary by instructing the agent to never open or print files destined for the 'Sensitive Zone'. Capability inventory: The skill possesses extensive local file manipulation capabilities, includingos.rename,os.link,shutil.copy2, andshutil.rmtreevia thescripts/file_tidy.pyengine. Sanitization: Thefile_tidy.pyscript implements rigorous validation, including aprotected_reasonfunction that refuses to modify system directories, home folders, or application data, and asnapshotfunction for content-hash verification of all moves.
Audit Metadata