Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
josiahsiegel avatar

Widgets State Security Distribution

  • 36 installs
  • 50 repo stars
  • Updated June 18, 2026
  • josiahsiegel/claude-plugin-marketplace

Helps with security tasks.

About

widgets-state-security-distribution is a Claude Code skill for security. It helps solo builders move faster with AI-assisted development.

  • widgets-state-security-distribution
  • Security
  • AI-coding skill

Widgets State Security Distribution by the numbers

  • 36 all-time installs (skills.sh)
  • Ranked #1,453 of 2,203 Security skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill widgets-state-security-distribution

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs36
repo stars50
Last updatedJune 18, 2026
Repositoryjosiahsiegel/claude-plugin-marketplace

What it does

Helps with security tasks.

Files

SKILL.mdMarkdownGitHub ↗

Widgets, State, Configuration, Security, and Distribution

Use this skill when a TUI needs product-level interaction patterns, robust application state, secure terminal handling, user customization, or shipping guidance.

Widget design principles

  • Every widget has state, focus rules, keyboard behavior, mouse behavior if supported, validation, accessibility fallback, and snapshot tests.
  • Keep interactions predictable: lists navigate, tables sort/filter/page, forms validate near fields, dialogs trap focus, command palettes search commands, and scrollbars indicate position without being required.
  • Virtualize large lists/tables/trees and keep viewport offset, selection, and expanded nodes in state.
  • For charts, progress bars, spinners, and dashboards, provide textual summaries and reduced-motion/no-animation modes.

State and event architecture

Prefer an explicit model-update-view or reducer architecture:

1. Model stores domain state and UI state. 2. Events/messages represent keys, mouse, paste, resize, timers, worker results, and errors. 3. Update transforms state and schedules side effects. 4. View renders from state and dimensions. 5. Effects run asynchronously and return messages.

This keeps rendering deterministic, makes tests cheap, and prevents background tasks from writing directly to the terminal.

Configuration and customization

  • Use XDG base directories on Unix-like systems where appropriate; use platform-native config/cache/state locations on Windows and macOS.
  • Allow keybinding remapping for advanced users and conflict-heavy environments such as tmux/Zellij.
  • Store themes as semantic roles, not raw widget-specific colors.
  • Validate config files strictly and show actionable errors in plain output if the TUI cannot start.

Terminal security

Terminal output is an interpreter. Sanitize untrusted text before writing it to a terminal or logs that may later be viewed in a terminal. Escape-sequence injection can change titles, write clipboard data, spoof prompts, hide text, or corrupt display state.

  • Strip or visibly escape control characters from untrusted data unless intentionally rendering them.
  • Treat pasted text as data, not commands.
  • Bound paste length and validate after paste completes.
  • Avoid automatic OSC 52 clipboard writes from untrusted content.
  • Make hyperlinks visible and avoid misleading link text.

Distribution rules

  • Document supported terminals and fallbacks.
  • Ship a --no-tui path for automation, accessibility, and incident recovery.
  • Package with platform conventions: static binaries where feasible, Homebrew/Scoop/Winget/MSI/packages as appropriate, shell completions, manpages, and checksums.
  • In containers, detect missing TTY and provide line-oriented behavior.
  • Ensure crash cleanup works in release builds, not just development.

Reference files

  • references/widget-patterns.md - Common terminal widgets, behavior contracts, and anti-patterns.
  • references/state-config-distribution-security.md - MVU state, async effects, config, packaging, and terminal security.

Related skills

Securityappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.