Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dsh-plugin-verify

БесплатноБез исполняемых скриптовНе проверен

Build and verify an owned DSH plugin without touching the live instance — host-bundle import check, HMR vs restart, old-host tolerance, settings/Config rules…

astahmerот astahmer★ 21 звезда на GitHub

Об этом скилле

Verifying a DSH plugin

Never restart or kill the live DSH (see AGENTS.md). Discover its actual URL/profile from current runtime context; verify in a disposable home/profile, not a hardcoded machine deployment.

0. Workspace preflight

Identity and stale-artifact failures read like plugin bugs. Clear them first:

fnm exec --using="$(cat .node-version)" pnpm --dir plugins install --frozen-lockfile   # lockfile matches the tree
fnm exec --using="$(cat .node-version)" pnpm --dir plugins run contract                # every package has build/test/typecheck

A stale lockfile, a second copy of a @deepseek-ai/* package, or a plugin package without a test script all fail in ways that look like plugin code. Diff the failing paths against your own change before editing the plugin. See Troubleshooting plugin development for Cordis resolution, TypeScript build errors, and advice specific to older DSH installs.

1. Build and import-check

cd plugins/@dshfiles/<plugin>
pnpm typecheck && pnpm test && pnpm build
fnm exec --using=24.11.1 node -e "import('./dist/index.js')"   # 24.11.1 = .node-version, the DSH Node

An import failure here is exactly what shows up at boot as "did not activate". dist/ is not versioned. Changed classes? Rebuild @dshfiles/ui-styles too (skill plugin-ui).

Changed an exported schema, API type or dshx module? Check every importer before landing, through turbo so dependencies (dshx included) are rebuilt first:

pnpm exec turbo run typecheck test --filter='...@dshfiles/<plugin>'   # the plugin and all its dependents

A per-plugin pnpm typecheck passes while a dependent breaks (a multi-host schema migration landed and broke thread-sidebar), and against a stale tooling/dshx build it reports errors that are only old generated declarations (DshxFeatureCatalogSchema.safeParse is not a function). Rebuild before debugging those.

Then the catalog contract, spans included:

fnm exec --using=24.11.1 pnpm --dir tooling/dshx run features:check

A new or changed feature lists telemetry; new Host I/O (fetch, socket, child process, subprocess spawn) opens a span or is named in ioDelegation, and a custom span's test calls recordSpans() and asserts the span by name. dshx build rejects a catalog without telemetry. Rules: docs/observability.md#the-telemetry-contract-checked.

2. HMR or restart?

Change Reaches the running DSH
dist/client.js (client code, CSS) HMR within ~500 ms, no restart
dist/index.js host code, package.json, cordis.patch.yml, settings namespace, profile composition only after the user restarts

So the live DSH keeps running the old host while new clients hot-reload. Clients must tolerate it:

  • Decode Host snapshots once at the boundary with defaults; never assume a new field or method exists (accounts.refreshUsage().catch(() => accounts.usage()) in ai-accounts/src/accounts-queries.ts).
  • The settings namespace may be unregistered on the old host (namespace-unregistered, writable: false) → fall back to defaults, never throw.

Once the change is on main, dshx checkout sync moves the live checkout, rebuilds the changed plugins and reports which row applies to each.

3. Host contract rules

  • useApi / useSettings only in components registered through dshx decorate(...) (or defineSlot); otherwise the first render throws "unavailable outside a DSHX Client Slot component".
  • One Host entry cannot declare both native Config and dshx settings — split the entry.
  • defineSettings.namespace must equal the Loader row id in cordis.patch.yml (new plugins: dshfiles-<plugin>).
  • Edit a profile's cordis.patch.yml by hand only outside its managed marked block. Identify the actual local reconciler before editing; do not assume a particular machine's Nix configuration.

Capabilities other plugins and the agent use

One dshx API serves Clients, other Host plugins and (opt-in) the agent; see tooling/dshx/docs/guides/api.md#one-registry-other-plugins-clients-and-the-agent.

  • A contract another package imports sets owner and gives each method a description.
  • Agent tool that wraps API logic → method({ ..., tool: { name, readOnly } }), not a second defineTool restating the parameters. Keep readOnly off for anything that writes.
  • Host code calls another plugin with createHostApiClient(ctx, contract, packageId), never a Cordis service grab or an HTTP fetch.
  • An absent owner is isApiOwnerMissing(error) (Host and Client): stop polling and hide the f
Полный SKILL.md на GitHub

Установить dsh-plugin-verify в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dsh-plugin-verify?

Build and verify an owned DSH plugin without touching the live instance — host-bundle import check, HMR vs restart, old-host tolerance, settings/Config rules, probe and scratch profiles, browser-console checks and perf budgets. Use after changing any plugin under plugins/@dshfiles/*, before reporting it works, or when a plugin "did not activate" / a slot crashes.

Как установить скилл dsh-plugin-verify?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dsh-plugin-verify запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dsh-plugin-verify с