Skip to contentমূল লেখায় যান

Part 05পর্ব 05 · Foundations

Prompting for QA

A prompt tells Claude what to do. For test work, a good prompt also tells Claude how to prove that the work is done. This page shows how to write specific prompts, how to give Claude a check it can run, and how to apply both to requirement reviews, bug reproductions, and new tests.

9 min read9 মিনিটে পড়া যায় · 6 sections6টি সেকশন · 6 sources6টি সোর্স · updated Nov 2026আপডেট: Nov 2026

A prompt with a check beats a vague oneচেকসহ প্রম্পট অস্পষ্ট প্রম্পটের চেয়ে ভালো

Go from a vague prompt to a specific one, then switch the check on and see who decides that the task is done.অস্পষ্ট প্রম্পট থেকে নির্দিষ্ট প্রম্পটে যান, তারপর চেক চালু করে দেখুন কাজ শেষ কি না তা কে ঠিক করে।

2 min2 মিনিট7 steps7টি ধাপ
  • Checklistচেকলিস্ট0 / 4
  • Guessesঅনুমান4
  • Verifiedযাচাই✗
Prompt checklistপ্রম্পট চেকলিস্টContextকনটেক্সটScopeস্কোপConstraintsসীমাবদ্ধতাCheck to runচালানোর চেকPromptপ্রম্পটyouআপনিfix the login bugfix the login bugClaudeClaudesession 1সেশন 1Checkচেকtestsটেস্ট

You’ll learnআপনি শিখবেন

  • Why a specific prompt needs fewer guessesনির্দিষ্ট প্রম্পটে কেন অনুমান কম লাগে
  • Why “looks done” is not done“looks done” কেন শেষ নয়
  • How a check gates the end of the taskচেক কীভাবে কাজের শেষ আটকায়
  • Why a second session reviews betterদ্বিতীয় সেশন কেন ভালো রিভিউ করে

Write specific prompts

A specific prompt gives Claude information it does not already have. Name the file, describe the symptom, and say what "fixed" looks like. Source 1সোর্স 1

Two examples from the docs: Source 1সোর্স 1

GoalBeforeAfter
Describe a bugfix the login bugusers report login fails after the session times out. look at token refresh in src/auth/, write a failing test that reproduces it, then fix it
Follow a patternadd a calendar widgetfollow the pattern in HotDogWidget.php and build a calendar widget that lets you pick a month and page between years. no new libraries

The first "after" prompt names the symptom, the likely location, and what "fixed" means.

For a test task, this tutorial's own example is: write a test for foo.py covering the edge case where the user is logged out. avoid mocks.

A vague prompt is useful when you explore and can afford to correct the course, for example "what would you improve in this file?" Source 1সোর্স 1 You also do not need to list every file. Give context and direction, then let Claude find the details. Source 2সোর্স 2 Example from the docs: "The checkout flow is broken for users with expired cards. The relevant code is in src/payments/. Can you investigate and fix it?" Source 2সোর্স 2

You do not need a perfect prompt. Start with what you want, then refine. Source 2সোর্স 2

The colleague test

Show your prompt to a colleague who knows little about the task, and ask them to follow it. If they would be confused, Claude will be too. Source 3সোর্স 3 Also give the reason behind an instruction. Context or motivation helps Claude understand your goals. Source 3সোর্স 3

A prompt checklist for QA

This checklist is this tutorial's own. It is not an official formula. Each row points to the guidance that it comes from.

ElementWhat to writeExample
ContextThe files, ticket, or log to use, and why the task matters Source 1সোর্স 1 Source 3সোর্স 3Read @src/payment.js and the refund rules in @docs/refunds.md
ScopeThe exact behavior or edge case Source 1সোর্স 1only the refund path for partial refunds
ConstraintsWhat Claude must not do Source 1সোর্স 1 Source 3সোর্স 3avoid mocks, do not change production code
VerificationA check that Claude can run, and the evidence to show Source 1সোর্স 1run the tests and show the output
Role (optional)A role sets focus and tone Source 3সোর্স 3You are a senior SDET

