Communitygithub.com

xixu-me/skills

由我维护的 Agent 技能,用于实际工程工作。

skills 是什么?

该技能专注于 `tzst` 命令行界面的使用和操作。它适用于需要创建、提取、展平、列出或测试 `.tzst` 或 `.tar.zst` 格式存档的场景。技能提供了完整的执行工作流,包括安装检查、命令选择(如 `a` 用于创建,`x` 用于保留目录结构的提取,`e` 用于展平提取等)以及安全默认设置(如默认使用 `--filter data` 提取模式,避免展平提取,并强制非交互式冲突解决策略)。它还强调在自动化脚本中使用 `--json --no-banner` 以获取机器可读的输出,并提供了常见错误的指导(例如误用展平提取或为不受信任的存档推荐 `fully_trusted` 过滤器)。该技能明确仅限 CLI 使用,不处理 Python API 相关的查询。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add xixu-me/skills

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

将此技能用于 tzst 命令行界面。当用户明确想要执行实际的归档操作,并且所需的路径或存档名称已知时,默认执行该操作。

此技能仅限 CLI。如果用户询问诸如 from tzst import ... 之类的 Python 代码,请将其视为通用的 Python 库或 API 文档任务,而不是使用此技能作为主要指导。

使用时机

当用户出现以下情况时使用本技能:

  • 提及 .tzst 或 .tar.zst 存档
  • 想要创建、提取、展平、列出或测试 tzst 存档
  • 需要安装 tzst 或选择 CLI 标志的帮助
  • 想要用于脚本编写或自动化的机器可读 tzst 输出
  • 需要安全的冲突处理或提取过滤指导

请勿针对通用 tar、zip 或 Python API 问题使用此技能,除非 tzst 确实是请求的一部分。

前置检查

  1. 使用 tzst --version 或 tzst --help 检查 tzst 是否可用。
  2. 如果它缺失,优先考虑以下安装路径之一:
  3. 在进行实际工作之前,重新运行 tzst --version 或 tzst --help。

工作流程

  1. 确定请求是执行还是指导。 “归档这些文件”、“提取此备份”、“列出里面的内容”、“测试此存档”或“安装 tzst”等请求属于执行意图。
  2. 选择与请求匹配的命令:
    • a、add、create 用于创建存档
    • x、extract 用于保留目录结构的正常提取
    • e、extract-flat 仅当用户明确要求展平输出时使用
    • l、list 用于检查存档
    • t、test 用于完整性检查
  3. 如果用户只想提取少数成员且成员名称不确定,请先列出。
  4. 当你需要命令矩阵、确切的标志名称或可复制粘贴的示例时,请查阅 references/cli-reference.md。

安全默认设置

  • 除非明确要求展平,否则优先使用 x 而不是 e。
  • 保持 --filter data 作为默认提取模式。
  • 仅当用户需要标准的 tar 风格兼容性时,才使用 --filter tar。
  • 仅当用户明确声明存档来源完全可信时,才使用 --filter fully_trusted。
  • 保持原子存档创建启用。仅当用户明确要求时才使用 --no-atomic。
  • 对于大型存档或内存受限环境,优先使用 --streaming。
  • 对于自动化或管道,优先使用 tzst --json --no-banner ...。
  • 对于自动提取,需要明确的非交互式 --conflict-resolution 选择,例如 replace_all、skip_all 或 auto_rename_all。
  • 不要将 --json 与交互式冲突提示结合使用。

脚本编写注意事项

  • 在示例中将全局标志放在子命令之前,例如 tzst --json --no-banner l archive.tzst。
  • 在脚本中使用退出代码:0 表示成功,1 表示操作错误,2 表示参数解析错误,130 表示中断。
  • 当存档命名很重要时,告知用户 tzst 可能将创建目标规范化为 .tzst 或 .tar.zst。

常见错误

  • 当用户期望保留原始目录结构时使用 e
  • 为来自未知或不受信任来源的存档推荐 fully_trusted
  • 忘记为非交互式提取指定明确的冲突策略
  • 将 Python API 问题视为 CLI 问题
  • 根据 tar 的使用习惯猜测标志,而不是查阅捆绑的参考文档或已安装的 CLI 帮助

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

xixu-me/develop-userscripts

Use when building, debugging, packaging, or publishing browser userscripts for Tampermonkey or ScriptCat, including GM APIs, metadata blocks, permission issues, @match/@grant/@connect setup, ScriptCat background or scheduled scripts, UserConfig blocks, or subscription workflows.

xixu-me/github-actions-docs

Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners, reusable workflows, artifacts, caching, secrets, OIDC, deployments, custom actions, or Actions Runner Controller, especially when they need official GitHub documentation, exact links, or docs-grounded YAML guidance.

xixu-me/openclaw-secure-linux-cloud

Use when self-hosting OpenClaw on a cloud server, hardening a remote OpenClaw gateway, choosing between SSH tunneling, Tailscale, or reverse-proxy exposure, or reviewing Podman, pairing, sandboxing, token auth, and tool-permission defaults for a secure personal deployment.

xixu-me/opensource-guide-coach

Use when a user wants guidance on starting, contributing to, growing, governing, funding, securing, or sustaining an open source project, or asks about contributor onboarding, community health, maintainer burnout, code of conduct, metrics, legal basics, or open source project adoption.

xixu-me/readme-i18n

Use when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized README variants in a GitHub-style repository.

xixu-me/running-claude-code-via-litellm-copilot

Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend, configuring ANTHROPIC_BASE_URL or ANTHROPIC_MODEL overrides, or troubleshooting Copilot proxy setup failures such as model-not-found, no localhost traffic, or GitHub 401/403 auth errors.

xixu-me/secure-linux-web-hosting

Use when setting up, hardening, or reviewing a cloud server for self-hosting, including DNS, SSH, firewalls, Nginx, static-site hosting, reverse-proxying an app, HTTPS with Let's Encrypt or ACME clients, safe HTTP-to-HTTPS redirects, or optional post-launch network tuning such as BBR.

xixu-me/skills-cli

Use when users ask to discover, install, list, check, update, remove, back up, restore, sync, or initialize Agent Skills, mention `bunx skills`, `npx skills`, `skills.sh`, or `skills-lock.json`, ask "find a skill for X", or want help extending agent capabilities with installable skills.

xixu-me/tzst

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

xixu-me/use-my-browser

Use when work depends on the user's live browser session or visible rendered state rather than static fetches, especially for browser debugging contexts or DevTools-selected elements or requests, logged-in dashboards or CMS flows, localhost apps, forms, uploads, downloads, media inspection, DOM or iframe inspection, Shadow DOM, or browser failures that look like soft 404s, auth walls, anti-bot checks, or rate limits.

xixu-me/xdrop

Use this skill when the user wants to send or fetch files through an Xdrop server from the terminal, asks to automate encrypted Xdrop share-link workflows, provides an Xdrop `/t/:transferId#k=...` link to download and decrypt locally, or needs Xdrop CLI flags such as `--quiet`, `--json`, `--expires-in`, `--output`, or `--api-url`, even if they do not explicitly mention the skill name.

xixu-me/xget

Use when tasks involve Xget URL rewriting, registry/package/container/API acceleration, integrating Xget into Git, download tools, package managers, container builds, AI SDKs, CI/CD, deployment, self-hosting, or adapting commands and config from the live README `Use Cases` section into files, environments, shells, or base URLs.

相关技能