.github: add basic copilot.md pointing to .agent/rules#10694
Open
kv2019i wants to merge 1 commit intothesofproject:mainfrom
Open
.github: add basic copilot.md pointing to .agent/rules#10694kv2019i wants to merge 1 commit intothesofproject:mainfrom
kv2019i wants to merge 1 commit intothesofproject:mainfrom
Conversation
Commit 07f53cb ("agent: add basic workflows for agents") added rules in .agent/rules. As Copilot doesn't at least currently automatically pick up .agent/rules, add a separate .github instruction file pointing copilot to the .agent/rules, so we have a single place for mandatory agent guidance. If a single convention is established in the industry, we can drop these, but for now it's not the case. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Copilot instruction file under .github/instructions/ to direct Copilot to use the authoritative repository agent guidance maintained in .agent/rules/, keeping mandatory guidance centralized.
Changes:
- Introduces
.github/instructions/copilot.mdwith mandatory guidance to consult.agent/rules/first - Defines expected behavior and output constraints aligned with the rules directory
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| You are GitHub Copilot operating in this repository. | ||
|
|
||
| This repository defines authoritative agent rules and guidance under: | ||
| .agent/rules/ |
There was a problem hiding this comment.
Line 4 references .agent/rules/ without inline-code formatting, while later references use backticks. For consistency/readability, consider formatting the path on line 4 the same way (e.g., inline code, and/or a Markdown link).
Suggested change
| .agent/rules/ | |
| `.agent/rules/` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit 07f53cb ("agent: add basic workflows for agents") added rules in .agent/rules. As Copilot doesn't at least currently automatically pick up .agent/rules, add a separate .github instruction file pointing copilot to the .agent/rules, so we have a single place for mandatory agent guidance. If a single convention is established in the industry, we can drop these, but for now it's not the case.