The platform prompting guide describes a role as part of a system prompt. It says that even a single sentence makes a difference. Source 3সোর্স 3 In this tutorial, a role is optional. The other four rows matter more.

Don'tকরবেন না: Vague: no context, scope, or check

Explain this code

Doকরুন: Specific: context, scope, constraint

Read @src/payment.js. Explain the code flow,
its dependencies, and which internal functions
call each other. Do not generate test cases.

সহজ English

The more exact your instructions are, the fewer corrections you need. A specific prompt gives Claude information it does not already have: name the file, describe the symptom, and say what "fixed" looks like. Source 1সোর্স 1

For example, do not only write "fix the login bug". Write that users report login fails after the session times out, say where to look (token refresh in src/auth/), and ask for a failing test that reproduces it before the fix. Source 1সোর্স 1 For a test task, this tutorial's own example is "add tests for foo.py" made specific: say which edge case to test (the user is logged out), and say "avoid mocks".

A vague prompt is good when you explore and can correct the course later. Source 1সোর্স 1 Do not list every file. Give context and direction, and let Claude find the details. Start with what you want, then improve it. Source 2সোর্স 2

This tutorial gives its own checklist: context, scope, constraints, a check that Claude can run, and an optional role. Before you send a prompt, show it to a colleague who knows little about the task, and ask them to follow it. If they would be confused, Claude will also be confused. Also tell Claude the reason for an instruction. Source 3সোর্স 3

বাংলা ব্যাখ্যা

Claude-কে নির্দিষ্ট instruction দিন। Instruction যত নিখুঁত হবে, আপনাকে তত কম সংশোধন করতে হবে। একটি নির্দিষ্ট prompt Claude-কে এমন তথ্য দেয় যা তার আগে থেকে জানা নেই: file-এর নাম বলুন, symptom বর্ণনা করুন, আর "fixed" দেখতে কেমন তা বলুন। Source 1সোর্স 1

যেমন, শুধু "fix the login bug" লিখবেন না। লিখুন যে session timeout-এর পর login fail করছে বলে user-রা জানাচ্ছেন, কোথায় দেখতে হবে (src/auth/-এ token refresh), আর fix-এর আগে সেটি reproduce করে এমন একটি failing test চান। Source 1সোর্স 1 Test-এর কাজে এই tutorial-এর নিজের উদাহরণ: "add tests for foo.py"-কে নির্দিষ্ট করুন, কোন edge case test করতে হবে (user logged out) বলুন এবং "avoid mocks" বলে দিন।

আপনি যখন explore করছেন এবং পরে দিক বদলাতে পারবেন, তখন vague prompt কাজে লাগে। Source 1সোর্স 1 প্রতিটি file-এর তালিকা দেওয়ার দরকার নেই। Context আর direction দিন, বাকি detail Claude নিজেই খুঁজে নেবে। Prompt একদম perfect হতে হবে না। যা চান তা দিয়ে শুরু করুন, তারপর ঠিক করুন। Source 2সোর্স 2

এই tutorial-এর নিজের একটি checklist আছে: context, scope, constraint, Claude চালাতে পারে এমন একটি check, আর ঐচ্ছিক একটি role। Prompt পাঠানোর আগে task সম্পর্কে কম জানেন এমন একজন সহকর্মীকে prompt-টি দেখান এবং সেটি অনুসরণ করতে বলুন। তিনি বিভ্রান্ত হলে Claude-ও বিভ্রান্ত হবে। কোনো instruction-এর পেছনের কারণও Claude-কে বলুন। Source 3সোর্স 3

Give Claude a way to verify its work

Give Claude a check it can run, such as tests, a build, or a screenshot to compare. The docs say that with a pass or fail check, Claude "can keep going on its own and you don't have to watch". Source 1সোর্স 1 Without a check, "looks done" is the only signal, and you become the verification loop. With a pass or fail check, Claude does the work, runs the check, reads the result, and iterates until the check passes. Source 1সোর্স 1

