/ui-ux-pro-max:define-auditfrom ui-ux-pro-max
Kiểm tra Define.h để tìm biến không dùng, biến thiếu cặp _CP, magic numbers, và dead variables tích lũy theo thời gian. Define.h có ~2000 dòng nên cần audit định kỳ.
Ships in ui-ux-pro-max. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audit file include/Define.h cho dự án OTL-06ALS.
Đọc include/Define.h toàn bộ (dùng offset/limit 200 dòng mỗi lần).
Lập danh sách:
#define constantsBUZZ_ON, CH1_RL_ON, ...)Naming convention: mọi biến đọc từ HMI đều có cặp _R + _R_CP.
Tìm tất cả biến có tên *_R (không phải *_R_CP, *_R_CV, *_W).
Với mỗi foo_R, kiểm tra xem foo_R_CP có được khai báo không.
Báo cáo các _R biến thiếu _R_CP tương ứng — đây thường là lỗi copy-paste.
Search tên từng biến trong toàn bộ source (trừ chỗ khai báo):
Grep pattern: tên_biến
Files: include/*.h, src/*.cpp
Biến không xuất hiện ở bất kỳ file nào ngoài Define.h → dead variable.
Ưu tiên kiểm tra:
damper_*, PLC_*, old_*)bool flag không bao giờ được setTìm các #define có giá trị số không có comment giải thích:
#define SOME_W 42)#define TIMER_X 300)Kiểm tra các giá trị có ý nghĩa vật lý (°C, Pa, ms) nhưng không có đơn vị trong tên hoặc comment.
Các mảng SD size 1500 là ~15 KB RAM. Kiểm tra:
sdBT[1500], sdET[1500], sdAirflow[1500], sdGas[1500], sdDrum[1500]sdRorBT[1500], sdVacuumSetFlag[1500], sdVacuumSetpoint[1500]Tất cả 8 mảng có được dùng không? Nếu sdVacuumSetFlag hoặc sdVacuumSetpoint chỉ dùng một phần, tính RAM lãng phí.
Nếu rang tối đa 20 phút (1200 giây), size 1500 thừa 300 entries → có thể giảm xuống 1200 để tiết kiệm ~2.4 KB RAM.
Đọc phần đầu Define.h (thường là ~200 dòng comment cũ).
Xác định:
Tìm các #define bị định nghĩa 2 lần với giá trị khác nhau (compiler warning thường bỏ qua trên Arduino).
📋 DEFINE.H AUDIT
📏 Thống kê:
- Tổng biến khai báo: X
- Tổng #define: X
- Dòng bị comment out: X / tổng X dòng
🐛 Vấn đề:
🔴 Critical (X):
- foo_R thiếu foo_R_CP tại dòng X
🟡 Warning (X):
- biến dead: bar, baz, ...
- magic number: #define X 42 (không có comment)
🟢 Info (X):
- SD arrays có thể giảm từ 1500 → 1200 (tiết kiệm X KB)
🗑 Đề xuất xóa:
- Phần comment out dòng 1–199 (archive, không cần thiết)
- Biến dead: [danh sách]
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
40 skills in this plugin
/artisan-rorToàn bộ cách Artisan tính RoR (tốc độ tăng nhiệt) và lọc nhiệt độ — 4 thuật toán RoR (arrayRoR / polyRoR / Savitzky-Golay / decay), thứ tự áp bộ lọc, ý nghĩa từng ô trong hộp Curves → RoR và Curves → Filters, bảng tham số mặc định kèm quy đổi UI↔nội bộ, và đối chiếu với firmware OTL + tools/roast_derive.py. Dùng skill này bất cứ khi nào nói tới "RoR", "Delta BT", "ΔBT", "tốc độ tăng nhiệt", "delta span", "smoothing", "làm mượt đường rang", "lọc nhiễu cảm biến", "drop spikes", "median filter", "Savitzky-Golay", "polyfit RoR", "projection nhiệt", "RoR sao khác Artisan", "RoR giật/nhiễu", "chỉnh mượt đường delta", hay khi cần chép/đối chiếu công thức RoR của Artisan sang firmware/app OTL — kể cả khi không nhắc chữ Artisan./banner-designDesign banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills./brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.npx claudepluginhub tcl-da/coffee-roaster-auto-control --plugin ui-ux-pro-max