一键导入
termstory-tui
Design, implement, and debug the Textual-based UI for TermStory, balancing high-density console philosophy with modern reactive rendering.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design, implement, and debug the Textual-based UI for TermStory, balancing high-density console philosophy with modern reactive rendering.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | termstory-tui |
| description | Design, implement, and debug the Textual-based UI for TermStory, balancing high-density console philosophy with modern reactive rendering. |
Welcome to the TermStory TUI Skill. The TermStory TUI is built using Textual and orchestrates the complex visual interaction layer of the developer memory engine. This guide synthesizes extreme structural minimalism (density) with modern, progressive UX capabilities.
Terminal real estate is precious. Every view must optimize for immediate developer recognition without cognitive fatigue or visual clutter.
rich.panel.Panel, double borders, nested boxes, and bulky padded containers.├─, └─, •).margin: 0; and padding: 0; by default.The primary application dashboard strictly adheres to a fixed proportional layout:
HistoryTree explorer. Hide the redundant root node (Timeline Explorer) via constructor arguments to maximize horizontal space.DetailsCanvas (scrollable narrative, chronicle, and detail area).StatsHeader at the top for activity heatmaps and active streaks. Center keyboard shortcuts in the Footer.While maintaining ultra-minimalist structures, leverage modern, GPU-accelerated terminal features to enrich the experience asynchronously.
tooltip properties extensively for secondary information (e.g., full paths, timestamps) instead of persistently printing them on screen.Collapsible components rather than nested borders to maintain a flat visual hierarchy.j/k navigation, Enter to expand, ? for help, Esc to escape scope).pbcopy/xclip/clip, ensuring shortcut c works reliably even without OSC 52 support.Never block the main UI thread. Textual's reactivity depends on the event loop remaining entirely free.
@work(thread=True, exclusive=True). The exclusive=True flag is mandatory; it acts as a LIFO-style debounce, preventing thread-pool starvation from rapid arrow-key scrolling.BEGIN IMMEDIATE transactions and INSERT OR IGNORE in all concurrent background database operations to eliminate SQLite Upgrade Deadlocks.LoadingIndicator instead of modal popups. Set a secondary wall-clock timeout circuit breaker for all AI operations.Standard print() statements will corrupt the TUI. Debugging must be performed through Textual's native developer tools.
textual run --dev termstory.cli ui
textual console
from textual import log; log("Debug context").DetailsCanvas.0 sessions are detected.