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

Part 19পর্ব 19 · Case Study

The dMoney Codebase

Parts 18 and 20 to 24 describe a QA workspace. The author also published it as the public repository kawsar-95/genAI-project. This part is a tour of that repository. It shows what each folder does and how the folders work together.

9 min read9 মিনিটে পড়া যায় · 11 sections11টি সেকশন · 5 sources5টি সোর্স · updated Nov 2026আপডেট: Nov 2026

Send Money inside one transactionএকটা transaction-এর ভেতরে Send Money

Follow the Send Money steps, then move the amount and see all 3 ledger rows roll back when the balance is too low.Send Money-এর ধাপগুলো অনুসরণ করুন, তারপর পরিমাণ বদলান আর দেখুন ব্যালেন্স কম হলে লেজারের 3টি row-ই রোলব্যাক হয়।

2 min2 মিনিট7 steps7টি ধাপ
  • Total debitমোট debit1010 Tk
  • Ledger rowsলেজার row0 / 3
  • Balanceব্যালেন্স5000 Tk
1000 Tk1000 Tksender · web appপ্রেরক · web appSend MoneySend MoneyAPIAPIinput ok · fee 10 Tkইনপুট ঠিক · ফি 10 TkMySQLMySQLTransactionsTransactionssender debit 1010প্রেরক debit 1010receiver credit 1000গ্রহীতা credit 1000SYSTEM fee credit 10SYSTEM ফি credit 10

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

  • The 9 steps of Send MoneySend Money-এর 9টি ধাপ
  • What FOR UPDATE locks and whyFOR UPDATE কী লক করে ও কেন
  • Why limits and balance are checked inside the lockলকের ভেতরে কেন সীমা ও ব্যালেন্স দেখা হয়
  • Why a failed send saves 0 rowsব্যর্থ send কেন 0 row রাখে

Where these facts come from

The facts on this page come from the files of the public repository, read on 2026-10-27. They have no cites, because a cite links to an official source. Facts about Claude Code, MCP, and Playwright link to the official docs. The repository changes over time, so check its README for the latest state. The README comment on .mcp.json lists two servers, but the file has three.

The app has bugs on purpose

dMoney is a practice target. It has known weaknesses, for example a default JWT secret, an OTP bypass for development, open CORS, and a balance query that builds SQL from a string. The repository documents known weaknesses in qa-findings/ and in the CLAUDE.md file of the API. Do not deploy the app. Do not open it to the internet.

What the repository is

The repository is not one application. It has three layers.

LayerWhat it isWhere it lives
The app under testdMoney, a mobile-money wallet like bKash or Nagad. It has a REST API and a web app.dmoney-transaction-api/, dmoney-web-react/
The AI layerSkills, subagents, a hook, and MCP servers for Claude Code.claude/, .mcp.json, and one .claude/ folder in each sub-project
The outputBug reports, test cases, reviews, and test results that the AI layer writesqa-findings/, .artifacts/

The app has five roles: SYSTEM, Admin, Agent, Customer, and Merchant.

সহজ English

The repository is not one app. It has three layers.

  • The app: dMoney, a mobile-money wallet like bKash or Nagad. It has a REST API and a web app.
  • The AI layer: skills, subagents, a hook, and MCP servers for Claude Code.
  • The output: the bug reports, test cases, reviews, and test results that the AI layer writes.

The app has five roles: SYSTEM, Admin, Agent, Customer, and Merchant.

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

Repository-টি একটি app নয়। এর তিনটি layer আছে।

  • App: dMoney, bKash বা Nagad-এর মতো একটি mobile-money wallet। এতে একটি REST API ও একটি web app আছে।
  • AI layer: Claude Code-এর জন্য skill, subagent, একটি hook এবং MCP server।
  • Output: AI layer যে bug report, test case, review ও test result লেখে।

App-এ পাঁচটি role আছে: SYSTEM, Admin, Agent, Customer ও Merchant।

The folder map

