Install
openclaw skills install rar-archive-helpercross-platform rar and winrar command-line archive handling for windows and linux. use when chatgpt needs to compress or extract archives with rar or winrar, detect whether rar tools are available, repair path issues, download official installers when missing, handle password-protected archives, process multipart archives, and troubleshoot common command-line extraction or compression errors in automation workflows.
openclaw skills install rar-archive-helperUse this skill for reliable archive compression and extraction with rar or winrar on Windows and Linux.
Core responsibilities:
rar or winrar is callablePATH when possibleAlways follow this sequence:
Goal -> Detect -> Fix PATH -> Run -> Verify -> Result
Do not skip detection. Do not jump straight to archive commands unless the executable is already known to work.
First determine whether the environment is Windows or Linux, then use the matching commands and path conventions.
Run:
where rar
where winrar
Run:
which rar
If at least one valid executable is found, prefer that executable and continue.
C:\Program Files\WinRAR\C:\Program Files (x86)\WinRAR\Check for:
rar.exewinrar.exe/usr/bin/rar/usr/local/bin/rar/opt/rar/If found, either call the binary by absolute path or add its directory to PATH.
set PATH=C:\Program Files\WinRAR;%PATH%
setx PATH "%PATH%;C:\Program Files\WinRAR"
export PATH=$PATH:/usr/local/bin
If modifying PATH is not allowed or does not take effect in the current shell, use the absolute executable path.
If the executable is not found in common locations, use the official download link that matches the platform.
https://www.win-rar.com/fileadmin/winrar-versions/winrar/winrar-x64-720.exe
https://www.win-rar.com/fileadmin/winrar-versions/rarlinux-x64-720.tar.gz
Only suggest or perform download after detection and common-path checks fail.
rar x archive.rar
rar x archive.rar /output/path/
rar e archive.rar
rar x -p123456 archive.rar
rar x -p123456 archive.rar /output/path/
Wrap the password in quotes when it contains shell-significant characters.
rar x -p"p@ss!word" archive.rar
On Windows, equivalent winrar examples are valid:
winrar x -p123456 secure.zip
winrar x -pabc123 C:\files\archive.rar D:\output\
winrar x -p"p@ss!word" data.rar
Use background or unattended flags for automation:
rar x -ibck -p123456 archive.rar /output/path/
Use overwrite and yes-to-all flags when prompts would block automation:
rar x -o+ -y archive.rar
rar a archive.rar file1 file2
rar a -p123456 archive.rar file1
rar a -v100m archive.rar largefile.iso
If Chinese paths or filenames display as garbled text, run:
chcp 65001
Always quote paths containing spaces:
"C:\path with space\file.rar"
"C:\Program Files\WinRAR\winrar.exe" x archive.rar
Always start extraction from the first volume, typically:
part1.rararchive.part1.rarDo not start from later volumes.
After running the archive command, verify:
If verification fails, inspect the error and decide whether the single retry rule applies.
Retry at most once, and only when the failure cause is concrete and fixable.
Allowed retry cases:
chcp 65001Do not retry when:
Use this exact reporting structure in responses:
[Goal]
<what needs to be done>
[Detect]
<what command was checked and what was found>
[Fix PATH]
<how PATH or executable resolution was handled>
[Run]
<the command executed>
[Verify]
<what was checked>
[Result]
Status: SUCCESS or FAILED
Command: <final command>
Output: <key output>
Notes: <important notes, or none>
Cause:
rar or winrar is not in PATHFix:
PATHCause:
winrarrarFix:
rar on LinuxSymptoms:
Fix:
-p"p@ss!word"
Fix:
Fix:
chcp 65001 before the archive command on Windows terminals where encoding is the issueFix:
Cause:
Fix:
Fix:
-o+ -y
Fix:
rar.exe or winrar.exe