Easy Prompt
CodingCodeAdvancedhard

带约束的重构建议

考察模型能否在限制条件下提出低风险重构。

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 ratings
-

Your rating

Log in to rate

Comments

0

Log in to comment

Related Prompts