Skip to content

[docs] update contribution guide - #15428

Open
yiyixuxu wants to merge 1 commit into
mainfrom
contribution-guide-update
Open

yiyixuxu wants to merge 1 commit into
mainfrom
contribution-guide-update

Conversation

@yiyixuxu

Copy link
Copy Markdown
Collaborator

This PR updates the contribution guide, as discussed with the team on Slack.

  • Removes the "Good first issue" section.
  • Folds "Good second issue" and the MVP program into one "contributions-welcome" section, and says that we don't welcome PRs that only implement a fix for someone else's issue.
  • Adds a section on "idea-contribution-welcome" issues, with the MVP ideas track.
  • Puts more weight on opening issues and on meaningful discussion as contributions. Feedback that gets used is credited as co-author.
  • Asks for bug reports that are minimal but still a real use case.
  • AGENTS.md: asks agents to report potential issues to their user and not silently work around them.
  • README: the "Good first issues" link now points to contributions-welcome.

- remove "Good first issue"; fold "Good second issue" and MVP
  into a "contributions-welcome" section
- add a section on "idea-contribution-welcome" issues
- put more weight on bug reports and issue discussion as
  contributions; ask for real-use-case reproductions
- AGENTS.md: ask agents to report potential issues to the user

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation size/M PR with diff < 200 LOC labels Nov 28, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Pages changed in this PR:

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Comment thread .ai/AGENTS.md

When you hit a bug, a confusing API, or a wrong doc in diffusers that is not part of your task, don't silently work around it.

- Tell the user what happened and how you got past it, and ask whether it is worth an issue.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want the users / agents to not silently work around issues, then maybe we should encourage to open issues? Hence, this part is a bit confusing to me.


With AI agents, it has become much easier to implement a PR once the problem is identified and a solution is agreed on. What we cannot produce ourselves is the knowledge of where the library fails in real use. That only comes from people who generate, train, and build with Diffusers. So when you run into a problem, show us how to reproduce it, and discuss with us what should change, you have done the part of the work we cannot do without you. Thank you for reporting an issue.