PathRole
dmoney-transaction-api/The backend: Node.js, Express, Sequelize, MySQL
dmoney-web-react/The web app: Next.js 15 (App Router), TypeScript, MUI, Tailwind 4
sql_scripts/A MySQL dump of the dmoneydb database, with its seed data
class_notes/Eight course notes on AI-driven quality engineering
.claude/The workspace skills, subagents, and hook
.mcp.jsonProject MCP servers: playwright, jira, and dmoney-db
GRAPHIFY_SETUP.mdHow to install graphify, a tool that builds a knowledge graph of the code. The graph itself is not in the public repository.

সহজ English

Each top-level folder has one job.

  • dmoney-transaction-api/ is the backend. It uses Node.js, Express, Sequelize, and MySQL.
  • dmoney-web-react/ is the web app. It uses Next.js 15, TypeScript, MUI, and Tailwind 4.
  • sql_scripts/ has a copy of the dmoneydb database with its seed data.
  • class_notes/ has eight course notes.
  • .claude/ has the workspace skills, subagents, and hook.
  • .mcp.json lists the project MCP servers: playwright, jira, and dmoney-db.
  • GRAPHIFY_SETUP.md explains how to install graphify, a tool that builds a knowledge graph of the code. The graph itself is not in the public repository.

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

প্রতিটি top-level folder-এর একটি কাজ আছে।

  • dmoney-transaction-api/ হলো backend। এটি Node.js, Express, Sequelize ও MySQL ব্যবহার করে।
  • dmoney-web-react/ হলো web app। এটি Next.js 15, TypeScript, MUI ও Tailwind 4 ব্যবহার করে।
  • sql_scripts/-এ dmoneydb database-এর একটি copy ও seed data আছে।
  • class_notes/-এ আটটি course note আছে।
  • .claude/-এ workspace-এর skill, subagent ও hook আছে।
  • .mcp.json project-এর MCP server-গুলোর তালিকা দেয়: playwright, jira ও dmoney-db।
  • GRAPHIFY_SETUP.md ব্যাখ্যা করে কীভাবে graphify install করতে হয়। graphify code-এর একটি knowledge graph বানায়। Graph-টি নিজে public repository-তে নেই।

The backend

A request goes through these files in this order:

