带约束的重构建议
考察模型能否在限制条件下提出低风险重构。
Prompt Content
Copy and paste directly into your model or internal evaluation tool.
一个 1800 行的 service 文件同时处理鉴权、计费、通知和审计。团队只能投入 2 天,不能改数据库,也不能影响线上 API。请给出分阶段重构计划、风险控制和验收标准。
Use Cases
Reference Output
应先补 characterization tests,再提取纯函数/适配层,保持 API 契约,分小 PR 验证。
Scoring Rubric
5分:计划可执行且低风险;3分:方向正确但无验收;1分:大改架构。
Try & save
Fill variables and copy, or save as a personal template.
This template has no variables and is ready to copy.
User Rating
0 ratingsYour rating
Log in to rate
Comments
0Log in to comment
Related Prompts
Code Review Specialist
Act as a senior software developer to review code for quality, best practices, and optimization potential.
Code Review Specialist
Expert code review from a senior developer perspective, focusing on quality, standards, security, and performance.
Profile / Avatar - Early 2000s Internet Cafe Webcam Couple
A prompt for generating a low-resolution, candid webcam photo of a couple in an early 2000s internet cafe, capturing nostalgic aesthetic details.
Profile / Avatar - Retro Hospital Nurse Cosplay Prompt
A detailed prompt for generating a photorealistic retro hospital nurse cosplay portrait with specific costume, setting, and lighting instructions.