Skip to content

chore: add AGENTS.md - #3579

Merged
GAlexIHU merged 2 commits into
mainfrom
chore/agents.md
Nov 5, 2025
Merged

GAlexIHU merged 2 commits into
mainfrom
chore/agents.md

Conversation

@GAlexIHU

@GAlexIHU GAlexIHU commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor

Overview

Adds AGENTS.md file

Summary by CodeRabbit

  • Documentation
    • Added a new guide covering development workflows (Makefile and alternatives), testing commands (including cached/no-cache runs), environment setup for single-file and test execution, end-to-end testing with containerized services, and code-generation and migration workflows (client/spec generation, schema/codegen, and migration diffing). Notes warn not to edit generated outputs manually.

@GAlexIHU
GAlexIHU requested a review from a team as a code owner November 5, 2025 14:38
@GAlexIHU GAlexIHU added the release-note/ignore Ignore this change when generating release notes label Nov 5, 2025
@coderabbitai

coderabbitai Bot commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds a new documentation file, AGENTS.md, describing Makefile-driven workflows, testing (unit and E2E), environment hints, and code-generation commands and locations.

Changes

Cohort / File(s) Summary
Documentation
AGENTS.md
New file describing development workflow (Makefile, Dagger/just alternatives), test commands (make test, make test-nocache), single-file/test environment tips, E2E instructions (make etoe with Docker Compose), and code-generation steps (make gen-api, make generate, atlas migrate diff) and locations; notes that generated dirs must not be edited manually.

Sequence Diagram(s)

(omitted — change is documentation-only, no control-flow changes)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Focus review on wording accuracy, command correctness, and paths referenced in the doc.

Pre-merge checks and finishing touches

✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: add AGENTS.md' accurately reflects the main change—adding a new documentation file with development guidelines and workflows.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/agents.md

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 10fbedb and 336172c.

📒 Files selected for processing (1)
  • AGENTS.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.md

⚙️ CodeRabbit configuration file

**/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

**/*.md: Review markdown documentation with these guidelines:

  • Structure: Ensure consistent heading hierarchy and document organization
  • Content: Verify accuracy of technical details, code examples, and API references
  • Quality: Check for spelling, grammar, and broken links
  • Completeness: Confirm all features and changes are properly documented
  • Style: Follow project's documentation style guide and formatting conventions

Files:

  • AGENTS.md
🧠 Learnings (2)
📚 Learning: 2025-08-29T12:31:52.802Z
Learnt from: chrisgacsal
Repo: openmeterio/openmeter PR: 3291
File: app/common/customer.go:88-89
Timestamp: 2025-08-29T12:31:52.802Z
Learning: In Go projects using Google's wire dependency injection framework, named types (without =) should be used instead of type aliases (with =) to work around wire limitations. For example, use `type CustomerSubjectValidatorHook customerservicehooks.SubjectValidatorHook` instead of `type CustomerSubjectValidatorHook = customerservicehooks.SubjectValidatorHook` when wire is involved.

Applied to files:

  • AGENTS.md
📚 Learning: 2025-03-07T12:17:43.129Z
Learnt from: GAlexIHU
Repo: openmeterio/openmeter PR: 2383
File: openmeter/entitlement/metered/lateevents_test.go:37-45
Timestamp: 2025-03-07T12:17:43.129Z
Learning: In the OpenMeter codebase, test files like `openmeter/entitlement/metered/lateevents_test.go` may use variables like `meterSlug` and `namespace` without explicit declarations visible in the same file. This appears to be an accepted pattern in their test structure.

Applied to files:

  • AGENTS.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: Artifacts / Benthos Collector Container image
  • GitHub Check: Artifacts / Container image
  • GitHub Check: Migration Checks
  • GitHub Check: Lint
  • GitHub Check: Code Generators
  • GitHub Check: Test
  • GitHub Check: Build
  • GitHub Check: Analyze (go)
  • GitHub Check: Repository Scan
🔇 Additional comments (1)
AGENTS.md (1)

11-12: Add the missing example command.

Line 11–12 ends with "Example command would be:" but there's no code block or command example following it. This looks like an incomplete thought—consider adding a concrete example (maybe something like go test -run TestName -v with the proper env vars set) so readers know exactly what to run.


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.

@GAlexIHU
GAlexIHU enabled auto-merge (squash) November 5, 2025 14:38

@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: 3

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b4ecd7d and 10fbedb.

📒 Files selected for processing (1)
  • AGENTS.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.md

⚙️ CodeRabbit configuration file

**/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

**/*.md: Review markdown documentation with these guidelines:

  • Structure: Ensure consistent heading hierarchy and document organization
  • Content: Verify accuracy of technical details, code examples, and API references
  • Quality: Check for spelling, grammar, and broken links
  • Completeness: Confirm all features and changes are properly documented
  • Style: Follow project's documentation style guide and formatting conventions

Files:

  • AGENTS.md
🧠 Learnings (1)
📚 Learning: 2025-03-07T12:17:43.129Z
Learnt from: GAlexIHU
Repo: openmeterio/openmeter PR: 2383
File: openmeter/entitlement/metered/lateevents_test.go:37-45
Timestamp: 2025-03-07T12:17:43.129Z
Learning: In the OpenMeter codebase, test files like `openmeter/entitlement/metered/lateevents_test.go` may use variables like `meterSlug` and `namespace` without explicit declarations visible in the same file. This appears to be an accepted pattern in their test structure.

Applied to files:

  • AGENTS.md
🪛 markdownlint-cli2 (0.18.1)
AGENTS.md

18-18: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


19-19: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


20-20: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


21-21: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


22-22: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


23-23: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


24-24: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Artifacts / Benthos Collector Container image
  • GitHub Check: Artifacts / Container image
  • GitHub Check: Code Generators
  • GitHub Check: Migration Checks
  • GitHub Check: Lint
  • GitHub Check: Build
  • GitHub Check: Test
  • GitHub Check: Analyze (go)
🔇 Additional comments (1)
AGENTS.md (1)

11-11: Missing example command after introduction.

Line 11 says "Example command would be:" but doesn't actually provide an example. Looks like there's incomplete content here—should we add an example command to show how to run tests directly?

Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/ignore Ignore this change when generating release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants