一键导入
sc-update
Update Shadow Clone to the latest release — detects the install path, compares against the latest tag, and walks the user through the update
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update Shadow Clone to the latest release — detects the install path, compares against the latest tag, and walks the user through the update
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Shadow Clone audit mode — produce an audit blueprint, then chain to the security checklist scan
Shadow Clone cleaner mode — repo organization + archival sweep. Evidence-gated, plan-first, fully reversible. Never deletes files.
Shadow Clone debug mode — systematic root-cause analysis and bug resolution with hardening
Shadow Clone docs mode — generate or refresh documentation for work currently in scope. Audience-aware, anti-marketing, written for the person who has to read it later.
Shadow Clone feature mode — build a new capability through dynamic waves, secure-by-design, production-ready
Show the catalog of installed Shadow Clone Kimi skills and what each one does
| name | sc-update |
| description | Update Shadow Clone to the latest release — detects the install path, compares against the latest tag, and walks the user through the update |
| type | prompt |
| whenToUse | When the user asks to update Shadow Clone or check for a newer release |
You are helping the user update their Shadow Clone install. The source-clone
install path updates via scripts/sc-update.sh. Your job is to figure out the
install state and emit the matching instructions.
Run this exact check via the Bash tool:
SOURCE_FILE="${HOME}/.claude/sc/install-source"
if [ -f "${SOURCE_FILE}" ]; then
SRC="$(cat "${SOURCE_FILE}")"
if [ -d "${SRC}/.git" ]; then
CURRENT="$(git -C "${SRC}" describe --tags --always 2>/dev/null || echo unknown)"
echo "INSTALL_PATH=source"
echo "INSTALL_SOURCE=${SRC}"
echo "CURRENT_VERSION=${CURRENT}"
else
echo "INSTALL_PATH=source-broken"
echo "INSTALL_SOURCE=${SRC}"
echo "CURRENT_VERSION=unknown"
fi
else
echo "INSTALL_PATH=none"
echo "INSTALL_SOURCE="
echo "CURRENT_VERSION=unknown"
fi
LATEST="$(curl -fsSL https://api.github.com/repos/Ignis-AI-Labs/shadow-clone/releases/latest 2>/dev/null | grep -E '^\s*"tag_name"' | head -1 | sed -E 's/.*"tag_name": *"([^"]+)".*/\1/')"
echo "LATEST_VERSION=${LATEST:-unknown}"
Parse the five KEY=value lines into a state map.
Match the state and emit the matching message verbatim, then stop.
INSTALL_PATH=source and CURRENT_VERSION equals LATEST_VERSION)✅ You're on the latest release (
<CURRENT_VERSION>).Source clone at
<INSTALL_SOURCE>.No action needed. If you want to re-deploy anyway (e.g. you suspect something on disk is out of sync), run:
bash <INSTALL_SOURCE>/scripts/sc-update.sh
INSTALL_PATH=source and versions differ)🆕 An update is available.
- Installed:
<CURRENT_VERSION>at<INSTALL_SOURCE>- Latest:
<LATEST_VERSION>Run this in the terminal to update:
bash <INSTALL_SOURCE>/scripts/sc-update.shThe script does three things in order:
git pull --ff-only, re-runsbridge/install.sh, re-runsscripts/sc-doctor.sh. It refuses to overwrite uncommitted local changes — if you've edited files in the clone, it'll tell you to commit/stash/discard first.After it finishes, also refresh the Kimi skills:
bash <INSTALL_SOURCE>/kimi/install.sh
INSTALL_PATH=source-broken)⚠ Shadow Clone says it was installed from a source clone at
<INSTALL_SOURCE>, but that path is no longer a git repo (the.gitdirectory is missing).Either you moved or deleted the clone after installing. To update, re-clone it somewhere and run the installers again:
git clone --depth 1 --branch <LATEST_VERSION> https://github.com/Ignis-AI-Labs/shadow-clone.git cd shadow-clone bash bridge/install.sh bash kimi/install.sh bash scripts/sc-doctor.shThat will overwrite the install-source marker with the new location.
INSTALL_PATH=none)No Shadow Clone source install was found on this machine. To install:
git clone --depth 1 --branch <LATEST_VERSION> https://github.com/Ignis-AI-Labs/shadow-clone.git cd shadow-clone bash bridge/install.sh bash kimi/install.sh bash scripts/sc-doctor.shLatest release:
<LATEST_VERSION>.
LATEST_VERSION=unknown)⚠ Couldn't reach the GitHub API to check the latest version. This is usually a network or rate-limit issue.
Your installed version:
<CURRENT_VERSION>. Source clone:<INSTALL_SOURCE>.When you have network, either retry
/skill:sc-update, or check the release page directly: https://github.com/Ignis-AI-Labs/shadow-clone/releases/latest
After emitting the matching message, stop. The user runs the update themselves so they understand what landed where. Do not chain into another command.