Podcasts पर वापस जाएंClaude
Claude Code 101
Claude Code में एक्सप्लोर→प्लान→कोड→कमिट वर्कफ़्लो
If you take one thing away from Claude code, let it be this workflow: explore, plan, code, and commit.
अगर आप Claude Code से केवल एक चीज़ लेकर जाएं, तो यह workflow लें: explore, plan, code, और commit।
Without this, most people jump straight to pasting in Claude to write code, which means more course correcting later on.
इसके बिना, ज्यादातर लोग सीधे Claude में पेस्ट करके कोड लिखवाने लगते हैं, जिसका मतलब है बाद में ज्यादा सुधार।
The fastest way to handle step one and two is with plan mode.
चरण एक और दो को सबसे तेज़ी से संभालने का तरीका plan mode का उपयोग करना है।
With plan mode, Claude can't edit files.
plan mode में, Claude फ़ाइलें संपादित नहीं कर सकता।
It just reads files to gather research on how to tackle this implementation.
यह केवल फ़ाइलें पढ़ता है ताकि इस implementation को कैसे tackle किया जाए, इस पर शोध कर सके।
To enter plan mode, hit shift and tab until you see the plan mode under the text input.
plan mode में प्रवेश करने के लिए, shift और tab दबाएं जब तक टेक्स्ट इनपुट के नीचे plan mode दिखाई न दे।
I need to add WebP conversion to our image upload pipeline.
मुझे हमारे image upload pipeline में WebP conversion जोड़ने की ज़रूरत है।
Figure out where in the pipeline it should happen, whether we need new dependencies, and how to approach it.
यह पता करें कि pipeline में यह कहां होना चाहिए, क्या हमें नई dependencies चाहिए, और इसे कैसे approach करें।
And Claude will read relevant files, do some web searches, and give you a plan of action.
Claude प्रासंगिक फ़ाइलें पढ़ेगा, कुछ web searches करेगा, और आपको एक action plan देगा।
Make sure you review it and determine if it meets your criteria.
इसकी समीक्षा करना सुनिश्चित करें और निर्धारित करें कि यह आपके मानदंडों को पूरा करता है या नहीं।
Otherwise, I can ask it to add on or revise some areas.
अन्यथा, मैं इसे कुछ क्षेत्रों को जोड़ने या संशोधित करने के लिए कह सकता हूं।
Perfect.
परफेक्ट।
And this right here is the best place to course correct because it's before any code is written.
और यहाँ course correct करने का सबसे अच्छा स्थान है क्योंकि यह कोई भी कोड लिखे जाने से पहले है।
You can also use explore without being in plan mode by just asking Claude to explore your code base.
आप plan mode में हुए बिना भी explore कर सकते हैं, बस Claude से अपने code base को explore करने के लिए कहें।
Now, once the plan looks good, you can select approve to accept the plan and let Claude toggle all of the list items it provided.
अब, जब plan अच्छा लगे, तो आप plan स्वीकार करने के लिए approve चुन सकते हैं और Claude को उसके द्वारा प्रदान किए गए सभी list items को पूरा करने दे सकते हैं।
You can determine if you want Claude to auto accept the file edits or ask every single time.
आप तय कर सकते हैं कि क्या आप चाहते हैं कि Claude file edits को auto accept करे या हर बार पूछे।
Claude will do its best to troubleshoot your code base before considering the plan finished.
Claude plan को समाप्त मानने से पहले आपके code base को troubleshoot करने की पूरी कोशिश करेगा।
But at times, you'll need to course correct.
लेकिन कभी-कभी आपको course correct करना होगा।
This is the benefit of working with plan mode because after the plan is finished, we also have the context of how it got to the results to help it guide its next decision.
plan mode के साथ काम करने का यही फायदा है क्योंकि plan समाप्त होने के बाद भी हमारे पास यह context रहता है कि यह results तक कैसे पहुंचा, जो इसकी अगली decision में मार्गदर्शन करने में मदद करता है।
In order for Claude to be confident in its results, it has to be clear on what it deems correct.
Claude को अपने results के बारे में confident होने के लिए, उसे यह स्पष्ट होना चाहिए कि वह क्या सही मानता है।
When writing your plan, make this explicit.
अपना plan लिखते समय, इसे explicit करें।
Adding tools that will help Claude complete its goals will remove a lot of back and forth.
ऐसे tools जोड़ना जो Claude को उसके goals पूरे करने में मदद करेंगे, बहुत सारे आगे-पीछे को दूर करेगा।
For example, if you're building web UIs, make sure you have the Claude and Chrome extension so that Claude code can control a tab and test out the UI before deeming it finished.
उदाहरण के लिए, अगर आप Web UIs बना रहे हैं, तो सुनिश्चित करें कि आपके पास Claude और Chrome extension है ताकि Claude Code एक tab को control कर सके और UI को समाप्त मानने से पहले test कर सके।
In your project, include a test suite that Claude can continuously validate on.
अपने project में एक test suite शामिल करें जिसे Claude लगातार validate कर सके।
Claude can even write tests for you.
Claude आपके लिए tests भी लिख सकता है।
Before passing this off to Claude, make sure that the tests are a source of truth for you and your team to avoid any false positives.
इसे Claude को सौंपने से पहले, सुनिश्चित करें कि tests आपके और आपकी team के लिए truth का source हैं ताकि false positives से बचा जा सके।
Quick tip, if you find Claude keeps running into the same issues, ask Claude to save the solution to his Claude MD file.
Quick tip, अगर आप पाते हैं कि Claude बार-बार वही समस्याएं देखता है, तो Claude से solution को उसकी Claude MD file में save करने के लिए कहें।
Now, once you have tested for yourself and are happy with the results, it's time to push your code.
अब, एक बार जब आप खुद test कर लें और results से खुश हों, तो अपना code push करने का समय है।
A tip before you commit, run a sub agent code reviewer to look at your code.
commit से पहले एक tip, अपने code को देखने के लिए एक sub agent code reviewer चलाएं।
Then you get Claude to generate a commit message for you in your style.
फिर Claude को अपनी style में आपके लिए commit message generate करवाएं।
Rinse and repeat.
दोहराते रहें।
If you want to be effective with Claude code, follow the explore, plan, code, and commit workflow.
अगर आप Claude Code के साथ effective होना चाहते हैं, तो explore, plan, code, और commit workflow का पालन करें।
Exploration will give the relevant context
Exploration आपके project के लिए relevant context देगा
Claude needs for your project.
जो Claude को आपके project के लिए चाहिए।
Plan will create a plan of action that Claude will use to determine if they are successful.
Plan एक action plan बनाएगा जिसका उपयोग Claude यह निर्धारित करने के लिए करेगा कि वे सफल हैं या नहीं।
Code is the back and forth that you and Claude do before settling on the final outcomes of the plan.
Code वह आगे-पीछे है जो आप और Claude plan के final outcomes पर settle होने से पहले करते हैं।
Commit helps you review and push your code so you can start on your next feature.
Commit आपको अपना code review और push करने में मदद करता है ताकि आप अपनी next feature पर शुरू कर सकें।