
- Installs
- 1.7K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/dontbesilent2025/dbskill --skill dbskill-upgrade- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads dbskill-upgrade automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
dbskill-upgrade
升级 dbskill 到最新版本,显示更新内容。
使用场景
- 用户主动调用
/dbskill-upgrade升级 - 显示版本变化和更新内容
升级流程
Step 1: 检测安装位置
if [ -d "$HOME/.claude/skills/dbs" ]; then
INSTALL_DIR="$HOME/.claude/skills"
echo "Install location: $INSTALL_DIR"
else
echo "ERROR: dbskill not found in ~/.claude/skills/"
exit 1
fi
Step 2: 获取当前版本
OLD_VERSION=$(cat "$HOME/.claude/skills/dbskill-upgrade/../../VERSION" 2>/dev/null || echo "unknown")
echo "Current version: $OLD_VERSION"
Step 3: 获取远程版本
REMOTE_VERSION=$(curl -sL https://raw.githubusercontent.com/dontbesilent2025/dbskill/main/VERSION || echo "")
if [ -z "$REMOTE_VERSION" ]; then
echo "ERROR: Cannot fetch remote version"
exit 1
fi
echo "Remote version: $REMOTE_VERSION"
Step 4: 比较版本
如果 OLD_VERSION 等于 REMOTE_VERSION,告诉用户已是最新版本,结束。
否则继续升级。
Step 5: 备份当前版本
BACKUP_DIR="$HOME/.claude/skills/.dbskill-backup-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$BACKUP_DIR"
cp -r "$HOME/.claude/skills"/dbs* "$BACKUP_DIR/" 2>/dev/null || true
echo "Backup created: $BACKUP_DIR"
Step 6: 下载最新版本
TMP_DIR=$(mktemp -d)
git clone --depth 1 https://github.com/dontbesilent2025/dbskill.git "$TMP_DIR/dbskill"
if [ $? -ne 0 ]; then
echo "ERROR: Failed to clone repository"
exit 1
fi
echo "Downloaded to: $TMP_DIR/dbskill"
Step 7: 替换旧版本
rm -rf "$HOME/.claude/skills"/dbs*
cp -r "$TMP_DIR/dbskill/skills"/dbs* "$HOME/.claude/skills/"
rm -rf "$TMP_DIR"
echo "Upgrade completed"
如果复制失败,从备份恢复:
if [ $? -ne 0 ]; then
echo "ERROR: Upgrade failed, restoring from backup..."
rm -rf "$HOME/.claude/skills"/dbs*
cp -r "$BACKUP_DIR"/* "$HOME/.claude/skills/"
echo "Restored from backup"
exit 1
fi
Step 8: 显示更新内容
读取 $HOME/.claude/skills/dbs/../../README.md(如果存在),提取从 OLD_VERSION 到 REMOTE_VERSION 之间的更新内容。
格式:
dbskill v{REMOTE_VERSION} — 从 v{OLD_VERSION} 升级成功!
更新内容:
- [从 README 提取的更新要点]
升级完成!
Step 9: 清理备份
询问用户是否删除备份:
echo "Backup location: $BACKUP_DIR"
echo "Keep backup? (will be auto-deleted in 7 days if not used)"
不强制删除,让用户自己决定。
错误处理
- 网络失败:提示用户检查网络连接
- Git clone 失败:从备份恢复
- 文件复制失败:从备份恢复
注意事项
- 只支持通过
~/.claude/skills/安装的版本 - 升级前自动备份,失败时自动恢复
- 不需要用户手动操作 git
FAQ
What does the dbskill-upgrade skill do?
升级 dbskill 到最新版本
How do I install dbskill-upgrade?
Run npx skills add https://github.com/dontbesilent2025/dbskill --skill dbskill-upgrade in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/dbskill-upgrade/ (personal) or .claude/skills/dbskill-upgrade/ (project).
Which AI agents can use dbskill-upgrade?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is dbskill-upgrade safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains dbskill-upgrade?
It is published by dontbesilent2025 in dontbesilent2025/dbskill. It has 1,748 recorded installs.
More from dontbesilent2025/dbskill
dbs
dontbesilent2025/dbskill
dontbesilent 商业工具箱的技能调度台,根据当前问题和反馈选择下一步,在对话中直接执行、澄清、组合或对照尝试 Skill。用户不知道从哪里开始、需要调整处理方法、第一次使用 dbskill、输入三位编号或查询隐藏款目录时使用;仅需推荐或可复制提示词时按请求交付。
dbs-content
dontbesilent2025/dbskill
围绕已经确定的选题诊断内容怎么组织、论证和表达,形成创作方案。用户要把选题做成内容时使用;不负责已有稿件的逐句删改和标题开头成稿。
dbs-diagnosis
dontbesilent2025/dbskill
自动识别用户是在解决具体商业问题,还是希望全面检查商业模式,并进入对应诊断流程。用户希望拆解业务、检查商业模式或消解具体商业困境时使用。
dbs-benchmark
dontbesilent2025/dbskill
用五重过滤法寻找值得模仿的对标,并排除主体差异造成的噪音。用户要求找对标、选择模仿对象或分析竞争参照时使用。
dbs-deconstruct
dontbesilent2025/dbskill
用维特根斯坦与奥派经济学方法拆解模糊的商业概念。用户要求解释一个词、澄清概念边界或识别概念混用时使用。
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.