agentleFS
TienDat-VnaTienDat-Vna/BackSpec/.agents/skills/speckit-audit/SKILL.md

speckit-audit

Skill1 starsChanged 46 days agoMITView on GitHub

Chạy đối soát chéo 2 chiều (Bidirectional Cross-Audit) giữa Spec vừa sinh ra với Tài liệu gốc (Docx/PNG) và Mã nguồn có sẵn của dự án, sinh file AUDIT_REPORT.md.

The file

Files
SKILL.md
<!-- GENERATED FROM registry/skills/speckit-audit/SKILL.md — DO NOT EDIT DIRECTLY -->

Skill — Đối Soát Chéo 2 Chiều (Cross-Audit & Verification)

Kỹ năng này bảo đảm chất lượng đặc tả kỹ thuật đạt mức tin cậy tối đa (Fidelity Score >= 85%) trước khi bắt tay vào lập trình.

1. NGUYÊN TẮC ĐỐI SOÁT CHÉO 2 CHIỀU

                 ┌────────────────────────────────┐
                 │  Tài liệu gốc (.docx / .png)   │
                 └──────────────┬─────────────────┘
                                │ (Under/Over-spec check)
                                ▼
 ┌────────────────┐     ┌───────────────┐     ┌────────────────┐
 │ Codebase/DB    │◄───►│    SPEC.md    │◄───►│ CONSTITUTION.md│
 └────────────────┘     └───────────────┘     └────────────────┘
 (Schema/API conflict)                        (Architecture rules)

1.1. Đối soát với Tài liệu gốc (Docs & Diagrams)

  • Under-specification (Thiếu sót): Tìm các trường dữ liệu, validation rules, hoặc use-case có trong file Word/Ảnh nhưng chưa được đưa vào SPEC.md.
  • Over-specification (Thừa thãi / Hallucination): Phát hiện các endpoint, thực thể hoặc logic mà AI tự suy diễn không có trong yêu cầu gốc.

1.2. Đối soát với Mã nguồn hiện có (Source Code & DB)

  • Database & Schema: Đối chiếu tên bảng, cột và khóa ngoại với các file Migration và Entity hiện có.
  • API & Controller: Kiểm tra trùng lặp URL path hoặc phiên bản API (/api/v1/...).
  • Tái sử dụng (Reusability): Phát hiện các Common DTO, BaseEntity, Enum dùng chung trong codebase để tái sử dụng.

2. CÂU LỆNH THỰC HIỆN

# Chạy kiểm định đối soát
specify audit <feature-name>
backspec audit <feature-name>

# Chế độ nghiêm ngặt (Strict mode - dừng nếu score < 85%)
specify audit <feature-name> --strict

3. KẾT QUẢ ĐẦU RA

Hệ thống tự động sinh file AUDIT_REPORT.md nằm trong thư mục .sdd/specs/<feature-name>/ thể hiện:

  • Fidelity Score (%)
  • Requirements Coverage
  • Codebase Conflict Alerts
  • Action Items cần điều chỉnh.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.