/ps-bash:ps-bash-styled-outputfrom ps-bash
Style ps-bash object output with CSS through Strata: Format-Styled (static ANSI), Show-Styled (interactive viewer with buttons and expandable rows), theme files, PSBASH_DEFAULT_FORMAT. ps-bash CSS 樣式輸出。 Use when: coloring or theming objects by kind/class, a custom .css/.pcss theme, making styled output the default, Format-Styled is not found.
Ships in ps-bash. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Check first: Get-Command Format-Styled. Format-Styled/Show-Styled exist only in builds made
with the Strata packages (UseStrata, from the sibling strata repo's local feed). Release and CI
builds are made without them; then fall back to Format-Table or ANSI in BashText.
Get-Process | Format-Styled 'Process { color: cyan }' -Property Name, Id # inline CSS
ls | Format-Styled ls # a built-in sheet by name
Get-Process | Select-Object *, @{ n = 'class'; e = { if ($_.CPU -gt 50) { 'busy' } } } |
Format-Styled ./procs.css -Property Name, Id, CPU # class from a property
Get-Process | Show-Styled procsvc # interactive: ↑↓/jk move, Enter expands, q quits
-Css (aliases -Style, -Stylesheet; position 0, optional) takes inline CSS (anything with {
or a newline), a file path, or a sheet name. Omitted, the default sheet applies.
Kind: the object's type name without namespace (FileInfo, Process, LsEntry)..class: words from the object's class property. #id: its Id, else Name.:focused, :expanded (interactive viewer); Button chrome; command: key bindings.color (16 ANSI names or #rrggbb), background, font-weight, font-style,
text-decoration, text-align, overflow, grid/flex layout.Built-in sheets: default ls fs ps procsvc git net table list object error av. A file with a
built-in's name in $PSBASH_STYLE_PATH, ~/.config/ps-bash/styles/ or ~/.psbash/styles/ appends
to it (later rules win). Example theme: examples/03-styled-output/custom-theme.css.
Format-Styled renders one ANSI string and works everywhere (-c, pipes, files). Show-Styled
needs the host to own a terminal (the interactive REPL); redirected, it prints a one-line summary.
PSBASH_DEFAULT_FORMAT=styled renders all PowerShell object output with Format-Styled;
interactive uses Show-Styled when a terminal is present, else the static form. It affects only
objects that would go to Out-String: ps-bash's own BashText output streams unchanged, and any
failure falls back to stock formatting.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub standardbeagle/standardbeagle-tools --plugin ps-bash7 skills in this plugin
/ps-bash-browseBuild object workbenches on ps-bash's browse: adapters keyed by type name, display columns, actions with a destructive-preview gate, scripted -List/-Select/-Action/-Exec. ps-bash browse 物件工作台。 Use when: an interactive picker or TUI over objects from a .psm1, adding actions for a PSTypeName, scripting browse non-interactively from an agent./ps-bash-embedHost ps-bash in your own .NET app: PsBash.Core NuGet, BashTranspiler.Transpile, importing the embedded version-matched module, keeping objects for object cmdlets, IHostTerminal. ps-bash 嵌入 .NET 應用。 Use when: a GUI, daemon or agent tool runs bash in-process, transpiling bash to PowerShell, vim/less hang or say TERM not set in an embedding./ps-bash-hooksOther plugins' skills for the same job