diff --git a/.github/prompts/code-review.prompt.md b/.github/prompts/code-review.prompt.md new file mode 100644 index 0000000..46e94e2 --- /dev/null +++ b/.github/prompts/code-review.prompt.md @@ -0,0 +1,42 @@ +--- +description: Perform a thorough code review +agent: ask +--- + +# Code Review + +Perform a thorough code review of the currently selected code. + +## Code to Review + +${selection} + +## Review Checklist + +### 1. Correctness +- Does the code do what it's supposed to? +- Are there any logical errors? +- Are edge cases handled? + +### 2. Security +- Is user input validated and sanitized? +- Are there SQL injection or XSS vulnerabilities? +- Is sensitive data handled properly? + +### 3. Performance +- Are there any N+1 query issues? +- Is there unnecessary computation? + +### 4. Readability +- Are names descriptive and consistent? +- Is the code self-documenting? + +## Output Format + +For each issue found, provide: +- **Severity**: 🔴 Critical / 🟡 Warning / 🔵 Suggestion +- **Line(s)**: Where the issue is +- **Issue**: What's wrong +- **Fix**: How to fix it + +End with a summary of the overall code quality. \ No newline at end of file diff --git a/src/static/index.html b/src/static/index.html index 9cad9f4..6b1f1c9 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -12,6 +12,9 @@ />
+