‹ 首页

xget

@xixu-me · 收录于 1 周前

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.

适合你,如果经常需要加速访问海外资源或镜像

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

怎么用

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

安装后,Claude 能自动将下载、Git、包管理器、容器构建、AI SDK 等命令中的 URL 重写为 Xget 加速地址,并直接执行配置或文件修改。

什么时候触发

当你要求配置、设置、添加、迁移或部署 Xget 加速,或提到“用 Xget”时触发。

装好后可以这样说
Claude 会修改 pip 配置使用 Xget 镜像
技能原文 SKILL.md作者撰写 · MIT · fa39ac2

Default to execution, not instruction. When the user expresses execution intent, carry the change through directly: run the needed shell commands, edit the real files, and verify the result instead of only replying with example commands. Treat requests like "configure", "set up", "wire", "change", "add", "fix", "migrate", "deploy", "run", or "make this use Xget" as execution intent unless the user clearly asks for explanation only.

Resolve the base URL first:

  1. use a domain the user explicitly gave
  2. otherwise use XGET_BASE_URL from the environment
  3. if neither exists, ask for the user's Xget base URL and whether it should be set temporarily for the current shell/session or persistently for future shells
  4. use https://xget.example.com only as a clearly labeled placeholder for docs or templates that do not have a real deployment yet

Prefer [scripts/xget.mjs](./scripts/xget.mjs) over manual guessing for live platform data, URL conversion, and README Use Cases lookup.

Only stop to ask when a missing fact blocks safe execution, such as an unknown real base URL for a command that must run against a live deployment. If the user only needs docs or templates, use the placeholder path rules below.

Workflow
  1. Classify the task before reaching for examples:
  2. execution intent: the user wants commands run, files changed, or config applied now
  3. guidance intent: the user explicitly wants examples, explanation, or a template without applying it yet
  4. then bucket the technical area: one-off URL conversion or prefix lookup; Git or download-tool acceleration; package-manager or language-ecosystem configuration; container image, Dockerfile, Kubernetes, or CI/CD acceleration; AI SDK / inference API base-URL configuration; deploying or self-hosting Xget itself
  5. Complete the base-URL preflight above. If the user wants help setting XGET_BASE_URL, open [the reference guide](./references/REFERENCE.md) and:
  6. when the user asked you to set or wire it, run the shell-appropriate temporary or persistent commands directly when the environment allows it
  7. when you cannot safely execute, ask the smallest blocking question or give the exact command with the missing value clearly called out
  8. Pull live README guidance in two steps instead of loading the whole section by default:
  9. list candidate headings with node scripts/xget.mjs topics --format json
  10. narrow with --match or fetch a specific section with node scripts/xget.mjs snippet --base-url https://xget.example.com --heading "Docker Compose Configuration" --format text
  11. Prefer the smallest relevant live subsection. If a repeated child heading like Use in Project is ambiguous, fetch its parent section instead.
  12. Adapt the live guidance to the user's real task:
  13. for execution intent, apply the change end-to-end instead of stopping at example commands
  14. run commands yourself when the request is to install, configure, rewrite, switch, migrate, test, or otherwise perform the change
  15. edit the actual config or source files when the user wants implementation, not just explanation
  16. keep shell commands aligned with the user's OS and shell
  17. preserve existing project conventions unless the user asked for a broader rewrite
  18. after changing files or running commands, perform a lightweight verification step when practical
  19. Refresh the live platform map with node scripts/xget.mjs platforms --format json when the answer depends on current prefixes, and use convert for exact URL rewrites.
  20. Combine multiple live sections when the workflow spans multiple layers. For example, pair a package-manager section with container, deployment, or .env guidance when the user's project needs more than one integration point.
  21. Before finishing, sanity-check that every command, file edit, or example uses the right Xget path shape:
  22. repo/content: /{prefix}/...
  23. crates.io HTTP URLs: /crates/... rather than /crates/api/v1/crates/...
  24. inference APIs: /ip/{provider}/...
  25. OCI registries: /cr/{registry}/...
  26. If the live platform fetch fails or an upstream URL does not match any known platform, say so explicitly and fall back to the stable guidance in [references/REFERENCE.md](./references/REFERENCE.md) instead of inventing a prefix.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

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