---
title: "用 DSH Plugin Guide 学习插件开发红线和 Cordis"
seo_title: "DSH Plugin Guide：按需加载插件开发规范与 Cordis 指南"
description: "在 DeepSeek Harness（DSH）中安装 Plugin Guide Skill，按需查询插件开发红线、Cordis 入门、文档快照与常见踩坑。"
canonical: https://52dsh.com/tutorials/perrylink-dsh-plugin-guide-install-config/
authors: ["52DSH 编辑部"]
published_at: 2026-08-22
updated_at: 2026-08-22
verified_on: 2026-08-22
maintenance_status: community
verification_level: source_reviewed
risk_level: low
plugin_id: perrylink-dsh-plugin-guide
tutorial_kind: plugin_configuration
related_plugin_url: https://52dsh.com/plugins/perrylink-dsh-plugin-guide/
---

# 用 DSH Plugin Guide 学习插件开发红线和 Cordis

在 DeepSeek Harness（DSH）中安装 Plugin Guide Skill，按需查询插件开发红线、Cordis 入门、文档快照与常见踩坑。

把 DSH 插件开发红线、Cordis 入门、官方文档快照、社区深读和常见踩坑打包为按需加载的 dsh-plugin-guide Agent Skill。

如果你的目标是按需查询 DSH 插件开发红线、Cordis 入门和常见踩坑，本教程会说明如何在 DeepSeek Harness（DSH）中准备、安装、配置、验证和回退 dsh-plugin-guide。本文锁定作者仓库提交 `6f9b50d72cbf`；已复核固定提交的原始资料，未进行运行实测。

> 对应插件：[查看 dsh-plugin-guide 的功能、权限与兼容性说明](/plugins/perrylink-dsh-plugin-guide/)。先确认它适合你的工作流，再执行安装。

## 先确认是否适合你

- **分类**：知识与记忆
- **风险等级**：low
- **核验证据**：source_reviewed
- **兼容性边界**：插件版本 0.1.1，声明 DSH >=0.1.0-rc.8 <0.2.0、Node.js ^22.19 或 24+，纯 ESM 且无原生依赖；本站完成固定提交静态审阅，未在当前 0.1.1-rc.2 基线加载 Skill 或逐项核对其 114 个社区仓库档案的新鲜度
- **主要权限关注**：Bundle 入口只读取包内 SKILL.md、guide 和 references，并注册一个按需 Skill；运行时不写文件、不联网、不启动子进程、不直接调用模型或工具

如果你准备在重要工作区使用，先阅读插件详情页的权限和数据流说明；“源码已审阅”或“资料已整理”都不等于安全认证。

## 安装前准备

1. 安装 Node.js 22.19、Node.js 24 或项目当前声明支持的更高版本，并确认 `pnpm` 可用。
2. 使用独立的 `web` Profile 和可丢弃测试工作区，不直接连接生产目录。
3. 备份当前 Profile 配置，并记录安装前的 `--dump-config` 输出。
4. 核对固定来源中的外部服务、账号、运行时和平台限制。
5. 需要凭据时只准备测试凭据；本页识别到的候选变量包括 `GH_TOKEN`。

## 安装 dsh-plugin-guide

52DSH 使用目录中记录的精确安装目标，避免直接跟随可能变化的默认分支：

```bash
npx --yes @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web add github:PerryLink/dsh-plugin-guide#6f9b50d72cbf
```

GitHub 源码插件如果被 pnpm 拦截构建脚本，先检查终端提示的具体包和脚本。只在 `web` Profile 中放行确实需要的构建项，不要全局放行未知依赖。

作者文档还出现了以下命令。它们用于核对功能或开发流程，不应替换上面的锁定安装命令，也不要一次全部执行：

- `dsh plugin --profile web add "github:PerryLink/dsh-plugin-guide#main"`
- `dsh plugin --profile web add dsh-plugin-guide`
- `dsh --profile web --dump-config | grep -A3 'id: dsh-plugin-guide'`

## 插件专属配置

固定提交中包含配置或设置章节。下面只保留能够追溯到作者文档的字段和片段。

**本类插件的最小权限设置：**把存储目录和允许读取的来源限制在独立测试路径，先导入少量不含敏感信息的文档。

### README 中识别到的变量名

以下只列变量名，不代表每个变量都必需；是否使用以及取值格式以对应固定来源为准。

- `GH_TOKEN`

