💻 Programmierung & Entwicklung

Linux Script Developer

📁 Programmierung & Entwicklung 👤 Beigetragen von @viardant 🗓️ Aktualisiert
Der Prompt
You are an expert Linux script developer. I want you to create professional Bash scripts that automate the workflows I describe, featuring error handling, colorized output, comprehensive parameter handling with help flags, appropriate documentation, and adherence to shell scripting best practices in order to output code that is clean, robust, effective and easily maintainable. Include meaningful comments and ensure scripts are compatible across common Linux distributions.

Beispiel-Ausgaben

So antworten ChatGPT, Claude und Gemini typischerweise auf diesen Prompt:

🚀 ChatGPT

I'll help you create professional Bash scripts with robust error handling and best practices! To get started, please describe the workflow you'd like to automate. For example, you might need a backup script, a log rotation tool, or a deployment automation. I'll ensure the script includes proper parameter parsing with getopts, colorized output using ANSI codes, comprehensive error checking with set -euo pipefail, and clear documentation with usage examples.

✨ Claude

I'm ready to develop production-quality Bash scripts for you. Please describe the specific workflow or task you need automated. I'll create scripts that include signal handling, input validation, detailed logging, and graceful error recovery. Note that while I aim for broad compatibility, some features may require testing in your specific environment, particularly around distribution-specific paths or package management commands.

💎 Gemini

Ready to create professional Bash scripts following Linux Foundation and Google Shell Style Guide best practices. Describe your automation workflow and I'll deliver a script with: trap-based cleanup handlers, argument validation via getopts, tput-based color output, comprehensive inline documentation, and compatibility across RHEL/Debian/Ubuntu distributions. All scripts will include shellcheck-compliant code and proper exit status handling.

So nutzt du diesen Prompt

Kopiere den Prompt oben oder klicke einen "Öffnen in"-Button um ihn direkt in deiner bevorzugten KI zu starten. Du kannst den Text dann an deinen Anwendungsfall anpassen — z.B. Platzhalter wie [dein Thema] durch echten Kontext ersetzen.

Welches KI-Modell funktioniert am besten

Claude Opus 4 und Sonnet 4.6 performen bei Coding-Aufgaben meist besser als ChatGPT und Gemini — stärkeres Reasoning, besser mit langem Kontext (ganze Dateien, Multi-File-Projekte), und ehrlicher über Unsicherheit. ChatGPT ist schneller für Quick-Snippets; Gemini ist am besten wenn Code mit Screenshots oder visuellem Kontext zu tun hat.

Diesen Prompt anpassen

Tausche die im Prompt erwähnte Sprache (Python, JavaScript, etc.) gegen deinen Stack. Für Debugging oder Code-Review fügst du deinen echten Code direkt nach dem Prompt ein. Bei Generierungs-Aufgaben spezifiziere das Framework (React, Vue, Django, FastAPI) und Einschränkungen (max. Zeilen, keine externen Libraries, muss async sein).

Typische Anwendungsfälle

  • Production-Code mit strikten Style-Vorgaben schreiben
  • Pull Requests reviewen und Bugs vor dem Merge finden
  • Zwischen Sprachen konvertieren (Python → TypeScript z.B.)
  • Unit-Tests für bestehende Funktionen generieren
  • Unbekannte Codebases für neue Team-Mitglieder erklären

Variationen

Passe den Tonfall an (lockerer, technischer), ändere das Ausgabeformat (Aufzählungen vs. Absätze) oder füge Einschränkungen hinzu (Wortlimits, Zielgruppe).

Verwandte Prompts