/ui-ux-pro-max:state-tracefrom ui-ux-pro-max
Trace và phân tích state machine rang cà phê (progStep). Từ serial debug log hoặc code, xác định luồng chuyển trạng thái, phát hiện bước bị kẹt, thiếu điều kiện thoát, hay vòng lặp vô hạn.
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.
Phân tích state machine trong include/Program.h (programScan() và các hàm liên quan).
Đọc include/Define.h và include/Program.h, liệt kê tất cả:
progStep states:
STP_DATA (0)
STP_COOL_DOWN (1)
STP_GAS (3)
STP_CHECK (4)
STP_CHARGE (5)
STP_TP (6)
STP_YELLOW (7)
STP_FCS (8)
STP_DEV (9)
STP_DROP (10)
STP_COOLING (11)
STP_ESCAPE (12)
STP_LOOP_1 (13)
STP_LOOP_2 (14)
Xác nhận không có số bị bỏ sót (2 bị skip?).
Với mỗi case STP_* trong programScan(), xác định:
Vẽ dạng:
[STP_CHARGE]
Entry condition : CHARGE_BTN_R == 1
Actions : BT_CHARGE_SAVE=Temperature_BT, chargeTimerEn=1, timeRoastEn=1
Exit condition : → STP_TP (ngay lập tức)
Deadlock risk : Không — thoát ngay
Kiểm tra các state có điều kiện thoát phụ thuộc nhiều yếu tố:
STP_COOL_DOWN: Chờ Temperature_BT <= chargeTemp_R_CV - turnGasPoint_R_CV
chargeTemp_R_CV = 0 → skip (OK)STP_CHECK: Chờ Temperature_BT trong range chargeTemp ± chTolerange
if(Temperature_BT > chargeTemp + chTolerange*5) → reset về STP_DATA ✓STP_TP: Chờ turning point
timeRoast > ulimitTPTime && BT <= BT_TP_PreSTP_LOOP_1/2:
Tìm các state dùng timer để tự động chuyển:
chargeTimerEn / chargeTimer → CHARGE valve tự đóng sau chargeDuration_RdropTimerEn / dropTimer → DROP valve tự đóngescapeTimerEn / escapeTimercoolTimerEn / coolTimerVới mỗi timer: xác nhận timer được reset đúng chỗ, không bị enable/disable nhầm.
Kiểm tra các state machine phụ:
coolStep (cooling sequence):
STP_COOLING, STP_ESCAPE_ON, STP_ESCAPE_OFFabStep (afterburner):
STP_ON_AB, STP_WAIT_AB, STP_DELAY_ABaLoaderStep (auto loader):
Xác nhận các state machine chạy song song (progStep, coolStep, abStep) không conflict:
gasPercent, airflowPercent)naviSourceGAS được đặt đúng trong từng state không?Nếu người dùng cung cấp serial log (chuỗi STEP_STRING), parse và trace:
RESET DATA → BT COOLS DOWN → WAITGAS → BT HEATUP → WAIT CHARGE → CATCH TP → CATCH YELLOW → ...
Xác định bước nào mất thời gian bất thường, bước nào bị repeat.
Đưa ra:
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./brandBrand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides./bug-reportPhân tích serial debug output từ máy rang để xác định nguyên nhân crash, freeze, hoặc hành vi sai. Nhận chuỗi log làm argument hoặc từ clipboard./clean-codePragmatic coding standards - concise, direct, no over-engineering, no unnecessary commentsnpx claudepluginhub tcl-da/coffee-roaster-auto-control --plugin ui-ux-pro-max