Skip to content

🀯 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.

πŸ“ docs: replace PR prompt disclosure with AI work summaries (#19913)

Innei2a93517109e9
diff --git a/.agents/skills/pr/SKILL.md b/.agents/skills/pr/SKILL.md
index a5f845c7b16..1d0c16845a1 100644
--- a/.agents/skills/pr/SKILL.md
+++ b/.agents/skills/pr/SKILL.md
@@ -58,9 +58,9 @@ A feature or fix needs a published acceptance round before the PR is opened (AGE
- 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** 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
+- Put the acceptance link (or the explicit skip reason) under **Test** in the Summary section.
+- Follow the source-label, privacy, and AI assistance rules in **PR Template** below when creating or updating a PR. Do not request prompt disclosure or block the normal PR workflow waiting for consent to publish a conversation.
+- Write the body to a temporary file and use `--body-file` to preserve formatting.
### 7. Open in browser
@@ -68,10 +68,12 @@ 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. The HTML comments marked `AGENT-INSTRUCTIONS` are mandatory for the agent that fills the body. Two sections:
+Use [`.github/PULL_REQUEST_TEMPLATE.md`](../../../.github/PULL_REQUEST_TEMPLATE.md) as the source of truth for body structure, contribution classification, disclosure eligibility, and required fields. Follow its `AGENT-INSTRUCTIONS` when filling these sections:
-- **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.
+- **Summary**: fill for every PR, including the required Contribution source label. AI-assisted work remains labeled `AI-assisted` even when organization membership exempts the author from disclosing details; human review does not make it human-only. Use `Unknown` when the source cannot be established.
+- **AI assistance**: apply the template's organization-member exemption to details only, never to the source label. When required, fill its six fields using the final diff and verification evidence, not private conversation summaries. Use one section per PR, combining tools/models across sessions; report unknown metadata and unperformed review/checks honestly.
+
+Prompts and transcripts are private by default and are not required fields. Only if the author explicitly requests sharing them, review the exact proposed text for sensitive information and obtain confirmation before publishing that text. Authorization to create or update a PR is not consent to publish a conversation. Check attached logs and screenshots for sensitive information too.
## Notes
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index ecfcddce875..dbaeebf2527 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,33 +1,39 @@
<!--
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.
+You are the agent preparing this pull request. Fill the Summary section for every contribution: what changed, screenshots, how it was tested, acceptance, and the related issue. Set Contribution source based on how the change was produced, independently of whether AI assistance details are disclosed. Never remove the source label, including for organization members. If the source cannot be established, write `Unknown` rather than assuming human-only.
-HUMAN β€” a person wrote the code. No agent produced the diff.
-- Fill the Human section.
-- Delete the entire AI section.
+HUMAN ONLY β€” a person produced the change without AI assistance.
+- Set Contribution source to `Human-only`.
+- Delete the entire AI assistance 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:
+AI ASSISTED β€” AI contributed to the implementation, tests, documentation, or review, including work completed jointly with a person.
+- Set Contribution source to `AI-assisted`.
+- Human edits or review of AI-generated work do not make it human-only.
+- Separately decide whether to include AI assistance details:
- 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.
+ - `"state": "active"` means the author is a lobehub organization member. Delete the AI assistance section to avoid disclosing internal details, but keep Contribution source as `AI-assisted`.
+ - Otherwise, including errors or pending membership, fill the AI assistance section.
-When the AI section is mandatory you MUST fill all four fields. Leaving a placeholder is not done.
+Do not include user prompts or conversation transcripts by default. Include them only when the author explicitly requests sharing them, after reviewing the exact text for sensitive information and confirming it for publication. Creating a pull request does not imply consent to publish the conversation.
-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.
+Describe the work from the final diff and verification evidence, not by summarizing private conversations. Exclude private background, customer data, credentials, and internal URLs. Check any attached logs or screenshots for sensitive information too.
-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."
+When the AI assistance section is required you MUST fill all six fields. Leaving a placeholder is not done. Report only known facts; mark unavailable metadata as `unknown` and do not claim human review or checks that did not happen.
+
+1. Harness. The product and version you are running.
+2. Model. The model id this session called.
+3. Thinking level. The thinking or reasoning level this session was set to. Write `n/a` only when this harness has no thinking-level control.
+4. Division of work. What AI implemented and what the author actually reviewed. State if human review is pending.
+5. Implementation rationale. The cause or requirement addressed, why this approach was chosen, and relevant limitations. Refer to the description above when it already covers this.
+6. Verification. Checks actually run, their results, and what remains unverified. Refer to the Test section or linked evidence rather than duplicating it.
+
+Use one AI assistance section per pull request; list multiple tools or models together when applicable.
-->
-### Human
+### Summary
+
+Contribution source: <!-- Set to AI-assisted, Human-only, or Unknown. Required for every PR; independent of organization membership. -->
<!-- Brief and heads-up -->
@@ -41,7 +47,7 @@ If you keep the AI section, delete the visible line "Delete this section if a pe
<!-- How you tested your changes -->
-<!-- For product AI behavior, note the scenarios you tried. The session's user prompts go in the AI section. -->
+<!-- For product AI behavior, note the scenarios you tried without including private conversation content. -->
- [ ] Tested locally
- [ ] Added/updated tests
@@ -57,34 +63,24 @@ If you keep the AI section, delete the visible line "Delete this section if a pe
<!-- Example: Fixes #xxx, Closes #xxx, Related to #xxx, Fixes LOBE-xxx -->
-### AI
-
-Delete this section if a person wrote the change.
+### AI assistance
<!--
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.
+Delete this section for human-only contributions or confirmed lobehub organization members. Keep the Contribution source label in Summary; omitting details never changes AI-assisted work to Human-only.
+For AI-assisted contributions without confirmed organization membership, 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.
+Division of work: AI contributions and actual human review; state if review is pending.
+Implementation rationale: why the final approach addresses the problem and any limitations.
+Verification: actual checks, results, and gaps; a reference to the Test section is enough.
+Use only the final diff and verification evidence for the work summary, not private conversation summaries. Do not invent review or test results. Mark unavailable metadata as `unknown`.
-->
- 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
-
-```
+- Division of work:
+- Implementation rationale:
+- Verification: