best-practices-streamdeck
Project-specific best practices for the Stream Deck control suite: icon format constraints, socket vs config boundaries, widget button lifecycle, page creation via build_page, ArangoDB fallback patterns, and NVIS palette compliance.
- License 许可
- MIT
- 最近更新
- 2026-06-13
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- best-practices-streamdeck
- license
- MIT
- composes
- [ "task-monitor" ]
- metadata
- { "defaults": { "cli": "typer", "logging": "loguru", "palette": "nvis (MIL-STD-3009)", "config_path": "~/.streamdeck_ui.json", "icon_format": "72x72 RGB PNG", "socket_path": "/tmp/streamdeck_ui.sock", "page_indexing": "0-9 static, 10+ dynamic" }, "hardware": "Stream Deck XL (32 buttons, 96x96 native, 72x72 rendered)" }
- provides
- [ "best-practices-streamdeck" ]
- triggers
- [ "best practices streamdeck", "stream deck", "streamdeck widget", "streamdeck button", "NVIS palette" ]
- description
- Project-specific best practices for the Stream Deck control suite: icon format constraints, socket vs config boundaries, widget button lifecycle, page creation via build_page, ArangoDB fallback patterns, and NVIS palette compliance.
02 资源文件 10
- 参考文档rules/_sections.md908 B
- 参考文档rules/arango-fallback.md2.2 KB
- 参考文档rules/hardware-background-color.md925 B
- 参考文档rules/hardware-icon-format.md1.4 KB
- 参考文档rules/nvis-palette.md2.1 KB
- 参考文档rules/page-creation-build-page.md2.1 KB
- 参考文档rules/socket-vs-config.md1.8 KB
- 参考文档rules/tools-and-skills.md2.4 KB
- 参考文档rules/widget-lifecycle.md5.2 KB
- 脚本sanity.sh722 B
03 SKILL.md 正文
Stream Deck Best Practices (Project Skill)
Curated rules for building and maintaining the Stream Deck control suite. Covers hardware constraints, service architecture, and the widget lifecycle.
Project Architecture
- streamdeck-ui: Qt app reading
~/.streamdeck_ui.json, rendering buttons - Socket API:
/tmp/streamdeck_ui.sockfor real-time updates (fast, no disk) - Config file:
~/.streamdeck_ui.jsonfor persistent state (slow, locked) - Widget services: background daemons rendering icons on schedule
- Context monitor: polls environment every 2s, switches pages via templates
- ArangoDB: memory graph for pages/buttons (optional, filesystem fallback)
When to Apply
Use this skill whenever you:
- Create or modify Stream Deck pages, buttons, or templates
- Build a new widget renderer or data source
- Write scripts that update the deck config
- Modify the socket API, context monitor, or page builder
- Work with icons, palettes, or the NVIS display layer
Categories (priority order)
- Hardware Constraints — icon format, button count, display limits
- Socket vs Config — when to use each, race condition avoidance
- Widget Lifecycle — self-updating buttons, render scripts, cache busting
- Page Management — creation, indexing, context rules, anticipation
- ArangoDB Integration — fallback patterns, collection conventions
- NVIS Palette — MIL-STD-3009 colors, font stack, rendering primitives
04 同仓库更多 Skills
best-practices-streamdeck
Project-specific best practices for the Stream Deck control suite: icon format constraints, socket vs config boundaries, widget button lifecycle, page creation via build_page, ArangoDB fallback patterns, and NVIS palette compliance.
best-practices-scillm
Error recovery and anti-patterns for scillm LLM proxy. Load this when scillm calls fail, timeout, or return unexpected results. Covers batch sizing, header requirements, model selection, and debugging workflow.
best-practices-rust
Repo-specific Rust best practices for agentic coding: thiserror + anyhow error handling, tokio async runtime, tracing for observability, clap for CLI, axum for HTTP, serde patterns, cargo workspace conventions, ownership and lifetimes, and idiomatic Rust 2024 edition patterns.
react-native-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
composition-patterns
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.