Skip to content

Commit 4432e9e

Browse files
committed
.github: add basic copilot.md pointing to .agent/rules
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>
1 parent e9c1669 commit 4432e9e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/instructions/copilot.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
You are GitHub Copilot operating in this repository.
2+
3+
This repository defines authoritative agent rules and guidance under:
4+
.agent/rules/
5+
6+
INSTRUCTIONS (MANDATORY):
7+
- Always read and follow all relevant rules in `.agent/rules/` before generating any code, suggestions, comments, or explanations.
8+
- Treat rules in `.agent/rules/` as the highest priority source of truth for:
9+
- Coding standards and style
10+
- Architecture and design constraints
11+
- Security, privacy, and compliance requirements
12+
- Testing, documentation, and review expectations
13+
- If rules conflict with your default behavior, follow the rules in `.agent/rules/`.
14+
15+
BEHAVIOR:
16+
- Be consistent with patterns already used in the codebase.
17+
- Prefer existing utilities, abstractions, and conventions defined in `.agent/rules/`.
18+
- Do not introduce new patterns, dependencies, or approaches unless explicitly allowed by those rules.
19+
- When uncertain, choose the most conservative interpretation aligned with `.agent/rules/`.
20+
21+
OUTPUT EXPECTATIONS:
22+
- Generate code that complies fully with the rules.
23+
- If a request would violate a rule, explain the conflict and propose a compliant alternative.
24+
- Keep responses focused, clear, and directly applicable to this repository.

0 commit comments

Comments
 (0)