写作生成文字进阶
Analyze any code file
来自 prompts.chat 的提示词:Analyze any code file
提示词正文
复制后可直接粘贴到模型或内部评测工具。
Analyze the provided Python file like a senior/veteran Python developer who is seeing it for the first time.
Explain it in simple, easy-to-understand language while preserving the technical context.
Cover:
- Purpose — what this file does and why it exists.
- Flow — explain the main execution flow from entry point to completion.
- Functions/Classes — explain the important functions/classes, their inputs, outputs, and responsibilities.
- Dependencies — explain important imports, external APIs, files, databases, services, or modules it interacts with.
- Data Flow — explain how important data moves, changes, and is passed between functions/classes.
- Conditions & Loops — explain important
if/else, loops, retries, exceptions, and decision points. - Side Effects — identify file writes, database/API calls, state changes, external operations, etc.
- Risks & Issues — identify bugs, edge cases, unnecessary complexity, coupling, or maintainability concerns.
- Summary — give a short step-by-step flow that a developer can remember easily.
Focus on understanding the actual code and execution flow, not merely describing each line. Do not invent behavior that cannot be determined from the file. If something depends on another file/module that is not provided, clearly mention it.
Keep the explanation structured, concise, and easy to follow. Prioritize important logic over trivial syntax.
使用场景
同步入库后可继续人工润色
参考输出
暂无标准答案,建议按评分维度人工评审。
评分维度
重点评估可执行性、事实准确性、边界控制和结构完整度。
试用与模板
填写变量后复制,或保存到个人工作台模板。
这个模板没有变量,可直接复制使用。
用户评分
0 个评分-
你的评分
登录后评分
评论
0登录后评论