メインコンテンツへスキップ
5

ai-plugins (alibaba-java-guidelines)

511659192/ai-plugins/plugins/alibaba-java-guidelines

Ships the Alibaba Java coding guidelines, 44 selected rules, as an embedded harness skill, so writing, changing and reviewing Java code or DDL follows the handbook with a numbered self-check before delivery.

インストール

dsh plugin --profile web add github:511659192/ai-plugins

このプラグインはリポジトリの plugins/alibaba-java-guidelines サブディレクトリにあります。

README

ai-plugins

自建的 DeepSeek Harness 插件索引与插件源码仓库。

索引遵循 DSH 插件市场的 format 1 JSON 格式,可被官方 Discover(@deepseek-ai/dsh-plugin-market)读取;条目里的 source 指向本仓库的某个提交与子目录,安装时由 pnpm 直接从 Git 拉取。

索引地址

https://raw.giteeusercontent.com/yangmengdx3/ai-plugins/raw/main/index.json

市场读取索引时拒绝重定向,所以这里用的是 gitee 的 CDN 直链(实测 200、redirected: false)。 https://gitee.com/yangmengdx3/ai-plugins/raw/main/index.json 会 302 到上面这个地址,不能直接当索引地址。

使用

  1. 让 profile 挂载官方插件市场(@deepseek-ai/dsh-experimental-plugin-market-bundle,提供 plugin-market 服务与 Plugins 页的 Discover)。
  2. 在 Discover 里添加上面的索引地址。
  3. 搜索到插件后点击安装;安装规格由索引生成,形如 git+https://gitee.com/yangmengdx3/ai-plugins.git#<commit>&path:/plugins/drag-workspace。

不想经过市场时也可以直接装:

dsh plugin --profile <profile> add "git+https://gitee.com/yangmengdx3/ai-plugins.git#main&path:/plugins/drag-workspace"

收录的插件

插件目录说明
dsh-plugin-drag-workspaceplugins/drag-workspace把文件夹拖到左侧工作区列表,注册为工作区并打开新会话。
dsh-plugin-alibaba-java-guidelinesplugins/alibaba-java-guidelines把《阿里巴巴 Java 开发手册》精选 44 条做成内嵌技能。
dsh-plugin-content-widthplugins/dsh-plugin-content-width问答区宽度切换(默认/较宽/全宽)+ 正文链接与文件引用改为弹窗打开。

新增一个插件

  1. 把插件包放进 plugins/<name>/,package.json 里必须有 dsh.bundle.patch(只有 dsh.client 不可安装)。
  2. 在 index.json 的 plugins 里加一条,versions[0].source 写成 { "type": "git", "url": "https://gitee.com/yangmengdx3/ai-plugins", "commit": "<40 位提交 SHA>", "path": "plugins/<name>" }。
  3. commit 必须指向已经包含该插件目录的提交;改完插件后先提交插件,再更新索引里的 SHA 并提交索引。

校验索引

索引会被 DSH 自带的 parseMarketIndex 严格校验(字段、SemVer、提交 SHA、图标大小与协议)。 改动后可用已安装的包自检:

import { parseMarketIndex } from '@deepseek-ai/dsh-plugin-market-index'

関連プラグイン