用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Vt-mmm/piagent --skill piagent-source-cache命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | piagent-source-cache |
| description | Cache and inspect user-provided external Git repositories. |
Use this skill when the user provides a GitHub/GitLab/Bitbucket repository as source context for a task.
Keep external source repositories:
Prefer the runtime tool if available:
piagent_source_checkout(repoRef="owner/repo")
If the runtime tool is unavailable, resolve the repo into a local checkout from a platform clone:
PIAGENT_PLATFORM_HOME=/path/to/piagent-platform
bash "$PIAGENT_PLATFORM_HOME/packages/piagent-core/skills/piagent-source-cache/checkout-source-repo.sh" <repo-ref> --path-only
Use the printed path for targeted rg, sed, and file reads.
Read only files relevant to the user request.
If edits are needed, create a separate project/worktree; do not edit the cache.
Cite the source URL in reports when needed.
owner/repogithub.com/owner/repohttps://github.com/owner/repogit@github.com:owner/repo.gitDefault:
${XDG_CACHE_HOME:-$HOME/.cache}/piagent-platform/checkouts/<host>/<owner>/<repo>
Override:
PIAGENT_PLATFORM_HOME=/path/to/piagent-platform
PIAGENT_CHECKOUT_CACHE=/path/to/cache bash "$PIAGENT_PLATFORM_HOME/packages/piagent-core/skills/piagent-source-cache/checkout-source-repo.sh" owner/repo --path-only