/ps-bash:ps-bash-browsefrom ps-bash
Build 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.
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.
… | browse keeps the original objects on its rows and offers actions on them. With a terminal on
stdin it opens a line-mode workbench (n/p move, s select, a action, q quit); redirected, it never
blocks and emits BrowseRow objects (index, selection, type, display text, OriginalObject).
ps | browse -List # rows, no UI (what agents and tests use)
ls | browse -Inspect 0
ls | browse -Select 0,2 -PassThru | Remove-Item -WhatIf # the original objects out
ls | browse -Select 0 -Action delete # destructive: preview only
ls | browse -Select 0 -Action delete -Force # runs it
ps | browse -Select 0 -Exec '$1 | Stop-Process' # gated: classifier sees Stop-Process; needs -Force
Bindings in actions and -Exec: $1/${1}/$_ the current object, $items the selection (or the
current one as a one-item array), $__browse_current/$__browse_items as stable names.
$approve = New-BrowseAction -Name approve -Description 'Approve PR' -Script {
param($Current, [object[]]$Items) foreach ($pr in $Items) { gh pr review $pr.Number --approve } }
$close = New-BrowseAction -Name close -Description 'Close PR' -Destructive -Script {
param($Current, [object[]]$Items) foreach ($pr in $Items) { gh pr close $pr.Number } }
Register-BrowseAdapter -Name pr -TypeNames 'MyApp.PullRequest' `
-DisplayProperties Number, Title, Author, State -Actions $approve, $close
PSTypeName = 'MyApp.PullRequest'; the first adapter whose TypeNames match an
object's PSTypeNames (or .NET type name) wins, and registered adapters beat the built-ins.Register-BrowseAdapter: it writes PsBash's own module scope. A bare
$script:BrowseAdapters += … from your module writes your scope and is never seen.-Destructive makes the action return a preview unless -Force. -Exec scripts are classified
too: Remove-Item, rm, del, Stop-Process, kill, Restart-Service, Set-Service need -Force.DefaultDisplayPropertySet, then public properties.Get-BrowseAdapter; remove: Unregister-BrowseAdapter.Worked example: examples/04-interactive-tui/PrWorkbench.psm1 in the ps-bash repo; spec docs/specs/browse.md.
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-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-hooksExtend the ps-bash shell: prompt and on-cd hooks (direnv/fnm style), ~/.psbashrc, custom ls providers for synthetic paths, complete -W word lists and flag completers. ps-bash 鉤子與擴展。 Use when: running code on every prompt or directory change, making ls list a virtual path (myfs:, an API), adding tab completion to a command, writing a .psbashrc./ps-bash-objectsOther plugins' skills for the same job