agentleFS
DeepSeekKnown publisherdeepseek-ai/deepseek-harness/.agents/skills/dsh-pr-description/SKILL.md

dsh-pr-description

Skill289k starsChanged 4 months agoMITView on GitHub

Use when creating a deepseek-harness pull request, or when updating its description after later changes or a handled review round. Defines each description section, Issue references, module responsibilities and dependency edges, test design, change-specific disclosures, and the AI Usage section with its levels, stages, grading rules, AI-DECLARATION badge, and update timing.

  • Commits and pushes

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about deepseek-ai/deepseek-harness

The biggest 5 of 66 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 66

Talked about on GitHub, Bluesky and Hacker News (66 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 13

8 more on Bluesky

On Hacker News · 3

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the complete description when you create the PR.

    line 13
  2. Distinctive:

    After the PR exists, update the affected sections when the description no longer matches the PR, at times you judge suitable.

    line 14
  3. Very specific:

    When the edges involve four or more packages, a Mermaid graph may follow the list.

    line 43
  4. Distinctive:

    When the PR mixes change types, give one form for each type present.

    line 93
  5. Distinctive:

    Add one entry per test method.

    line 97
  6. Very specific:

    Put reviewable evidence, such as test output, screenshots, recordings, or logs, in that entry's <details><summary>Proof</summary> block.

    line 99
  7. Distinctive:

    Write each disclosure in the section it concerns, usually Changes, after a bold English label that names it, such as Existing test behavior.

    line 103
  8. Distinctive:

    breakdown 问题拆解: after the problem appears, whether a human takes part in breaking it down, or the Agent acts on it directly.

    line 133
  9. Distinctive:

    When the upstream specification changes, update every version reference in this skill and the PR template.

    line 190
  10. Very specific:

    Keep the ai-declaration markers so an existing declaration can be replaced in place without duplicating it.

    line 211
  11. Distinctive:

    Write the description in the PR description's language, in one or two sentences of at most 80 Chinese characters or 40 English words.

    line 212
  12. Very specific:

    When you create the PR, the review row reads | review 评审处理 | n/a 暂不适用 | — | followed by a statement, in the description's language, that no …

    line 218
  13. Distinctive:

    When the description is updated after the PR exists, rewrite the affected rows so that they cover all work so far, including earlier stages …

    line 219
  14. Distinctive:

    When a stage's level changes, update its row.

    line 220
  15. Very specific:

    Write the description to a file that git ignores, such as .artifacts/pr/body.md.

    line 248
  16. Very specific:

    After writing, read the description back and confirm that all four sections are present, that the dependency edges in Changes match the …

    line 250

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Writing PR descriptions

This skill defines what a deepseek-harness PR description contains, how to write it, and when to update it. The PR template supplies only the section headings and placeholders; this skill owns the requirements for each section. Every PR description follows this skill, including PRs created with gh pr create --body-file, which skips the template.

Scope

  • Write the complete description when you create the PR.
  • After the PR exists, update the affected sections when the description no longer matches the PR, at times you judge suitable.
  • Each PR in a stack has its own description, which covers only that layer's changes against its base branch.

Description structure

The description uses four second-level headings, in this order: ## Motivation, ## Changes, ## Testing, and ## AI Usage.

Write fixed section headings and labels, such as Interface changes, Behavior changes, Module responsibilities and dependencies, Test design, and Test entries, in English. Write table headers and the rest of the description in the PR description's language, Chinese unless a human asked for another language.

Motivation

  • State the problem in one sentence.
  • Reference at least one same-repository Issue: use Fixes #N, Closes #N, or Resolves #N when the PR resolves it, and Refs #N when it only gives context. PR numbers do not count as Issue references, and neither do references inside HTML comments, code fences, or inline code. Issue management owns the exact rules and the Priority matching.

Changes

  • Interface changes: summarize changes to commands (including repository scripts), flags, configuration keys, environment variables, public exports, plugin registration values, protocols, or persisted formats; write None when there are none.
  • Behavior changes: summarize results that users, models, developers, or the system can observe, including defaults, performance, timing, and output; write None when there are none. Changes to documentation and agent instructions, such as READMEs, AGENTS.md, and skills, are behavior changes for the readers they guide.
  • Module responsibilities and dependencies: state the responsibility of each package that the structural change involves, and every runtime dependency between workspace packages that the PR adds or removes, in the form that Module responsibilities and dependencies defines; write None when the PR adds or removes no package, adds or removes no runtime dependency between workspace packages, and moves no responsibility between packages.
  • State only behavior that the diff guarantees and the tests cover.

Module responsibilities and dependencies

A reviewer uses this item, before reading the diff, to judge whether each package has one responsibility and whether each added dependency is necessary. A workspace package is a member that pnpm-workspace.yaml lists; name it by the name in its manifest without the @deepseek-ai/ scope, which can differ from its directory name. When the item is not None, it has three parts, in this order:

  1. Responsibility table: one row for each package that the PR adds or removes, that is the source of an added or removed dependency edge, or that gains or loses a responsibility. The columns are the package, its responsibility in one sentence, and what this PR does to it: added, removed, changed and how, or unchanged and depended on. Packages that have the same role and receive the same change may share a row. A package that the PR does not change and that is only the target of an added edge gets a row when its responsibility explains why the edge is needed; a general utility package, such as dsh-error, may be left out. A package whose only change is a composition edge gets no row.
  2. Dependency edges: a list of every runtime dependency between workspace packages that the PR adds or removes, each written A → B for "A depends on B" and marked as added or removed. Take the edges from the diff, never from memory: in git diff <base>...HEAD -- '*package.json', compare the dependencies, peerDependencies, and optionalDependencies of each workspace package's manifest. Leave out devDependencies, the package.json files of test fixtures and templates, and dependencies on the vendored packages under vendor/. Mark an optional peer dependency or an optionalDependencies entry as optional. One list item may hold edges that share a source or a target, but every edge appears. List the edges of a bundle, app, or deploy root that only mounts a plugin or adds a package to its closure in a separate composition item, because they are not runtime calls. End the list with a reverse-edge item: for each added edge A → B, check that the runtime dependencies of B do not name A, then state that no added edge has a reverse edge, or list each one that has.
  3. Call flow: three to six lines of pseudo-code, in a code fence, that show the main call path across the packages. Write it only when the PR adds or changes a call between packages.

When the edges involve four or more packages, a Mermaid graph may follow the list; it never replaces the list.

Filled in from the manifests, READMEs, and call sites of #8521:

**Module responsibilities and dependencies**

| 包 | 职责 | 本 PR 的变化 |
|---|---|---|
| `dsh-deepseek-auth` | `ctx.deepseekAuth`:在 API 密钥与账号登录之间选择,把凭据绑定到所属部署,给出请求头 | 新增 |
| `dsh-llm-deepseek-api-key`、`dsh-llm-deepseek-account` | 注册各自的 DeepSeek 模型路由 | 用 `connect()` 登记自己的部署,用 `authorize()` 取请求头 |
| `dsh-web-deepseek-api`、`dsh-web-search-deepseek` | Search / Fetch API 与 Messages 搜索 | 改为向 `ctx.deepseekAuth` 取凭据,不再自己读账号服务和模型路由配置 |
| `dsh-sdk-jsonrpc-server` | SDK JSON-RPC 服务 | 组合里没有 `deepseekAuth` 时自己挂载它 |
| `dsh-credentials`、`dsh-deepseek-account` | 凭据存取、账号登录 | 不变,被 `dsh-deepseek-auth` 读取 |

依赖边:

- 新增 `dsh-deepseek-auth → dsh-credentials`、`dsh-error`、`dsh-launch-environment`、`dsh-deepseek-account`(可选)
- 新增 `dsh-llm-deepseek-api-key → dsh-deepseek-auth`、`dsh-llm-deepseek-account → dsh-deepseek-auth`
- 新增 `dsh-web-deepseek-api → dsh-deepseek-auth`、`dsh-web-search-deepseek → dsh-deepseek-auth`
- 新增 `dsh-sdk-jsonrpc-server → dsh-deepseek-auth`
- 删除 `dsh-web-deepseek-api → dsh-deepseek-account`(可选)、`dsh-web-deepseek-api → dsh-launch-environment`
- 删除 `dsh-web-search-deepseek → dsh-llm`
- 组合:`dsh-base`、`dsh-sdk-minimal`、`dsh-python-runtime-closure` 新增 `dsh-deepseek-auth`
- 反向边:无。`dsh-deepseek-auth` 的运行时依赖只有第一条中的四个包,不含任何新依赖它的包;这四个包都不依赖 `dsh-deepseek-auth`

调用流程:

```ts
const authorization = await ctx.deepseekAuth.authorize({
  consumer: 'my-plugin', accepts: ['account', 'api-key'], billing: 'auto',
  route, destination: { path: '/v1/tools/search' },
}, signal)
await fetch(authorization.endpoint, { headers: authorization.headers, signal }) // 请求仍由使用方自己发
```

Testing

Testing starts with the test design, followed by the test entries.

Test design: summarize how the tests cover each item in Changes and why that coverage is complete. Choose the form by change type:

Change typeWhat the test design shows
Behavior changeA behavior matrix of scenario × behavior before × behavior after × covering test, showing which scenarios failed or differed before the change
Performance changeBefore and after values per stage or scenario, with the measurement conditions: machine, run count, and how the value is taken
Refactoring or migration without behavior changeHow the unchanged behavior is shown: byte-for-byte comparison, unchanged snapshots, or old-versus-new comparison tests
Documentation onlyHow the content is checked: links, bilingual pairing, example compilation, or similar

When the PR mixes change types, give one form for each type present. Items that Changes lists as None need no test design.

Test entries:

  • Add one entry per test method; state the command or steps visibly, and the behavior it covers.
  • List only tests that have run, with their results; add later runs when the description is updated. State whether the evidence comes from a local run or from CI.
  • Put reviewable evidence, such as test output, screenshots, recordings, or logs, in that entry's <details><summary>Proof</summary> block; when the full output is long, the block may hold the command, the counts, and a result summary.

Change-specific disclosures

Write each disclosure in the section it concerns, usually Changes, after a bold English label that names it, such as Existing test behavior; do not add headings.

ChangeWhat the description statesRule owner
Changing the behavior an existing test describesWhy the behavior changedThe Tests describe behavior rule in root AGENTS.md
Raising a ceiling in scripts/doc-budgets.manifest.jsonEach raised ceiling with its old and new value, and why the words are necessaryWordcount budgets
Changing product-user-visible GUI behaviorAn embedded demonstration GIF, with the disclosures that record-browser-gif requires beside the embed; for each GUI change without a GIF, a statement that none is embedded and whyrecord-browser-gif
Using a translation term the terminology list lacksThe source of the rendering, or a proposed rendering under pending termsTranslation rules

AI Usage

This section records how much the AI took part in each stage of the PR, and who made the decisions.

Levels

Levels are ordered from least to most AI involvement; each level pairs an English name with a Chinese name. AI involvement is how much the AI participated in the decisions and work of that stage, recorded as a multiple of 5% within the chosen level's range. It is not a measure of code volume, time, or tokens.

LevelMeaningAI involvement
hint 人工独立A human does the work; AI takes no part or only offers passive suggestions that the human accepts or rejects0–10%
assist 人工主导A human supplies the main content or every key decision; AI completes part of the work15–25%
pair 人工引导A human gives the key direction or constraints and revises the AI's output several times; the human understands the internals30–50%
copilot 人工把关AI completes the whole task; a human reviews, selects, or rejects, and decides or clarifies key points without supplying substantive content55–85%
auto 模型自主AI completes the task autonomously; a human only sets the goal or accepts the output90–100%
n/a 暂不适用The stage does not exist or has not happened yet—

Stages and criteria

Stages appear in a fixed order; each stage pairs an English name with a Chinese name. The criteria below cover assist through auto; judge hint by its meaning in the level table.

breakdown 问题拆解: after the problem appears, whether a human takes part in breaking it down, or the Agent acts on it directly. Confirming that a problem should be fixed belongs to this stage, not to design.

  • auto 模型自主: the Agent acts on the problem directly.
  • copilot 人工把关: the Agent identifies the subproblems, root cause, and scope; a human only confirms them or removes items from the Agent's list.
  • pair 人工引导: a human contributes one or two key facts, such as a suspected direction, a key subproblem, a trigger condition, or a scope limit, or requires tracing the root cause; the Agent identifies the rest.
  • assist 人工主导: a human supplies the list of problems or subproblems that make up the PR's scope, or the root-cause judgment, and sets the scope; the Agent traces the root causes or works from that list.

design 方案设计: who supplies the logical design, and how many trade-offs and detailed changes the human makes. Grade by who supplied the design structure that was adopted, not by who proposed candidates first: when the Agent proposed candidates and the human then supplied the adopted structure, the stage is assist. Design structure means the module split, data flow, key interfaces, or state transitions; for documentation, the directory, page split, and responsibility layering. Constraints stated as observable outcomes are constraints, not structure. A structure that the human reached through successive corrections counts as supplied by the human.

  • auto 模型自主: a human adopts the Agent's design as proposed, or only confirms an option the Agent recommends.
  • copilot 人工把关: a human chooses among the Agent's designs, or rejects parts of one.
  • pair 人工引导: the Agent proposes the design structure; a human gives key constraints, names, or several revisions.
  • assist 人工主导: a human supplies the design structure (module split, data flow, or key interfaces); the Agent fills in the mechanism or writes it up.

testing 验收测试: who sets the acceptance goals, test cases, and test matrix, and who checks the results. For documentation-only changes, the acceptance goals are content requirements. Instructions that only order the work, such as writing tests before the fix, do not count.

  • auto 模型自主: the Agent sets the goals and cases; a human at most approves publishing or confirms a scope the Agent recommends.
  • copilot 人工把关: a human reviews or comments on the cases, the test matrix, or the results the Agent reports.
  • pair 人工引导: a human sets quantified targets or required scenarios, such as a trigger condition or a before-and-after contrast that must be covered, or, for documentation-only changes, content requirements; the Agent designs the concrete cases.
  • assist 人工主导: a human defines the test matrix, its dimensions or rows, and runs or tries the result to check it; the Agent may fill in the values and cases.

implementation 技术实现: human intervention in the changed content, including production code, documentation (READMEs, JSDoc, Agent Notes, comments), CI, and release scripts.

  • auto 模型自主: the Agent writes every change, and the records show no human diff review.
  • copilot 人工把关: a human reviews the diff, including staging it piece by piece, and accepts it or makes a few comments that do not require redoing work.
  • pair 人工引导: a human requires reverting or redoing any part of the work, or specifies a refactoring or an implementation approach.
  • assist 人工主导: a human writes the key parts in the diff; the Agent completes the rest. Dictating content for the Agent to write is not writing it.

review 评审处理: who decides whether each handled review comment is fixed or declined. Comments from bots and from people both count; grade by who decided, not by who posted the reply. When no review comment has been handled, the row stays n/a, even if comments exist or arrived after merge.

  • auto 模型自主: the Agent decides on and replies to every comment.
  • copilot 人工把关: a human gives only a blanket authorization or category-level instructions, or responds to only a few items on a handling list the Agent prepared and leaves the rest to the Agent.
  • pair 人工引导: a human responds to every item other than wording, in the threads or on the Agent's list, deciding to fix, decline, or defer, even with a short acceptance; merged duplicate comments count as one item, and wording comments may be handled by category; the Agent carries out the decisions and replies.
  • assist 人工主导: a human posts replies to reviewers directly, or leads the discussion of disputed items; deciding while the Agent posts the replies is pair.

Grading rules

  • Grade from session records and task records. Messages a human sends in a subagent session count; the instructions an Agent writes to a subagent are not human messages.
  • Count only work that ends up in this PR, including work from earlier sessions that ends up in this PR. A human's request to revert or redo work counts even when the reverted work does not remain in the PR.
  • In breakdown, design, testing, and implementation, the human is the author working with the Agent; reviewers' approvals and comments count only in review.
  • Process and ordering instructions, such as branching, working order, staging, and when to commit, push, or open the PR, do not count as human involvement in any stage.
  • When the records suffice, grade at the level with the most human involvement whose criterion the records meet, and express the human and Agent shares through the AI involvement value. Only when the records do not suffice, take the level with less human involvement that the records support.
  • When a stage covers several changes, grade by the main change and state how the other changes differ in the description. The main change is the one with the largest share of the diff and review effort; when no single change dominates, grade by the change with the most human involvement. When later work changes which change is main, regrade the stage.
  • Within the chosen level's range, choose a lower AI involvement value the closer the human involvement comes to the criterion of the level with more human involvement, and a higher value the closer it comes to the level with less.

Badge URLs

The AI-DECLARATION block pins specification version 0.1.2. Use the badge URL for the level selected in Section format; the badges follow AI-DECLARATION.

LevelBadge URL
hint 人工独立https://img.shields.io/badge/䷼%20AI--DECLARATION-hint-ecfccb?labelColor=ecfccb
assist 人工主导https://img.shields.io/badge/䷼%20AI--DECLARATION-assist-fef9c3?labelColor=fef9c3
pair 人工引导https://img.shields.io/badge/䷼%20AI--DECLARATION-pair-ffedd5?labelColor=ffedd5
copilot 人工把关https://img.shields.io/badge/䷼%20AI--DECLARATION-copilot-fee2e2?labelColor=fee2e2
auto 模型自主https://img.shields.io/badge/䷼%20AI--DECLARATION-auto-ede9fe?labelColor=ede9fe

When the upstream specification changes, update every version reference in this skill and the PR template.

Section format

The section starts with the AI-DECLARATION block, followed by one table row per stage in the fixed order:

## AI Usage

<!-- ai-declaration:start -->
[![AI-DECLARATION: <highest level>](<badge URL>)](https://ai-declaration.md)

**AI declaration** ([v0.1.2](https://ai-declaration.md/en/0.1.2)): `<highest level>`
<!-- ai-declaration:end -->

| 阶段 | 级别 | AI 参与度 | 决策记录 |
|:--|:--|--:|:--|
| <stage English name> <stage Chinese name> | <level English name> <level Chinese name> | <AI involvement> | <description> |
  • The badge level is the level with the most AI involvement among the stage rows; ignore rows with n/a 暂不适用. This follows the specification's rule that the global level is the highest declared level.
  • Keep the ai-declaration markers so an existing declaration can be replaced in place without duplicating it.
  • Write the description in the PR description's language, in one or two sentences of at most 80 Chinese characters or 40 English words. State who made which decisions: name one or two representative decisions, and give only a count for the rest.
  • State the description as settled fact, without hedges such as "not seen in the session" or "pending author confirmation".
  • Refer to people as the author or a reviewer, never by username. Leave out judgments, session times, session ids, direct quotes, and the running or handling of checks and CI (local skips, hooks, reruns, unrelated failures).

Update timing

  • When you create the PR, the review row reads | review 评审处理 | n/a 暂不适用 | — | followed by a statement, in the description's language, that no review comments have been handled yet.
  • When the description is updated after the PR exists, rewrite the affected rows so that they cover all work so far, including earlier stages whose decisions or human share the later work changed; do not append a history of changes.
  • When a stage's level changes, update its row; when the highest level changes, update the badge URL and the declaration line with it.
  • The review row records only handled review comments; it omits approvals, merge timing, and unhandled comments.
  • A review round ends when its fixes are pushed and its comments answered. Comments that arrive after merge do not trigger an update.

Example

Filled in from the session and review records of #6013:

## AI Usage

<!-- ai-declaration:start -->
[![AI-DECLARATION: pair](https://img.shields.io/badge/䷼%20AI--DECLARATION-pair-ffedd5?labelColor=ffedd5)](https://ai-declaration.md)

**AI declaration** ([v0.1.2](https://ai-declaration.md/en/0.1.2)): `pair`
<!-- ai-declaration:end -->

| 阶段 | 级别 | AI 参与度 | 决策记录 |
|:--|:--|--:|:--|
| breakdown 问题拆解 | pair 人工引导 | 40% | The author identified two process-specific values that do not belong in the system prompt and pointed to the custom model route; the Agent traced the root cause. |
| design 方案设计 | assist 人工主导 | 20% | The author supplied the design structure: runtime context, frozen legacy sections for old sessions, and a separate package; the Agent filled in the projection matching. |
| testing 验收测试 | pair 人工引导 | 40% | The author required two scenarios: restoring an old session after upgrade, and changing ports after upgrade; the Agent wrote the cases and snapshots. |
| implementation 技术实现 | pair 人工引导 | 35% | The Agent wrote the code and the Agent Note; the author required one revert and specified 3 approaches, such as getOrigin() instead of an origin property. |
| review 评审处理 | pair 人工引导 | 40% | The author decided each bot comment, such as no upgrade guide and keeping a devDependency; the Agent fixed and replied. |

Creating and updating the description

  1. Write the description to a file that git ignores, such as .artifacts/pr/body.md. Create the PR with gh pr create --body-file <file>, or update it with gh pr edit <number> --body-file <file>; when the description embeds a GIF, follow record-browser-gif and use --attach.
  2. Before an update, save the current description with gh pr view <number> --json body --jq .body, and change only the sections that need it: keep content and media the author wrote, replace only the contents of an existing ai-declaration block, and remove statements that no longer match the code. When the description still has the old ## Human and Agent Roles heading, replace that heading and its level line with ## AI Usage and the block; keep only one AI Usage section.
  3. After writing, read the description back and confirm that all four sections are present, that the dependency edges in Changes match the current diff, that AI Usage matches the current code and review state, and that no old ## Human and Agent Roles section remains.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.