A check can be any of these: Source 1সোর্স 1

  • A test suite
  • A build exit code
  • A linter
  • A script that compares output with a fixture
  • A browser screenshot compared with a design

Example from the docs: "run the auth tests after, and keep going until they pass". Source 1সোর্স 1

Ask Claude to show evidence, not to say that it succeeded: the test output, the command and its result, or a screenshot. Source 1সোর্স 1

Make the check gate the end of the task

The docs give four ways: Source 1সোর্স 1

ScopeHow
In one promptAsk for the check in the same prompt.
Across a sessionSet a /goal condition. A separate evaluator checks it again after every turn.
As a deterministic gateA Stop hook blocks the turn from ending until the check passes.
By someone who did not write the code/code-review reviews the diff in a fresh subagent that never saw your conversation.

The /goal command takes a condition. clear (or stop, off, reset, none, cancel) removes the goal. Source 4সোর্স 4 The Hooks page shows Stop hooks, and the Subagents page explains subagents.

After Claude's check passes, run /verify yourself. Source 1সোর্স 1 /verify builds your app, runs it, and observes the result, so it does not rely only on tests or type checks. Source 4সোর্স 4

Looks done is not done

Claude can write a plausible implementation that misses edge cases. If it has no check to run, "looks done" is all it has to go on. Give it a check: tests, a script, or a screenshot. Source 1সোর্স 1

Stop Claude from gaming the tests

A green test run means nothing if Claude changed the code only to pass those inputs. The platform guide gives sample prompt text for this. The text below is abridged from it: Source 3সোর্স 3

Do not hard-code values or create solutions that only work for specific test inputs.
Tests are there to verify correctness, not to define the solution.
If any of the tests are incorrect, please inform me rather than working around them.

Use a second session as the reviewer

One session writes the code. A second, fresh session reviews it. A fresh context gives a better review, because Claude is not biased toward code that it just wrote. Source 1সোর্স 1

Example review prompt from the docs: "use a subagent to review the rate limiter diff against SPEC.md, check every requirement is implemented and the listed edge cases have tests, report gaps that affect correctness and skip style". Source 1সোর্স 1

A reviewer that you tell to find gaps usually finds some, even when the work is sound. Tell it to flag only gaps that affect correctness or the stated requirements. Source 1সোর্স 1

সহজ English

Give Claude a check that it can run. Without a check, you must check the work. With a pass or fail check, Claude does the work, runs the check, reads the result, and tries again until the check passes. Source 1সোর্স 1 A check can be a test suite, a build exit code, a linter, a script that compares output with a fixture, or a browser screenshot compared with a design. Source 1সোর্স 1

Ask Claude to show evidence, such as the test output, not only to say that it succeeded. Source 1সোর্স 1

To make the check end the task, ask for it in the prompt, set a /goal condition, use a Stop hook, or use /code-review. Source 1সোর্স 1 After Claude's check passes, run /verify yourself. Source 1সোর্স 1 It builds your app, runs it, and observes the result. Source 4সোর্স 4

Tell Claude not to hard-code values that work only for the test inputs. Source 3সোর্স 3 Use a second, fresh session to review the code. It is not biased toward code that it just wrote. Tell the reviewer to flag only gaps that affect correctness or the requirements. Source 1সোর্স 1

বাংলা ব্যাখ্যা

Claude-কে এমন একটি check দিন যা সে নিজে চালাতে পারে, যেমন test, build, অথবা তুলনা করার জন্য একটি screenshot। Check না থাকলে কাজটি যাচাই করার দায়িত্ব আপনার ওপর পড়ে। Pass বা fail check থাকলে Claude কাজ করে, check চালায়, result পড়ে, এবং check pass না হওয়া পর্যন্ত আবার চেষ্টা করে। Source 1সোর্স 1 Check হতে পারে একটি test suite, একটি build exit code, একটি linter, output-কে একটি fixture-এর সঙ্গে মেলানোর একটি script, অথবা design-এর সঙ্গে তুলনা করা একটি browser screenshot। Source 1সোর্স 1

