chore: add an agents.md file that describes llm behavior#1788
Conversation
matthiasbruns
left a comment
There was a problem hiding this comment.
Working with an LLM is great - but we should think about adding git hooks to validate common things like testing and linting to our workflow as a first safeguard
|
Okay, so this is late night, I generated a coding guideline that went through a couple iterations. I'm putting it in here, but it will need to be really really well reviewed. I will run through a couple iterations as well on it. |
|
It's difficult to define these, because at some point they are rather examples then idioms. The line becomes blurred. |
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
1774396 to
dd9d055
Compare
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
📝 WalkthroughWalkthroughAdds two new documentation guides (Agents Guide Changes
Sequence Diagram(s)(Skipped — documentation/config changes only.) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
docs/coding-patterns.md (1)
428-428: Hyphenate compound modifier for readability.Use “pointer-type constraints” here to improve grammatical clarity.
Proposed fix
-Controller utilities use generics with pointer type constraints for K8s objects: +Controller utilities use generics with pointer-type constraints for K8s objects:🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/coding-patterns.md` at line 428, Replace the phrase "pointer type constraints" with the hyphenated form "pointer-type constraints" in the sentence that reads "Controller utilities use generics with pointer type constraints for K8s objects" (look for that exact sentence/phrase in docs/coding-patterns.md) to improve readability and grammatical clarity.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@agents.md`:
- Around line 76-82: The fenced code block containing the commit messages is
missing a language tag (causing MD040); update the opening fence (the ``` line
before the lines "type(scope): subject" / "feat(cli):..." etc.) to include a
language identifier such as text (i.e. change the opening ``` to ```text) so the
block becomes a proper fenced code block with a language tag.
---
Nitpick comments:
In `@docs/coding-patterns.md`:
- Line 428: Replace the phrase "pointer type constraints" with the hyphenated
form "pointer-type constraints" in the sentence that reads "Controller utilities
use generics with pointer type constraints for K8s objects" (look for that exact
sentence/phrase in docs/coding-patterns.md) to improve readability and
grammatical clarity.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b4d4ffe8-7bdf-4e30-8c40-5fea1568bd7a
📒 Files selected for processing (2)
agents.mddocs/coding-patterns.md
|
@fabianburth Well, it didn't really find anything 🤔 |
✅ Deploy Preview for ocm-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
614a9d2 to
3a7e3b2
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/config/wordlist.txt (1)
25-26: Remove duplicated wordlist entry (Testcontainers).Line 26 repeats the exact token already present on Line 25. Keeping a single entry avoids churn and keeps the dictionary deterministic.
Proposed minimal diff
Testcontainers -Testcontainers TransformationGraphDefinition🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/config/wordlist.txt around lines 25 - 26, The wordlist contains a duplicated token "Testcontainers" on consecutive lines; remove the second occurrence so only a single "Testcontainers" entry remains in the wordlist (update the file containing the "Testcontainers" entries to delete the duplicate line).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/config/wordlist.txt:
- Around line 25-26: The wordlist contains a duplicated token "Testcontainers"
on consecutive lines; remove the second occurrence so only a single
"Testcontainers" entry remains in the wordlist (update the file containing the
"Testcontainers" entries to delete the duplicate line).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: bba6f4c1-8438-4dd9-93ff-1e09f6c4299f
📒 Files selected for processing (2)
.github/config/wordlist.txtagents.md
✅ Files skipped from review due to trivial changes (1)
- agents.md
|
I'll go over this and do a bit of cleanup later today. :) |
…el into add-agents-md
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/config/wordlist.txt:
- Around line 25-26: Remove the duplicate consecutive entry "Testcontainers"
from the wordlist so the word appears only once; open the
.github/config/wordlist.txt file and delete the repeated line containing
"Testcontainers" to keep the list clean and non-redundant.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 86e24597-77c7-4d23-99a6-23580dd5b5fc
📒 Files selected for processing (3)
.github/config/wordlist.txtagents.mddocs/coding-patterns.md
✅ Files skipped from review due to trivial changes (2)
- docs/coding-patterns.md
- agents.md
What this PR does / why we need it
We want all agentic devices to follow a common, agreed upon, pattern when working with this repository. Agents.md is a "kinda agreed upon" standard now-a-days for all llm based generators.
Which issue(s) this PR fixes