post-code-verification
Skill1 starsChanged 45 days agoMITView on GitHub
Quy trình 4 bước kiểm định chất lượng sau khi viết code: Biên dịch Gradle/Maven, chạy kiểm thử tự động, rà soát quy chuẩn CodeStyle, kiểm tra ranh giới Git diff và tính toàn vẹn của tài liệu đặc tả SDD.
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-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
- 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/post-code-verification/SKILL.md — DO NOT EDIT DIRECTLY --><!-- GENERATED FROM .shared/skills/03-hooks/post-code-verification/SKILL.md — DO NOT EDIT DIRECTLY -->Quy Trình 4 Bước Kiểm Định Chất Lượng Mã Nguồn (Post-Code Verification)
Skill này cung cấp quy trình nghiệm thu bắt buộc cho Kỹ sư và AI Coding Agents trước khi hoàn tất bất kỳ task lập trình nào trên repository Backend Microservices.
🔍 Quy Trình 4 Bước Nghiệm Thu Chuẩn Mực
flowchart TD
Step1["1. Build & Test Verification\n- mvn verify / gradle test\n- 100% tests green"] --> Step2["2. CodeStyle & Convention Review\n- 15 Điều cấm kỵ\n- Jakarta Bean Validation\n- MDC traceId Logging"]
Step2 --> Step3["3. Security & PII Inspection\n- Zero Silent Catch\n- PII Masking\n- Timeout trên HTTP Clients"]
Step3 --> Step4["4. Spec Traceability & Git Diff Check\n- Cập nhật specs/ và tasks.md\n- Kiểm tra git status & git diff"]
Step4 --> Complete["✅ Sẵn Sàng Tạo Pull Request"]Bước 1: Kiểm Tra Biên Dịch & Chạy Unit Test
Thực thi lệnh kiểm tra build và kiểm thử tự động trong root project:
# Gradle:
./gradlew compileGroovy compileJava test
# Hoặc Maven:
./mvnw clean test- Tiêu chuẩn đạt: Build thành công 100%, không có compilation warning/error, toàn bộ test cases đều passed.
Bước 2: Rà Soát Quy Chuẩn Lập Trình (CodeStyle Review)
- Tên package, class, method, biến tuân thủ đúng quy tắc CamelCase / PascalCase.
- DTO Request có đầy đủ annotation validation (
@NotNull,@NotBlank,@Pattern). - Controller có
@Validvà trích xuấtx-request-idđưa vàoMDC.put("traceId", requestId). - Response bọc trong
ResponseEntity<GeneralResponse<T>>.
Bước 3: Rà Soát An Toàn Bảo Mật & Lập Trình Phòng Thủ
- Không còn câu lệnh
printlnhoặce.printStackTrace(). - Không có khối
catchrỗng (Zero Silent Catch). - Toàn bộ thông tin nhạy cảm (CCCD, SĐT, Email, OTP) được mask trước khi log.
- Mọi cuộc gọi HTTP ra bên ngoài đều có cấu hình Timeout ($< 5s$).
- Mọi xử lý file/stream đều dùng
try-with-resources.
Bước 4: Kiểm Tra Ranh Giới Git Diff & Đối Chiếu Đặc Tả SDD
- Chạy
git status --shortvàgit diffđể đảm bảo:- Chỉ sửa các file thuộc phạm vi task được giao.
- Không vô tình sửa file cấu hình chung nếu không được yêu cầu.
- Cập nhật tài liệu đặc tả tương ứng trong
.sdd/specs/(đánh dấu[x]vào các task đã hoàn tất trongTASKS.mdvà checklist).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

