.agent/skills/screen-structure-checker/SKILL.md
Skill kiểm tra cấu trúc thư mục screens theo kiến trúc quản lý tập trung. Sử dụng khi cần (1) audit cấu trúc screen mới tạo, (2) kiểm tra toàn bộ screens trong dự án, (3) tìm các vi phạm naming convention, (4) phát hiện file cần refactor do quá lớn.
npx skillsauth add vuthuonghai-steve/KLTN-By_Thuong_Hai-Steve screen-structure-checkerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Skill này kiểm tra cấu trúc thư mục của các screen components để đảm bảo tuân thủ kiến trúc quản lý tập trung.
Skill này nên được trigger khi:
Chạy script với đường dẫn đến thư mục screen:
python3 scripts/check_structure.py /path/to/screens/ScreenName
Output mẫu:
📊 Screen Structure Report: home-screen
========================================
✅ PASSED (4/6 rules)
├─ ✅ Has index.tsx or main component
├─ ✅ Has components/ directory
├─ ✅ Has hooks/ directory
├─ ⚠️ Missing types/ directory
├─ ✅ Correct naming convention
└─ ⚠️ 2 files exceed 200 lines
🔧 Recommendations:
1. Create types/ directory for TypeScript interfaces
2. Refactor index.tsx (476 lines) - consider splitting
python3 scripts/check_structure.py /path/to/screens --all
python3 scripts/check_structure.py /path/to/screens/ScreenName --json
| Rule | Mô tả | Severity |
|------|-------|----------|
| has_main_component | Có index.tsx hoặc {ScreenName}.tsx | ❌ Error |
| has_components_dir | Có thư mục components/ | ⚠️ Warning |
| has_hooks_dir | Có thư mục hooks/ | ⚠️ Warning |
| has_types_dir | Có thư mục types/ | 💡 Info |
| naming_convention | File/folder đúng convention | ❌ Error |
| file_size_limit | Không có file > 200 lines | ⚠️ Warning |
| barrel_exports | Có index.ts trong sub-dirs | 💡 Info |
Tham khảo chi tiết tại references/architecture-rules.md.
{ScreenName}/
├── index.tsx # Component chính (BẮT BUỘC)
├── components/ # Sub-components
│ ├── cards/
│ ├── sections/
│ └── index.ts # Barrel export
├── hooks/ # Custom hooks
│ ├── useScreenData.ts
│ └── index.ts
├── types/ # TypeScript types
├── utils/ # Helper functions
├── constants/ # Constants
└── README.md # Documentation
Skill này hoạt động tốt với:
/implement-workflow: Verify screen mới tạo đúng cấu trúc/ultra-think: Phân tích chi tiết các vi phạm/ui-ux-pro-max: Đảm bảo components được tổ chức đúngtools
Automates end-to-end drawing of UI screens in Pencil canvas from module spec files. Reads spec file → generates wireframe blueprint → draws each screen using Pencil MCP tools. Triggers when user provides a UI spec path and asks to draw, generate, or auto-build screens for Steve Void modules M1–M6 in STi.pen.
testing
Extracts UI Screen Specs by analyzing Schema and Diagrams. Use when you need to bridge database logic and flow diagrams into intermediate UI component specifications for a given module. Trigger when user says "analyze UI for module X", "generate ui spec", "phân tích UI module", or invokes "ui-architecture-analyst --module M[X]".
development
Giải thích lỗi TypeScript một cách dễ hiểu bằng tiếng Việt. Sử dụng khi gặp lỗi type, generic, inference, hoặc bất kỳ lỗi TS nào cần được giải thích rõ ràng.
development
Skill phan tach yeu cau/tinh nang thanh cac phase, task va subtask cu the. Tao bo tai lieu planning clean, khong chua code mau, tap trung mo ta logic va nghiep vu. Su dung khi: (1) nhan yeu cau tinh nang moi can lap ke hoach, (2) co tai lieu nghien cuu can chuyen thanh task plan, (3) nguoi dung yeu cau phan tach cong viec, (4) can tao roadmap trien khai cho du an/tinh nang. Trigger: /task-planner, /plan-tasks, "phan tach task", "lap ke hoach", "tao plan", "chia phase".