Replies: 6 comments 5 replies
-
|
Oh, regardless of how add above you probably also want to add a file with an AI-policy too (i.e. a repository-level AI contribution policy) that clearly states how you expect the usage of AI look like. Meaning that you explain expectations for using AI tools when submitting PRs and communicating with maintainers. That should make it clear that AI is a tool and that humans need to be in the loop. See this PR which I think will probably add such a file to Home Assistant’s core repo after changes has been made to it: This document must be explicitly linked from contributor entry points (for example, |
Beta Was this translation helpful? Give feedback.
-
|
One structure that may keep this maintainable across Copilot, Claude Code, Gemini, and Codex is to separate the instruction file by job: Then keep
For a project like this, I would also add a small verification section, not just coding style. For example:
I made a small example repo showing the pattern as https://github.com/MemoAsh/agent-workflow-pack The most relevant part is probably the verification checklist idea. It helps AI-agent instructions behave less like a one-time prompt and more like a repeatable project workflow. |
Beta Was this translation helpful? Give feedback.
-
|
This one is in progress: #356 |
Beta Was this translation helpful? Give feedback.
-
|
PR #356 is useful progress, especially the hardware-verification caveat and completion receipt. I would address a few cross-provider and maintenance issues before merging the instruction design.
Maintainer disclosure: these lessons come from Better Agent, a multi-provider local workspace I’m building for Claude, Codex, Gemini, and other coding agents: https://github.com/ofekron/better-agent It is source-available and free for non-commercial use; commercial use requires separate permission. Its provider-config sync path defines capabilities once, applies native provider projections, and checks for drift rather than hand-maintaining duplicate instructions. |
Beta Was this translation helpful? Give feedback.
-
|
Example from the Music Assistant server repo which is also governed by the Open Home Foundation: Also add AI_POLICY.md to point developers to before they submit PRs developed with the help of AI: "*Please have a look at our AI Policy before contributing code or documentation.*" |
Beta Was this translation helpful? Give feedback.
-
|
I need some help with that topic. I would like to have some simple help for AI with this project, if i guess, that is the AGENTS.md right? Do i need a CLAUDE.md or GEMINI.md too? I would love to have just one for all AI's. I would love to have a AI in the PR review that helps us. Do you know how that works? What is the AI_POLICY good for? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Suggest adding a custom GitHub Copilot instructions file to GitHub repository as a standardized way for offering AI coding agents guidelines or handbooks (origiginally developed for GitHub Copilot and Microsoft VS Code but these days used by all other AI coding agents as well).
The goal you would to achieve with this is to give an AI coding agent more project-specific context and make them produces better code that specifically follow the guidelines set by the project leaders as it meant to describe not only how the project is structured today and development patterns (plus testing approaches) but best practices for how new pull requests should look to simplify PR reviews.
It should also allow you to enable Copilot reviews (GitHub Copilot code review) for this repo which automatically runs and can hopefully catch some common mistakes in new pull requests:
For reference, many other projects from the Open Home Foundation have now added basic or comprehensive custom instructions (e.g. structured AI promts) used by AI coding agents to guide them to produce more useful outputs for a specific Git repository. See examples in these OHF repos:
Note that not all those are following the same standard as usually other project only have a single
,mdtext-file with contain the source of truth and just have additional promt files that simly symlink to that file for better compatibily with different LLM models. Common example when have the repo on GitHub is make.github/copilot-instructions.mdbe the source of truth and then haveAGENTS.md,CLAUDE.md, andGEMINI.mdetc. dummy-files in the root riectory that just symlink to that.github/copilot-instructions.mdfile.So recommend at least add comprehensive Copilot instructions file called
copilot-instructions.mdto help improve AI coding agents development efficiency for this repo, epciallyaly giving clear guidelines for how you would pull requests to be formatted (e.g. only one feature per pull request, etc.), similar to the ones they recently added to other OHF repositories:Those instructions and promts help GitHub Copilot reviews which looks to have benefited their project. Please also read these for more reference:
FYI, sounds like GitHub went all in on the concept of adding helper prompts to repos during the GitHub Universe 2025 announements:
GitHub also introduced "Agent HQ" mission control panel and announced that it will later comming months/year open up the GitHub ecosystem to third-party coding agents as well, all of which will be able to make use of this type of reusable promts if repos have them:
https://github.blog/news-insights/company-news/welcome-home-agents/
Tip is that GitHub Copilot have a "Copilot Instructions Blueprint Generator" and other skills that can generate AI instructions:
(Do note that if make it simple and initially just add AI-generated AI instructions then it is a good idea to later manually clean up a bit in the future).
Another tip is to check out this collection of community-contributed instructions, prompts, and configurations:
By the way, that collection was started by Microsoft engineers it has for example ready repository instructions and promts for tests, etc.
There looks to be collections and best practice prompts that could perhaps be used as a basis?
PS: Maybe a copy of this should be added to backlog-issues for OHF-Voice with a checklist if want to add this to all repos and would like to track it?
PPS: By the way, note that can also add organization custom instructions for GitHub Copilot to the whole OHF-Voice org here on GitHub too(?):
Beta Was this translation helpful? Give feedback.
All reactions