AGENT SKILL

doris-pr-description

Write, rewrite, or check the title and description of an Apache Doris pull request against the Doris PR standard. Takes the facts from the handoff file that development left when there is one, and collects them from the diff, commits, linked issue, and existing tests otherwise; classifies the PR type, fills that type's required fields, drafts the issue a Feature needs, validates the draft with a bundled checker, and creates or updates the PR on GitHub only after the user confirms. Use whenever the user wants to open, create, submit, or update a Doris PR; write, fix, or improve a PR title or description; prepare a branch for review; rewrite an existing PR's description for comparison; or check whether a description meets the standard. Also use for short requests in any language, such as "open a PR", "write the PR description", or "is this PR description good enough?", even when the standard is not mentioned.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 50
Forks
15

01 前言 Front Matter

name
doris-pr-description
description
Write, rewrite, or check the title and description of an Apache Doris pull request against the Doris PR standard. Takes the facts from the handoff file that development left when there is one, and collects them from the diff, commits, linked issue, and existing tests otherwise; classifies the PR type, fills that type's required fields, drafts the issue a Feature needs, validates the draft with a bundled checker, and creates or updates the PR on GitHub only after the user confirms. Use whenever the user wants to open, create, submit, or update a Doris PR; write, fix, or improve a PR title or description; prepare a branch for review; rewrite an existing PR's description for comparison; or check whether a description meets the standard. Also use for short requests in any language, such as "open a PR", "write the PR description", or "is this PR description good enough?", even when the standard is not mentioned.

02 资源文件 35

03 SKILL.md 正文

Writing Apache Doris pull requests

Reviewer time is the scarcest resource in the Doris community. A PR description exists so that a reviewer can decide, in about a minute, whether the change is worth reviewing, what to look at first, and how much time it will take. That minute goes to the title, Background, Problem Summary, and the size of the diff that GitHub shows beside them, so together they must say what the PR does, why the diff is as large as it is, and what changes for existing users. Reviewers often don't know the module or feature a PR touches, so every description opens with a short Background that gives them the context. AI review already concentrates on logic errors; what it almost never comments on is why the change is needed and why this approach was chosen. Only the author can supply those answers, human reviewers spend nearly half their comments asking for them, and this standard puts its weight there.

The standard applies to PRs against master of apache/doris. Cherry-picks to release branches keep the original PR's description and are out of scope.

Modes

Mode When GitHub
Create Open a PR for the current branch, and the issue a Feature needs when it has none Push and create after the user confirms the drafts
Update Improve the title or description of the user's own PR Edit after the user confirms
Rewrite Rewrite any PR's description for comparison or evaluation Never; write files only
Check Judge whether an existing description meets the standard Never; report only

Publishing is visible to the whole community, so when in doubt, draft and ask.

Reading this skill

Paths are relative to this skill's directory. Read a reference file when the step you are on calls for it, and only the files that the mode, the PR type, and the change need; don't read ahead. A file read earlier in the session needn't be read again unless the context has been compacted since.

A development skill such as develop-with-evidence reads references/development.md and the files it points to, not this workflow.

Workflow

  1. Collect the facts.
    • In Create and Update modes, look for the handoff file that development left, by references/handoff-intake.md. When there is one, its facts are the source: don't collect them again. That file says what the PR step still does.
    • Without a handoff file, and always in Rewrite and Check modes, collect the facts by references/facts/basics.md. Add references/facts/existing-tests.md for a PR that changes code, references/facts/bugfix-origin.md for a Bugfix, and references/facts/submodules.md when the diff moves a submodule pointer.
    • In Rewrite mode, read references/rewrite.md before collecting; where it differs from the other files, it wins.
    • When the collection is large, such as a large diff, several release branches to check, or long review threads, references/subagents.md says what to hand to subagents.
  2. Classify the PR type. Take it from the handoff file; otherwise classify by references/classify.md. Then read the type's file, references/types/<file>.md, where <file> is bugfix, performance, feature, enhancement, refactor, test, build-ci-chore, revert, release-dependency, or other.
  3. Stop and ask if a condition in references/stop-and-ask.md applies.
  4. Write the draft by references/write.md, with the type's example in references/examples/<file>.md. For a Feature without an issue, also draft the issue by references/issue.md.
  5. Run the checker and fix what it reports, by references/check-and-publish.md.
  6. Show the drafts, and publish only after the user confirms, by the same file.

In Check mode, do steps 1 and 2, then follow the Check mode part of references/check-and-publish.md.

04 同仓库更多 Skills

apache
apache/doris-skills

develop-with-evidence

暂无简介

★ 50
apache
apache/doris-skills

Doris PR 代码审查

doris-repo-review

从本地 clone 审查 Apache Doris PR,使用与 CI Code Review Runner 相同的多智能体、共享账本收敛工作流。当用户提供一个 PR 给 `/doris-repo-review`、要求在本地审查 Doris PR,或要求 CI 风格的审查流程时使用。安全地仅将当前 worktree 对齐到确切的 PR head,拒绝干扰已跟踪的本地更改,编写对等的英文和中文审查文档并附带经过验证的路径行锚点,绝不构建、测试或编辑源码。只有在明确选择合格审查者并使用受支持的 effort(xhigh 或 max,Codex 另支持 ultra)时,才将审查视为等同流水线;Codex 上优先 GPT-6 Astra,Claude Code 上优先 Fable 5.1。在收敛出 APPROVE 结果后,自动发布一条绑定到被审查 commit 的机器可读 PASS 评论。

软件开发工程师代码仓库协作管理
★ 50
apache
apache/doris-skills

Doris 查询 Profile 性能分析

doris-profile-reader

解读 Apache Doris 查询运行时 profile,尤其包括 profile 瓶颈分诊、误导性等待计数器、每算子指标优先级、扫描、join 顺序/运行时过滤分析,以及基于证据的性能解释。当给定 Doris profile、query id、profile URL/文本,或要求解释 Doris 查询性能时使用。

数据库管理员调试与故障排查
★ 50
apache
apache/doris-skills

Doris Tablet 故障诊断

doris-debug-tablet

用于 Doris tablet/副本健康、版本倾斜、克隆积压、磁盘均衡以及 tablet 修复。命令:SHOW PROC tablet_health、SHOW TABLET、ADMIN REPAIR。

数据库管理员调试与故障排查
★ 50
apache
apache/doris-skills

Doris 资源隔离调试

doris-debug-resource-isolation

用于 Doris Workload Group / 资源标签队列饥饿、CPU/内存隔离泄漏以及工作负载策略调试。命令:SHOW WORKLOAD GROUPS、EXPLAIN resource。

数据库管理员调试与故障排查
★ 50
apache
apache/doris-skills

Doris 慢查询故障排查

doris-debug-query

用于排查 Apache Doris 的慢查询、挂起或超时查询。涵盖 FE 规划器(Nereids 超时)、BE Profile 瓶颈,以及端口 8060 上的 Exchange WaitForData / brpc E1008。会话变量:enable_profile、query_timeout、nereids_timeout_second。

数据库管理员调试与故障排查
★ 50