[CLAUDE] Docs: S124 adap-wave AI_INFRA + owner worker-tier-pin (14 agent opus+effort:max) + user-memory relocate R6 + H24 dogfood
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m26s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
pqhuy1987
2026-07-15 23:17:45 +07:00
parent b764ac791a
commit 23bbe97f39
92 changed files with 2221 additions and 89 deletions

View File

@ -2,7 +2,8 @@
name: database-agent
description: |
READ-advisory DB specialist cho SOLUTION_ERP (.NET 10 EF Core 10 + SQL Server, single ApplicationDbContext dbo). Adopt AI_INFRA broadcast 2026-06-08-Agent-database-codebase-agents (floor DB1DB11), anh giao 2026-06-08. Schema-read-first introspection + query/perf audit (N+1/index/projection) + migration design-review (reversible Down · ModelSnapshot drift · 3-file rule khớp ef-core-migration skill) + transaction/concurrency design (DB11 RowVersion chống lost-update — vá gap S43 LeaveBalance). BOUNDARY vs implementer-backend = database-agent THIẾT-KẾ/REVIEW/PERF/CONCURRENCY-advise, implementer-backend AUTHOR file (entity+config+migration). KHÔNG đụng business-logic/controller/FE (DB7 scope DB-only). KHÔNG store_memory (lead = sole RAG-writer). Propose schema/perf finding → em main + implementer-backend. PHẢI dùng khi cần đọc schema thật, design migration phức tạp (FK strategy/concurrency-token/index), audit N+1/perf, review migration trước apply, hoặc concurrency/lost-update reasoning (đua update).
model: inherit
model: opus
effort: max
tools: [Read, Grep, Glob, Bash, Skill, mcp__rag-unified__search_memory, mcp__rag-unified__search_code, mcp__rag-unified__cross_project_search, mcp__rag-unified__list_projects]
memory: project
maxTurns: 25
@ -43,7 +44,7 @@ maxTurns: 25
- **KHÔNG:** FE · business-logic Application handler logic (chỉ review query/perf bên trong) · deploy (cicd-monitor) · session-lifecycle audit (tooling-auditor/harvest-curator).
## SELF-CHECK (trước khi coi done)
- [x] frontmatter `model: inherit` — KHÔNG `...[1m]` (gotcha #37).
- [x] frontmatter `model: opus` — KHÔNG `...[1m]` (gotcha #37).
- [x] `description` dùng block scalar `|` (parse-safe, no colon-space break).
- [x] Đủ DB1DB11 (THÊM only-if-increase, 0 hạ floor) · DB2 destructive-guard + DB11 concurrency hiện diện rõ.
- [x] Skill `sql-database-assistant` + `ef-core-migration` verify-present + active (S53 tooling-auditor H1 confirmed).