Auditor de Código Python: Nivel Senior (Salida en Español)
Kompromissloses Python-Code-Audit mit PEP-8, Modernisierung und Refactoring – Ausgabe auf Spanisch.
Kompromissloses Python-Code-Audit mit PEP-8, Modernisierung und Refactoring – Ausgabe auf Spanisch.
Der 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}
Variablen & Platzhalter
Vor dem Einsatz diese Stellen durch eigene Angaben ersetzen:
codigo
So nutzt du es
Den Prompt-Text kopieren (Button oben) und als System-Prompt bzw. erste Nachricht in ChatGPT, Claude oder einem lokalen Modell einfügen. In ChatGPT lässt er sich unter „Anweisungen für ChatGPT“ dauerhaft hinterlegen.
Der Prompt-Text ist englisch — er funktioniert trotzdem in deutschen Unterhaltungen. Für deutsche Antworten einfach am Ende ergänzen: „Antworte auf Deutsch.“
Im Detail
Verwandelt die KI in einen kompromisslos kritischen Senior-Python-Reviewer: Statt oberflächlichem Feedback verlangt der Prompt eine vollständige Auditierung nach PEP-8-Standards, Modernisierung auf aktuelle Python-Features (3.10+, f-Strings, Type Hints, Dataclasses, Pattern Matching), Suche nach effizienteren Bibliotheken/Algorithmen sowie konsequentes Error-Handling und Typisierung in jeder Funktion – die Ausgabe erfolgt explizit auf Spanisch. Damit eignet er sich besonders für spanischsprachige Entwickler, die ihren Code nicht nur oberflächlich, sondern architektonisch geprüft haben wollen, etwa vor einem Team-Review oder einer Portfolio-Veröffentlichung. Wer nur eine schnelle Syntaxprüfung will, bekommt hier mehr als nötig – der Prompt zielt auf echtes Refactoring, nicht auf kosmetische Korrekturen.
Praxis-Tipp
Füge das komplette Skript im Codeblock ein und bitte am Ende explizit um eine priorisierte Liste der kritischsten Probleme, falls die Rückmeldung zu umfangreich wird.
Siehe auch
- Any Programming Language to Python Converter
- Bug Discovery Code Assistant
- Architect Guide for Programmers
Lizenz & Quelle
- Lizenz: CC0-1.0 (Public Domain)
- Quelle: awesome-chatgpt-prompts (GitHub)
Inhalt ansehen (auditor-de-codigo-python-nivel-senior-salida-en-espanol.txt)
Lade …
Erfahrungen & Kommentare.
Funktioniert der Prompt bei Ihnen? Tipps, Stolperfallen, Varianten — teilen Sie es mit der Community.
Lade Kommentare …
Passt dazu.
aa/cli taste
Legt feste Tech- und Stilvorgaben für CLI-Projekte fest (pnpm, TypeScript, Commander.js, Ordnerstruktur).
Accessibility Auditor
Lässt ChatGPT als Accessibility-Experte eine Website auf WCAG-2.2- und Section-508-Konformität prüfen.
Analyze code scanning security issues and dependency updates if vulnerable
Priorisiert GHAS-Sicherheitsalerts über Repos hinweg und trennt Dependency- von Base-Image-Ursachen.
