返回目录
文件与数据 插件

dsh-skill-sync

mi-lu-uncle/dsh-skill-sync

DSH plugin: keeps a local skills-repo mirror up to date (periodic git pull + /skills-sync)

Stars
0
Forks
0
Issues
0
更新
24 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:mi-lu-uncle/dsh-skill-sync

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-skill-sync

English | 简体中文 | 日本語

Thin wrapper around the mattpocock skills sync script, exposed as a DSH command and an opt-in periodic timer.

Why

DSH's filesystem skill provider hot-reloads skill directories after a git pull (its watcher follows symlinks by default), but nothing triggers the pull or keeps the symlinks in sync. The sync script does both halves:

  1. fast-forward the mirror from its origin, and
  2. reconcile symlinks in the skill root — link newly added skills, repair moved ones, and remove stale links for skills that were deleted or deprecated.

This plugin just runs that script:

  • a /skills-sync command for an immediate sync, and
  • an opt-in periodic timer (auto: true to enable; default off).

Usage

/skills-sync        # run the sync script now, show its report

Configuration

Set these on the skill-sync row in your profile patch (cordis.patch.yml):

- id: skill-sync
  config:
    script: /absolute/path/to/custom-sync.sh                # optional; defaults to the bundled script
    intervalMs: 1800000                                     # default: 30 minutes
    auto: false                                             # default: false (set true to opt in)

Install

Clone the mirror once before installing. Existing files and links from other sources are preserved and reported as conflicts; divergent history is reported without resetting the mirror.

mkdir -p ~/.dsh/repos
git clone https://github.com/mattpocock/skills ~/.dsh/repos/mattpocock-skills
dsh plugin --profile desktop add /absolute/path/to/dsh-skill-sync

Test

node test/smoke.mjs            # wrapper: registers command, relays script output
node test/sync-script.test.mjs # script: pull + symlink reconcile against a temp remote

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类文件与数据
规则置信度低

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: sync。