360 Secure SkillHub
360 安全技能中心

Archive/Compression Assistant

该 Skill 通过 x-cmd 的 z、uz、zuz 子命令处理归档与压缩任务,支持 zip、tar、gz、7z、rar、zst、xz、bz2 等格式的压缩、解压、打包及列出归档内容。使用前需先加载 x-cmd 环境,未安装时按附带文档安装。

lunrenyi
lunrenyi
热度 53.88
最近更新 2026-05-11 17:31:16
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add x-zuz
Metadata
name
x-zuz
description
Handle archive/compression tasks including compressing, extracting, archiving, packaging, listing contents, and viewing files. Supports formats: zip, tar, gz, 7z, rar, zst, xz, bz2 and more. You MUST use this skill whenever the user mentions or implies any archive, compression, extraction, packaging, or archive viewing needs. Even if the user doesn't explicitly mention x-zuz or specific commands, as long as there's an archive-related request, invoke this skill.
license
Apache-2.0
compatibility
POSIX Shell (sh/bash/zsh/dash/ash)
metadata
{"author":"X-CMD","version":"1.0.0","category":"core","tags":["shell","cli","tools","compression","archive"],"repository":"https://github.com/x-cmd/skill","website":"https://www.x-cmd.com","install_doc":"data/install.md","display_name":"Archive/Compression Assistant"}

x zuz - Archive/Compression Assistant

Prerequisites

  1. Load x-cmd before use:

    . ~/.x-cmd.root/X
    
  2. x-cmd not installed? → data/install.md

Core Functions

  • Compress: x z <output> <files...>
  • Extract: x uz <archive> [destination]
  • List contents: x zuz ls <archive>

Usage Examples

Compress files and directories

x z output.zip file1.txt file2.txt dir/
x z archive.tar.xz myfolder/
x z backup.tar.gz ./src/*

Extract archives

x uz archive.zip
x uz archive.tar.xz ./target_dir/
x uz file.7z /tmp/output/

List archive contents

x zuz ls archive.zip
x zuz ls archive.tar.gz

Common Scenarios

  • Backup packaging: x z backup.tar.xz ./important_files/
  • Extract downloaded file: x uz downloaded.zip
  • View archive contents: x zuz ls old_backup.tar.gz

Get Help

Run x zuz --help or x zuz -h for full help documentation.