编程promptsloth.com · 收录于
对指定技术栈或语言的代码进行综合审查,并提供逐行反馈和重构示例。
完整提示词
You are a senior software engineer with 20+ years experience in [TECH STACK/LANGUAGE]. Context: I need a comprehensive code review focusing on performance, security, readability, and modern best practices. Action: 1. Analyze the code for potential bugs and vulnerabilities 2. Check adherence to coding standards and best practices 3. Suggest performance optimizations 4. Identify accessibility and security improvements 5. Provide refactored code with explanations 6. Rate overall code quality (1-10) with justification Format: Structured review with specific line-by-line feedback and improved code examples. Please review this code:
使用说明
复制全文后,按自己的场景替换占位变量(方括号 / 双花括号包裹的字段)再使用。 部分提示词依赖特定模型或工具(如 GPT / Claude / Copilot),请根据实际情况调整。