Claude শুধু "সফল হয়েছে" বলবে, এটা মেনে নেবেন না। প্রমাণ দেখাতে বলুন: test output, command ও তার result, অথবা screenshot। Source 1সোর্স 1

Check-কে task-এর শেষ ধাপ বানাতে চারটি উপায় আছে: একই prompt-এ check চান, একটি /goal condition দিন, একটি Stop hook ব্যবহার করুন, অথবা /code-review ব্যবহার করুন। Source 1সোর্স 1 Claude-এর check pass করার পর আপনি নিজে /verify চালান। Source 1সোর্স 1 এটি আপনার app build করে, চালায় এবং result পর্যবেক্ষণ করে। Source 4সোর্স 4

Claude-কে বলুন যেন সে এমন value hard-code না করে যা শুধু নির্দিষ্ট test input-এ কাজ করে। Source 3সোর্স 3 Code review-এর জন্য দ্বিতীয় একটি নতুন session ব্যবহার করুন, কারণ সেটি সদ্য লেখা code-এর প্রতি পক্ষপাতী নয়। Reviewer-কে বলুন শুধু সেই gap-গুলো flag করতে, যা correctness বা requirement-কে প্রভাবিত করে। Source 1সোর্স 1

Point Claude at your material

Use @ to reference a file instead of a description of where the code is. Claude reads the file before it responds. Source 1সোর্স 1

How @ references work: Source 5সোর্স 5

  • Claude Code includes the file content when it fits the Read tool token limit, 25,000 tokens by default.
  • A text file larger than 256KB is not included.
  • A directory reference shows a file listing, not the file contents.
  • You can reference more than one file in a prompt.
  • An @ file reference also adds the CLAUDE.md files from that file's directory and its parent directories.

To read a resource from a connected MCP server, use @server:resource, for example @github:repos/owner/repo/issues. Source 5সোর্স 5 The MCP Servers page explains MCP.

Other ways to give Claude input: Source 1সোর্স 1

  • Images. Paste a screenshot directly, or drag and drop it. Paste with Ctrl+V (Alt+V on Windows and WSL). Source 5সোর্স 5
  • URLs. Give links to documentation. To allow a domain, add a WebFetch(domain:example.com) allow rule (manage rules with /permissions).
  • Pipes. Send data on stdin, for example cat error.log | claude -p "explain this error".
  • Let Claude fetch it. Claude can get context with Bash commands, MCP tools, or file reads.

If another system has a CLI, that is usually the easiest way in. With gh installed and signed in, Claude can open pull requests and read review comments. For a CLI it has not seen before, pointing it at --help is enough. Source 1সোর্স 1

Example: give Claude the context for a root-cause analysis.

The POST /user/login test fails in CI since yesterday.
Stack trace: @reports/login-failure.log
Related code: @src/auth/login.ts
Run `git log --oneline -5 -- src/auth/` to see the last changes.
Find the root cause. Quote the lines that prove it. Do not fix it yet.

সহজ English

Use @ to point to a file. Then you do not have to describe where the code is. Claude reads the file before it answers. Source 1সোর্স 1

How @ references work: Source 5সোর্স 5

  • Claude Code includes the file content if it fits the Read tool token limit (25,000 tokens by default).
  • It does not include a text file that is larger than 256KB.
  • For a directory, Claude gets a list of the files, not their contents.
  • You can refer to more than one file in a prompt.
  • An @ file reference also adds the CLAUDE.md files from that file's directory and its parent directories.

To read a resource from a connected MCP server, use @server:resource. Source 5সোর্স 5

You can also give Claude images, links to documentation, and data through a pipe. Or you can let Claude get the context itself. Source 1সোর্স 1 If another system has a CLI, that is usually the easiest way in. With gh installed and signed in, Claude can open pull requests and read review comments. Source 1সোর্স 1

বাংলা ব্যাখ্যা

Code কোথায় আছে তা বর্ণনা না করে @ দিয়ে সরাসরি file-টি দেখিয়ে দিন। উত্তর দেওয়ার আগে Claude file-টি পড়ে নেয়। Source 1সোর্স 1

@ reference যেভাবে কাজ করে: Source 5সোর্স 5

  • File-এর content Read tool-এর token limit-এর মধ্যে থাকলে (default 25,000 token) Claude Code সেটি যোগ করে।
  • 256KB-এর বড় text file যোগ করা হয় না।
  • একটি directory-র reference দিলে file-এর তালিকা আসে, file-এর content নয়।
  • একটি prompt-এ একাধিক file-এর reference দিতে পারেন।
  • একটি @ file reference সেই file-এর directory এবং তার parent directory-গুলোর CLAUDE.md file-ও যোগ করে।

একটি connected MCP server থেকে resource পড়তে @server:resource ব্যবহার করুন। Source 5সোর্স 5

এছাড়া আপনি Claude-কে image, documentation-এর link এবং pipe দিয়ে data দিতে পারেন, অথবা Claude-কে নিজেই context সংগ্রহ করতে দিতে পারেন। Source 1সোর্স 1 অন্য কোনো system-এর CLI থাকলে সেটিই সাধারণত সবচেয়ে সহজ পথ। gh install ও sign in করা থাকলে Claude pull request খুলতে এবং review comment পড়তে পারে। Source 1সোর্স 1

Explore, then plan, then code

A common workflow is to explore, plan, implement, and commit. This is this tutorial's summary.

Plan mode. To explore in plan mode, press Shift+Tab until the status bar shows ⏸ plan mode on, or start the session with claude --permission-mode plan. Source 5সোর্স 5 You can also run /plan with an optional description from the prompt. Source 4সোর্স 4 In plan mode, Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source. Source 6সোর্স 6 Press Ctrl+G to open the plan in your text editor and change it before Claude continues. Source 6সোর্স 6

