Senior Python Code Auditor (Spanish Output)

Senior Python Code Auditor (Spanish Output)

Makes the AI audit a Python script as a strict software architect, then rewrite it in modern PEP 8 style with type hints and error handling.

Prompt

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}

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 2,873 prompts

More by @OpenSourceBuffGuy

See all
Ethereum Developer prompt image

Ethereum Developer

Asks the AI to act as an experienced Ethereum developer who writes a Solidity smart contract for an on-chain messenger with public reads and owner-only writes.

act-as, crypto, coding

1 view
Linux Terminal prompt image

Linux Terminal

Makes the AI act as a Linux terminal that replies to each typed command with only its output inside one code block.

simulator, linux, coding

5 views
English Translator and Improver prompt image

English Translator and Improver

Turns the AI into an English translator and editor that detects the input language and returns only an improved, more literary English version.

act-as, translation, rewriting, proofreading

2 views

Reviews

Loading reviews…

Discussion

Loading comments…