Skip to content

Commit e1eb7d0

Browse files
committed
chore(template): sync with dailydevops/dotnet-template [skip ci]
1 parent 20a3b3d commit e1eb7d0

File tree

2 files changed

+57
-45
lines changed

2 files changed

+57
-45
lines changed

.github/copilot-instructions.md

Lines changed: 9 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,12 @@
1-
# Copilot Instructions
2-
3-
Use AI coding assistants, such as GitHub Copilot, to enhance productivity and maintain code quality.
4-
5-
## General
6-
7-
* MUST allow internet research before suggesting changes or new implementations.
8-
9-
## Technology Research
10-
11-
* MUST research current best practices for C# development before implementing new code patterns.
12-
* MUST verify compatibility and performance implications of new libraries or frameworks.
13-
* MUST check for updated documentation and migration guides for existing dependencies.
14-
15-
## Business Context Research
1+
---
2+
applyTo: '**/*.*'
3+
description: 'This file contains instructions for AI coding assistants, redirecting to the primary instruction set in AGENTS.md.'
4+
---
165

17-
* MUST understand the business requirements and context before proposing technical solutions.
18-
* MUST consider the impact on existing workflows and user experience.
19-
* MUST evaluate the cost-benefit ratio of proposed changes or new implementations.
20-
21-
## Decision References
22-
23-
* MUST document all decisions in `decisions/` folder using `templates/adr.md` format.
24-
* MUST treat "accepted" decisions as mandatory requirements with highest precedence.
25-
* MUST respect decision states:
26-
- **accepted**: mandatory requirements
27-
- **proposed**: optional considerations
28-
- **deprecated**: avoid in new implementations
29-
- **superseded**: forbidden, follow superseding decision instead
30-
* MUST use the `instructions` frontmatter property as primary AI guidance for each decision.
31-
32-
## Configuration Files
33-
34-
These files control project-wide settings and should remain unchanged unless specifically requested.
35-
36-
* MUST NEVER change `.editorconfig` unless explicitly asked to.
37-
* MUST NEVER change `.gitignore` unless explicitly asked to.
38-
* MUST NEVER change `global.json` unless explicitly asked to.
39-
* MUST NEVER change `Directory.Build.props` unless explicitly asked to.
40-
* MUST NEVER change `Directory.Build.targets` unless explicitly asked to.
41-
* MUST NEVER change `Directory.Packages.props` unless explicitly asked to.
6+
# Copilot Instructions
427

43-
## Code Reviews and Implementation
8+
## Reference
449

45-
* MUST always review AI-generated code for correctness, security, and performance.
46-
* MUST provide constructive feedback and suggestions for improvement.
47-
* MUST consider the context of the code being reviewed or implemented, including business requirements and technical constraints.
48-
* MUST apply all relevant instructions and guidelines from `.github/instructions/*.instructions.md` files during both code review and implementation.
10+
* MUST follow all instructions defined in the root-level document [`AGENTS.md`](../AGENTS.md).
11+
* MUST treat [`AGENTS.md`](../AGENTS.md) as the authoritative source for all AI assistant guidelines.
12+
* MUST apply all directives from [`AGENTS.md`](../AGENTS.md) when implementing code, reviewing code, suggesting improvements, debugging issues, or providing any form of technical assistance.

AGENTS.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Instructions
2+
3+
Use AI coding assistants, such as GitHub Copilot, to enhance productivity and maintain code quality.
4+
5+
## General
6+
7+
* MUST allow internet research before suggesting changes or new implementations.
8+
9+
## Technology Research
10+
11+
* MUST research current best practices for C# development before implementing new code patterns.
12+
* MUST verify compatibility and performance implications of new libraries or frameworks.
13+
* MUST check for updated documentation and migration guides for existing dependencies.
14+
15+
## Business Context Research
16+
17+
* MUST understand the business requirements and context before proposing technical solutions.
18+
* MUST consider the impact on existing workflows and user experience.
19+
* MUST evaluate the cost-benefit ratio of proposed changes or new implementations.
20+
21+
## Decision References
22+
23+
* MUST document all decisions in `decisions/` folder using `templates/adr.md` format.
24+
* MUST treat "accepted" decisions as mandatory requirements with highest precedence.
25+
* MUST respect decision states:
26+
- **accepted**: mandatory requirements
27+
- **proposed**: optional considerations
28+
- **deprecated**: avoid in new implementations
29+
- **superseded**: forbidden, follow superseding decision instead
30+
* MUST use the `instructions` frontmatter property as primary AI guidance for each decision.
31+
32+
## Configuration Files
33+
34+
These files control project-wide settings and should remain unchanged unless specifically requested.
35+
36+
* MUST NEVER change `.editorconfig` unless explicitly asked to.
37+
* MUST NEVER change `.gitignore` unless explicitly asked to.
38+
* MUST NEVER change `global.json` unless explicitly asked to.
39+
* MUST NEVER change `Directory.Build.props` unless explicitly asked to.
40+
* MUST NEVER change `Directory.Build.targets` unless explicitly asked to.
41+
* MUST NEVER change `Directory.Packages.props` unless explicitly asked to.
42+
43+
## Code Reviews and Implementation
44+
45+
* MUST always review AI-generated code for correctness, security, and performance.
46+
* MUST provide constructive feedback and suggestions for improvement.
47+
* MUST consider the context of the code being reviewed or implemented, including business requirements and technical constraints.
48+
* MUST apply all relevant instructions and guidelines from `.github/instructions/*.instructions.md` files during both code review and implementation.

0 commit comments

Comments
 (0)