‹ 首页

tzst

@xixu-me · 收录于 1 周前

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`.

适合你,如果经常处理 .tar.zst 格式的压缩文件

/ 通过 npx 安装 校验哈希
npx oh-my-skill add xixu-me/skills/tzst
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- xixu-me/skills/tzst
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify xixu-me/skills/tzst
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
72GitHub stars
待重算上下文体积
索引托管

怎么用

商店整理自技能原文 · 版本 fa39ac2 · 表述以原文为准
它做什么

装上后,Claude 能帮你用 tzst 命令行工具处理 .tzst 或 .tar.zst 压缩包,包括创建、解压、列出内容、测试完整性等操作。

什么时候触发

当你提到 .tzst 或 .tar.zst 文件,或需要创建、解压、列出、测试这类压缩包时触发。

装好后可以这样说
Claude 会执行 tzst create 命令。
Claude 会执行 tzst extract 命令。
Claude 会执行 tzst list 命令。
技能原文 SKILL.md作者撰写 · MIT · fa39ac2

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. uv tool install tzst
  4. pip install tzst
  5. a standalone release binary from <https://github.com/xixu-me/tzst/releases/latest> when the user does not want a Python installation
  6. 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:
  3. a, add, create for archive creation
  4. x, extract for normal extraction with directory structure preserved
  5. e, extract-flat only when the user explicitly wants flattened output
  6. l, list for archive inspection
  7. t, test for integrity checks
  8. If the user wants to extract only a few members and the member names are uncertain, list first.
  9. Load [references/cli-reference.md](./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
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。