Ideal para
- Empezar desde un prompt estructurado y reutilizable en lugar de un chat en blanco.
- Adaptar el prompt a tus propios datos manteniendo intacta la intención original.
- Flujos de trabajo relacionados con Software Development.
Refactoriza el código para mejorar la claridad y el mantenimiento usando guías de estilo y estándares específicos de la industria.
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.
Las variables van entre {{ y }} y siguen este patrón:
Una selección puede hacer referencia a una lista de variables predefinida usando corchetes. Aparecen en [naranja] y proporcionan valores de uso común como colores, tonos o idiomas.
También puedes proporcionar una lista de opciones en línea, separadas por comas.
Consejo: ¡no necesitas la app PUCO para usar estos prompts! Solo copia la plantilla y sustituye cada sección {{…}} por tu propio texto directamente en ChatGPT, Claude, Gemini o cualquier otro asistente de IA.