AGENT SKILL

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

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.sock for real-time updates (fast, no disk)
  • Config file: ~/.streamdeck_ui.json for 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)

  1. Hardware Constraints — icon format, button count, display limits
  2. Socket vs Config — when to use each, race condition avoidance
  3. Widget Lifecycle — self-updating buttons, render scripts, cache busting
  4. Page Management — creation, indexing, context rules, anticipation
  5. ArangoDB Integration — fallback patterns, collection conventions
  6. NVIS Palette — MIL-STD-3009 colors, font stack, rendering primitives

04 同仓库更多 Skills

cateyephotos
cateyephotos/agent-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.

★ 0
cateyephotos
cateyephotos/agent-skills

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.

★ 0
cateyephotos
cateyephotos/agent-skills

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.

★ 0
cateyephotos
cateyephotos/agent-skills

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.

★ 0
cateyephotos
cateyephotos/agent-skills

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.

★ 0
cateyephotos
cateyephotos/agent-skills

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.

★ 0