xget

作者: xixu-me

當任務涉及 Xget URL 重寫、註冊表/套件/容器/API 加速、將 Xget 整合至 Git、下載工具、套件管理器、容器建置、AI SDK、CI/CD、部署、自架,或將即時 README 中「使用案例」章節的命令與設定轉換為檔案、環境、Shell 或基礎 URL 時使用。

npx skills add https://github.com/xixu-me/skills --skill xget

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 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:
    • execution intent: the user wants commands run, files changed, or config applied now
    • guidance intent: the user explicitly wants examples, explanation, or a template without applying it yet
    • 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
  2. Complete the base-URL preflight above. If the user wants help setting XGET_BASE_URL, open the reference guide and:
    • when the user asked you to set or wire it, run the shell-appropriate temporary or persistent commands directly when the environment allows it
    • when you cannot safely execute, ask the smallest blocking question or give the exact command with the missing value clearly called out
  3. Pull live README guidance in two steps instead of loading the whole section by default:
    • list candidate headings with node scripts/xget.mjs topics --format json
    • 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
  4. Prefer the smallest relevant live subsection. If a repeated child heading like Use in Project is ambiguous, fetch its parent section instead.
  5. Adapt the live guidance to the user's real task:
    • for execution intent, apply the change end-to-end instead of stopping at example commands
    • run commands yourself when the request is to install, configure, rewrite, switch, migrate, test, or otherwise perform the change
    • edit the actual config or source files when the user wants implementation, not just explanation
    • keep shell commands aligned with the user's OS and shell
    • preserve existing project conventions unless the user asked for a broader rewrite
    • after changing files or running commands, perform a lightweight verification step when practical
  6. 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.
  7. 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.
  8. Before finishing, sanity-check that every command, file edit, or example uses the right Xget path shape:
    • repo/content: /{prefix}/...
    • crates.io HTTP URLs: /crates/... rather than /crates/api/v1/crates/...
    • inference APIs: /ip/{provider}/...
    • OCI registries: /cr/{registry}/...
  9. 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 instead of inventing a prefix.

來自 xixu-me 的更多技能

github-actions-docs
xixu-me
當使用者詢問如何撰寫、解釋、自訂、遷移、保護或疑難排解 GitHub Actions 工作流程、工作流程語法、觸發器、矩陣、執行器、可重複使用工作流程、成品、快取、密碼、OIDC、部署、自訂動作或 Actions Runner Controller 時使用,特別是當他們需要官方 GitHub 文件、精確連結或基於文件的 YAML 指引時。
developmentdevopsdocument
use-my-browser
xixu-me
當工作依賴於用戶的即時瀏覽器工作階段或可見的渲染狀態,而非靜態擷取時使用,特別適用於瀏覽器除錯情境、開發者工具選取的元素或請求、已登入的儀表板或CMS流程、本地主機應用程式、表單、上傳、下載、媒體檢查、DOM或iframe檢查、Shadow DOM,以及看似軟性404、驗證牆、反機器人檢查或速率限制的瀏覽器故障。
browser-automationweb-scrapingtesting
readme-i18n
xixu-me
當使用者想要翻譯儲存庫的README、讓儲存庫支援多語言、在地化文件、加入語言切換器、國際化README,或是在GitHub風格的儲存庫中更新已在地化的README版本時使用。
documentdevelopmentapi
openclaw-secure-linux-cloud
xixu-me
在雲端伺服器上自行託管 OpenClaw 時使用,用於強化遠端 OpenClaw 閘道、選擇 SSH 隧道、Tailscale 或反向代理暴露方式,或審查 Podman、配對、沙箱、令牌驗證及工具權限預設值,以確保安全的個人部署。
devopssecurity
develop-userscripts
xixu-me
在構建、除錯、打包或發佈用於 Tampermonkey 或 ScriptCat 的瀏覽器使用者腳本時使用,包括 GM API、元數據區塊、權限問題、@match/@grant/@connect 設定、ScriptCat 背景或排程腳本、UserConfig 區塊或訂閱工作流程。
developmentbrowser-automationweb-scraping
secure-linux-web-hosting
xixu-me
在設定、強化或檢視用於自架站的雲端伺服器時使用,包括 DNS、SSH、防火牆、Nginx、靜態網站託管、應用程式的反向代理、使用 Let's Encrypt 或 ACME 用戶端的 HTTPS、安全的 HTTP 到 HTTPS 重新導向,或可選的啟動後網路調校(如 BBR)。
devopssecurityaws
opensource-guide-coach
xixu-me
當使用者希望獲得關於啟動、貢獻、發展、治理、資助、保護或維持開源專案的指導,或詢問貢獻者入門、社群健康、維護者倦怠、行為準則、指標、法律基礎或開源專案採用的相關問題時使用。
developmentresearch
running-claude-code-via-litellm-copilot
xixu-me
在透過本地 LiteLLM 代理將 Claude Code 路由至 GitHub Copilot 時使用,以減少直接 Anthropic 花費、設定 ANTHROPIC_BASE_URL 或 ANTHROPIC_MODEL 覆寫,或疑難排解 Copilot 代理設定失敗,例如模型未找到、無 localhost 流量或 GitHub 401/403 驗證錯誤。
developmentapidevops