Skip to content

Conversation

@emyller
Copy link
Contributor

@emyller emyller commented Nov 13, 2025

Improves agent guidelines to enable more consistent and effective contributions.

Changes

  • Add examples for commit, issue, and PR titles
  • Establish scope management principles
  • Refine communication guidelines to avoid deictic references
  • Add Red Hat style guide compliance

Review effort: 2/5

@emyller emyller requested a review from a team as a code owner November 13, 2025 17:31
@emyller emyller requested review from Zaimwa9 and removed request for a team November 13, 2025 17:31
@cursor
Copy link

cursor bot commented Nov 13, 2025

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on December 10.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs Ignored Ignored Preview Nov 13, 2025 6:10pm
flagsmith-frontend-preview Ignored Ignored Preview Nov 13, 2025 6:10pm
flagsmith-frontend-staging Ignored Ignored Preview Nov 13, 2025 6:10pm

@github-actions github-actions bot added the docs Documentation updates label Nov 13, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2025

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-6291 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-6291 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-6291 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-6291 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-6291 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-6291 Finished ✅ Results

@emyller emyller force-pushed the docs/agents/enhance-guidelines branch from 4494f2e to 58a922a Compare November 13, 2025 17:46
@github-actions github-actions bot added docs Documentation updates and removed docs Documentation updates labels Nov 13, 2025
@emyller emyller changed the title docs(Agents): Enhance agent guidelines with examples and clarity docs(Agents): Add agent guidelines with examples and clarity Nov 13, 2025
@emyller emyller force-pushed the docs/agents/enhance-guidelines branch from 58a922a to e67aea6 Compare November 13, 2025 18:10
@github-actions github-actions bot added docs Documentation updates and removed docs Documentation updates labels Nov 13, 2025
khvn26
khvn26 previously approved these changes Nov 24, 2025
Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

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

I'm yet to try this in action; this review is result of me reading through the file. I might come up with more feedback once I give it a spin in a real scenario.

Comment on lines +96 to +99
**Issues:**
```
<Verb> <object> [<condition>]
```
Copy link
Member

Choose a reason for hiding this comment

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

For bug reports, I'd prefer a short description of the bug. It's also one of the few places where we might allow the passive voice, for example, "The modal window is not closing when the Close button is clicked".

Ideally, I would like all of our issue titles to adhere to a pattern, but realistically this is not possible, so this directive may be useless or even confusing. If it's a guide on how to create issues, that opens up a separate discussion — for instance, I am not comfortable with the idea of issues being created by agents.

Comment on lines +102 to +104
```
<type>(<Component>): <Verb> <object> [<condition>]
```
Copy link
Member

Choose a reason for hiding this comment

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

I tend to use the following template for bugfix PRs:

fix: <Original issue title>

This, in my experience, results in nicer release notes.

I think this discussion is a good opportunity to standardise our approach, as currently, everyone uses their own format, as evident from the current release notes:

Image

- **ALWAYS** check linters and tests before commit.
- **NEVER** push. Do not offer to push. User controls all push operations.
- Amend recent commits when adding related fixes unless history conflicts with remote.

Copy link
Member

Choose a reason for hiding this comment

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

I expect to see pre-commit, or make lint, guidelines here.

Comment on lines +48 to +57
1. "Add multiselect dropdown for context values"
2. "Prevent replica lag issues in SDK views"
3. "Fix permalinks in code reference items"
4. "Restore logic for updating orgid_unique property"
5. "Remove stale flags from codebase"
6. "Clarify key semantics in evaluation context"
7. "Centralize Poetry install in CI"
8. "Handle deleted objects in SSE access logs"
9. "Update Datadog integration documentation"
10. "Add timeout to SSE stream access logs"
Copy link
Member

Choose a reason for hiding this comment

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

Is 10 an optimal number of examples? Can we get away with including less?


## Scope and Focus

- Limit issues to single, focused goals. Break complex work into multiple issues.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not comfortable delegating scoping work to AI. Looks like the lines are blurred on whether we're allowing AI to create issues; see my other related comment.

Comment on lines +159 to +163
Use "Closes" when PR completes the issue. Use "Contributes to" when:
- PR resolves issue partially.
- Human actions still required for completion.

When uncertain, use "Contributes to".
Copy link
Member

Choose a reason for hiding this comment

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

I feel we can formalise this further, especially if we're applying the guidelines to current repo only:

  1. Backend changes should be accompanied with "Contributes to". Flagsmith engineering will add "Closes" to corresponding release-please PR once the change PR is merged.
  2. If the PR contains only frontend and/or documentation changes, "Closes" keyword should be used.

4. "Restore logic for updating orgid_unique property"
5. "Remove stale flags from codebase"
6. "Clarify key semantics in evaluation context"
7. "Centralize Poetry install in CI"
Copy link
Member

Choose a reason for hiding this comment

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

Consider promptly changing to British spelling before Matt gets to see this.

**Additional rules:**
- Never list file changes unless relevant (reviewers read patches).
- Mirror and sync checklists between issue and PR after push (user request) or fetch (unrestricted).
- Add "Review effort: X/5" at end of PR descriptions to indicate complexity (1=trivial, 5=extensive).
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's time we thought on a custom field for PRs @matthewelwell?


**Additional rules:**
- Never list file changes unless relevant (reviewers read patches).
- Mirror and sync checklists between issue and PR after push (user request) or fetch (unrestricted).
Copy link
Member

Choose a reason for hiding this comment

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

How accurately does Claude follow this? I'd hate for it to inadvertently modify the issue body. Personally, I'd lean towards completely restricting the modification of issue bodies. I can tolerate slop in PR descriptions as long as AI authorship is clear. A thought of having it in issues is grinding my gears quite a bit.

@khvn26 khvn26 dismissed their stale review November 24, 2025 19:42

Didn't mean to approve this yet.

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

Labels

docs Documentation updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants