From 9f2dc3e530c3d9d9ef519002d28c75f70e13b1ba Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 11 Jan 2026 06:45:26 +0000 Subject: [PATCH] fix: add mandatory instruction to read relevant guidelines before starting tasks --- .github/instructions/copilot-instructions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/instructions/copilot-instructions.md b/.github/instructions/copilot-instructions.md index 3ccbba30..67df4632 100644 --- a/.github/instructions/copilot-instructions.md +++ b/.github/instructions/copilot-instructions.md @@ -4,6 +4,7 @@ Every session should improve the codebase, not just add to it. Actively refactor code you encounter, even outside of your immediate task scope. Think about long-term maintainability and consistency. Make a detailed plan before writing code. Always create unit tests for new code coverage. +- **MANDATORY**: Read all relevant instructions in `.github/instructions/` for the specific task before starting. - **DRY**: Consolidate duplicate patterns into reusable functions, types, or components after the second occurrence. - **CLEAN**: Delete dead code immediately. Remove unused imports, variables, functions, types, commented code, and console logs. - **LEVERAGE**: Use battle-tested packages over custom implementations.