pw-pair-programming
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesepw-pair-programming
pw-pair-programming
interact with the navigator using the pp.nu nushell script. uses pw protocol-first wrappers (pw exec) behind the scenes.
- the driver (you) must collaborate with the navigator in back-and-forth loops.
- the driver writes code and runs tools; the navigator steers design.
setup: requires cdp connection to a debug-enabled browser with an active navigator session.
使用pp.nu Nushell脚本与导航者交互。后台使用pw协议优先封装器(pw exec)。
- 驱动者(即你)必须与导航者进行来回协作。
- 驱动者负责编写代码和运行工具;导航者负责把控设计方向。
设置:需要连接到启用调试功能的浏览器的CDP连接,且该浏览器存在活跃的导航者会话。
invocation
调用方式
From a global skills directory:
nu -I ~/.claude/skills/pw-pair-programming/scripts -c "use pp.nu *; pp send 'Hello'"
从全局技能目录执行:
nu -I ~/.claude/skills/pw-pair-programming/scripts -c "use pp.nu *; pp send 'Hello'"
quickstart
快速开始
- Write a prompt preamble to a temp file.
- Run .
pp brief --preamble-file <file> ...<entries> --wait
- 将提示语前置内容写入临时文件。
- 运行 。
pp brief --preamble-file <file> ...<entries> --wait
commands
命令
pp send--filepp composepp briefpp attachpp pastepp newpp set-modelautoinstantthinkingpp waitpp get-responsepp historypp refreshpp downloadpp send--filepp composepp briefpp attachpp pastepp newpp set-modelautoinstantthinkingpp waitpp get-responsepp historypp refreshpp downloadentry formats
条目格式
- full file: or
src/main.rsfile:src/main.rs - line slice:
slice:path:start:end[:label]
- 完整文件:或
src/main.rsfile:src/main.rs - 行切片:
slice:path:start:end[:label]
notes
注意事项
- write preamble content to files instead of inline shell.
- when running inside nu -c, prefer list + splat () instead of bash-style line continuations.
...$entries
- 将前置内容写入文件,而非直接写在shell命令行中。
- 在nu -c中运行时,优先使用列表展开()而非bash风格的换行续行。
...$entries