Skip to content

Conversation

@everettraven
Copy link
Contributor

Note

This slash command, supporting documentation, and pull request description were created in collaboration with Claude Code to improve the enhancement authorship experience.

Description

Summary

Adds a /find-stakeholders slash command for Claude Code to help enhancement authors identify appropriate reviewers and approvers for their proposals.

What It Does

The /find-stakeholders command automates the process of finding the right people to review OpenShift enhancement proposals by:

  1. Analyzing the enhancement proposal to identify affected components, domains, and technologies
  2. Querying the openshift GitHub organization to find relevant repositories mentioned in the enhancement
  3. Fetching OWNERS files from those repositories to get current maintainers and reviewers
  4. Verifying API review requirements by checking if API changes require an api-approver and validating they're listed in the openshift/api OWNERS file
  5. Providing actionable recommendations on which approvers and reviewers to assign, including guidance on what aspects each reviewer should focus on

When to Use It

Use this command when:

  • You're creating a new enhancement proposal and need to identify reviewers/approvers
  • You're unsure which component maintainers should review your enhancement
  • You need to verify you have appropriate API reviewers assigned
  • You want to ensure you've covered all affected domains in your reviewer list

How to Use It

Simply run the command in Claude Code from the enhancements repository:

/find-stakeholders

Claude will either:

  • Auto-detect the enhancement you're working on from context, or
  • Ask you which enhancement file you want to find stakeholders for

The command will then analyze the enhancement and present a report with:

  • Primary and related repository owners
  • Recommended approvers and reviewers with their GitHub handles
  • API review status and action items
  • Specific next steps for assigning reviewers

Additional Changes

This PR also includes updates to AGENTS.md and CLAUDE.md to provide comprehensive repository context for Claude Code, including:

  • Repository structure and common commands
  • Enhancement creation and review process
  • OpenShift architectural patterns and conventions
  • Configuration requirements for enhancement tools

…akeholders to review an enhancement proposal

Signed-off-by: Bryce Palmer <[email protected]>
@openshift-ci openshift-ci bot requested review from jhjaggars and spadgett October 17, 2025 14:59
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 17, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign coverprice for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 17, 2025

@everettraven: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

Choose a reason for hiding this comment

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

In other places, we are using a symlink to the Agents.md file for this, I think that should be all we need here too

### Review Process

- Authors manage the enhancement through review and approval
- Reviewers must include representatives from teams doing implementation work
Copy link
Contributor

Choose a reason for hiding this comment

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

And other teams that depend on the change/are affected by the change?

### Terminology
- "OpenShift" or "openshift" (NEVER "Openshift")
- Use U.S. English spelling and grammar
- Always use the Oxford comma
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting?

Comment on lines +155 to +163
The enhancement tools require `~/.config/ocp-enhancements/config.yml`:

```yaml
github:
token: "your-github-personal-access-token"
reviewers:
ignore:
- openshift-ci-robot
```
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this? Is this something that already exists?

## Potential Stakeholder Reviewers for [Enhancement Name]

### Primary Repository: openshift/[repo-name]
**Approvers:**
Copy link
Contributor

Choose a reason for hiding this comment

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

We generally want a single approver, does this help to pick a suitable single approver?


- Enhancement reviewers should include representatives from any team that will need to do work for the enhancement
- The approver helps recognize when consensus is reached and doesn't need to be a subject-matter expert (but it helps)
- For broad-scope enhancements (changing OpenShift definition, adding required dependencies, changing customer support), a staff engineer approver is appropriate
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure how this tool will know who are staff engineers

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants