pexpect-cli

Installation
SKILL.md

pexpect-cli

Use the pexpect_start, pexpect_exec, pexpect_stop, and pexpect_list tools for all pexpect operations. The pexpect_exec tool description contains the full API reference — this skill teaches the workflow for effective interactive automation.

Workflow

1. Start a named session

Always name sessions for clarity:

pexpect_start({ name: "ssh-prod" })

Save the returned session ID — you need it for every subsequent call.

2. Spawn the target process first

The first pexpect_exec call should spawn the process and wait for the initial prompt:

Installs
1
First Seen
Mar 31, 2026