🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
📝 docs: split the pull request template by human and AI authors (#19883)
Innei9de9ec0c5772
diff --git a/.agents/skills/pr/SKILL.md b/.agents/skills/pr/SKILL.mdindex c9f4c7c4631..a5f845c7b16 100644--- a/.agents/skills/pr/SKILL.md+++ b/.agents/skills/pr/SKILL.md@@ -54,10 +54,12 @@ A feature or fix needs a published acceptance round before the PR is opened (AGE### 6. Create PR with `gh pr create --base canary`- Title: `<gitmoji> <type>(<scope>): <description>`-- Body: based on PR template (`.github/PULL_REQUEST_TEMPLATE.md`), fill checkboxes+- Body: based on PR template (`.github/PULL_REQUEST_TEMPLATE.md`)+- Obey the `AGENT-INSTRUCTIONS` HTML comments in that template. Keep them commented out, and do not copy them into the visible description.- Link related GitHub issues using magic keywords (`Fixes #123`, `Closes #123`)- Link Linear issues if applicable (`Fixes LOBE-xxx`)-- Put the acceptance link (or the explicit skip reason) under **Test**+- Put the acceptance link (or the explicit skip reason) under **Test** in the Human section+- Fill **Human** for every pull request. Fill **AI** only when an agent produced the change and `gh api user/memberships/orgs/lobehub` does not return `"state": "active"`. Then record harness, model, thinking level, and every user prompt from this session, in order. Before those prompts go into the body, review the whole session and redact any sensitive content. Show the author the exact text and wait for confirmation before opening or updating the pull request. A person who wrote the change, or an active lobehub organization member, deletes the AI section.- Use HEREDOC for body to preserve formatting### 7. Open in browser@@ -66,13 +68,10 @@ A feature or fix needs a published acceptance round before the PR is opened (AGE## PR Template-Use `.github/PULL_REQUEST_TEMPLATE.md` as the body structure. Key sections:+Use `.github/PULL_REQUEST_TEMPLATE.md` as the body structure. The HTML comments marked `AGENT-INSTRUCTIONS` are mandatory for the agent that fills the body. Two sections:-- **Change Type**: Check the appropriate gitmoji type-- **Related Issue**: Link GitHub/Linear issues with magic keywords-- **Description of Change**: Summarize what and why-- **How to Test**: Describe test approach, check relevant boxes-- **Acceptance**: the published `https://app.lobehub.com/acceptance/<id>` link, or why the change has no user-visible outcome+- **Human**: what changed, screenshots, how it was tested, the acceptance link (or why none is needed), and the related issue. Fill this for every pull request.+- **AI**: delete the whole section when a person wrote the change, or when the author is an active member of the lobehub organization. When an agent wrote the change and the author is an outside collaborator or an external contributor, fill harness (product and version), model id, thinking level (`n/a` when the harness has none), and every user prompt from the session, in order. Review the whole session first and redact any sensitive content. Show the author the exact text and wait for confirmation before publishing. Repeat once per agent session.## Notesdiff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdindex 1d413d199de..ecfcddce875 100644--- a/.github/PULL_REQUEST_TEMPLATE.md+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -1,6 +1,37 @@+<!--+AGENT-INSTRUCTIONS — follow these. Keep them commented out. Do not copy them into the visible description. Delete them after you comply.++You are the agent preparing this pull request. Decide who wrote the change, then edit this body.++HUMAN — a person wrote the code. No agent produced the diff.+- Fill the Human section.+- Delete the entire AI section.++AI — an agent produced the diff.+- Fill the Human section too: what changed, screenshots, how it was tested, acceptance, and the related issue.+- Then decide if the AI section stays:+ - Run `gh api user/memberships/orgs/lobehub`.+ - `"state": "active"` means the author is a lobehub organization member. Delete the entire AI section.+ - Anything else — 404, an error, pending, or the check failed — means an outside collaborator or an external contributor. The AI section is mandatory. Do not delete it.++When the AI section is mandatory you MUST fill all four fields. Leaving a placeholder is not done.++1. User prompts. Every user message in the session that produced this pull request, in order. Include later corrections. Do not summarize, merge, translate, or skip a turn. One fenced text block per turn.+ Before you write them into this body, review the whole session for anything that should not be public: credentials, tokens, keys, passwords, PII, customer or private issue data, internal URLs, tool-call details, images, uploaded files, and any other confidential text. Redact each sensitive span in place with `[redacted]`.+ Show the author the exact text you will publish, and wait for them to confirm it. A public pull request cannot be taken back. Do not open or update the pull request until they confirm.+2. Harness. The product and version you are running.+3. Model. The model id this session called.+4. Thinking level. The thinking or reasoning level this session was set to. Write `n/a` only when this harness has no thinking-level control.++Repeat the AI section once per agent session that produced commits.+If you keep the AI section, delete the visible line "Delete this section if a person wrote the change."+-->++### Human+<!-- Brief and heads-up -->-<!-- If this PR includes UI changes, please provide screenshots or videos. -->+<!-- If this PR includes UI changes, please provide screenshots or videos. Remove the table when nothing visual changed. -->| Before | After || ------ | ----- |@@ -10,7 +41,7 @@<!-- How you tested your changes -->-<!-- For AI features, please include test prompts or scenarios -->+<!-- For product AI behavior, note the scenarios you tried. The session's user prompts go in the AI section. -->- [ ] Tested locally- [ ] Added/updated tests@@ -24,4 +55,36 @@<!-- Link to the issue that is fixed by this PR -->-<!-- Example: Fixes #xxx, Closes #xxx, Related to #xxx -->+<!-- Example: Fixes #xxx, Closes #xxx, Related to #xxx, Fixes LOBE-xxx -->++### AI++Delete this section if a person wrote the change.++<!--+AGENT-INSTRUCTIONS — keep this commented out.+A person wrote the change, or `gh api user/memberships/orgs/lobehub` returns `"state": "active"`: delete this entire AI section.+An agent wrote the change and the author is an outside collaborator or an external contributor: do not delete this section. Fill every field below. Do not leave the placeholders.+Harness: product and version.+Model: the model id this session called.+Thinking level: the level this session was set to, or `n/a` when this harness has none.+-->++- Harness:+- Model:+- Thinking level:++#### User prompts++<!--+AGENT-INSTRUCTIONS — keep this commented out.+Review the whole session first. Redact any sensitive content in place with `[redacted]`: credentials, PII, private data, internal URLs, tool-call details, images, uploaded files, and anything else that should not be public.+Show the author the exact text below and wait for confirmation before publishing.+Then paste every confirmed user prompt, in order. One fenced block per turn. Do not summarize or skip a turn.+-->++1.++```text++```diff --git a/docs/development/basic/contributing-guidelines.mdx b/docs/development/basic/contributing-guidelines.mdxindex 96bae51eeb3..92c801a71c5 100644--- a/docs/development/basic/contributing-guidelines.mdx+++ b/docs/development/basic/contributing-guidelines.mdx@@ -148,29 +148,8 @@ git commit -m "📝 docs: update installation guide"Fill out the PR template in `.github/PULL_REQUEST_TEMPLATE.md`:-```markdown-## Description--Clear description of what this PR does.--## Type of Change--- [ ] ✨ New feature-- [ ] 🐛 Bug fix-- [ ] 📝 Documentation-- [ ] ♻️ Refactoring--## Checklist--- [ ] Code follows project style guidelines-- [ ] Tests added/updated-- [ ] Documentation updated-- [ ] All tests pass--## Related Issues--Fixes #123-```+- **Human** — what changed, screenshots, how you tested it, the acceptance round, and the related issue (`Fixes #123`, `Fixes LOBE-xxx`)+- **AI** — delete this section when a person wrote the change. When an agent wrote it, and the author is an outside collaborator or another external contributor, the commented instructions in the template tell that agent to record the harness, the model, the thinking level, and every user prompt from the session, in order. The author reviews that text before it is published, and sensitive content is redacted. An active member of the lobehub organization deletes this section.**PR titles with `✨ feat:` or `🐛 fix:` automatically trigger a new release.** Use other prefixes for changes that don't need a release.diff --git a/docs/development/basic/contributing-guidelines.zh-CN.mdx b/docs/development/basic/contributing-guidelines.zh-CN.mdxindex 591038d6db9..2cc2cb961b3 100644--- a/docs/development/basic/contributing-guidelines.zh-CN.mdx+++ b/docs/development/basic/contributing-guidelines.zh-CN.mdx@@ -146,29 +146,8 @@ git commit -m "📝 docs: 更新安装指南"请使用 `.github/PULL_REQUEST_TEMPLATE.md` 中的 PR 模板:-```markdown-## Description--清晰描述此 PR 的改动内容。--## Type of Change--- [ ] ✨ 新功能-- [ ] 🐛 Bug 修复-- [ ] 📝 文档-- [ ] ♻️ 重构--## Checklist--- [ ] 代码符合项目风格指南-- [ ] 已添加/更新测试-- [ ] 已更新文档-- [ ] 所有测试通过--## Related Issues--Fixes #123-```+- **Human** — 改了什么、截图、如何测试、验收记录,以及关联 issue(`Fixes #123`、`Fixes LOBE-xxx`)+- **AI** — 人写的改动删掉这一节。Agent 写的改动,如果作者是外部 collaborator 或其他外部贡献者,模板里的注释指令会要求这个 agent 填写 harness、模型、thinking level,以及这次会话里的全部 user prompt(按顺序保留)。发布前由作者审阅这段文字,敏感内容打码。lobehub organization 的正式成员删掉这一节。**PR 标题中带有 `✨ feat:` 或 `🐛 fix:` 前缀时将自动触发新版本发布。** 不需要发布新版本的改动请使用其他前缀。