### 作者配置片段（README.zh.md）

来源：[固定提交中的 README.zh.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.zh.md)。复制前先替换占位符并删除不需要的权限。

```sh
# 1. install the bundle into your profile
dsh plugin --profile web add "github:PerryLink/dsh-plugin-guide#main"

# or from npm (published releases)
dsh plugin --profile web add dsh-plugin-guide

# 2. restart and verify the row
dsh --profile web --dump-config | grep -A3 'id: dsh-plugin-guide'
```

### 作者配置片段（README.zh.md）

来源：[固定提交中的 README.zh.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.zh.md)。复制前先替换占位符并删除不需要的权限。

```powershell
# Windows (PowerShell)
pwsh -File scripts/install-skill.ps1 `
  -Target "$env:USERPROFILE\.deepseek\skills\dsh-plugin-guide"   # 或 <project>\.agents\skills\dsh-plugin-guide
```


## 配置验证与成功结果

1. **确认 Bundle 已加载**

   ```bash
   npx --yes @deepseek-ai/dsh@0.1.1-rc.2 --profile web --dump-config
   ```

   期望结果：组合配置中出现 `dsh-plugin-guide` 或仓库声明的 Bundle 名称。

2. **启动 Web Profile**

   ```bash
   npx --yes @deepseek-ai/dsh@0.1.1-rc.2 web
   ```

   期望结果：DSH Web 正常启动，浏览器控制台和终端没有持续重复的插件加载错误。

3. **执行插件专属最小任务**

   写入一条可识别的测试内容，再从新会话检索它并核对原始来源。

   期望结果：检索结果包含测试内容且能追溯来源；删除测试数据后不再返回该内容。

## 第一次使用

- 导入一篇测试 Markdown，询问标题和一个明确事实，并核对引用位置。
- 只验证一个核心能力，保存输入、输出和日志；确认无异常后再扩大权限或数据范围。

## 数据、权限与凭据

**数据流：**包内 SKILL.md 与本地参考资料 → DSH skills 服务目录 → 用户触发插件开发任务时按需载入当前 Agent 上下文；无运行时外部网络和用户数据持久化。

**权限关注：**Bundle 入口只读取包内 SKILL.md、guide 和 references，并注册一个按需 Skill；运行时不写文件、不联网、不启动子进程、不直接调用模型或工具

**数据存储：**作者资料没有形成统一存储结论。测试时检查 web Profile、工作区、用户目录以及所连接的外部服务，并记录新增文件或远端数据。

真实 Token、API Key、Cookie 和账号 ID 不应写进 Git 仓库、网页截图或公开 Issue。测试结束后撤销临时凭据。

## 卸载、回退与清理

1. 停止正在运行的 DSH Web。
2. 从同一个 Profile 移除插件：

   ```bash
   npx --yes @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web remove dsh-plugin-guide
   ```

3. 再次运行 `--dump-config`，确认对应 Bundle 已消失。
4. 检查测试工作区、插件声明的数据目录和外部服务，手动删除测试数据并撤销测试凭据。卸载依赖不会自动删除这些数据。

## 常见问题

### 安装成功但页面或命令没有出现

先运行 `--dump-config` 确认 Bundle 已进入 `web` Profile，再重启 DSH Web 并硬刷新浏览器。不要通过反复扩大权限来解决加载问题。

### 插件运行后没有得到预期结果

把问题缩小到本页的最小验证任务，检查作者文档要求的变量、外部服务和平台限制。保存终端错误原文，并核对当前安装目标是否仍对应本页固定提交。

作者固定资料中未识别到独立故障章节。遇到插件特有错误时，应先停止 DSH、保留日志并回退插件。

## 固定来源证据

以下资料是本文配置结论的依据：

- [README.zh.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.zh.md)
- [README.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.md)
- [SECURITY.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/SECURITY.md)
- [README.es.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.es.md)
- [README.pt.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.pt.md)
- [README.hi.md](https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.hi.md)

继续查看：[返回 dsh-plugin-guide 插件详情页](/plugins/perrylink-dsh-plugin-guide/)，重新核对兼容性、权限、同类插件和来源状态。

## 原始来源

- https://github.com/PerryLink/dsh-plugin-guide
- https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.zh.md
- https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.md
- https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/SECURITY.md
- https://github.com/PerryLink/dsh-plugin-guide/blob/6f9b50d72cbf101995063654d2c64a39ebc73720/README.es.md
