Xget

From xixu-me/skills · View interactive version

Xget is an AI agent skill from the GitHub repository xixu-me/skills. 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, enviro

How to use this skill

Skill file

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

  1. use https://xget.example.com only as a clearly labeled placeholder for docs

or templates that do not have a real deployment yet

Prefer CODE0 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:

applied now

template without applying it yet

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

  1. Complete the base-URL preflight above. If the user wants help setting

XGET_BASE_URL, open the reference guide and:

temporary or persistent commands directly when the environment allows it

the exact command with the missing value clearly called out

  1. Pull live README guidance in two steps instead of loading the whole section

by default:

node scripts/xget.mjs snippet --base-url https://xget.example.com --heading "Docker Compose Configuration" --format text

  1. Prefer the smallest relevant live subsection. If a repeated child heading

like Use in Project is ambiguous, fetch its parent section instead.

  1. Adapt the live guidance to the user's real task:

example commands

switch, migrate, test, or otherwise perform the change

not just explanation

rewrite

verification step when practical

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

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

  1. Before finishing, sanity-check that every command, file edit, or example uses

the right Xget path shape:

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

CODE0 instead of inventing a

prefix.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.