# dsh-plugin-lion-skills

English | [中文](#中文)

[Lion-Skills](https://github.com/Lion-1209/Lion-Skills) as a [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin: a developer-focused agent skill suite, written in Chinese, mounted on the `ctx.skills` registry as a read-only bundled provider.

Skill bodies are plain Markdown files with `name`/`description` frontmatter — the same shape Claude Code uses — so the suite stays editable without a build step.

## Install

```sh
dsh plugin --profile web add dsh-plugin-lion-skills
```

Or from a checkout:

```sh
dsh plugin --profile web add /path/to/dsh-plugin-lion-skills
```

The package declares a `dsh.bundle` patch that inserts one `lion-skills` row; `dsh plugin add` activates it automatically. Replace or disable the row from your profile's own `cordis.patch.yml` by targeting the id `lion-skills`.

## Skills

| Skill | Routes when (zh) |
| --- | --- |
| `clarifying-questions` | 需求模糊、含隐藏假设或 X-Y problem，需先澄清再动手时 |
| `code-review` | 审查代码，需有重点、分层次地看时 |
| `commit-message` | Git 改动需编写规范提交信息时 |
| `debugging` | 遇到 bug、报错、崩溃或行为异常，需定位根因时 |
| `error-handling` | 设计或改进错误处理与日志时 |
| `naming` | 为代码标识符（变量/函数/类/文件/API/数据库字段）决定名字时 |
| `onboarding-unknown-codebase` | 需快速上手陌生代码库、理解项目结构时 |
| `spec-writing` | 需为非平凡功能/重构写设计文档（spec/design doc/RFC）时 |
| `task-breakdown` | 需把需求拆成可执行任务并排依赖时 |
| `testing` | 需为代码写测试或改进脆弱测试时 |
| `verify-and-fix` | 交付前需验证完成，或修 bug 需修病因不修症状时 |

The `lion-writing-skills` meta-skill is intentionally not bundled: it only applies inside the Lion-Skills repository itself.

## Behavior

- Registers one provider named `lion-skills` with bundled-rank (600) candidates, so project, runtime, and user skills with the same name win over this suite.
- Each skill declares `resourceBase: directory`, letting bodies reference sibling files such as `evals/evals.json`.
- Malformed frontmatter fails loud at discovery instead of silently skipping a skill.

## Develop

```sh
npm install
node --test test/
```

## License

[MIT](LICENSE) — same as the upstream Lion-Skills suite.

---

# 中文

[Lion-Skills](https://github.com/Lion-1209/Lion-Skills) 的 DeepSeek Harness 插件版：一套面向开发者的中文 agent 技能，以只读 bundled provider 的形式挂到 `ctx.skills` 注册表上。

技能本体是带 `name`/`description` frontmatter 的纯 Markdown 文件（与 Claude Code 同构），无需构建即可编辑。

## 安装

```sh
dsh plugin --profile web add dsh-plugin-lion-skills
```

包声明了 `dsh.bundle` patch，`dsh plugin add` 会自动把 `lion-skills` 行加入 profile 层叠；你可以在自己的 `cordis.patch.yml` 里按 id `lion-skills` 替换或禁用它。

## 行为说明

- 注册名为 `lion-skills` 的 provider，候选为 bundled 级（rank 600）：同名时项目级、运行时、用户级技能优先于本套件。
- 每个技能声明 `resourceBase: directory`，技能正文可引用同目录资源（如 `evals/evals.json`）。
- frontmatter 损坏会在发现阶段直接报错，不会静默跳过。
- 未打包 `lion-writing-skills` 元技能：它只在 Lion-Skills 仓库内部有意义。
