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-ই রোলব্যাক হয়।
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.
| Layer | What it is | Where it lives |
|---|---|---|
| The app under test | dMoney, 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 layer | Skills, subagents, a hook, and MCP servers for Claude Code | .claude/, .mcp.json, and one .claude/ folder in each sub-project |
| The output | Bug reports, test cases, reviews, and test results that the AI layer writes | qa-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
| Path | Role |
|---|---|
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.json | Project MCP servers: playwright, jira, and dmoney-db |
GRAPHIFY_SETUP.md | How 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 thedmoneydbdatabase with its seed data.class_notes/has eight course notes..claude/has the workspace skills, subagents, and hook..mcp.jsonlists the project MCP servers:playwright,jira, anddmoney-db.GRAPHIFY_SETUP.mdexplains 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/-এdmoneydbdatabase-এর একটি copy ও seed data আছে।class_notes/-এ আটটি course note আছে।.claude/-এ workspace-এর skill, subagent ও hook আছে।.mcp.jsonproject-এর 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 folder | What it does |
|---|---|
server.js | Creates the HTTP server and listens on the port. |
app.js | Adds 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.js | authenticateJWT 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:
- It checks the input: both accounts are text, and the amount is a number with at most 2 decimals.
- It loads the fee rule from
Commission. - It checks that the token belongs to the sender.
- It checks that both accounts are active Customers, that they are not the same account, and that the amount meets the minimum.
- 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. - It checks the daily and monthly limits inside the lock.
- It checks that the balance covers the amount plus the fee.
- It writes 3 ledger rows: the sender debit, the receiver credit, and the fee credit to SYSTEM.
- 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
Transactionstable 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
CommissionsandTransactionLimitstables. A test can read them.
How Send Money works:
- It checks the input and loads the fee.
- It checks that the token belongs to the sender, and that both accounts are active Customers.
- It opens a database transaction and locks the sender balance with
FOR UPDATE. Parallel requests from one sender wait. - It checks the limits and the balance inside the lock.
- It writes 3 ledger rows: the sender debit, the receiver credit, and the fee credit to SYSTEM.
- It commits. If a step fails, it rolls back all 3 rows.
বাংলা ব্যাখ্যা
টাকা যেভাবে রাখা হয়:
- Database-এ কোনো balance column নেই।
Transactionstable একটি ledger। প্রতিটি row একটি debit বা credit যোগ করে, এবং row কখনো বদলানো হয় না।- একটি account-এর balance হলো তার credit-এর যোগফল বিয়োগ debit-এর যোগফল।
- Fee ও cap হলো
CommissionsওTransactionLimitstable-এর row। একটি test সেগুলো পড়তে পারে।
Send Money যেভাবে কাজ করে:
- এটি input check করে ও fee load করে।
- এটি check করে যে token sender-এর, এবং দুটি account-ই active Customer।
- এটি একটি database transaction খোলে ও
FOR UPDATEদিয়ে sender-এর balance lock করে। একই sender-এর parallel request অপেক্ষা করে। - Lock-এর ভেতরে এটি limit ও balance check করে।
- এটি 3টি ledger row লেখে: sender-এর debit, receiver-এর credit এবং SYSTEM-এ fee-এর credit।
- এটি commit করে। কোনো ধাপ fail করলে 3টি row-ই rollback হয়।
The web app
The web app calls the API at the address in NEXT_PUBLIC_API_URL.
| File or folder | What it does |
|---|---|
src/app/<role>/…/page.tsx | One page for each feature, grouped by role: admin/, agent/, customer/, merchant/. Login, register, profile, and password pages are shared. |
src/lib/api.ts | One 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.ts | Sends 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.md | The 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/, andmerchant/. src/lib/api.tsis 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
AuthorizationandX-AUTH-SECRET-KEYheaders to each request. - If the answer is a 401, it logs the user out.
src/middleware.tssends a user without atokencookie 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 clientAuthorizationওX-AUTH-SECRET-KEYheader যোগ করে। প্রতিটি request-এর আগে এটি check করে JWT expire হয়েছে কি না। 401 response পেলে এটি user-কে logout করায়।tokencookie নেই এমন 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.
| Skill | Job |
|---|---|
understand-task | Explains an issue, a pull request, or a Jira ticket and lists its acceptance criteria. |
find-bug | Hunts bugs in one module through the UI and the API. |
blast-radius | Finds what a change can affect and ranks the retest list by risk. |
pr-review | Reviews a pull request against the issues it closes. |
test-charter | Writes exploratory test charters. |
test-design | Designs traceable test cases. |
execute-test | Runs 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-taskexplains a ticket and lists what it must do.find-bughunts bugs in one module.blast-radiusfinds what a change can affect. It then ranks the retest list by risk.pr-reviewchecks a pull request against the issues it closes. A pull request is a set of code changes offered for review.test-charterwrites plans for exploratory testing.test-designdesigns test cases you can trace back.execute-testruns prepared test cases.
Two helpers have one job each Source 2সোর্স 2. They are called subagents.
qa-reviewer-agentonly reads. It approves, flags, or rejects each drafted bug.test-executor-agentonly 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-charterexploratory test charter লেখে।test-designtraceable 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 ─▶ k6Each 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/.
| Folder | Content |
|---|---|
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.
find-bugfinds a bug, andqa-reviewer-agentchecks it. The bug goes toqa-findings/and then to a GitHub issue.analyze-requirementturns the issue into acceptance criteria.- A fix goes on a branch and into a pull request.
pr-reviewandblast-radiuscheck the pull request.test-charterandtest-designplan the tests.test-executor-agentruns the tests.- 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 লেখে, এবং পরের ধাপ সেটি পড়ে।
find-bugএকটি bug খোঁজে, এবংqa-reviewer-agentসেটি check করে। Bug যায়qa-findings/-এ, তারপর একটি GitHub issue-তে।analyze-requirementissue-টিকে acceptance criteria-তে বদলায়।- একটি fix একটি branch-এ যায় ও একটি pull request-এ ঢোকে।
pr-reviewওblast-radiuspull request-টি check করে।test-charterওtest-designtest-এর পরিকল্পনা করে।test-executor-agenttest চালায়।- লেখক 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
| Test | Where | Idea |
|---|---|---|
| k6 load test | dmoney-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 tests | dmoney-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.
| # | Topic | Where you see it |
|---|---|---|
| 1 | The 3-layer AI system, context engineering, and MCP | .mcp.json, .claude/settings.json |
| 2 | Setup, the knowledge graph, and blast radius | GRAPHIFY_SETUP.md, the CLAUDE.md file of each sub-project |
| 3 | Skills, context budgets, and white-box testing | .claude/skills/ |
| 4 | graphify and Serena, and the 5-stage test chain | the five matching skills: four in .claude/skills/, and analyze-requirement in each sub-project |
| 5 | Bug discovery tools and pre-hooks | the graphify hook, find-bug |
| 6 | Main agent, subagents, skills, and the adversarial gate | the two subagents |
| 7 | Issue to pull request, and the concurrency bug | PR #8, sendMoney.controller.js |
| 8 | Role-based Playwright tests and OTP from Gmail | dmoney-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.
- The first note covers the 3-layer AI system, context engineering, and MCP. See
.mcp.jsonand.claude/settings.json. - The second note covers setup, the knowledge graph, and blast radius. See
GRAPHIFY_SETUP.md. Also see theCLAUDE.mdfile of each sub-project. - The third note covers skills, context budgets, and white-box testing. See
.claude/skills/. - The fourth note covers graphify and Serena, and the 5-stage test chain. See five skills. Four are in
.claude/skills/.analyze-requirementis in each sub-project. - The fifth note covers bug discovery tools and pre-hooks. See the graphify hook and
find-bug. - The sixth note covers the main agent, subagents, skills, and the adversarial gate. See the two subagents.
- The seventh note covers the path from issue to pull request, and the concurrency bug. See PR #8 and
sendMoney.controller.js. - 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-এর সঙ্গে মেলে।
- 3-layer AI system, context engineering ও MCP: দেখুন
.mcp.jsonও.claude/settings.json। - Setup, knowledge graph ও blast radius: দেখুন
GRAPHIFY_SETUP.mdও প্রতিটি sub-project-এরCLAUDE.mdfile। - Skill, context budget ও white-box testing: দেখুন
.claude/skills/। - graphify ও Serena, এবং 5-stage test chain: দেখুন পাঁচটি মিলে যাওয়া skill: চারটি
.claude/skills/-এ, আরanalyze-requirementপ্রতিটি sub-project-এ। - Bug discovery tool ও pre-hook: দেখুন graphify hook ও
find-bug। - Main agent, subagent, skill ও adversarial gate: দেখুন দুটি subagent।
- Issue থেকে pull request, এবং concurrency bug: দেখুন PR #8 ও
sendMoney.controller.js। - 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
| Term | Meaning |
|---|---|
| Ledger | A table where each row adds a debit or a credit. Rows are never changed. |
FOR UPDATE | A database lock. Other requests wait until the transaction ends. |
| JWT | A signed token that proves who the user is. |
| OTP | A one-time password. It is valid for a short time. |
| Skill | A folder with a SKILL.md file that Claude loads for a type of task. |
| Subagent | A helper with its own role and its own tool list. |
| Hook | A command that the tool runs at a set point, for example before a skill. |
| MCP server | A program that gives Claude extra tools, for example a browser. |