pw-pair-programming

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

pw-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

快速开始

  1. Write a prompt preamble to a temp file.
  2. Run
    pp brief --preamble-file <file> ...<entries> --wait
    .
  1. 将提示语前置内容写入临时文件。
  2. 运行
    pp brief --preamble-file <file> ...<entries> --wait

commands

命令

pp send
send message (
--file
supported)
pp compose
build message from preamble + context entries
pp brief
compose + send
pp attach
attach files/text
pp paste
paste inline text
pp new
start fresh conversation
pp set-model
set mode (
auto
|
instant
|
thinking
)
pp wait
wait for response
pp get-response
fetch latest response
pp history
transcript
pp refresh
reload UI
pp download
download artifacts
pp send
发送消息(支持
--file
参数)
pp compose
基于前置内容 + 上下文条目构建消息
pp brief
构建并发送消息
pp attach
附加文件/文本
pp paste
粘贴内联文本
pp new
开启新会话
pp set-model
设置模式(
auto
|
instant
|
thinking
pp wait
等待响应
pp get-response
获取最新响应
pp history
查看会话记录
pp refresh
重新加载UI
pp download
下载工件

entry formats

条目格式

  • full file:
    src/main.rs
    or
    file:src/main.rs
  • line slice:
    slice:path:start:end[:label]
  • 完整文件:
    src/main.rs
    file: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 (
    ...$entries
    ) instead of bash-style line continuations.
  • 将前置内容写入文件,而非直接写在shell命令行中。
  • 在nu -c中运行时,优先使用列表展开(
    ...$entries
    )而非bash风格的换行续行。