speckit.checkerlisted
Install: claude install-skill wedabro/bro-skills
## 🎯 Mission
Quét codebase phát hiện vi phạm coding standards, security issues, performance anti-patterns.
**PHẢI chạy actual commands** — không chỉ scan bằng mắt.
## 📥 Input
- Source code (toà n bộ `src/`, `app/`, `pages/`)
- `.agent/memory/constitution.md` (coding standards)
- `Dockerfile`, `docker-compose*.yml`
## 📋 Protocol
### Phase 1: TypeScript Compile Check (CRITICAL)
Äây là bước quan trá»ng nhất, PHẢI chạy trước má»i deploy:
```bash
# Trong Docker container hoặc local:
docker compose exec <service> npx tsc --noEmit
# Hoặc build thá»:
docker compose build 2>&1 | grep -i "error\|fail"
```
- Bắt: type mismatch, missing props, sai tên thuá»™c tÃnh, import lá»—i
- Má»i lá»—i TS Ä‘á»u là 🔴 CRITICAL
### Phase 2: Dockerfile & Docker Compose Lint
```bash
# Kiểm tra má»i COPY source tồn tại
# Kiểm tra docker compose syntax:
docker compose -f docker-compose*.yml config --quiet
# Kiểm tra volume shadowing (CẤM dùng volumes cho production):
grep -A 5 "volumes:" docker-compose.prod.yml # Phải KHÔNG có `. :/app`
```
- Volume mount `- .:/app` trong production → 🔴 CRITICAL
- COPY path không tồn tại → 🔴 CRITICAL
- Port ngoà i 8900-8999 → 🟡 WARNING
### Phase 3: ENV Compliance
```bash
# Tìm hard-coded URLs/tokens:
grep -rn "http://localhost\|http://127.0.0.1\|https://" apps/*/src/ --include="*.ts" --include="*.tsx" | grep -v "node_modules\|.next\|schema.org"
# Tìm default text fal