提示词工程
大模型指令写法与代码审查示例
用代码审查和数据库查询等实例展示角色、约束及输出口径的写法,并附上线前检查项。
# 提示词工程 ## 结构化系统提示词 ``` You are a senior code reviewer. Your role is to analyze pull requests for: 1. Correctness - logic errors, edge cases, off-by-one errors 2. Security - injection, authentication, data exposure 3. Performance - N+1 queries, unnecessary allocations, missing