跳到主要内容
知仓学习社ZHICANG

pair-programming

Collaborative coding with enforced micro-steps and user-paced control.

不碰外部(只输出文字)无严重或高危命中notque/vexjoy-agent

它会碰到什么

扫了多少1 个文本文件,4 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Pair Programming Skill

Use Announce-Show-Wait-Apply-Verify when the user wants to review each change before it is applied. Any domain agent can execute. Stay in the interactive main session; a fork cannot conduct these user gates.

Instructions

Session Setup

  1. Read the request and relevant code.
  2. Show a numbered plan with one logical change per step.
  3. Wait for acknowledgment; incorporate requested additions, removals, or reordering.

Track current step, remaining steps, and speed. Announce each change as “Step N of ~M.”

Micro-Step Protocol (Per Change)

  1. Announce the change and reason in 1–2 sentences.
  2. Show the proposed diff or code block, including trivial changes. Default: 15 lines; hard cap: 50. Split larger changes into named sub-steps such as 3a, 3b, and 3c.
  3. Wait for an explicit control command.
  4. Apply only after ok, yes, or y.
  5. Verify with relevant checks and report the result in one sentence. Use verification-before-completion for check selection and evidence; keep project-required checks.

| Command | Action |

|---------|--------|

| ok / yes / y | Apply current step, then propose the next |

| no / n | Skip this step and propose an alternative |

| faster | Double step size, up to 50 lines; show any revised proposal and wait |

| slower | Halve step size, down to 5 lines; show any revised proposal and wait |

| skip | Skip current step and move to the next |

| plan | Show remaining steps |

| done | End pairing and run final verification |

Speed and navigation commands do not approve a code change. Split changes by logical unit as well as size; announce the split before showing its first part.

Speed Adjustment

Apply and acknowledge speed changes immediately: “Speed adjusted to ~N lines per step.”

| Setting | Lines per step | Trigger |

|---------|----------------|---------|

| Slowest | 5 | Repeated slower |

| Slow | 7 | slower from default |

| Default | 15 | Session start |

| Fast | 30 | faster from default |

| Fastest | 50 | Repeated faster |

Session End

When the user says done or all steps finish, run required final checks and relevant checks not already valid for the final state. Include a full suite when the project requires it or the changes warrant it. Report completed and skipped steps, changed files, check results, and unfinished work. Ending pairing does not complete skipped work.

Examples

For a Go CSV parser, a plan might cover the record struct, parser, error handling, tests, and integration. Show the plan and wait. Propose an 8-line CSVRecord struct, wait for ok, apply, and verify. Repeat for the parser.

After faster at the default speed, show up to 30 lines per step; slower then returns to 15. If the user ends after step 4 of 6, run relevant Go checks such as go vet and go test ./..., then report the two remaining steps with the results.

Error Handling

User Says "Just Do It" / Wants Autonomous Mode

An explicit request to finish autonomously changes the mode. Acknowledge it and continue the remaining authorized work without micro-step approvals. Ask only if the requested mode is unclear.

Verification Fails After a Step

Propose the fix as the next micro-step: announce, show, wait, apply, and recheck. Keep the interactive approval contract until the user changes mode.

Step Too Large to Fit Size Limit

Split into logical sub-steps within the current limit. Announce the split and seek approval for each sub-step.

References

  • [Micro-step controls](#micro-step-protocol-per-change)
  • [Speed settings](#speed-adjustment)

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 419
本站分层T2
该仓技能数122
原文件路径skills/process/pair-programming/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 122 个技能