dbs-update
Updates the official dbskill while preserving other Skills and user archives. Used when the user requests to update, upgrade, or check the dbskill version, or replies with 1 following an update prompt.
1How It Works & Mechanism
The entire skill relies on a single sync command: using the official installer to install all official Skills from the official repository into supported Agents.
npx -y skills add dontbesilent2025/dbskill -g --all
Writes a local timestamp after updating to prevent repeated notifications while the current conversation still holds the older Skill in memory.
mkdir -p "$HOME/.dbs" && date +%s > "$HOME/.dbs/update_check_at"
Hard scope boundaries: updates only the official repository, preserves user archives, leaves other Skills untouched, creates no background tasks, and explicitly prohibits commands that could inadvertently affect other Skills.
不使用 `npx skills update`,该命令可能更新用户安装的其他 Skill。
Trigger semantics are strictly tied to context: a standalone `1` signifies an update only when the assistant's immediately preceding reply contained an update notification; otherwise, digits must not be interpreted arbitrarily.
缺少这段上下文时,不要自行解释数字含义。
Notification mechanisms are provided by the /dbs entrypoint within the same repo: version comparison + 24-hour cache + fixed "reply 1" phrasing; dbs-update merely consumes this context.
回复 1,我现在帮你更新。\n' "$REMOTE_VERSION" "$NOTICE"
Reply templates are fixed to success or failure formats; failures output only a single-sentence reason and next steps without dumping entire terminal logs.
不要把完整终端日志直接贴给用户,除非用户要求。
Version consistency is enforced by repository toolchains: the update contract holds valid only when VERSION strictly matches the marketplace/plugin manifests.
errors.append(f"插件 {name} 的更新版本为 {plugin_version!r},应为 {version!r}")
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | npx(执行官方生态安装器 skills) |
| package | skills —— 生态官方安装器包(npx -y 即时拉取执行) |
| network | GitHub / npm registry(拉取 skills 包与官方仓库内容) |
4Recommended Governance & Evidence
- scripts/: Execute local script or command: npx -y skills add dontbesilent2025/dbskill -g --all (the sole action specified in SKILL.md; executes official ecosystem
- 网络端点: Declare external network access: npx pulls npm package skills and accesses GitHub to fetch dontbesilent2025/dbskill content (SKILL.md Step 1
- 本地工作目录: File I/O and artifact output: $HOME/.dbs/update_check_at (timestamp, used for internal caching)
5Second-Pass Verification
- [ok] 目标仓库写死且唯一 — SKILL.md 命令与"更新范围"节均只涉及 dontbesilent2025/dbskill,无参数化仓库输入。
- [ok] "不更新其他 Skill"有显式反例约束 — 原文"不使用 `npx skills update`,该命令可能更新用户安装的其他 Skill。"
- [ok] "回复 1"的语义绑定上一轮提醒 — SKILL.md 第二段与 skills/dbs/SKILL.md 都规定必须有上一条提醒上下文,否则不得解释数字含义。
- [ok] 时间戳缓存机制可回源 — check-update.sh 定义 CACHE_FILE="$DBS_DIR/update_check_at" 与 CACHE_TTL=86400,与 SKILL.md 的第 2 步配合。
- [ok] 更新日志/版本信息确实存在且为远端来源 — 仓库根 UPDATE.json(version 2.18.40 + notice)与 VERSION 文件存在;check-update.sh 默认从 raw.githubusercontent.com 读取。
- [ok] 是否读取用户凭证或存档内容 — 两条命令均不读取 ~/.dbs 内的存档/报告/决策记录(仅创建目录并写时间戳),无凭证读取。
- [ok] 是否创建后台任务/定时任务/Hook — 原文明确"不创建后台任务、定时任务或 Agent Hook。"
- [ok] 失败路径与网络依赖处理 — SKILL.md 要求按退出状态确认,失败时一句话说明原因与下一步,并要求不贴完整终端日志。
6Verdict & Scenarios
7d66b91d94084816…