KLRSL/dsh-packer1

dsh-packer

配置打包器:将本地 Agent 资产(技能、会话、配置、设置、记忆)按模块打包成 zip,支持迁移、分享、恢复、差异对比和隐私安全扫描。

AI 分析

核心用途是备份、迁移或分享 DSH 的完整配置与资产。适合需要在多设备间同步、备份数据或分享自定义 Skill 的用户。内置隐私扫描,可在分享时拦截敏感信息。

包名
dsh-packer
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KLRSL/dsh-packer

Usage

Packing flow

  1. Open the Settings → "Config Packer" tab, or run /pack create.
  2. Pick the modules — or use a preset (Migrate = everything, Share = Skills only).
  3. The privacy scan runs automatically before packing; in share mode it hard-blocks on any hit.
  4. Confirm the file list (use --dry-run to preview without generating a zip).
  5. The zip is written to the packs directory (default ~/.dsh/packs); share packs get an automatic README.md.

Restore flow

  1. Import the zip (pick the file in the Settings tab, or /pack restore ).
  2. manifest.json is validated (schemaVersion + SHA-256 fingerprints).
  3. Review the diff report: added / changed / same / skipped.
  4. Choose a conflict strategy: overwrite / skip / merge (merge appends text content without overwriting).
  5. 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-run only 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.