Agent Skill cho Cursor – hướng dẫn AI viết GUI Python với CustomTkinter.
.cursor/skills/customtkinter/
├── SKILL.md # Hướng dẫn chính, quick start, quy tắc
├── reference.md # API: widgets, windows, themes, packaging
└── examples.md # Mẫu code: app, form, tabview, menu, candlestick chart
- SKILL.md: Quick start, quy tắc (CTk thay Tk, mainloop, Toplevel), theme, màu sắc
- reference.md: Bảng API 16 widgets, CTkImage, appearance mode, PyInstaller
- examples.md: 11 mẫu – app cơ bản, form, Toplevel, Tabview, ScrollableFrame, theme, InputDialog, Menu (tkinter + CTkMenuBarPlus), Candlestick chart
Skill tự kích hoạt khi user yêu cầu GUI Python, CustomTkinter, CTk hoặc giao diện desktop hiện đại.
- CustomTkinter:
pip install customtkinter - Một số ví dụ cần thêm:
CTkMenuBarPlus,matplotlib,mplfinance,pandas