If you work with an AI agent, ask it to tell you when it runs into a bug, a confusing API, or a wrong doc. Agents are good at working around problems, so these often never reach us. The [agent guide](https://github.com/huggingface/diffusers/blob/main/.ai/AGENTS.md) asks agents to report them to you.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could also take this opportunity to emphasise the point on precision and simplicity when reporting issues. Issues that come directly to the point without slop is very helpful and tend to be resolved faster because it doesn’t create much fatigue.

- **Always** provide all necessary information about your environment; for this, you can run: `diffusers-cli env` in your shell and copy-paste the displayed information to the issue.
- Explain the issue. If the reader doesn't know what the issue is and why it is an issue, (s)he cannot solve it.
- **Always** make sure the reader can reproduce your issue with as little effort as possible. If your code snippet cannot be run because of missing libraries or undefined variables, the reader cannot help you. Make sure your reproducible code snippet is as minimal as possible and can be copy-pasted into a simple Python shell.
- Keep it a real use case. Minimal means removing what is unrelated, not replacing the real thing with a contrived example. Whenever possible, the snippet should run end to end, with a real checkpoint, real inputs, and the output you got.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should leave some examples of what we mean by real use cases? Because it can be interpreted in different ways. But I am not too strongly opinionated.

@stevhliu stevhliu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for updating!

### 8. Fixing a "Good second issue"
### 8. Fixing a "contributions-welcome" issue

For most issues, what we are looking for is the report itself and the discussion that follows. Once those are done, the fix is usually easy, and we don't welcome PRs that only implement a fix for an issue someone else opened, with a solution that others proposed or already agreed on.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align the wording a bit more with https://github.com/huggingface/diffusers/pull/15428/changes#diff-bb6a96a5e4665e2fb57dd9b245b91aef68112ea66d0df9cfe186df28ff4445b4R345 so readers follow the same rule regardless of which on they read first

Suggested change
For most issues, what we are looking for is the report itself and the discussion that follows. Once those are done, the fix is usually easy, and we don't welcome PRs that only implement a fix for an issue someone else opened, with a solution that others proposed or already agreed on.
Unless an issue has the `contributions-welcome` label or a maintainer asks for a PR< please don't open a PR for an issue someone else reported. For most issues, the report and the discussion that follows are the contribution, and the fix is usually easy once those are done.

the problems they encounter. So thank you for reporting an issue.
The 🧨 Diffusers library is robust and reliable thanks to the users who notify us of the problems they encounter. **Opening an issue is the most valuable contribution you can make.**

With AI agents, it has become much easier to implement a PR once the problem is identified and a solution is agreed on. What we cannot produce ourselves is the knowledge of where the library fails in real use. That only comes from people who generate, train, and build with Diffusers. So when you run into a problem, show us how to reproduce it, and discuss with us what should change, you have done the part of the work we cannot do without you. Thank you for reporting an issue.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
With AI agents, it has become much easier to implement a PR once the problem is identified and a solution is agreed on. What we cannot produce ourselves is the knowledge of where the library fails in real use. That only comes from people who generate, train, and build with Diffusers. So when you run into a problem, show us how to reproduce it, and discuss with us what should change, you have done the part of the work we cannot do without you. Thank you for reporting an issue.
With AI agents, it has become much easier to implement a PR once the problem is identified and a solution is agreed on. What we cannot produce ourselves is the knowledge of where the library fails in real use. That only comes from people who generate, train, and build with Diffusers. Reporting a problem, showing us how to reproduce it, and discussing what should change is the part of the work we can't do without you.


With AI agents, it has become much easier to implement a PR once the problem is identified and a solution is agreed on. What we cannot produce ourselves is the knowledge of where the library fails in real use. That only comes from people who generate, train, and build with Diffusers. So when you run into a problem, show us how to reproduce it, and discuss with us what should change, you have done the part of the work we cannot do without you. Thank you for reporting an issue.

If you work with an AI agent, ask it to tell you when it runs into a bug, a confusing API, or a wrong doc. Agents are good at working around problems, so these often never reach us. The [agent guide](https://github.com/huggingface/diffusers/blob/main/.ai/AGENTS.md) asks agents to report them to you.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you work with an AI agent, ask it to tell you when it runs into a bug, a confusing API, or a wrong doc. Agents are good at working around problems, so these often never reach us. The [agent guide](https://github.com/huggingface/diffusers/blob/main/.ai/AGENTS.md) asks agents to report them to you.
If you work with an AI agent, set it up as described in [Coding with AI agents](https://huggingface.co/docs/diffusers/main/en/conceptual/contribution#coding-with-ai-agents). Agents are good at working around problems, so these problems often never reach us. The [agent guide](https://github.com/huggingface/diffusers/blob/main/.ai/AGENTS.md tasks agents to tell you about them.

- **Always** provide all necessary information about your environment; for this, you can run: `diffusers-cli env` in your shell and copy-paste the displayed information to the issue.
- Explain the issue. If the reader doesn't know what the issue is and why it is an issue, (s)he cannot solve it.
- **Always** make sure the reader can reproduce your issue with as little effort as possible. If your code snippet cannot be run because of missing libraries or undefined variables, the reader cannot help you. Make sure your reproducible code snippet is as minimal as possible and can be copy-pasted into a simple Python shell.
- Keep it a real use case. Minimal means removing what is unrelated, not replacing the real thing with a contrived example. Whenever possible, the snippet should run end to end, with a real checkpoint, real inputs, and the output you got.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Keep it a real use case. Minimal means removing what is unrelated, not replacing the real thing with a contrived example. Whenever possible, the snippet should run end to end, with a real checkpoint, real inputs, and the output you got.
- Keep it a real use case. Minimal means removing what is unrelated, not replacing the real thing with a contrived example. Whenever possible, the snippet should run end to end, with a real checkpoint, real inputs, and the output you got. See [what counts as a reproduction](https://github.com/huggingface/diffusers/blob/main/.ai/references/reporting.md#bug-reports) for an example.

Comment thread .ai/AGENTS.md

## Report potential issues

When you hit a bug, a confusing API, or a wrong doc in diffusers that is not part of your task, don't silently work around it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make the intent of having a human decide explicit :)

Suggested change
When you hit a bug, a confusing API, or a wrong doc in diffusers that is not part of your task, don't silently work around it.
When you hit a bug, a confusing API, or a wrong doc in diffusers that is not part of your task, don't silently work around it, so they can decide whether to open an issue."

Answering issues on GitHub might require some technical knowledge of Diffusers, but we encourage everybody to give it a try even if you are not 100% certain that your answer is correct.
Sharing a meaningful insight in a discussion is harder than opening a PR, and more valuable to us. Anyone can ask an AI agent to analyze an issue and write a fix, so an answer that an agent could have written does not add much. What we want is what is unique to you: your experience with the library, your use case, and your judgment.

When an issue already describes the problem and proposes a fix, tell us whether you agree or disagree and why, point out a use case the proposal would break, or add something the discussion has missed. This is not a test with a standard answer, so please don't restate the issue or post another version of the same fix. Comment only when you have something to add. If your feedback is used, we will credit you as a co-author of the PR, even if you did not implement it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When an issue already describes the problem and proposes a fix, tell us whether you agree or disagree and why, point out a use case the proposal would break, or add something the discussion has missed. This is not a test with a standard answer, so please don't restate the issue or post another version of the same fix. Comment only when you have something to add. If your feedback is used, we will credit you as a co-author of the PR, even if you did not implement it.
When an issue already describes the problem and proposes a fix, tell us whether you agree or disagree and why, point out a use case the proposal would break, or add something the discussion has missed. There's no single right answer, so please don't restate the issue or post another version of the same fix. Comment only when you have something to add. If your feedback is used, we will credit you as a co-author of the PR, even if you did not implement it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/M PR with diff < 200 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants