Requirement Analysis & Acceptance Criteria
Before you write a single test, read the requirement as a tester. This page shows how to bring a Jira story or a GitHub issue into Claude, find what is vague or missing, list the risks, and write acceptance criteria that a whole team can check. A question that you ask now costs one message. The same gap found after release costs a bug, a fix, and a retest.
16 min read16 মিনিটে পড়া যায় · 11 sections11টি সেকশন · 20 sources20টি সোর্স · updated Nov 2026আপডেট: Nov 2026
Is the story ready for test?story কি test-এর জন্য তৈরি?
Tick a nine-point checklist and see questions go back before any test is designed.নয় পয়েন্টের checklist মেলান আর দেখুন test design-এর আগে প্রশ্নগুলো ফেরত যায়।
You’ll learnআপনি শিখবেন
- What the nine checklist points checkনয়টা checklist পয়েন্ট কী যাচাই করে✓
- Why a vague word is a gapঅস্পষ্ট শব্দ কেন একটা ফাঁক
- Why negative cases are checkednegative case কেন যাচাই হয়
- Why questions go back, numberedপ্রশ্ন কেন নম্বর দিয়ে ফেরত যায়
- When the gate opensগেট কখন খোলে
Why requirements come first
A requirement is the first thing that you test, and you test it without running any code.
The ISTQB terms.
- Test basis: the body of knowledge used as the basis for test analysis and test design. Source 2সোর্স 2 On this page, the test basis is the story and its issue.
- Requirement: a provision that contains criteria to be fulfilled. Source 3সোর্স 3
- Testability: the degree to which test conditions can be set up, and tests can show whether those conditions are met. Source 4সোর্স 4
- Test condition: a testable aspect of a component or system that is intended to be tested. Source 5সোর্স 5
What the syllabus says. Test analysis examines the test basis to find testable features. Source 1সোর্স 1 It also checks the test basis for defects and assesses its testability. Source 1সোর্স 1 Its outputs include test conditions, such as acceptance criteria, and defect reports about the test basis. Source 1সোর্স 1
Reviews are static testing. In static testing, the software under test does not need to be executed. Source 1সোর্স 1 Requirement documents and product backlog items can be reviewed. Source 1সোর্স 1 Static testing can find defects in the earliest phases of the lifecycle. Source 1সোর্স 1 Typical requirement defects are inconsistencies, ambiguities, contradictions, omissions, inaccuracies, and duplications. Source 1সোর্স 1
The tester's role. Reviews help make sure that user stories are complete, understandable, and have testable acceptance criteria. Source 1সোর্স 1 Testers ask the right questions to explore, challenge, and improve the stories. Source 1সোর্স 1 Teams use criteria such as a Definition of Ready for this. Source 1সোর্স 1
The tutorial's advice
Claude makes the review fast, but it does not replace the conversation with the product owner. Use Claude to prepare good questions. Let people answer them. The Fundamentals basics chapter covers static testing in more depth.
সহজ English
You can test a requirement without running any code. You read it and look for problems.
Some words to know:
- The test basis is the knowledge you use as the base for analyzing and designing tests. Source 2সোর্স 2 On this page, it is the story and its issue.
- A requirement is a statement that contains criteria to be fulfilled. Source 3সোর্স 3
- Testability means: can you set up test conditions, and can a test show if they are met? Source 4সোর্স 4
- A test condition is one thing in the system that you intend to test. Source 5সোর্স 5
Test analysis looks at the test basis and finds what to test. It also looks for defects in the test basis. Source 1সোর্স 1 This kind of review is static testing: the software does not need to run. Source 1সোর্স 1 It can find defects in the earliest phases. Typical defects in requirements are gaps, vague words, and parts that disagree. Source 1সোর্স 1
Testers ask questions to make a story clear and testable. Source 1সোর্স 1
The tutorial's advice: Claude helps you prepare the questions. People still answer them.
বাংলা ব্যাখ্যা
কোনো code চলার আগেই আপনি requirement test করতে পারেন। এটি পড়ে সমস্যা খোঁজাই সেই test।
ISTQB-এর কয়েকটি শব্দ:
- Test basis হলো সেই জ্ঞানের ভান্ডার, যার ওপর test analysis আর test design দাঁড়ায়। Source 2সোর্স 2 এই পেজে test basis হলো story আর তার issue।
- Requirement হলো এমন একটি শর্ত, যাতে পূরণ করার মতো criteria থাকে। Source 3সোর্স 3
- Testability মানে কতটা সহজে test condition ঠিক করা যায়, আর test দিয়ে দেখা যায় সেগুলো পূরণ হলো কি না। Source 4সোর্স 4
- Test condition হলো component বা system-এর এমন একটি testable দিক, যা test করার কথা। Source 5সোর্স 5
Syllabus বলে, test analysis test basis বিশ্লেষণ করে testable feature খোঁজে, আর test basis-এর defect ও testability-ও যাচাই করে। Source 1সোর্স 1 এর ফলাফলের মধ্যে আছে acceptance criteria-র মতো test condition, আর test basis-এর defect report। Source 1সোর্স 1
Review হলো static testing: এখানে software চালানোর দরকার হয় না। Source 1সোর্স 1 Requirement document আর product backlog item review করা যায়, আর এতে lifecycle-এর একদম শুরুর ধাপেই defect ধরা পড়তে পারে। Source 1সোর্স 1 Requirement-এর সাধারণ defect হলো অসংগতি, অস্পষ্টতা, পরস্পরবিরোধিতা, বাদ পড়া অংশ, ভুল তথ্য আর পুনরাবৃত্তি। Source 1সোর্স 1 সঠিক প্রশ্ন করে tester story-কে পরিষ্কার ও উন্নত করেন। Source 1সোর্স 1
Tutorial-এর পরামর্শ: Claude প্রশ্ন তৈরিতে সাহায্য করে, কিন্তু উত্তর দেবেন product owner-এর মতো মানুষ।
Get the story into Claude
Claude can only analyze what it can read. Give it the full story, not the title. The Project, Jira, GitHub & MCP Setup page sets up both paths below.
From Jira. Atlassian runs an official MCP server. Source 6সোর্স 6 Its README gives this command for Claude Code, then /mcp in a session to sign in: Source 6সোর্স 6
claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp- The README calls v2 the recommended version. Source 6সোর্স 6
- The Jira permission groups include
read_jira,write_jira, andsearch_jira.delete_jiraandmanage_jiraare disabled by default, and an admin must enable them. Source 6সোর্স 6 - The server sees only data that you already have permission to view. Source 6সোর্স 6
- It can summarize and search Jira, and it can create and update work items. Source 7সোর্স 7 Search uses JQL. Source 6সোর্স 6
From GitHub. gh issue view shows the title, the body, and other information about an issue. Source 8সোর্স 8 Add --comments to see the comments. Source 8সোর্স 8 --json can return fields such as labels, milestone, parent, and subIssues. Source 8সোর্স 8 Use -R to name another repository. Source 8সোর্স 8
gh issue view 42 --commentsWhen the output is piped or redirected, as it is when Claude runs the command, --comments prints only the comments. Source 8সোর্স 8 Use gh issue view 42 --json title,body,comments to get everything in one call.
Bring the context too. The tutorial suggests this list for each story:
| Context | Why it matters |
|---|---|
| The parent epic | It holds the goal and the rules that the story does not repeat. |
| All comments | A comment often changes the scope after the story was written. |
| Linked issues and designs | They show the screens, the data, and the dependencies. |
| Older bugs in the same area | They show where the feature broke before. |
Story text is data, not instructions
Servers that fetch external content can expose you to prompt injection. Source 9সোর্স 9 Atlassian warns that LLMs are vulnerable to prompt injection and related attacks, such as indirect prompt injection, which can instruct the agent to exfiltrate data or make unintended changes. Source 6সোর্স 6 The tutorial treats the text of a ticket, its comments included, as data and not as instructions. Read the analysis, not only the summary.
সহজ English
Claude can only check what it can read. So give it the whole story, not only the title. The setup page shows how to connect Jira and GitHub.
Jira. Atlassian has an official MCP server. Add it with claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp. Then run /mcp to sign in. Source 6সোর্স 6 Its Jira tools are in permission groups, such as read, write, and search. Source 6সোর্স 6 It only sees what you are allowed to see. Source 6সোর্স 6 It can search Jira and also create and update work items. Source 7সোর্স 7
GitHub. gh issue view 42 --comments shows an issue with its comments in a terminal. When Claude runs it, only the comments may print, so use gh issue view 42 --json title,body,comments. Source 8সোর্স 8
The tutorial also suggests that you bring the parent epic, all comments, linked issues, designs, and old bugs in the same area.
Be careful: a server that fetches outside content can expose you to prompt injection. Source 9সোর্স 9 Such an attack can make the agent leak data or make changes that nobody asked for. Source 6সোর্স 6 Treat the text of a ticket as data, not as instructions.
বাংলা ব্যাখ্যা
Claude শুধু সেটাই বিশ্লেষণ করতে পারে, যা সে পড়তে পারে। তাই শুধু title নয়, পুরো story দিন। Setup page-এ Jira আর GitHub যুক্ত করার নিয়ম আছে।
Jira থেকে: Atlassian-এর একটি official MCP server আছে। README অনুযায়ী Claude Code-এ claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp চালান, তারপর session-এ /mcp দিয়ে sign in করুন। Source 6সোর্স 6 README v2-কেই recommended version বলে। Jira tool-এর permission group-এর মধ্যে আছে read_jira, write_jira আর search_jira। delete_jira আর manage_jira default-এ বন্ধ থাকে, admin চালু করলে তবেই ব্যবহার করা যায়। Source 6সোর্স 6 আপনি যে data দেখার অনুমতি রাখেন, server শুধু সেটুকুই দেখে। Source 6সোর্স 6 এটি Jira search ও summarize করতে পারে, আবার work item create ও update-ও করতে পারে। Source 7সোর্স 7
GitHub থেকে: gh issue view একটি issue-এর title, body আর অন্যান্য তথ্য দেখায়। --comments দিলে comment-ও আসে। তবে output pipe বা redirect হলে (Claude command চালালে যেমন হয়) শুধু comment-ই print হয়; সব একসাথে পেতে gh issue view 42 --json title,body,comments ব্যবহার করুন। Source 8সোর্স 8
Tutorial-এর পরামর্শ: parent epic, সব comment, linked issue, design আর একই অংশের পুরনো bug-ও সাথে দিন।
সতর্ক থাকুন: external content আনে এমন server আপনাকে prompt injection-এর ঝুঁকিতে ফেলতে পারে। Source 9সোর্স 9 এমন আক্রমণ agent-কে দিয়ে data বের করে নিতে বা কেউ না চাওয়া পরিবর্তন করাতে পারে। Source 6সোর্স 6 Tutorial ticket-এর text-কে data হিসেবে দেখে, instruction হিসেবে নয়।
What to look for
The syllabus names the defects to hunt for. Source 1সোর্স 1 The checklist below groups them for a story. It is the tutorial's own checklist, and the examples use a send-money story.
| Look for | Question to ask | Example finding |
|---|---|---|
| Ambiguity | Which words can mean two things? | "Fast transfer": how fast, measured where? |
| Undefined terms | Which nouns have no definition? | "Verified user": verified by what? |
| Missing business rules | Where are the limits, roles, states, and errors? | No rule for a receiver whose account is blocked. |
| Assumptions | What does the story take for granted? | It assumes that the sender has enough balance. |
| Dependencies | Which services, data, flags, or third parties are needed? | An SMS provider sends the receipt. Who stubs it in test? |
| Contradictions | Do two parts disagree? | The story says 10 transfers a day; a comment says 20. |
| Risks | What harms users most if it is wrong? | A double debit on a timeout. |
Product risk. A product risk is a risk that impacts the quality of a product. Source 10সোর্স 10 Examples are missing or wrong functionality, incorrect calculations, and security vulnerabilities. Source 1সোর্স 1 Risk likelihood and risk impact together give the risk level. Source 1সোর্স 1 Product risk analysis ideally begins early in the lifecycle. Source 1সোর্স 1
Risk-based testing. In this approach, the selection and the priority of test activities follow the risk types and risk levels. Source 11সোর্স 11 So a story review should end with a short list of risks, ranked. The Test Design & Blast Radius page turns those risks into tests.
The tutorial's advice
Ask Claude for each row, not for "any problems". A broad request gets a broad answer. A row-by-row request gets findings that you can check.
সহজ English
The tutorial gives a checklist for reading a story. Look for:
- Vague words, such as "fast". How fast?
- Words with no definition, such as "verified user".
- Missing rules: limits, roles, states, and error cases.
- Assumptions: things the story takes for granted.
- Dependencies: other services, data, flags, or outside companies.
- Parts that disagree, for example a story and a comment.
- Risks: what hurts users most if it is wrong.
A product risk is a risk to the quality of the product. Source 10সোর্স 10 Wrong functions, wrong sums, and security holes are examples. Source 1সোর্স 1 How likely a risk is and how much harm it does give its level. Source 1সোর্স 1 In risk-based testing, the risk level decides what you test first. Source 11সোর্স 11
Tip from the tutorial: ask Claude about one row at a time.
বাংলা ব্যাখ্যা
Syllabus বলে দেয় কোন defect খুঁজতে হবে। Source 1সোর্স 1 নিচের checklist tutorial-এর নিজের, আর উদাহরণগুলো একটি send-money story থেকে:
- অস্পষ্টতা: কোন শব্দের দুই রকম মানে হতে পারে? যেমন "fast transfer"।
- সংজ্ঞাহীন শব্দ: যেমন "verified user", কী দিয়ে verified?
- বাদ পড়া business rule: limit, role, state আর error case কোথায়? যেমন blocked receiver-এর জন্য কোনো rule নেই।
- Assumption: story কী ধরে নিচ্ছে? যেমন sender-এর যথেষ্ট balance আছে।
- Dependency: কোন service, data, flag বা third party লাগবে? যেমন receipt পাঠানোর SMS provider।
- পরস্পরবিরোধিতা: story বলছে দিনে 10টি transfer, comment বলছে 20টি।
- ঝুঁকি: timeout-এ দুবার debit হলে কী হবে?
Product risk হলো এমন ঝুঁকি, যা product-এর quality-কে প্রভাবিত করে। Source 10সোর্স 10 ভুল functionality, ভুল হিসাব আর security vulnerability এর উদাহরণ। Source 1সোর্স 1 Risk likelihood আর risk impact মিলে risk level ঠিক হয়, আর product risk analysis শুরুতেই হওয়া ভালো। Source 1সোর্স 1 Risk-based testing-এ test activity বাছাই আর অগ্রাধিকার risk level অনুযায়ী হয়। Source 11সোর্স 11
Tutorial-এর পরামর্শ: "কোনো সমস্যা আছে?" না বলে Claude-কে প্রতিটি সারি ধরে প্রশ্ন করুন।
A repeatable analysis
The docs suggest a skill when you keep pasting the same instructions, checklist, or multi-step procedure into chat. A skill is a SKILL.md file with instructions, and you run it with /skill-name. Source 12সোর্স 12 The tutorial uses a skill so that every analysis asks for the same sections.
- A project skill lives in
.claude/skills/<skill-name>/SKILL.md. Commit it so the team gets it too. Source 12সোর্স 12 disable-model-invocation: truestops Claude from loading the skill on its own, so it runs only when you type its name. Source 12সোর্স 12argument-hintshows the expected argument during autocomplete, and$ARGUMENTSholds what you pass. Source 12সোর্স 12allowed-toolslets Claude use the listed tools without asking during that turn. Source 12সোর্স 12 Do not list a tool that writes to Jira or GitHub there.
Run it read-only. Plan mode tells Claude to research and propose changes without making them. Source 13সোর্স 13 Claude reads files and can run shell commands to explore, but it does not edit your source. Source 13সোর্স 13 Enter it with Shift+Tab, with /plan before one prompt, or with claude --permission-mode plan. Source 13সোর্স 13
Here is an example skill. It is the tutorial's own template, saved as .claude/skills/analyze-story/SKILL.md:
---
name: analyze-story
description: Analyze one Jira story or GitHub issue for test readiness.
argument-hint: [issue-key-or-number]
disable-model-invocation: true
---
Read $ARGUMENTS with its comments, parent, and linked issues.
Do not change any ticket.
Write exactly these sections:
1. Summary: user, goal, and business value, in 3 lines.
2. Questions for the product owner (numbered).
3. Assumptions: each one marked ASSUMPTION.
4. Risks: likelihood and impact (high, medium, low).
5. Test conditions: one line each, positive and negative.
For every finding, quote the story text behind it.
If no text supports a finding, mark it as a guess.The test conditions feed the Test Design & Blast Radius page. The Skills page explains skills in depth.
সহজ English
Make a skill when you keep pasting the same instructions into chat. A skill is a SKILL.md file with instructions. You run it with /skill-name. Source 12সোর্স 12 The tutorial uses one so that every analysis asks for the same sections.
- Put a project skill in
.claude/skills/<skill-name>/SKILL.mdand commit it. Then your team gets it too. Source 12সোর্স 12 disable-model-invocation: truemeans the skill runs only when you call it. Source 12সোর্স 12$ARGUMENTSholds the text that you pass. Source 12সোর্স 12
Run the analysis in plan mode. In plan mode, Claude researches and suggests, but it does not edit your source. Source 13সোর্স 13 Press Shift+Tab, or start with claude --permission-mode plan. Source 13সোর্স 13
The tutorial's example skill asks for five parts: a summary, questions, assumptions, risks, and test conditions. It also asks Claude to quote the story text behind each finding. A finding with no quote is marked as a guess.
বাংলা ব্যাখ্যা
একই instruction, checklist বা কয়েক ধাপের procedure বারবার chat-এ paste করতে হলে docs skill বানাতে বলে। Skill হলো instruction-সহ একটি SKILL.md file, যা আপনি /skill-name দিয়ে চালান। Source 12সোর্স 12 Tutorial skill ব্যবহার করে, যাতে প্রতিটি analysis একই অংশগুলো চায়।
- Project skill থাকে
.claude/skills/<skill-name>/SKILL.md-এ। এটি commit করুন, যাতে team-ও পায়। Source 12সোর্স 12 disable-model-invocation: trueদিলে Claude নিজে থেকে skill load করে না, শুধু আপনি নাম লিখলে চলে। Source 12সোর্স 12argument-hintautocomplete-এর সময় argument-এর ইঙ্গিত দেখায়, আর$ARGUMENTS-এ থাকে আপনার দেওয়া মান। Source 12সোর্স 12allowed-tools-এ থাকা tool সেই turn-এ অনুমতি ছাড়াই চলে। Source 12সোর্স 12 তাই Jira বা GitHub-এ লেখে এমন tool সেখানে রাখবেন না।
Analysis চালান plan mode-এ। Plan mode-এ Claude গবেষণা করে পরিবর্তনের প্রস্তাব দেয়, কিন্তু আপনার source edit করে না। Source 13সোর্স 13 Shift+Tab চাপুন, একটি prompt-এর আগে /plan লিখুন, অথবা claude --permission-mode plan দিয়ে শুরু করুন। Source 13সোর্স 13
Tutorial-এর উদাহরণ skill পাঁচটি অংশ চায়: summary, product owner-এর জন্য প্রশ্ন, assumption, risk আর test condition। প্রতিটি finding-এর পেছনের story text quote করতে হয়, আর quote না থাকলে সেটি guess হিসেবে চিহ্নিত হয়।
Acceptance criteria
Definitions. Acceptance criteria are the criteria that a work product must satisfy to be accepted by the stakeholders. Source 14সোর্স 14 A user story is a short narrative of a need from a user's perspective, with the expected benefit. Source 15সোর্স 15
The 3 Cs. The syllabus gives three aspects of a user story: Source 1সোর্স 1
- Card: the medium that describes the story, such as an entry on an electronic board.
- Conversation: how the software will be used.
- Confirmation: the acceptance criteria.
The common story format is "As a [role], I want [goal], so that I can [business value]", followed by the acceptance criteria. Source 1সোর্স 1
INVEST. Good stories are Independent, Negotiable, Valuable, Estimable, Small, and Testable. Source 1সোর্স 1 If a stakeholder does not know how to test a story, the story may not be clear enough. Source 1সোর্স 1
What criteria do. Acceptance criteria may be viewed as the test conditions that the tests exercise. Source 1সোর্স 1 They describe both positive and negative scenarios. Source 1সোর্স 1
| Format | What it looks like Source 1সোর্স 1 |
|---|---|
| Scenario-oriented | Given/When/Then, as used in BDD |
| Rule-oriented | A bullet-point verification list, or a table of inputs and outputs |
A custom format is fine if the criteria are well-defined and unambiguous. Source 1সোর্স 1
ATDD. Acceptance test-driven development is a collaboration-based, test-first approach. It defines acceptance tests in the stakeholders' domain language. Source 16সোর্স 16
- It starts with a specification workshop. The team resolves incompleteness and ambiguities in the story there. Source 1সোর্স 1
- The first test cases are positive. Negative tests come next, then non-functional ones. Source 1সোর্স 1
- The test cases cover the story and do not go beyond it. Source 1সোর্স 1
The Lifecycles chapter compares ATDD and BDD.
সহজ English
Acceptance criteria are the conditions that work must meet before the stakeholders accept it. Source 14সোর্স 14 A user story is a short text about what a user needs and why. Source 15সোর্স 15
A story has three parts, the "3 Cs": Source 1সোর্স 1
- Card: where the story is written, such as a board.
- Conversation: the talk about how the software will be used.
- Confirmation: the acceptance criteria.
A good story is Independent, Negotiable, Valuable, Estimable, Small, and Testable. People call this INVEST. Source 1সোর্স 1 If a stakeholder does not know how to test a story, it may not be clear enough. Source 1সোর্স 1
You can write criteria in two common ways. One way is scenarios, with Given, When, and Then. The other way is rules: a list or a table. Source 1সোর্স 1 Criteria describe both good paths and error paths. Source 1সোর্স 1
ATDD means the team writes the acceptance tests first, together, in the business language. Source 16সোর্স 16 It starts with a workshop that clears up gaps in the story. Source 1সোর্স 1
বাংলা ব্যাখ্যা
Acceptance criteria হলো সেই criteria, যা পূরণ করলে stakeholder-রা কাজটি গ্রহণ করেন। Source 14সোর্স 14 User story হলো user-এর দৃষ্টিকোণ থেকে একটি প্রয়োজন আর তার প্রত্যাশিত সুবিধার ছোট বর্ণনা। Source 15সোর্স 15
Syllabus অনুযায়ী user story-র তিনটি দিক, "3 Cs": Source 1সোর্স 1
- Card: যেখানে story লেখা থাকে, যেমন electronic board-এর একটি entry।
- Conversation: software কীভাবে ব্যবহার হবে, তার আলোচনা।
- Confirmation: acceptance criteria।
সাধারণ format হলো "As a [role], I want [goal], so that I can [business value]", তারপর acceptance criteria। Source 1সোর্স 1 ভালো story হয় INVEST: Independent, Negotiable, Valuable, Estimable, Small আর Testable। কোনো stakeholder story test করার উপায় না জানলে story হয়তো যথেষ্ট পরিষ্কার নয়। Source 1সোর্স 1
Acceptance criteria-কে test condition হিসেবে দেখা যায়, আর এতে positive ও negative দুই ধরনের scenario থাকে। Source 1সোর্স 1 লেখার দুটি সাধারণ format: scenario-oriented (Given/When/Then) আর rule-oriented (bullet list বা input-output table)। Criteria স্পষ্ট আর দ্ব্যর্থহীন হলে custom format-ও চলে। Source 1সোর্স 1
ATDD হলো একটি collaboration-ভিত্তিক test-first approach, যা stakeholder-দের ভাষায় acceptance test লেখে। Source 16সোর্স 16 এটি শুরু হয় একটি specification workshop দিয়ে, যেখানে story-র অসম্পূর্ণতা আর অস্পষ্টতা দূর হয়। প্রথমে positive test, তারপর negative, তারপর non-functional test। Source 1সোর্স 1
A worked example: send money
The Gherkin keywords. Each step starts with Given, When, Then, And, or But. Source 17সোর্স 17
Givendescribes the initial context,Whenan event or an action, andThenan expected outcome. Source 17সোর্স 17Rulerepresents one business rule and groups its scenarios. Source 17সোর্স 17Scenariois a synonym ofExample. Source 17সোর্স 17Scenario Outlineruns the same scenario with different values from anExamplestable. Source 17সোর্স 17- Cucumber recommends 3 to 5 steps per example. Source 17সোর্স 17 An outcome should be on an observable output, and examples should not assume a technology or a user interface. Source 17সোর্স 17
Where these facts come from
The rules below come from the business requirements document (BRD) in dmoney-web-react/README.md of the dMoney practice repository. They have no cites, because a cite links to an official source.
The dMoney requirements say that send money needs two different, active Customer accounts. The minimum amount is 10 BDT, the fee is a flat 5 BDT, and the sender needs a balance of at least the amount plus 5. Daily and monthly limits are checked first: 5,000 Tk and 10 transactions a day.
The story and the criteria below are the tutorial's own example, written from those rules.
Feature: Send money
As a customer, I want to send money to another customer,
so that I can pay people without cash.
Rule: The amount is at least 10 BDT
Scenario Outline: Amount at the minimum boundary
Given my balance is 100 BDT
When I send <amount> BDT to another active customer
Then I see "<result>"
Examples:
| amount | result |
| 9 | Minimum amount is 10 tk |
| 10 | Send money successful |
Rule: The sender cannot send to the same account
Scenario: Sender enters own phone number
Given my balance is 100 BDT
When I send 50 BDT to my own phone number
Then the transfer is rejected
And my balance is still 100 BDTThe same rules, rule-oriented:
| Rule | Input | Expected |
|---|---|---|
| Fee | Send 100 BDT | Sender is debited 105 BDT |
| Balance | Balance 104 BDT, send 100 BDT | Rejected, no debit |
| Daily count | 11th transfer today | Rejected by the daily limit |
সহজ English
In Gherkin, each step starts with Given, When, Then, And, or But. Source 17সোর্স 17 Given is the starting situation. When is the action. Then is the result that you expect. Source 17সোর্স 17 A Rule groups the scenarios of one business rule. Source 17সোর্স 17 A Scenario Outline runs one scenario with many values from a table. Source 17সোর্স 17 Cucumber suggests 3 to 5 steps per example. The result should be an observable output. Source 17সোর্স 17
The rules for the example come from the dMoney practice repo. Send money needs two different, active Customer accounts. The minimum is 10 BDT. The fee is 5 BDT. The sender needs the amount plus 5 in the account. Daily and monthly limits are checked first.
The tutorial's example story has two rules. The first checks the minimum: 9 BDT fails and 10 BDT works. The second checks that you cannot send money to yourself. The same rules also fit in a table of inputs and expected results.
বাংলা ব্যাখ্যা
Gherkin-এ প্রতিটি step শুরু হয় Given, When, Then, And বা But দিয়ে। Source 17সোর্স 17 Given শুরুর অবস্থা, When একটি event বা action, আর Then প্রত্যাশিত ফলাফল বর্ণনা করে। Source 17সোর্স 17 Rule একটি business rule-এর scenario-গুলো একসাথে রাখে, আর Scenario Outline একটি Examples table থেকে ভিন্ন ভিন্ন মান নিয়ে একই scenario বারবার চালায়। Source 17সোর্স 17 Cucumber প্রতিটি example-এ 3 থেকে 5টি step রাখতে বলে, আর ফলাফল হওয়া উচিত বাইরে থেকে দেখা যায় এমন কিছু। Source 17সোর্স 17
উদাহরণের rule-গুলো dMoney practice repo-র dmoney-web-react/README.md-এর BRD থেকে নেওয়া। Send money-র জন্য দুটি আলাদা, active Customer account লাগে। সর্বনিম্ন amount 10 BDT, fee নির্দিষ্ট (flat) 5 BDT, আর sender-এর balance কমপক্ষে amount যোগ 5 হতে হবে। Daily আর monthly limit আগে যাচাই হয়: দিনে 5,000 Tk আর 10টি transaction।
Tutorial-এর উদাহরণে দুটি rule আছে। প্রথমটি minimum boundary যাচাই করে: 9 BDT fail করে, 10 BDT সফল হয়। দ্বিতীয়টি দেখে যে নিজের account-এ টাকা পাঠানো যায় না, আর balance বদলায় না। একই rule একটি input-output table-এও লেখা যায়।
Is the story ready for test?
Teams check stories against criteria such as a Definition of Ready. Source 1সোর্স 1 The checklist below is the tutorial's own. Run it after the analysis, before any test design.
The tutorial's checklist
- The story names the user, the goal, and the business value.
- Every vague word has a number or a definition.
- Each business rule has at least one acceptance criterion.
- The criteria cover both positive and negative scenarios.
- The limits, roles, states, and error messages are written down.
- Each dependency has an owner and a test double or a test environment.
- Every assumption is confirmed by the product owner, or listed as open.
- The top risks are ranked.
- Each criterion can pass or fail on something that a user or a system can observe.
When the story is not testable. INVEST lists Testable as a property of a good story. Source 1সোর্স 1 If a story fails the checklist, do not fill the gaps with guesses. The tutorial suggests this order:
- Send the open questions back to the product owner, numbered, with the quote that each one is about.
- Mark the story as blocked for test design, or agree on which part can start.
- Keep the assumptions in the ticket, so that a later reader sees what was guessed.
- Run the analysis again when the answers arrive.
The tutorial's advice: do not let Claude fill the gap
An answer can read well even when the story is silent. A plausible limit that nobody approved is still a guess. The skill above asks Claude to mark such findings, so you can see them.
সহজ English
Teams often check a story against a list, such as a Definition of Ready. Source 1সোর্স 1 The tutorial gives its own list:
- The story names the user, the goal, and the value.
- Each vague word has a number or a definition.
- Each business rule has at least one criterion.
- The criteria cover good paths and error paths.
- Limits, roles, states, and error messages are written down.
- Each dependency has an owner and a way to test it.
- The product owner confirmed each assumption, or it is listed as open.
- The top risks are ranked.
- Each criterion can pass or fail on something you can see.
A good story is testable. Source 1সোর্স 1 If it is not, do not guess. Send the questions back to the product owner. Mark the story as blocked, or agree on what can start. Keep the assumptions in the ticket. Run the analysis again when the answers come.
The tutorial's advice: an answer can read well even when the story says nothing. A guess is still a guess.
বাংলা ব্যাখ্যা
Team-গুলো Definition of Ready-এর মতো criteria দিয়ে story যাচাই করে। Source 1সোর্স 1 নিচের checklist tutorial-এর নিজের। Analysis-এর পরে, test design-এর আগে এটি চালান:
- Story-তে user, goal আর business value আছে।
- প্রতিটি অস্পষ্ট শব্দের একটি সংখ্যা বা সংজ্ঞা আছে।
- প্রতিটি business rule-এর অন্তত একটি acceptance criterion আছে।
- Criteria-তে positive ও negative দুই ধরনের scenario আছে।
- Limit, role, state আর error message লেখা আছে।
- প্রতিটি dependency-র একজন owner আর test করার উপায় আছে।
- প্রতিটি assumption product owner নিশ্চিত করেছেন, নয়তো open হিসেবে লেখা আছে।
- প্রধান risk-গুলো ক্রম অনুযায়ী সাজানো।
- প্রতিটি criterion দেখা যায় এমন কিছুর ওপর pass বা fail করে।
INVEST অনুযায়ী ভালো story testable হয়। Source 1সোর্স 1 Story checklist-এ fail করলে অনুমান দিয়ে ফাঁক পূরণ করবেন না। প্রশ্নগুলো quote-সহ product owner-এর কাছে ফেরত পাঠান, story-কে test design-এর জন্য blocked রাখুন বা কোন অংশ শুরু করা যায় তা ঠিক করুন, assumption-গুলো ticket-এ রাখুন, আর উত্তর এলে analysis আবার চালান।
Tutorial-এর পরামর্শ: story চুপ থাকলেও উত্তর পড়তে ভালো লাগতে পারে। কেউ অনুমোদন না দেওয়া একটি limit তবুও একটি অনুমান।
Write back only after approval
The questions and the criteria belong in the ticket, where the team can see them. But a write to Jira or GitHub is visible to everyone, so a person approves it first.
Make Claude ask. Ask rules prompt for confirmation when Claude tries to use a tool. Source 18সোর্স 18 Rules are evaluated in order: deny, then ask, then allow. Source 18সোর্স 18 A matching ask rule prompts even when a more specific allow rule also matches. Source 18সোর্স 18 To match every tool of an MCP server, write mcp__<server>__*. Source 18সোর্স 18
The permissions object of a settings file takes allow, ask, and deny arrays. Source 20সোর্স 20 Example .claude/settings.json, the tutorial's own, for a server named atlassian:
{
"permissions": {
"ask": [
"mcp__atlassian__*",
"Bash(gh issue comment *)"
]
}
}This asks before every Atlassian tool call, reads included. That is slower, but safe.
Least privilege. MCP clients can act on all connected Atlassian products with your permissions, and Atlassian advises least privilege. Source 7সোর্স 7 Organization admins grant or revoke access at the permission-group level. Source 6সোর্স 6 The tutorial suggests that a read-only analysis gets only the read and search groups.
Before you post
The next command posts a comment that the whole team sees. Read the file first, and post to a test issue the first time.
gh issue comment adds a comment to a GitHub issue, and --body-file reads the text from a file. Source 19সোর্স 19
gh issue comment 42 --body-file analysis/42-questions.mdThe tutorial suggests one comment that holds the numbered questions, the open assumptions, and the draft criteria. Keep the draft label until the product owner agrees. The Case Study PR review shows criteria from issues used to review a fix.
সহজ English
Questions and criteria belong in the ticket, where the team sees them. Everyone can see a post, so a person approves it first.
An ask rule makes Claude stop and ask before it uses a tool. Source 18সোর্স 18 Claude Code checks deny rules first, then ask rules, then allow rules. Source 18সোর্স 18 So an ask rule wins over an allow rule. Source 18সোর্স 18 mcp__<server>__* covers every tool of one MCP server. Source 18সোর্স 18 The tutorial's example settings file asks before each Atlassian tool and before gh issue comment.
MCP clients can act with your permissions, and Atlassian advises giving only the access that is needed. Source 7সোর্স 7 Admins give access per permission group. Source 6সোর্স 6 For reading only, the tutorial suggests leaving out the write_jira group.
Before you post, read the text. gh issue comment 42 --body-file analysis/42-questions.md posts the text of a file as a comment. Source 19সোর্স 19 Try it on a test issue first.
বাংলা ব্যাখ্যা
প্রশ্ন আর criteria ticket-এই থাকা উচিত, যেখানে team দেখতে পায়। কিন্তু Jira বা GitHub-এ লেখা সবাই দেখে, তাই আগে একজন মানুষ অনুমোদন দেবেন।
Ask rule থাকলে কোনো tool ব্যবহারের আগে Claude নিশ্চিতকরণ চায়। Source 18সোর্স 18 Rule যাচাই হয় এই ক্রমে: deny, তারপর ask, তারপর allow। তাই আরও নির্দিষ্ট allow rule মিললেও ask rule prompt দেখায়। Source 18সোর্স 18 একটি MCP server-এর সব tool ধরতে mcp__<server>__* লিখুন। Source 18সোর্স 18 Tutorial-এর উদাহরণ .claude/settings.json প্রতিটি Atlassian tool আর gh issue comment-এর আগে অনুমতি চায়।
MCP client আপনার permission নিয়ে সব connected Atlassian product-এ কাজ করতে পারে, আর Atlassian least privilege-এর পরামর্শ দেয়। Source 7সোর্স 7 Admin permission group ধরে access দেন বা সরান। Source 6সোর্স 6 Tutorial-এর পরামর্শ: শুধু পড়ার কাজে write_jira group দেবেন না।
পোস্ট করার আগে text পড়ে নিন। gh issue comment একটি GitHub issue-এ comment যোগ করে, আর --body-file একটি file থেকে text পড়ে। Source 19সোর্স 19 প্রথমবার একটি test issue-তে চেষ্টা করুন।
Practice
The tutorial's exercise
This exercise is the tutorial's own. Use a story from your tracker, or write one for dMoney send money. The Codebase Tour describes the practice app.
-
Pick a story. Choose one story with real rules, or write a short send-money story yourself.
-
Save the skill. Copy the example skill from "A repeatable analysis" into
.claude/skills/analyze-story/SKILL.md. Source 12সোর্স 12 -
Start read-only. Start Claude Code with
claude --permission-mode plan. Source 13সোর্স 13 -
Run the analysis. Type the skill name with your key, for example:
/analyze-story PROJ-123For a GitHub issue, give its number. Claude can read it with
gh issue view 42 --json title,body,comments. Source 8সোর্স 8 -
Check the output. Expect five sections. Every finding should quote the story, or be marked as a guess. Open the ticket and compare three quotes with the real text.
-
Turn it into criteria. Ask for two formats:
Write acceptance criteria for this story: one Gherkin Rule per business rule, then the same rules as a table of input and expected result. Include negative scenarios. Do not add a rule that the story does not state. -
Review. Run "Is the story ready for test?" on the result. Mark each line pass or fail.
-
Post only with approval. Save the questions to a file. Show them to the product owner, then post with
gh issue commentand--body-file. Source 19সোর্স 19
How to check the result. Each Gherkin step starts with a Gherkin keyword. Source 17সোর্স 17 Each criterion has a positive or a negative label. Each open question has a quote.
Where these facts come from
The dMoney repository has its own analyze-requirement skill, which turns a requirement into testable acceptance criteria and labels assumptions. One of its notes found that the requirements never say how phone numbers are normalized. Compare your result with it.
সহজ English
This is the tutorial's own exercise. Use a story from your tracker, or write one for dMoney send money.
- Pick one story with real rules.
- Save the example skill as
.claude/skills/analyze-story/SKILL.md. Source 12সোর্স 12 - Start Claude Code with
claude --permission-mode plan. Source 13সোর্স 13 - Type
/analyze-storyand your story key. For GitHub, Claude can read the issue with its comments. Source 8সোর্স 8 - Check that there are five sections. Each finding should quote the story or be marked as a guess. Compare three quotes with the ticket.
- Ask Claude for criteria in two forms: Gherkin rules and a table. Ask for error cases too.
- Check the result against the ready-for-test list.
- Show the questions to the product owner. Post them only after they agree. Source 19সোর্স 19
To check: each Gherkin step starts with a keyword. Source 17সোর্স 17 Each open question has a quote.
The dMoney repo has its own requirement skill. One of its notes found that the rules never say how phone numbers are cleaned up. Compare your result with it.
বাংলা ব্যাখ্যা
এই অনুশীলন tutorial-এর নিজের। আপনার tracker-এর একটি story নিন, অথবা dMoney send money-র জন্য একটি story লিখুন। Codebase Tour-এ practice app-এর বর্ণনা আছে।
- আসল rule আছে এমন একটি story বাছুন।
- উদাহরণ skill-টি
.claude/skills/analyze-story/SKILL.md-এ save করুন। Source 12সোর্স 12 claude --permission-mode planদিয়ে Claude Code চালু করুন। Source 13সোর্স 13/analyze-storyআর আপনার story key লিখুন। GitHub issue হলে Claude সেটিgh issue view 42 --json title,body,commentsদিয়ে পড়তে পারে। Source 8সোর্স 8- পাঁচটি section আছে কি না দেখুন। প্রতিটি finding-এ story-র quote থাকবে, নয়তো guess চিহ্ন থাকবে। Ticket খুলে তিনটি quote মিলিয়ে দেখুন।
- Claude-কে দুই format-এ criteria লিখতে বলুন: Gherkin Rule আর input-expected result table। Negative scenario-ও চান।
- "Is the story ready for test?" checklist দিয়ে ফলাফল যাচাই করুন।
- প্রশ্নগুলো file-এ রেখে product owner-কে দেখান, তারপর
gh issue commentআর--body-fileদিয়ে post করুন। Source 19সোর্স 19
যাচাই: প্রতিটি Gherkin step একটি keyword দিয়ে শুরু হয়। Source 17সোর্স 17 প্রতিটি open প্রশ্নে একটি quote আছে।
dMoney repo-র নিজস্ব analyze-requirement skill আছে। এর একটি note দেখিয়েছে যে requirement-এ phone number কীভাবে normalize হবে তা বলা নেই। আপনার ফলাফলের সাথে তুলনা করুন।
Common mistakes
| Mistake | Fix |
|---|---|
| Analyzing from the title or the key alone | Fetch the full story with its comments: gh issue view 42 --json title,body,comments, or the Jira MCP server. Source 8সোর্স 8 Source 6সোর্স 6 |
| Accepting Claude's guesses as rules | Ask for a quote behind each finding, and mark the rest as assumptions (the tutorial's advice). |
| Only positive criteria | Acceptance criteria describe both positive and negative scenarios. Source 1সোর্স 1 |
| Criteria that go beyond the story | Test cases must cover the story and should not go beyond it. Source 1সোর্স 1 Move extra ideas to a new question. |
| Then steps that check the database | An outcome should be on an observable output. Source 17সোর্স 17 |
| Posting to the ticket without review | Add ask rules for the write tools. Source 18সোর্স 18 A person reads every comment first (the tutorial's advice). |
| Giving the analysis write access | Plan mode does not edit your source. Source 13সোর্স 13 Use least privilege for the Atlassian connection. Source 7সোর্স 7 |
সহজ English
- Reading only the title. Fetch the whole story with its comments. Source 8সোর্স 8 Source 6সোর্স 6
- Trusting Claude's guesses. Ask for a quote behind each finding. Mark the rest as assumptions. This is the tutorial's advice.
- Only happy paths. Criteria cover good paths and error paths. Source 1সোর্স 1
- Going beyond the story. Tests cover the story, not more. Source 1সোর্স 1 Turn extra ideas into questions.
- Checking the database in Then steps. The result should be an observable output. Source 17সোর্স 17
- Posting without review. Use ask rules. Source 18সোর্স 18 A person reads each post first.
- Too much access. Plan mode does not edit your source. Source 13সোর্স 13 Give the Atlassian connection only the access it needs. Source 7সোর্স 7
বাংলা ব্যাখ্যা
- শুধু title বা key দেখে analysis: comment-সহ পুরো story আনুন,
gh issue view 42 --json title,body,commentsদিয়ে, অথবা Jira MCP server দিয়ে। Source 8সোর্স 8 Source 6সোর্স 6 - Claude-এর অনুমানকে rule ধরে নেওয়া: প্রতিটি finding-এর পেছনে quote চান, বাকিগুলো assumption হিসেবে চিহ্নিত করুন (tutorial-এর পরামর্শ)।
- শুধু positive criteria: acceptance criteria-তে positive ও negative দুই ধরনের scenario থাকে। Source 1সোর্স 1
- Story-র বাইরে যাওয়া: test case story-কে cover করবে, তার বাইরে যাবে না। Source 1সোর্স 1 বাড়তি ধারণাকে প্রশ্ন বানান।
- Then step-এ database যাচাই: ফলাফল হওয়া উচিত বাইরে থেকে দেখা যায় এমন কিছু। Source 17সোর্স 17
- Review ছাড়া ticket-এ post: write tool-এর জন্য ask rule দিন। Source 18সোর্স 18 আগে একজন মানুষ প্রতিটি comment পড়বেন।
- Analysis-কে write access দেওয়া: plan mode source edit করে না। Source 13সোর্স 13 Atlassian connection-এ least privilege রাখুন। Source 7সোর্স 7
Key words
| Term | Meaning |
|---|---|
| Test basis | The body of knowledge used as the basis for test analysis and test design |
| Requirement | A provision that contains criteria to be fulfilled |
| Testability | How well test conditions can be set up, and tests can show whether they are met |
| Test condition | A testable aspect of a component or system that is intended to be tested |
| Static testing | Testing in which the software under test does not need to be executed, for example a review of a story |
| Product risk | A risk that impacts the quality of a product |
| Acceptance criteria | The criteria that a work product must satisfy to be accepted by the stakeholders |
| User story | A short narrative of a need from a user's perspective, with the expected benefit |
| 3 Cs | Card, Conversation, and Confirmation: the three aspects of a user story |
| INVEST | Independent, Negotiable, Valuable, Estimable, Small, and Testable |
| ATDD | A collaboration-based, test-first approach that defines acceptance tests in the stakeholders' language |
| Plan mode | A Claude Code permission mode in which Claude researches and proposes, but does not edit source |