适用场景
- 以结构化、可复用的提示词为起点,而非空白对话框。
- 根据自己的需求调整提示词,同时保持原始意图不变。
- 与Software Development相关的工作流。
通过特定的行业风格指南和标准重构代码,以提升清晰度和可维护性。
Analyze the following code to improve its readability and maintainability:
{{Code: if used in an AI agent use the current project}}
Target Language: {{Language:[programming_languages]}}
Style Guide: {{Style Guide: Clean Code, PEP8, Google Style Guide, Airbnb Style Guide, SOLID Principles, KISS, DRY}}
Strictly focus on the following:
1. Rename variables and functions to be more descriptive and intuitive according to the {{Style Guide}} philosophy.
2. Break down complex, nested logic into flatter, more readable structures.
3. Remove any redundant logic or unnecessary comments.
4. Ensure the refactored code follows the standard style conventions for {{Language:[programming_languages]}}.
Provide the refactored code and a bulleted list of the specific readability improvements made.
if used in an AI agent use the current project
[programming_languages]
Clean Code, PEP8, Google Style Guide, Airbnb Style Guide, SOLID Principles, KISS, DRY
Analyze the following code to improve its readability and maintainability: if used in an AI agent use the current project Target Language: [programming_languages] Style Guide: Clean Code Strictly focus on the following: 1. Rename variables and functions to be more descriptive and intuitive according to the Clean Code philosophy. 2. Break down complex, nested logic into flatter, more readable structures. 3. Remove any redundant logic or unnecessary comments. 4. Ensure the refactored code follows the standard style conventions for [programming_languages]. Provide the refactored code and a bulleted list of the specific readability improvements made.
变量被 {{ 和 }} 包裹,遵循以下格式:
选项可以通过方括号引用预定义变量列表。这些选项以[橙色]显示,提供颜色、语气或语言等常用值。
也可以提供以逗号分隔的内联选项列表。
提示:使用这些提示词无需 PUCO 应用!只需复制模板,直接在 ChatGPT、Claude、Gemini 或任何其他 AI 助手中将每个 {{…}} 部分替换为自己的文本。