db-interface-procedure-flow
Skill1 starsChanged 45 days agoMITView on GitHub
Hướng dẫn tích hợp và điều phối chuỗi Stored Procedures / DB-Interface qua Adapter Pattern, đảm bảo cô lập Database Core, Idempotency và cơ chế bù trừ (Compensation).
In this repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adopt-repoSkill
- agent-strict-guardSkill
- analyze-featureSkill
- backend-api-design-flowSkill
- clean-code-naming-conventionsSkill
- code-review-gateSkill
- dangerous-action-blockerSkill
- database-transaction-managementSkill
- db-migrationSkill
- defensive-troubleshooting-guideSkill
- git-workflowSkill
- human-authority-overrideSkill
- human-master-mapSkill
- implement-featureSkill
- jpa-n-plus-one-optimizationSkill
- knowledge-graphSkill
- multi-language-error-handlingSkill
- post-code-verificationSkill
- project-doctorSkill
- project-governance-dashboardSkill
- redis-cache-patternsSkill
- release-notesSkill
- safe-git-rebaseSkill
- security-secret-scannerSkill
- speckit-analyzeSkill
- speckit-auditSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-helpSkill
- speckit-implementSkill
- speckit-ingestSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- spec-writerSkill
- spring-middleware-pipelineSkill
- sql-repository-patternSkill
- system-dna-managerSkill
- test-featureSkill
- adopt-repoSkill
- agent-strict-guardSkill
- analyze-featureSkill
- backend-api-design-flowSkill
- clean-code-naming-conventionsSkill
- code-review-gateSkill
- dangerous-action-blockerSkill
- database-transaction-managementSkill
- db-interface-procedure-flowSkill
- db-migrationSkill
- defensive-troubleshooting-guideSkill
- git-workflowSkill
- human-authority-overrideSkill
- human-master-mapSkill
- implement-featureSkill
- jpa-n-plus-one-optimizationSkill
- knowledge-graphSkill
- multi-language-error-handlingSkill
- The first 60 shown.
The file
Files
<!-- GENERATED FROM registry/skills/db-interface-procedure-flow/SKILL.md — DO NOT EDIT DIRECTLY --><!-- GENERATED FROM .shared/skills/02-codestyle/db-interface-procedure-flow/SKILL.md — DO NOT EDIT DIRECTLY -->Quy Trình Tích Hợp & Điều Phối Stored Procedures DB-Interface Chuẩn Enterprise
1. Mục Đích
Hướng dẫn tích hợp an toàn chuỗi Stored Procedures trên Database Core/Legacy thông qua lớp trung gian Adapter Client (IDbInterfaceClient), tuân thủ nguyên tắc không kết nối trực tiếp DB Core.
2. Chuỗi Stored Procedures / Integration Pipeline Cốt Lõi
flowchart TD
SP1["1. PR_CHECK_IDCODE\n(Kiểm tra CCCD & nguồn dữ liệu)"] --> SP2["2. PR_ADD_IDCHECK\n(Lưu log kiểm tra định danh)"]
SP2 --> SP3["3. PR_CHECK_OPENACCOUNT\n(Check điều kiện chính sách đối tác)"]
SP3 --> SP4["4. PR_ADD_IMAGE\n(Lưu URL ảnh CCCD & selfie)"]
SP4 --> SP5["5. PR_OPENACCOUNT_AUTO\n(Sinh CustID & AccountNo)"]
SP5 --> SP6["6. PR_ADD_REGISTER\n(Đăng ký Dịch vụ bổ sung, Ngân hàng)"]3. Quy Tắc Gọi & Xử Lý Giao Dịch
- Tuần tự (Sequential): Bắt buộc thực thi theo thứ tự logic chặt chẽ từ bước 1 đến bước cuối.
- Kiểm tra Mã Lỗi (Fail-Fast): Sau mỗi Stored Procedure, kiểm tra
p_err_code == "0". Nếu khác 0, dừng ngay lập tức và némAPIExceptiontương ứng kèm log chi tiết. - Idempotency: Đối với các thủ tục tạo tài khoản / cấp mã (
PR_OPENACCOUNT_AUTO), kiểm tra xem khách hàng đã được cấpcustidtrước đó chưa để tránh tạo đúp bản ghi. - Compensation & Retry: Nếu các bước đầu thành công nhưng bước sau hoặc dịch vụ liên kết bên ngoài thất bại, ghi nhận trạng thái vào bảng
tbl_account_register/ Outbox để kích hoạt cơ chế Retry hoặc hỗ trợ Admin xử lý thủ công.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

