Improve AI development guidance - #21388
Conversation
1137839 to
b467235
Compare
Expand AGENTS.md with repository-specific guidance for design, lifecycle, OSGi, external data, security, testing, dependencies, formatting, and pull requests. Add lightweight Claude and Gemini shims that delegate to AGENTS.md so the same instructions are reused across coding agents. Signed-off-by: Wouter Born <github@maindrain.net>
b467235 to
a543111
Compare
There was a problem hiding this comment.
Pull request overview
Expands repository-wide guidance for AI coding agents without changing runtime behavior.
Changes:
- Reworks
AGENTS.mdwith detailed development and review practices. - Adds Claude Code and Gemini Code Assist compatibility files.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
AGENTS.md |
Defines comprehensive repository guidance. |
CLAUDE.md |
Imports the shared agent guidance. |
GEMINI.md |
Directs Gemini to shared and scoped guidance. |
Suppressed comments (3)
AGENTS.md:209
- This bare URL violates the enabled
MD034Markdown lint rule. Use an autolink so this changed file passes the configuration referenced at line 182.
- Reference documentation: https://bnd.bndtools.org/chapters/825-instructions-ref.html
AGENTS.md:227
- This bare URL violates the enabled
MD034Markdown lint rule. Use an autolink so this changed file passes the configuration referenced at line 182.
- Reference documentation: https://www.openhab.org/docs/developer/utils/i18n.html#managing-translations
AGENTS.md:296
- This bare URL violates the enabled
MD034Markdown lint rule. Use an autolink so this changed file passes the configuration referenced at line 182.
- Read the binding development guide before creating a new binding: https://www.openhab.org/docs/developer/#develop-a-new-binding
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Signed-off-by: Wouter Born <github@maindrain.net>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Suppressed comments (1)
AGENTS.md:299
- The skeleton scripts resolve
archetype-settings.xmland../src/etc/NOTICErelative to the current working directory, so invoking them from the repository root fails. Specify that they must be run frombundles/to make this instruction reliably actionable.
- Use the provided `create_openhab_binding_skeleton` script rather than creating the binding structure manually.
lsiepel
left a comment
There was a problem hiding this comment.
Thanks for taking the time to adjust this.
Let's see how this improves the reviews and contributions. A first test seemed to improve the results. 👍
Signed-off-by: Wouter Born <github@maindrain.net>
cf59fb7 to
4e005dd
Compare
|
Yes it would be nice to see how quickly the AIs pick up on this! |
|
These improvements helped with guiding my AI: |
Expand AGENTS.md with repository-specific guidance for design, lifecycle, OSGi, external data, security, testing, dependencies, formatting, and pull requests. Add lightweight Claude and Gemini shims that delegate to AGENTS.md so the same instructions are reused across coding agents. Signed-off-by: Wouter Born <github@maindrain.net> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Description
This PR improves and expands the repository guidance for AI coding agents.
The existing
AGENTS.mdhas been reworked to provide clearer, more actionable instructions while avoiding duplication of information that is already maintained in the repository documentation. It now focuses more strongly on openHAB-specific development practices and on preventing issues that are commonly caught during code review.The guidance is based on:
AGENTS.mdfiles in other projects, while keeping the instructions specific to openHAB.Notable improvements include guidance for:
features.xmland*.bndrunimplications;The document also points agents to the relevant
README.md,CONTRIBUTING.md, openHAB developer documentation, coding guidelines, and review checklist instead of duplicating those sources.Small
CLAUDE.mdandGEMINI.mdcompatibility files are added so Claude Code and Gemini Code Assist follow the sameAGENTS.mdguidance rather than maintaining separate copies of the instructions.There are no runtime or add-on behavior changes in this PR.