dsh-packer
配置打包器:将本地 Agent 资产(技能、会话、配置、设置、记忆)按模块打包成 zip,支持迁移、分享、恢复、差异对比和隐私安全扫描。
AI 分析
核心用途是备份、迁移或分享 DSH 的完整配置与资产。适合需要在多设备间同步、备份数据或分享自定义 Skill 的用户。内置隐私扫描,可在分享时拦截敏感信息。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KLRSL/dsh-packer说明文档
阅读完整 README ↗Usage
Packing flow
- Open the Settings → "Config Packer" tab, or run
/pack create. - Pick the modules — or use a preset (Migrate = everything, Share = Skills only).
- The privacy scan runs automatically before packing; in share mode it hard-blocks on any hit.
- Confirm the file list (use
--dry-runto preview without generating a zip). - The zip is written to the packs directory (default
~/.dsh/packs); share packs get an automaticREADME.md.
Restore flow
- Import the zip (pick the file in the Settings tab, or
/pack restore). manifest.jsonis validated (schemaVersion + SHA-256 fingerprints).- Review the diff report: added / changed / same / skipped.
- Choose a conflict strategy: overwrite / skip / merge (merge appends text content without overwriting).
- Apply, and restart DSH if needed.
/pack command reference
/pack list # list existing packs (time/size/modules/note)
/pack create [--modules skills,memory] [--mode migrate|share] [--note note] [--dry-run]
/pack create --share # --share is shorthand for --mode share
/pack restore [--strategy overwrite|skip|merge]
/pack scan # privacy-scan every packable module
Details:
list— shows generated packs with creation time, size, modules and note.create— without--modules, modules are chosen by the mode preset (migrate = all; share = Skills only).--dry-runonly previews the file list and scan results; no zip is generated.restore— import zip → validate → diff report → apply with the chosen strategy. Files identical to the pack are skipped automatically under every strategy.scan— runs the privacy scan over every packable module and reports sensitive traces.
Package notes are written at pack time and shown in the package list. In the Settings tab you can also delete or rename packages.