Commit 8483723
feat(auto-review): condense prompt and fix inline comment formatting (#56)
* feat: condense auto-review prompt by 75% while maintaining all essential info
- Reduced prompt from ~370 lines to ~80 lines
- Condensed CRITICAL CONSTRAINTS section (removed verbose explanations)
- Streamlined REVIEW SCOPE (kept key info on incremental reviews)
- Compressed AUTOMATED CHECKS (4 subsections: URLs, Cache-Control, GitHub Actions, WalletConnect)
- Simplified RESPONSE FORMAT (removed redundant examples, kept one clear template)
- All essential information preserved: constraints, focus areas, checks, formatting rules
* feat(auto-review): enhance Context section detail in findings
Expand Context field guidance to require 4 elements: what, why,
impact, and exploitability conditions. Updated prompt instructions
and example to produce 2-4 sentence explanations instead of terse
single-line descriptions.
Updated test fixtures to match new detailed Context expectations.
* fix(auto-review): improve inline comment markdown rendering
- Add newline before code blocks in recommendations to fix GitHub rendering
- Add newline before bulleted context sections for proper formatting
- Update prompt to request structured bullet format for Context field
- Update fixtures and tests to match new bulleted Context format
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent fb8eeea commit 8483723
5 files changed
Lines changed: 100 additions & 288 deletions
File tree
- claude/auto-review
- scripts
- __tests__
- fixtures/claude-comments
0 commit comments