Skip to content

chore: add an agents.md file that describes llm behavior#1788

Merged
Skarlso merged 24 commits into
open-component-model:mainfrom
Skarlso:add-agents-md
Apr 22, 2026
Merged

chore: add an agents.md file that describes llm behavior#1788
Skarlso merged 24 commits into
open-component-model:mainfrom
Skarlso:add-agents-md

Conversation

@Skarlso

@Skarlso Skarlso commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

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

@Skarlso Skarlso requested a review from a team as a code owner February 16, 2026 15:07
@github-actions github-actions Bot added kind/chore chore, maintenance, etc. size/l Large labels Feb 16, 2026
Comment thread agents.md
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md

@matthiasbruns matthiasbruns left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
Comment thread agents.md Outdated
@github-actions github-actions Bot added the area/documentation Documentation related label Feb 20, 2026
@Skarlso

Skarlso commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

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.

@Skarlso

Skarlso commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

It's difficult to define these, because at some point they are rather examples then idioms. The line becomes blurred.

Comment thread docs/coding-patterns.md
Comment thread docs/coding-patterns.md
Comment thread docs/coding-patterns.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>
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>
@fabianburth

Copy link
Copy Markdown
Contributor

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Full review triggered.

@coderabbitai

coderabbitai Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds two new documentation guides (Agents Guide agents.md and Coding Patterns docs/coding-patterns.md) and updates the repository wordlist (.github/config/wordlist.txt). No executable code or public API surface is modified. (49 words)

Changes

Cohort / File(s) Summary
Agents Guide
agents.md
New top-level Agents Guide outlining repo areas (bindings/go/, cli/, kubernetes/controller/, website/), agent operating rules, code-review constraints (e.g., No Cross-Module Pollution), controller performance checklist, global conventions (imports, commits/PR titles, codegen, linting), CI overview, runtime type system pointers, and area-specific notes.
Coding Patterns
docs/coding-patterns.md
New comprehensive coding patterns doc covering constructor patterns, type/enum styles, interface design, error-handling conventions, context placement, concurrency primitives and cleanup, JSON/serialization strategies, receiver conventions, limited generics usage, runtime.Type/Scheme flow, testing/controller/CLI idioms, logging, and codegen markers.
Repository wordlist
.github/config/wordlist.txt
Small spell/wordlist edits: added LLM, added another Testcontainers entry, added overexplain and variadic, removed duplicate ux (so ux no longer present); ordering/duplication adjustments only. No functional changes.

Sequence Diagram(s)

(Skipped — documentation/config changes only.)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • morri-son
  • frewilhelm

Poem

"🐰 I hopped through docs with nibbling cheer,

New guides and patterns now appear,
Rules and rhythms laid in rows,
For controllers, CLIs, and code that grows,
A rabbit's wink: read, then engineer!"

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding an agents.md file to guide LLM/agent behavior in the repository, which aligns with the primary addition in the changeset.
Description check ✅ Passed The description is directly related to the changeset, explaining the purpose of adding agents.md as a standard pattern for agentic devices and referencing the agents.md convention.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between f305bbd and 3fa22e8.

📒 Files selected for processing (2)
  • agents.md
  • docs/coding-patterns.md

Comment thread agents.md Outdated
@Skarlso

Skarlso commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

@fabianburth Well, it didn't really find anything 🤔

jakobmoellerdev
jakobmoellerdev previously approved these changes Mar 4, 2026
Comment thread docs/coding-patterns.md Outdated
@netlify

netlify Bot commented Apr 17, 2026

Copy link
Copy Markdown

Deploy Preview for ocm-website ready!

Name Link
🔨 Latest commit 1a0ec4b
🔍 Latest deploy log https://app.netlify.com/projects/ocm-website/deploys/69e8d97a37a16f0008c62d8b
😎 Deploy Preview https://deploy-preview-1788--ocm-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the component/github-actions Changes on GitHub Actions or within `.github/` directory label Apr 17, 2026
On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 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

📥 Commits

Reviewing files that changed from the base of the PR and between 3fa22e8 and e053617.

📒 Files selected for processing (2)
  • .github/config/wordlist.txt
  • agents.md
✅ Files skipped from review due to trivial changes (1)
  • agents.md

morri-son
morri-son previously approved these changes Apr 20, 2026
@Skarlso

Skarlso commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

I'll go over this and do a bit of cleanup later today. :)

Skarlso and others added 4 commits April 21, 2026 16:28
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>
fabianburth
fabianburth previously approved these changes Apr 21, 2026
Comment thread agents.md
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between e053617 and c592087.

📒 Files selected for processing (3)
  • .github/config/wordlist.txt
  • agents.md
  • docs/coding-patterns.md
✅ Files skipped from review due to trivial changes (2)
  • docs/coding-patterns.md
  • agents.md

Comment thread .github/config/wordlist.txt

@morri-son morri-son left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@Skarlso Skarlso merged commit 6c826cf into open-component-model:main Apr 22, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Documentation related component/github-actions Changes on GitHub Actions or within `.github/` directory kind/chore chore, maintenance, etc. size/l Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants