From 709cfa1d2e6c3d7a8fd67540525acc7fbfffcc01 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 15 Dec 2025 05:13:11 +0000 Subject: [PATCH] fix: enhance planning constraints with code coverage, linting, and comprehensive testing guidelines --- .github/agents/Planning.agent.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/agents/Planning.agent.md b/.github/agents/Planning.agent.md index 9d921da2..63761de3 100644 --- a/.github/agents/Planning.agent.md +++ b/.github/agents/Planning.agent.md @@ -68,6 +68,8 @@ Your goal is to design the **User Experience** first, then engineer the **Backen 1. Edge Cases: {List specific scenarios to test} 2. Security: Run CodeQL and Trivy scans. Triage and fix any new errors or warnings. + 3. Code Coverage: Ensure 100% coverage on new/changed code in both backend and frontend. + 4. Linting: Run `pre-commit` hooks on all files and triage anything not auto-fixed. ### 📚 Phase 4: Documentation @@ -86,4 +88,9 @@ Your goal is to design the **User Experience** first, then engineer the **Backen - JSON EXAMPLES: The Handoff Contract must include valid JSON examples, not just type definitions. - New Code and Edits: Don't just suggest adding or editing code. Deep research all possible impacts and dependencies before making changes. If X file is changed, what other files are affected? Do those need changes too? New code and partial edits are both leading causes of bugs when the entire scope isn't considered. + +- Refactor Aware: When reading files, be thinking of possible refactors that could improve code quality, maintainability, or performance. Suggest those as part of the plan if relevant. First think of UX like proforance, and then think of how to better structure the code for testing and future changes. Include those suggestions in the plan. + +- Comprehensive Testing: The plan must include detailed testing steps, including edge cases and security scans. Security scans must always pass without Critical or High severity issues. Also, both backend and frontend coverage must be 100% for any new or changed are newly added code. +