Back to PodcastsClaude
Claude Code 101
Your first Claude Code prompt
You talk to Claude Code like you would talk to any AI assistant.
Du sprichst mit Claude Code genauso wie mit jedem anderen KI-Assistenten.
When entering your prompt, here are some things that you can consider that can both protect and make things easier for you.
Wenn du deinen Prompt eingibst, gibt es einige Dinge, die du berücksichtigen kannst, die dich sowohl schützen als auch die Arbeit erleichtern.
You can choose whether Claude auto accepts every file change it suggests or require it to ask you for explicit permission each time.
Du kannst wählen, ob Claude jede vorgeschlagene Dateiänderung automatisch akzeptiert oder jedes Mal um deine ausdrückliche Erlaubnis bittet.
With shift plus tab, you can cycle between both modes.
Mit shift+tab kannst du zwischen beiden Modi wechseln.
In auto accept mode, it will automatically approve an edit or creation of a file, but ask your permission to run commands.
Im auto-accept-Modus wird automatisch eine Bearbeitung oder Erstellung einer Datei genehmigt, aber für die Ausführung von Befehlen wird deine Erlaubnis eingeholt.
There isn't a right or wrong way.
Es gibt keinen richtigen oder falschen Weg.
It's just whatever you feel the most comfortable with.
Es geht einfach darum, womit du dich am wohlsten fühlst.
Within this shift tab menu is the plan mode.
In diesem shift+tab-Menü befindet sich der plan mode.
Plan mode takes your prompt and uses read-only tools to analyze your code base and do research on your suggested implementation.
Der plan mode nimmt deinen Prompt und nutzt schreibgeschützte Werkzeuge, um deine Codebasis zu analysieren und Recherchen zu deiner vorgeschlagenen Implementierung durchzuführen.
It will also ask you questions on items that it wants clarification on.
Er wird dir auch Fragen zu Punkten stellen, bei denen er Klarstellungen benötigt.
It then returns to you a long detailed plan that it can execute on in more detail.
Anschließend liefert er dir einen langen, detaillierten Plan, den er noch ausführlicher ausführen kann.
Plan mode works great for planning complex changes or doing a safe code review.
Der plan mode eignet sich hervorragend für die Planung komplexer Änderungen oder die Durchführung eines sicheren Code-Reviews.
A lot of the time you're asking Claude to do multi-step implementations towards a feature and this is exactly what plan mode excels at.
Oft bittest du Claude, mehrstufige Implementierungen für eine Funktion durchzuführen, und genau darin glänzt der plan mode.
So, why don't we give it a try?
Also, warum probieren wir es nicht einfach aus?
I have an application here that desperately needs a dark mode toggle.
Ich habe hier eine Anwendung, die dringend einen Umschalter für den Dunkelmodus benötigt.
So, I'm going to use Claude Code to implement this for me.
Also werde ich Claude Code verwenden, um das für mich zu implementieren.
So, I'm in the root directory of my project and I'm going to hit the shift tab a couple times to go into plan mode.
Ich befinde mich im Stammverzeichnis meines Projekts und drücke shift+tab ein paarmal, um in den plan mode zu wechseln.
Then, let's write out the prompt.
Dann lass uns den Prompt formulieren.
My app needs a dark mode implemented across the entire app.
Meine App benötigt einen Dunkelmodus, der in der gesamten App implementiert ist.
Can you create a toggle switch on the header that allows user to toggle between light mode and dark mode?
Kannst du im Header einen Kippschalter erstellen, mit dem der Benutzer zwischen hellem und dunklem Modus wechseln kann?
I need you to find a good contrast color that works based on my existing light
Ich brauche eine gute Kontrastfarbe, die zu meinem vorhandenen hellen
And let's let Claude plan this out.
Und lass Claude das planen.
And after reviewing, I think it looks pretty good.
Und nach der Überprüfung denke ich, dass es ziemlich gut aussieht.
At the end of all this, we can see explicitly what Claude did and how it came to its conclusion.
Am Ende von alledem können wir explizit sehen, was Claude getan hat und wie es zu seiner Schlussfolgerung gelangt ist.
And the dark mode is looking pretty good.
Und der Dunkelmodus sieht ziemlich gut aus.
When using Claude Code, try to be as descriptive as possible with your prompt.
Wenn du Claude Code verwendest, versuche, deinen Prompt so präzise wie möglich zu formulieren.
If you want to stay in the loop at every step, you can do that.
Wenn du bei jedem Schritt in die Schleife eingebunden bleiben möchtest, kannst du das tun.
Use plan mode to let Claude get a little bit more in the nitty-gritty with what you want to achieve before executing on that plan.
Nutze den plan mode, damit Claude etwas tiefer in das eintauchen kann, was du erreichen möchtest, bevor er diesen Plan ausführt.