mcpField
P
powershell-ui-architect

powershell-ui-architect

github.com/404kidwizDevelopment108 installs
Repository

About powershell-ui-architect

PowerShell UI Architect is a skill for building graphical and terminal interfaces with PowerShell, aimed at developers creating script interfaces and interactive admin tools. It covers WinForms, WPF, and console-based TUI, with implementation workflows and design practices.

Key features

  1. 01Design WinForms interfaces
  2. 02Build WPF and XAML interfaces
  3. 03Create TUIs with Terminal.Gui
  4. 04Add interactive dialogs to scripts
  5. 05Separate UI code from logic

Use cases

  1. 01Build a GUI for a PowerShell script
  2. 02Create interactive administration tools
  3. 03Add input dialogs to automation scripts
  4. 04Design progress displays for long operations

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill powershell-ui-architect

After installing, type/powershell-ui-architectin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
gui_patterns.md
scripts/
build_wpf.ps1
create_winforms.ps1
design_tui.ps1
ui_architect_wrapper.ts

Details

From the project README

PowerShell UI Architect

Purpose

Provides expertise in building graphical user interfaces (GUI) and terminal user interfaces (TUI) with PowerShell. Specializes in WinForms, WPF, and console-based TUI frameworks for creating user-friendly PowerShell tools.

When to Use

  • Building PowerShell tools with GUI
  • Creating WinForms applications
  • Developing WPF interfaces for scripts
  • Building terminal user interfaces (TUI)
  • Adding dialogs to automation scripts
  • Creating interactive admin tools
  • Building configuration wizards
  • Implementing progress displays

Quick Start

Invoke this skill when:

  • Creating GUIs for PowerShell scripts
  • Building WinForms or WPF interfaces
  • Developing terminal-based UIs
  • Adding interactive dialogs to tools
  • Creating admin tool interfaces

Do NOT invoke when:

  • Cross-platform CLI tools → use /cli-developer
  • PowerShell module design → use /powershell-module-architect
  • Web interfaces → use /frontend-design
  • Windows app development (non-PS) → use /windows-app-developer

Decision Framework

UI Type Needed?
├── Simple Dialog
│   └── WinForms MessageBox / InputBox
├── Full Windows App
│   ├── Simple layout → WinForms
│   └── Rich UI → WPF with XAML
├── Console/Terminal
│   ├── Simple menu → Write-Host + Read-Host
│   └── Rich TUI → Terminal.Gui / PSReadLine
└── Cross-Platform
    └── Terminal-based only

Core Workflows

1. WinForms Application
  1. Add System.Windows.Forms assembly
  2. Create Form object
  3. Add controls (buttons, text boxes)
  4. Wire up event handlers
  5. Configure layout
  6. Show form with ShowDialog()
2. WPF Interface
  1. Define XAML layout
  2. Load XAML in PowerShell
  3. Get control references
  4. Add event handlers
  5. Implement logic
  6. Display window
3. TUI with Terminal.Gui
  1. Install Terminal.Gui module
  2. Initialize application
  3. Create window and views
  4. Add controls (buttons, lists, text)
  5. Handle events
  6. Run main loop

Best Practices

  • Keep UI code separate from logic
  • Use XAML for complex WPF layouts
  • Handle errors gracefully with user feedback
  • Provide progress indication for long operations
  • Test on target Windows versions
  • Use appropriate UI for audience (GUI vs TUI)

Anti-Patterns

Anti-PatternProblemCorrect Approach
UI logic mixed with business logicHard to maintainSeparate concerns
Blocking UI threadFrozen interfaceUse runspaces/jobs
No input validationCrashes, bad dataValidate before use
Hardcoded sizesScaling issuesUse anchoring/docking
No error messagesConfused usersFriendly error dialogs

Comments

Markdown supported