计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
dsh-plugin-creator【效率与协作】Create a @deepseek-ai/dsh-* plugin package end-to-end — choose the extension point or capability seam, scaffold the package, implement the tool/hook/service, and run the repo gates. 触发:新增插件 / 加工具 / 开发 capability。
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when adding or modifying a plugin (@deepseek-ai/dsh-* package) in this repository. It compresses the repo's extension-point map, package checklist, and testing policy into one ordered procedure. Each step names the authoritative file; the full grounded detail with per-step sources lives in references/plugin-dev-sop.md.
Activate when the user asks to add a plugin, package, capability seam, tool, hook, or model provider to this repo.
Do not activate when the task only runs a skill, reviews code, or fixes a bug in an existing package without adding a contribution.
docs/architecture.md). Extending dsh means mounting a plugin beside the others.packages/AGENTS.md "Plugin exports"): a function plugin exporting name/inject/Config/apply with no default export, or a Service subclass with a default export. Never mix the forms.ctx.effect() / ctx.on() / ctx.waterfall(). A registry's register() returns the disposer, so teardown and hot-reload unwind automatically.docs/architecture.md "Where new behavior goes" and pick the mechanism: register a ctx.tools tool, listen on an agent/* / tools/* event, or define a new capability seam.docs/cookbook/extension-cookbook.md "feature → mechanism map" for an existing mechanism before inventing one.docs/glossary.md capability-seam).packages/<group>/; a new group is a pure container.Create packages/<group>/<pkg>/ with package.json, tsconfig.json, src/index.ts, src/types.ts (types only), src/invariant.ts, and a bilingual README.md + README.zh.md. Follow the package.json invariants (private, version aligned to root, type: module, cordis in both peer and dev deps, exact files list) and register the package in exactly one aggregate — tsconfig.host.json or tsconfig.client.json. Full checklist: docs/cookbook/adding-a-package.md.
next() to delegate; returning without it short-circuits (docs/cordis-primer.md).@mode tag.Controller/Store/Registry/Provider/Backend/…), not the first implementation.Config fields, not DEFAULT_* constants; explicit resolve(request): Spec, no hidden ?? default in run().ctx.get(name); cross-boundary ids use Branded<B>.execute() contract in docs/cookbook/adding-a-tool.md: typed args, one canonical JSON value, honor exec.signal, output.render owns prose, presenters stay pure.Every package owns src/invariant.ts registering its manifest name and checking one event or data relation, or stating No runtime invariant: with a reason (packages/AGENTS.md).
Follow docs/testing.md: an HMR-safety test for every registry, per-file 100% coverage on packages/*/*/src, a non-unit REAL-composition test for any product-visible plugin, and a keyless snapshot in the same PR for any model- or user-visible change.
Write the package README.md with service API, config, events, and extension points first, then the canonical ## Model Experience and ## Known Limitations and Deferred Work sequence. Pair it with README.zh.md, and add an Agent Note in the same PR for any non-trivial change.
pnpm install
pnpm run doc-sync
pnpm run constraints && pnpm run typecheck && pnpm run lint
pnpm run build && pnpm run hygiene
Then run only the checks the changed surface reaches — do not default to the full suite.
Split independent changes; label kind/* plus every material area/*; keep the Agent Note in the same PR.
references/plugin-dev-sop.md — the full grounded SOP with per-step sources.references/skill-composition.md — how this skill hands off to the dsh-* skill family.用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
task-specific(仅本次)还是 reusable(可跨任务复用)。task-specific 只修改当前任务,不改 Skill。reusable 先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。reusable 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。