Example: explore, plan, and implement prompts for a test task (this tutorial's examples).

PhasePrompt
Exploreread src/checkout and the tests in tests/checkout. explain how discounts are applied.
PlanI want tests for stacked discount codes. Which files need to change? Create a plan.
Implementimplement the tests from your plan. run the test suite and fix any failures in the tests.

Planning has a cost. Skip it when the scope is clear and small, such as a typo, a log line, or a rename. Plan when you are unsure of the approach, when the change touches many files, or when you do not know the code. (Tutorial advice.)

Larger features. For a larger feature, let Claude interview you. Ask Claude to interview you: "Interview me until you could write the spec, then write it to SPEC.md." Claude asks multiple-choice questions (through the AskUserQuestion tool). Then start a fresh session to build from the spec. Source 1সোর্স 1

সহজ English

A common workflow is to explore, plan, implement, and commit. This is this tutorial's summary.

Use plan mode to explore. Press Shift+Tab until the status bar shows ⏸ plan mode on, or start the session with claude --permission-mode plan. Source 5সোর্স 5 In plan mode, Claude reads files, runs shell commands to explore, and writes a plan. It does not edit your source. Source 6সোর্স 6 Press Ctrl+G to open the plan in your text editor and change it. Source 6সোর্স 6

A plan has a cost. Do not make a plan for a small, clear change, such as a typo, a log line, or a rename. Make a plan when you are not sure of the approach, when the change touches many files, or when you do not know the code. (Tutorial advice.)

For a larger feature, tell Claude to interview you until it could write the spec, and then to write it to SPEC.md. Claude asks multiple-choice questions. Then start a fresh session to build from the spec. Source 1সোর্স 1

বাংলা ব্যাখ্যা

একটি প্রচলিত workflow হলো explore, plan, implement এবং commit। এটি এই tutorial-এর নিজের সারাংশ।

Explore করতে plan mode ব্যবহার করুন। Status bar-এ ⏸ plan mode on না দেখা পর্যন্ত Shift+Tab চাপুন, অথবা claude --permission-mode plan দিয়ে session শুরু করুন। Source 5সোর্স 5 Plan mode-এ Claude file পড়ে, explore করার জন্য shell command চালায় এবং একটি plan লেখে, কিন্তু আপনার source edit করে না। Source 6সোর্স 6 Plan-টি আপনার text editor-এ খুলে বদলাতে Ctrl+G চাপুন। Source 6সোর্স 6

Plan করার একটি খরচ আছে। ছোট ও স্পষ্ট পরিবর্তনে, যেমন একটি typo, একটি log line বা একটি rename-এ, plan বাদ দিন। Approach নিয়ে নিশ্চিত না হলে, পরিবর্তন অনেক file-এ লাগলে, অথবা code-টি অপরিচিত হলে plan করুন। (এটি tutorial-এর নিজের পরামর্শ।)

বড় feature-এর জন্য Claude-কে বলুন spec লেখার মতো তথ্য না পাওয়া পর্যন্ত আপনার interview নিতে, তারপর SPEC.md-এ spec লিখতে। Claude multiple-choice প্রশ্ন করে। তারপর spec থেকে বানাতে একটি নতুন session শুরু করুন। Source 1সোর্স 1

Examples for QA tasks

The prompts below are this tutorial's examples. Each one ends with a check or an explicit stop.

Requirement review

Example:

Read @docs/requirements/payments.md. List ambiguities, missing acceptance
criteria, and statements that cannot be tested. Interview me with the
AskUserQuestion tool about each open point. Do not write test cases yet.

The interview pattern comes from the docs' spec workflow. Source 1সোর্স 1 The next step, test design, is on the Test Design with Claude page.

Bug reproduction

Tell Claude the command that reproduces the issue and gets a stack trace. Give the steps to reproduce, and say if the error is intermittent or consistent. Source 5সোর্স 5

Example:

Users report that checkout fails after the session times out. It fails
every time. The code is in src/auth/. Write a failing Playwright test that
reproduces it. Run it and show me the failing output. Do not fix the bug yet.

Bug hunt in a change

Example:

Run `git show a1b2c3d` and read the files it changes. Trace the execution
flow and find broken assumptions. List up to 5 likely bugs. For each bug,
give the file and line as evidence, the steps to trigger it, and the
expected and actual result. No generic guesses.

Test generation

The docs give this recipe for tests: Source 5সোর্স 5

  1. Find untested code: "find functions in NotificationsService.swift that are not covered by tests"
  2. Generate scaffolding: "add tests for the notification service"
  3. Add edge cases: "add test cases for edge conditions in the notification service"
  4. Run and verify: "run the new tests and fix any failures"

Claude examines your existing test files to match their style, frameworks, and assertion patterns. Ask for specific behavior to verify. Ask Claude to find missed edge cases: error conditions, boundary values, and unexpected inputs. Source 5সোর্স 5

Example:

Read @src/payments/discount.ts and the existing tests in tests/payments/.
Add tests in the same style for the edge cases that we do not cover.
Run them and show the results. Do not change production code.

Root cause from a log

Pipe the log, or reference it with @. Source 1সোর্স 1 To stop Claude from guessing about code that it has not read, the platform guide gives this sample text: "Never speculate about code you have not opened", and "you MUST read the file before answering". Source 3সোর্স 3

Example:

cat logs/api-test-run.log | claude -p "Find the root cause of the first failure. Read the code before you answer. Quote the log line and the code line that prove it."

সহজ English

This section gives example prompts from this tutorial. Each one ends with a check or a clear stop.

  • Requirement review. Claude lists unclear points, missing acceptance criteria, and statements that you cannot test. It asks you about each open point and does not write test cases yet. The interview pattern comes from the docs. Source 1সোর্স 1
  • Bug reproduction. Give the command that reproduces the issue, and give the steps. Say if the error occurs every time or only sometimes. Source 5সোর্স 5 In the example, Claude writes a failing test and shows the output, but does not fix the bug yet.
  • Bug hunt in a change. Claude reads one commit and lists up to 5 likely bugs, each with evidence.
  • Test generation. Find untested code, add tests, add edge cases, then run the tests and fix failures. Claude matches the style of your existing tests. Source 5সোর্স 5
  • Root cause from a log. Pipe the log, or refer to it with @. Source 1সোর্স 1 Tell Claude to read the code before it answers, and not to guess about code that it has not opened. Source 3সোর্স 3

বাংলা ব্যাখ্যা

এই section-এ এই tutorial-এর কিছু উদাহরণ prompt আছে। প্রতিটি prompt একটি check অথবা একটি স্পষ্ট থামার নির্দেশ দিয়ে শেষ হয়।

  • Requirement review। Claude অস্পষ্ট বিষয়, অনুপস্থিত acceptance criteria এবং test করা যায় না এমন statement-গুলোর তালিকা করে। প্রতিটি open point নিয়ে সে আপনাকে প্রশ্ন করে, কিন্তু এখনই test case লেখে না। এই interview pattern docs-এর spec workflow থেকে এসেছে। Source 1সোর্স 1
  • Bug reproduction। Issue reproduce করার command এবং step-গুলো দিন। Error প্রতিবার হয়, নাকি মাঝে মাঝে হয়, তা বলুন। Source 5সোর্স 5 উদাহরণে Claude একটি failing test লেখে এবং output দেখায়, কিন্তু এখনই bug fix করে না।
  • একটি change-এ bug hunt। Claude একটি commit পড়ে এবং প্রমাণসহ সর্বোচ্চ 5টি সম্ভাব্য bug-এর তালিকা দেয়।
  • Test generation। Untested code খুঁজুন, test যোগ করুন, edge case যোগ করুন, তারপর test চালিয়ে failure ঠিক করুন। Claude আপনার আগের test file-এর style মেনে চলে। Source 5সোর্স 5
  • Log থেকে root cause। Log-টি pipe করুন, অথবা @ দিয়ে reference দিন। Source 1সোর্স 1 Claude-কে বলুন উত্তর দেওয়ার আগে code পড়তে, এবং যে code সে খোলেনি তা নিয়ে অনুমান না করতে। Source 3সোর্স 3

Keep the conversation healthy

  • Correct the course early. If you corrected the same thing twice and it is still wrong, run /clear and write one new prompt that includes what you learned, instead of a third correction. Source 1সোর্স 1
  • Scope investigations. Exploring a large codebase fills your context with file reads. Delegate it, for example "use a subagent to investigate how our auth system handles token refresh". Source 5সোর্স 5
  • Ask side questions with /btw. It does not add the answer to the conversation. Source 4সোর্স 4

The How Claude Code Works page explains the context window and compaction.

সহজ English

  • Correct Claude early. If you corrected the same thing twice and it is still wrong, run /clear and write one new prompt that includes what you learned, instead of a third correction. Source 1সোর্স 1
  • Limit the scope of an investigation. Exploring a large codebase fills the context with file reads. Give a scope, or use a subagent. Source 5সোর্স 5
  • Ask side questions with /btw. It does not add the answer to the conversation. Source 4সোর্স 4

বাংলা ব্যাখ্যা

  • শুরুতেই দিক ঠিক করুন। একই জিনিস দুইবার সংশোধন করেও ভুল থাকলে /clear চালান এবং যা শিখেছেন তা নিয়ে একটি নতুন prompt লিখুন, তৃতীয় সংশোধনের বদলে। Source 1সোর্স 1
  • Investigation-এর scope সীমিত করুন। বড় codebase explore করলে file পড়ায় context ভরে যায়। Scope দিন, অথবা subagent ব্যবহার করুন। Source 5সোর্স 5
  • side question /btw দিয়ে করুন। এটি উত্তরটি conversation-এ যোগ করে না। Source 4সোর্স 4
  1. [1]
    Best practices for Claude Code

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  2. [2]
    How Claude Code works

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  3. [3]
    Prompting best practices

    Anthropic (Claude Platform docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  4. [4]
    Commands

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  5. [5]
    Common workflows

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  6. [6]
    Choose a permission mode

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10