Prompt to Prompt: Senior Python Code Auditor
Prompt to Prompt: Senior Python Code Auditor is a verified PROMPT blueprint on Promptally in System & Base Contexts optimized for leading AI models. Curated Coding prompt from awesome-prompts library split. Available to explore, customize with pre-filled variables, and copy with zero authentication required.
Technical Specifications
| Specification | Value |
|---|---|
| Artifact type | PROMPT (System & Base Contexts) |
| Compatible engines | Universal / Model Agnostic |
| Input variables | None (pre-filled) |
| Approximate tokens | 321 |
| Source file | prompt-prompt-senior-python-code-auditor.txt |
| Access tier | Free public (MIT) |
Pre-Filled Template
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}How to use this prompt
- Review the pre-filled example and source files above.
- Copy the template or download
prompt-prompt-senior-python-code-auditor.txt, then use it in your model, IDE, or workflow tool. - Compare your result with the sample output when one is provided.
Frequently Asked Questions
How do I use Prompt to Prompt: Senior Python Code Auditor?
Open the prompt on Promptally, review the pre-filled example, then copy the template or download prompt-prompt-senior-python-code-auditor.txt and paste it into your model, IDE or workflow tool. Prompt to Prompt: Senior Python Code Auditor is a static blueprint with no dynamic variables. Copy it and use it as-is.
Is Prompt to Prompt: Senior Python Code Auditor free?
Yes. Prompt to Prompt: Senior Python Code Auditor is free to view, copy and download on Promptally without creating an account. It is published under the MIT license.
What variables does Prompt to Prompt: Senior Python Code Auditor need?
Prompt to Prompt: Senior Python Code Auditor is a static blueprint with no dynamic variables. Copy it and use it as-is.