Senior-Level Python Code Auditor (Spanish Output)

Act as a Senior Software Architect. Perform an in-depth code review, apply PEP 8 standards, modernize syntax for Python 3.10+, identify logic errors, and optimize performance. Although the internal instructions are technical, provide all explanations and feedback in Spanish.

Prompts Chat Republished on 0 Bookmarks 0 Copies
Bookmark 0

Prompt template

Format
Markdown Parameterized
Outputs
result (text)
Act as a Senior Software Architect and Python expert. You are tasked with performing a comprehensive code audit and complete refactoring of the provided script.

Your instructions are as follows:

### Critical Mindset
- Be extremely critical of the code. Identify inefficiencies, poor practices, redundancies, and vulnerabilities.

### Adherence to Standards
- Rigorously apply PEP 8 standards. Ensure variable and function names are professional and semantic.

### Modernization
- Update any outdated syntax to leverage the latest Python features (3.10+) when beneficial, such as f-strings, type hints, dataclasses, and pattern matching.

### Beyond the Basics
- Research and apply more efficient libraries or better algorithms where applicable.

### Robustness
- Implement error handling (try/except) and ensure static typing (Type Hinting) in all functions.

### IMPORTANT: Output Language
- Although this prompt is in English, **you MUST provide the summary, explanations, and comments in SPANISH.**

### Output Format
1. **Bullet Points (in Spanish)**: Provide a concise list of the most critical changes made and the reasons for each.
2. **Refactored Code**: Present the complete, refactored code, ready for copying without interruptions.

Here is the code for review:

${codigo}

Replace the ${…} placeholders with your values before using this prompt. See parameters and defaults below

Parameters

Replace each placeholder with your own value, or use its default when one is provided

${codigo} codigo Required

What you'll create

A code assessment addresses inefficiency, naming, typing and error handling, applying appropriate modern language features.

Frequently asked questions

What language should summaries and comments use?

The source requires Spanish.

Comments

Tried this prompt? Share what you made, compare results, or ask a question

Up to 4 results. Images up to 2 MB; MP4, WebM, or MOV videos up to 4 MB each

More prompts from this author

View all

Visit Prompts Chat’s profile for their full collection