Tzst

作者 xixu-me498ed6f26cc3无许可证收录于 2026年10月8日更新于 2026年10月8日

Use when the user needs to create, extract, flatten, list, test, install, script, or troubleshoot `tzst` CLI workflows for `.tzst` or `.tar.zst` archives, including compression levels, streaming mode, extraction filters, conflict resolution, JSON output, or standalone binary setup, even if they describe the archive task without naming `tzst`.

AI 生成的概览

指导使用 tzst 命令行工具创建、解压、列出和测试 .tzst 或 .tar.zst 归档,包括安装与脚本化。

功能
该技能提供使用 tzst 命令行界面处理 .tzst 和 .tar.zst 归档的说明。内容涵盖创建、解压、扁平化、列出和测试归档,以及安装、压缩级别、流式模式、解压过滤器、冲突处理、JSON 输出和退出码。它还附带一份 CLI 参考文档,包含命令对照表、准确的参数名称和示例。
适用场景
当用户提到 .tzst 或 .tar.zst 归档,或需要创建、解压、扁平化、列出、测试此类归档时使用。它也适用于安装 tzst、选择命令行参数、为自动化生成机器可读输出,或安全处理解压冲突。除非确实涉及 tzst,否则不适用于一般 tar、zip 或 Python API 问题。
运行要求
需要安装 tzst 命令行工具,例如通过 uv tool install tzst、pip install tzst 或独立发布版二进制文件。该技能不包含脚本,但附带一份 CLI 参考文档。仅在下载工具或其发布版二进制文件时需要网络访问。

Use this skill for the tzst command-line interface. Default to execution when the user clearly wants a real archive action and the required paths or archive names are already known.

This skill is CLI-only. If the user is asking about Python code such as from tzst import ..., treat that as a general Python library or API documentation task instead of using this skill as the main guide.

When to Use

Use this skill when the user:

  • mentions .tzst or .tar.zst archives
  • wants to create, extract, flatten, list, or test a tzst archive
  • needs help installing tzst or choosing CLI flags
  • wants machine-readable tzst output for scripting or automation
  • needs safe conflict handling or extraction filter guidance

Do not use this skill for generic tar, zip, or Python API questions unless tzst is actually part of the request.

Preflight

  1. Check whether tzst is available with tzst --version or tzst --help.
  2. If it is missing, prefer one of these installation paths:
  3. Re-run tzst --version or tzst --help before doing real work.

Workflow

  1. Decide whether the request is execution or guidance. Requests like "archive these files", "extract this backup", "list what is inside", "test this archive", or "install tzst" are execution intent.
  2. Choose the command that matches the request:
    • a, add, create for archive creation
    • x, extract for normal extraction with directory structure preserved
    • e, extract-flat only when the user explicitly wants flattened output
    • l, list for archive inspection
    • t, test for integrity checks
  3. If the user wants to extract only a few members and the member names are uncertain, list first.
  4. Load references/cli-reference.md when you need the command matrix, exact flag names, or copy-paste examples.

Safe Defaults

  • Prefer x over e unless flattening is explicitly requested.
  • Keep --filter data as the default extraction mode.
  • Use --filter tar only when the user needs standard tar-style compatibility.
  • Use --filter fully_trusted only when the user explicitly says the archive source is completely trusted.
  • Keep atomic archive creation enabled. Only reach for --no-atomic when the user explicitly wants it.
  • Prefer --streaming for large archives or memory-constrained environments.
  • For automation or pipelines, prefer tzst --json --no-banner ....
  • For automated extraction, require an explicit non-interactive --conflict-resolution choice such as replace_all, skip_all, or auto_rename_all.
  • Do not combine --json with interactive conflict prompting.

Scripting Notes

  • Put global flags before the subcommand in examples, such as tzst --json --no-banner l archive.tzst.
  • Use exit codes in scripts: 0 for success, 1 for operation errors, 2 for argument parsing errors, and 130 for interruption.
  • When archive naming matters, tell the user that tzst may normalize a creation target to .tzst or .tar.zst.

Common Mistakes

  • Using e when the user expected the original directory structure to be preserved
  • Recommending fully_trusted for archives from an unknown or untrusted source
  • Forgetting an explicit conflict strategy for non-interactive extraction
  • Treating a Python API question as a CLI question
  • Guessing flags from tar habits instead of checking the bundled reference or the installed CLI help

来源与署名

来源:xixu-me/skills位于skills/tzst提交498ed6f

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架