server.js → app.js → routes/*.route.js → controllers/**/*.controller.js
          → sequelizeModel/* and services/* → MySQL
File or folderWhat it does
server.jsCreates the HTTP server and listens on the port.
app.jsAdds body parsing, CORS, request logging, and the Swagger pages. It mounts all routes at / (there is no /api prefix). It ends with a 404 handler and an error handler.
jwtMiddleware.jsauthenticateJWT needs a valid Bearer token and a matching X-AUTH-SECRET-KEY header. publicAuthenticateJWT checks the token only.
routes//user/* routes and /transaction/* routes.
controllers/users/Register, two-step login, OTP check, user CRUD, and password reset.
controllers/transactions/One file for each operation: deposit, withdraw, send money, payment, admin deposit, Stripe cash-in, and the read endpoints.
sequelizeModel/The models: Users, Role, Transactions, Commission, and TransactionLimit. The Users, Transactions, and Role models create their tables when they load. Users and Transactions also add seed rows. The fee and limit tables come from the scripts in migrations/.
services/Helpers for the balance, the transaction ID, the daily and monthly limits, and OTP email.
migrations/One-off scripts that change the schema. Each script checks first, so you can run it twice.
performance/The k6 load test.

Login and the two middlewares

Login has two steps for most roles. POST /user/login sends a 4-digit OTP that expires after 2 minutes. POST /user/verify-otp returns the JWT. Admin and SYSTEM accounts skip the OTP. A development switch (?env=dev with a default OTP) skips the real OTP too. The security report lists it as a known weakness.

সহজ English

A request goes through the files in this order: server.js, app.js, a route file, a controller, then a model or a service, and then MySQL.

How login works:

  • Most roles log in with two steps. The first step sends a 4-digit OTP. The OTP expires after 2 minutes. The second step returns the JWT.
  • Admin and SYSTEM skip the OTP.
  • A development switch also skips the real OTP. The security report lists it as a known weakness.

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

একটি request এই ক্রমে file-গুলোর মধ্য দিয়ে যায়: server.js, app.js, একটি route file, একটি controller, তারপর একটি model বা service, এবং শেষে MySQL।

Login যেভাবে কাজ করে:

  • বেশিরভাগ role দুই ধাপে login করে। প্রথম ধাপে 4 অঙ্কের একটি OTP যায়। OTP 2 মিনিট পরে expire করে। দ্বিতীয় ধাপে JWT পাওয়া যায়।
  • Admin ও SYSTEM OTP বাদ দেয়।
  • একটি development switch-ও আসল OTP বাদ দেয়। Security report এটিকে known weakness হিসেবে তালিকাভুক্ত করেছে।

The ledger

The database has no balance column. The Transactions table is an append-only double-entry ledger. A row has an account, a debit, a credit, a trnxId, and a transaction_type. The balance of an account is the sum of its credits minus the sum of its debits.

The fees come from the Commissions table. The caps for a customer come from the TransactionLimits table. The rules are data, so a test can check them without a code change.

Send Money, step by step

sendMoney.controller.js is the most important file for the case study. It does these steps:

  1. It checks the input: both accounts are text, and the amount is a number with at most 2 decimals.
  2. It loads the fee rule from Commission.
  3. It checks that the token belongs to the sender.
  4. It checks that both accounts are active Customers, that they are not the same account, and that the amount meets the minimum.
  5. It opens a database transaction and reads the sender balance with FOR UPDATE. This lock makes parallel requests from one sender wait for each other.
  6. It checks the daily and monthly limits inside the lock.
  7. It checks that the balance covers the amount plus the fee.
  8. It writes 3 ledger rows: the sender debit, the receiver credit, and the fee credit to SYSTEM.
  9. It commits. If any step fails, it rolls back all 3 rows.

The lock and the rollback are the reason for the k6 test in part 23.

সহজ English

How the money is kept:

  • The database has no balance column.
  • The Transactions table is a ledger. Each row adds a debit or a credit, and rows are never changed.
  • The balance of an account is the sum of its credits minus the sum of its debits.
  • The fees and the caps are rows in the Commissions and TransactionLimits tables. A test can read them.

How Send Money works:

  1. It checks the input and loads the fee.
  2. It checks that the token belongs to the sender, and that both accounts are active Customers.
  3. It opens a database transaction and locks the sender balance with FOR UPDATE. Parallel requests from one sender wait.
  4. It checks the limits and the balance inside the lock.
  5. It writes 3 ledger rows: the sender debit, the receiver credit, and the fee credit to SYSTEM.
  6. It commits. If a step fails, it rolls back all 3 rows.

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

টাকা যেভাবে রাখা হয়:

  • Database-এ কোনো balance column নেই।
  • Transactions table একটি ledger। প্রতিটি row একটি debit বা credit যোগ করে, এবং row কখনো বদলানো হয় না।
  • একটি account-এর balance হলো তার credit-এর যোগফল বিয়োগ debit-এর যোগফল।
  • Fee ও cap হলো Commissions ও TransactionLimits table-এর row। একটি test সেগুলো পড়তে পারে।

Send Money যেভাবে কাজ করে:

  1. এটি input check করে ও fee load করে।
  2. এটি check করে যে token sender-এর, এবং দুটি account-ই active Customer।
  3. এটি একটি database transaction খোলে ও FOR UPDATE দিয়ে sender-এর balance lock করে। একই sender-এর parallel request অপেক্ষা করে।
  4. Lock-এর ভেতরে এটি limit ও balance check করে।
  5. এটি 3টি ledger row লেখে: sender-এর debit, receiver-এর credit এবং SYSTEM-এ fee-এর credit।
  6. এটি commit করে। কোনো ধাপ fail করলে 3টি row-ই rollback হয়।

The web app

The web app calls the API at the address in NEXT_PUBLIC_API_URL.

File or folderWhat it does
src/app/<role>/…/page.tsxOne page for each feature, grouped by role: admin/, agent/, customer/, merchant/. Login, register, profile, and password pages are shared.
src/lib/api.tsOne axios client. Before each request it checks if the JWT is expired. It adds the Authorization and X-AUTH-SECRET-KEY headers. On a 401 response it logs the user out.
src/middleware.tsSends a user without a token cookie to /login.
src/components/The dashboard layout, the role menu, pagination, and the account statement.
e2e/The Playwright tests.
README.mdThe business requirements: validation, limits, fees, and error codes.

The web app and the API agree on two things: the JWT and the secret-key header. The token is also saved in a cookie, so middleware.ts can protect the routes on the server.

সহজ English

The web app calls the API at the address in NEXT_PUBLIC_API_URL.

Here is what the main files and folders do:

  • Each feature has its own page. Pages are grouped by role: admin/, agent/, customer/, and merchant/.
  • src/lib/api.ts is the one client that talks to the API. Before each request, it checks if the login token (JWT) has expired. A JWT is the token that proves who the user is.
  • It also adds the Authorization and X-AUTH-SECRET-KEY headers to each request.
  • If the answer is a 401, it logs the user out.
  • src/middleware.ts sends a user without a token cookie to /login.
  • e2e/ has the Playwright tests.

The web app and the API agree on two things: the JWT and the secret-key header.

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

Web app NEXT_PUBLIC_API_URL-এর address-এ API call করে।

  • প্রতিটি feature-এর নিজের page আছে, role অনুযায়ী সাজানো: admin/, agent/, customer/ ও merchant/।
  • src/lib/api.ts-এর একটি axios client Authorization ও X-AUTH-SECRET-KEY header যোগ করে। প্রতিটি request-এর আগে এটি check করে JWT expire হয়েছে কি না। 401 response পেলে এটি user-কে logout করায়।
  • token cookie নেই এমন user-কে src/middleware.ts /login-এ পাঠায়।
  • e2e/-এ Playwright test আছে।

Web app ও API দুটি বিষয়ে একমত: JWT ও secret-key header।

The AI layer

The workspace skills are in .claude/skills/. A skill is a folder with a SKILL.md file Source 1সোর্স 1.

SkillJob
understand-taskExplains an issue, a pull request, or a Jira ticket and lists its acceptance criteria.
find-bugHunts bugs in one module through the UI and the API.
blast-radiusFinds what a change can affect and ranks the retest list by risk.
pr-reviewReviews a pull request against the issues it closes.
test-charterWrites exploratory test charters.
test-designDesigns traceable test cases.
execute-testRuns prepared test cases and records pass, failed, or not executed.

Subagents. Two subagents do work that must stay separate Source 2সোর্স 2. qa-reviewer-agent only reads. It marks each drafted bug as approved, flagged, or rejected. test-executor-agent only runs existing test cases with curl and a browser tool. It does not design tests and it does not raise bugs.

Hook. One hook runs before the test-design and find-bug skills Source 3সোর্স 3. The hook runs a graphify query with the arguments of the skill. If the skill has no arguments, it adds the overview of the graph. The model does not have to remember this step.

MCP servers. The file .mcp.json lists three MCP servers Source 4সোর্স 4: playwright for the browser, jira for tickets, and dmoney-db for the database. The README describes a read-only database server (dmoneydb, at user level). But the dmoney-db entry in .mcp.json also lists write permissions (create,update,delete,execute), so treat it as read-write.

সহজ English

The workspace skills are in .claude/skills/. A skill is a folder with a SKILL.md file Source 1সোর্স 1. Each skill does one job.

  • understand-task explains a ticket and lists what it must do.
  • find-bug hunts bugs in one module.
  • blast-radius finds what a change can affect. It then ranks the retest list by risk.
  • pr-review checks a pull request against the issues it closes. A pull request is a set of code changes offered for review.
  • test-charter writes plans for exploratory testing.
  • test-design designs test cases you can trace back.
  • execute-test runs prepared test cases.

Two helpers have one job each Source 2সোর্স 2. They are called subagents.

  • qa-reviewer-agent only reads. It approves, flags, or rejects each drafted bug.
  • test-executor-agent only runs existing test cases. It does not design tests or raise bugs.

A hook runs before the test-design and find-bug skills Source 3সোর্স 3. A hook is a step that runs by itself. This one runs a graphify query. So the model does not have to remember this step.

The file .mcp.json lists three servers Source 4সোর্স 4. They are:

  • playwright, for the browser.
  • jira, for tickets.
  • dmoney-db, for the database.

The README describes a read-only database server (dmoneydb, at user level). But the dmoney-db entry in .mcp.json also lists write permissions (create,update,delete,execute), so treat it as read-write.

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

Workspace-এর skill .claude/skills/-এ আছে। একটি skill হলো SKILL.md file সহ একটি folder Source 1সোর্স 1।

  • understand-task একটি ticket ব্যাখ্যা করে ও তার acceptance criteria তালিকাভুক্ত করে।
  • find-bug একটি module-এ bug খোঁজে।
  • blast-radius খুঁজে বের করে একটি পরিবর্তন কী কী প্রভাবিত করতে পারে।
  • pr-review একটি pull request-কে তার issue-এর সঙ্গে মিলিয়ে review করে।
  • test-charter exploratory test charter লেখে।
  • test-design traceable test case design করে।
  • execute-test তৈরি করা test case চালায়।

দুটি subagent-এর প্রত্যেকের একটি করে কাজ Source 2সোর্স 2। qa-reviewer-agent শুধু পড়ে, এবং প্রতিটি draft করা bug approve, flag বা reject করে। test-executor-agent শুধু আগে থেকে থাকা test case চালায়। এটি test design করে না এবং bug তোলে না।

test-design ও find-bug skill-এর আগে একটি hook চলে Source 3সোর্স 3। এটি একটি graphify query চালায় ও ফলাফল context-এ যোগ করে।

.mcp.json file তিনটি MCP server-এর তালিকা দেয় Source 4সোর্স 4: playwright, jira ও dmoney-db।

How the layers work together

find-bug ─▶ qa-reviewer-agent ─▶ qa-findings/NN-*-bugs.md ─▶ GitHub issues
                                                                  │
analyze-requirement ◀─────────────────────────────────────────────┘
        │
fix on a branch ─▶ PR ─▶ pr-review ─▶ blast-radius ─▶ test-charter
        │
test-design + qa-agent-advocate ─▶ test-executor-agent ─▶ fix failures ─▶ retest ─▶ k6

Each step writes a file. The next step reads it. The analyze-requirement skill (in each sub-project) turns an issue into acceptance criteria. The files are in qa-findings/ and .artifacts/.

FolderContent
qa-findings/Eight numbered reports: login and auth bugs, deposit bugs, deposit test cases, 11 security issues, deposit charters, a deposit test design, cash-in bugs, and 7 Send Money bugs.
.artifacts/The files that skills write for each issue and each pull request: requirements, reviews, impact reports, charters, test cases, and test results.

The Send Money work followed the whole chain. PR #8 had 17 passed, 5 failed, and 2 not executed test cases. PR #9 fixed the 5 failures.

সহজ English

The steps run in a chain. Each step writes a file, and the next step reads it.

  1. find-bug finds a bug, and qa-reviewer-agent checks it. The bug goes to qa-findings/ and then to a GitHub issue.
  2. analyze-requirement turns the issue into acceptance criteria.
  3. A fix goes on a branch and into a pull request.
  4. pr-review and blast-radius check the pull request.
  5. test-charter and test-design plan the tests.
  6. test-executor-agent runs the tests.
  7. The author fixes the failures, retests, and runs the k6 check.

The files are in qa-findings/ (eight numbered reports) and .artifacts/ (the files for each issue and each pull request). PR #8 had 17 passed, 5 failed, and 2 not executed test cases. PR #9 fixed the 5 failures.

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

ধাপগুলো একটি chain-এ চলে। প্রতিটি ধাপ একটি file লেখে, এবং পরের ধাপ সেটি পড়ে।

  1. find-bug একটি bug খোঁজে, এবং qa-reviewer-agent সেটি check করে। Bug যায় qa-findings/-এ, তারপর একটি GitHub issue-তে।
  2. analyze-requirement issue-টিকে acceptance criteria-তে বদলায়।
  3. একটি fix একটি branch-এ যায় ও একটি pull request-এ ঢোকে।
  4. pr-review ও blast-radius pull request-টি check করে।
  5. test-charter ও test-design test-এর পরিকল্পনা করে।
  6. test-executor-agent test চালায়।
  7. লেখক failure ঠিক করেন, retest করেন এবং k6 check চালান।

File-গুলো আছে qa-findings/-এ (আটটি নম্বর দেওয়া report) ও .artifacts/-এ (প্রতিটি issue ও pull request-এর file)। PR #8-এ 17টি test case pass, 5টি failed এবং 2টি not executed ছিল। PR #9 সেই 5টি failure ঠিক করেছে।

The test code

TestWhereIdea
k6 load testdmoney-transaction-api/performance/Ramps from 0 to 3 to 10 users over one minute. It reuses existing customers and rotates the senders, so no one goes over the daily or monthly limit. It uses the development OTP bypass, so run it on a local copy only.
Playwright testsdmoney-web-react/e2e/One setup project for each role logs in and saves the session. The test projects for that role start with the saved session Source 5সোর্স 5.

The setup for the agent role gets its OTP from Gmail. It accepts only a message that arrived after the login started. This stops a stale OTP from a previous run. The helper skips a new login while the saved JWT has more than 10 minutes left.

সহজ English

There are two kinds of test code.

  • The k6 load test is in dmoney-transaction-api/performance/. It ramps from 0 to 3 to 10 users in one minute. It reuses existing customers and rotates the senders, so no one goes over a limit. It uses the development OTP bypass, so run it on a local copy only.
  • The Playwright tests are in dmoney-web-react/e2e/. A setup project for each role logs in and saves the session. The tests of that role start with the saved session Source 5সোর্স 5.

The agent setup gets its OTP from Gmail. It accepts only a message that arrived after the login started. A new login is skipped while the saved JWT has more than 10 minutes left.

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

Test code দুই ধরনের।

  • k6 load test আছে dmoney-transaction-api/performance/-এ। এটি এক মিনিটে 0 থেকে 3 এবং তারপর 10 user পর্যন্ত বাড়ে। এটি আগে থেকে থাকা customer ব্যবহার করে ও sender বদলে বদলে নেয়, যাতে কেউ limit পার না করে। এটি development OTP bypass ব্যবহার করে, তাই শুধু local copy-তে চালান।
  • Playwright test আছে dmoney-web-react/e2e/-এ। প্রতিটি role-এর একটি setup project login করে ও session save করে। সেই role-এর test saved session দিয়ে শুরু হয় Source 5সোর্স 5।

Agent setup Gmail থেকে OTP নেয়। Login শুরু হওয়ার পরে আসা message-ই এটি গ্রহণ করে। Saved JWT-তে 10 মিনিটের বেশি বাকি থাকলে নতুন login বাদ যায়।

The class notes

The folder class_notes/ has 8 notes. Each note matches code in the repository.

#TopicWhere you see it
1The 3-layer AI system, context engineering, and MCP.mcp.json, .claude/settings.json
2Setup, the knowledge graph, and blast radiusGRAPHIFY_SETUP.md, the CLAUDE.md file of each sub-project
3Skills, context budgets, and white-box testing.claude/skills/
4graphify and Serena, and the 5-stage test chainthe five matching skills: four in .claude/skills/, and analyze-requirement in each sub-project
5Bug discovery tools and pre-hooksthe graphify hook, find-bug
6Main agent, subagents, skills, and the adversarial gatethe two subagents
7Issue to pull request, and the concurrency bugPR #8, sendMoney.controller.js
8Role-based Playwright tests and OTP from Gmaildmoney-web-react/e2e/

সহজ English

The folder class_notes/ has 8 notes. Each note matches code in the repository. Here is where to see each topic.

  1. The first note covers the 3-layer AI system, context engineering, and MCP. See .mcp.json and .claude/settings.json.
  2. The second note covers setup, the knowledge graph, and blast radius. See GRAPHIFY_SETUP.md. Also see the CLAUDE.md file of each sub-project.
  3. The third note covers skills, context budgets, and white-box testing. See .claude/skills/.
  4. The fourth note covers graphify and Serena, and the 5-stage test chain. See five skills. Four are in .claude/skills/. analyze-requirement is in each sub-project.
  5. The fifth note covers bug discovery tools and pre-hooks. See the graphify hook and find-bug.
  6. The sixth note covers the main agent, subagents, skills, and the adversarial gate. See the two subagents.
  7. The seventh note covers the path from issue to pull request, and the concurrency bug. See PR #8 and sendMoney.controller.js.
  8. The eighth note covers role-based Playwright tests and OTP from Gmail. See dmoney-web-react/e2e/.

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

class_notes/ folder-এ 8টি note আছে। প্রতিটি note repository-র code-এর সঙ্গে মেলে।

  1. 3-layer AI system, context engineering ও MCP: দেখুন .mcp.json ও .claude/settings.json।
  2. Setup, knowledge graph ও blast radius: দেখুন GRAPHIFY_SETUP.md ও প্রতিটি sub-project-এর CLAUDE.md file।
  3. Skill, context budget ও white-box testing: দেখুন .claude/skills/।
  4. graphify ও Serena, এবং 5-stage test chain: দেখুন পাঁচটি মিলে যাওয়া skill: চারটি .claude/skills/-এ, আর analyze-requirement প্রতিটি sub-project-এ।
  5. Bug discovery tool ও pre-hook: দেখুন graphify hook ও find-bug।
  6. Main agent, subagent, skill ও adversarial gate: দেখুন দুটি subagent।
  7. Issue থেকে pull request, এবং concurrency bug: দেখুন PR #8 ও sendMoney.controller.js।
  8. Role-based Playwright test ও Gmail থেকে OTP: দেখুন dmoney-web-react/e2e/।

Take-aways

  • Keep the app, the AI setup, and the outputs in one repository. Each layer can then point to the other two.
  • Store the business rules in data. Tests and reviews can read them.
  • Give each subagent one job. A reviewer that cannot write and an executor that cannot design catch more mistakes.
  • Use a hook for a step that must run before a skill starts.
  • Write each result to a file. The next skill reads the file, not the chat.

সহজ English

  • Keep the app, the AI setup, and the outputs in one repository. Each layer can then point to the other two.
  • Store the business rules in data. Tests and reviews can read them.
  • Give each subagent one job.
  • Use a hook for a step that must run before a skill starts.
  • Write each result to a file. The next skill reads the file, not the chat.

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

  • App, AI setup ও output একই repository-তে রাখুন। তাহলে প্রতিটি layer বাকি দুটির দিকে নির্দেশ করতে পারে।
  • Business rule data হিসেবে রাখুন। Test ও review সেগুলো পড়তে পারে।
  • প্রতিটি subagent-কে একটি কাজ দিন।
  • যে ধাপ একটি skill শুরু হওয়ার আগে চলতে হবে তার জন্য hook ব্যবহার করুন।
  • প্রতিটি ফলাফল একটি file-এ লিখুন। পরের skill chat নয়, file পড়ে।

Key words

TermMeaning
LedgerA table where each row adds a debit or a credit. Rows are never changed.
FOR UPDATEA database lock. Other requests wait until the transaction ends.
JWTA signed token that proves who the user is.
OTPA one-time password. It is valid for a short time.
SkillA folder with a SKILL.md file that Claude loads for a type of task.
SubagentA helper with its own role and its own tool list.
HookA command that the tool runs at a set point, for example before a skill.
MCP serverA program that gives Claude extra tools, for example a browser.
  1. [1]
    Extend Claude with skills

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

  2. [2]
    Create custom subagents

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

  3. [3]
    Hooks reference

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

  4. [4]
    Connect Claude Code to tools via MCP

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

  5. [5]
    Authentication

    Playwright docs · accessed 2026-10-27দেখা হয়েছে: 2026-10-27