Pairing 标志

Pairing

组织
testdouble
pairing

Build work collaboratively in reviewable pieces, handing each piece back for review before starting the next, so the person stays in the lead and steers while the work happens instead of reviewing a finished result. Use when someone says to pair with them on something, asks to collaborate rather than direct, wants to review as it goes, or wants to guide the work piece by piece — on code, on a design decision, or on writing. For a test-first build it runs tdd, for restructuring it runs refactor, for an interface contract it runs design-an-api, and for plan work it runs iterative-plan-review or plan-implementation, each collaboratively; invoke any of those directly instead to run it straight through without pausing. Does not pace someone through code that already exists and builds nothing — use code-walkthrough. Does not explain, summarize, or research something instead of producing it — use code-overview or research.

概览

发布者testdouble
代码仓库han
技能名称pairing
星标数
320
复刻数
26
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 testdouble 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Pairing AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/testdouble/han/tree/main/han-core/skills/pairing
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/testdouble/han.git /tmp/han
mkdir -p .claude/skills
cp -r /tmp/han/han-core/skills/pairing .claude/skills/pairing
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Pairing,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Pairing。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Pairing 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Project Context

  • personal config directory: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"
  • project .han/config.md: !cat .han/config.md 2>/dev/null || echo ""
  • CLAUDE.md: !find . -maxdepth 1 -name "CLAUDE.md" -type f

As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.md, which governs precedence between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

The contract this skill runs on

Read collaborative-stop-rule.md before Step 4. It defines what a stop presents, when the pre-build ask fires, what makes a choice expensive to walk back, and what to do with the answer. The skills this one hands work to follow the same file, which is what makes a stop feel the same whoever performed it.

Two constraints from that file govern every step below and are repeated here because they are the ones most easily lost:

  • The pacing is the deliverable. Ending the turn at each stop is the product, not an interruption in it. Never continue past a stop to be helpful.
  • A stop hands over something to check, never a case for the work. Lead with what the person can verify. The reasoning goes last or goes unsaid until asked, BECAUSE a fluent explanation raises agreement without raising scrutiny, which is the failure this whole loop exists to prevent.

Pairing

Step 1: Resolve the Record Location

Resolve where the running feedback record will be written, using the output base directory from the configuration probed above. Absent any configuration, write it beside the work under .han/pairing/.

Name the file for this run so a second run in the same repository does not overwrite the first. State the path to the person in Step 4's plan, in one clause, BECAUSE a record they cannot find is not a record.

Read the file first if it already exists. A run resuming after an interrupted session inherits the record rather than starting a new one.

Step 2: Split the Request Into Concerns

Split the request into concerns before sorting any of it. A request holding two concerns and sorted as one produces one kind, one set of boundaries, and one uninterrupted run through both, which is how a build and the work that depends on that build end up in the same turn with neither of them reviewed.

A concern is one thing the person asked for, with its own deliverable. Two asks joined by "and", "and then", "then help me", or a numbered list are two concerns whenever they produce two things the person would check separately. An edit to a file and a reply to a question are two deliverables even when they are about the same lines of code.

Changing code and understanding or answering a question are always separate concerns. This one takes no judgment. Never bundle them, whatever their subject, however small either one is, and however plainly the second follows from the first, BECAUSE checking an edit means reading a diff and checking an answer means reading the answer. Bundled, the answer arrives before the edit it rests on has been verified, so a wrong edit yields a confident wrong answer and the two pass unreviewed together.

Do not split one deliverable into concerns. The steps inside a single deliverable are pieces, and Step 4's plan divides them. Two concerns exist when the person would check two different artifacts, not when one artifact takes several steps.

Concerns run in sequence and never interleave. The last piece of one concern is a stop like any other, and the next concern does not begin until the person responds.

When you cannot tell whether the request holds one concern or two, treat it as two and say so in the plan, where the person can merge them back. An extra stop costs one turn. A missing one costs the review this whole loop exists to get.

Step 3: Sort Each Concern

Apply this test to each concern separately, in order, and stop at the first match:

  1. Does a skill carrying the collaborative flag cover this work? Then it is skill-backed. The flagged skills are tdd for a test-first build, refactor for restructuring, design-an-api for an interface contract, iterative-plan-review for sharpening a plan, and plan-implementation for planning a build.
  2. Does the work produce a choice among options that commits the person to something? Then it is decision work.
  3. Does the work produce prose someone will read? Then it is prose work.
  4. Otherwise it is open-ended, and Step 4's plan supplies the boundaries with no rule behind them.

The order is the tie-break. A concern matching more than one kind sorts as the earliest match, so drafting a decision record sorts as decision work rather than prose work. Concerns sort independently, so one request routinely yields a skill-backed concern and a prose concern side by side.

Never guess the discipline for skill-backed work. A concern to build something that does not say whether to drive it from tests, restructure what is there, or sketch a shape first is answered by proposing an approach in Step 4, never by picking one silently. A single concern may span more than one approach.

When a concern is too vague to sort, ask once. Name what was ambiguous and offer candidate readings. If the answer still does not settle it, propose a plan against the most likely reading and say that is what you did. Never sort a concern you could not read.

When a concern asks to understand something rather than produce something, this skill is the wrong one for it. Say so and name where it goes: code-walkthrough for paced explanation of existing code, code-overview for a written overview, research for an open question. Do not sort it as open-ended and propose a plan to build things. When it is one concern among several, hand off that one and keep the rest in the plan rather than ending the run.

Step 4: Propose the Plan

Before any work starts, present a short plan. It names:

  • The concerns the request split into, in the order they will run, and which kind each one sorted into. Always state both BECAUSE the split sets where control comes back and the sort determines every boundary inside a concern, and they are the parts of the plan the person cannot correct if they cannot see them.
  • The pieces to be built inside each concern, and the reason for each boundary. No piece spans two concerns.
  • Which pieces carry a choice that is expensive to walk back, applying the test in the stop rule. Naming them here is what makes that call contestable while contesting it is still cheap.
  • Where the feedback record lives.

What counts as one piece depends on the kind that concern sorted into:

Kind of workOne piece is
Skill-backedWhatever that skill already treats as one unit
DecisionOne decision, with its context, the options weighed, and what it commits the person to
ProseOne rung of a fidelity ladder: the shape, then a rough draft, then the language
Open-endedWhatever this plan names

For prose, scale the ladder to the size of the work. Short work climbs the ladder once, whole. For longer work, agree the shape for the whole artifact first, then climb the remaining rungs section by section, naming the sections in this plan so they can be redirected. Sectioning only the later rungs keeps structural feedback ahead of surface feedback, which is the ordering the ladder exists for.

For skill-backed work the plan names the backing skill, the unit it stops at, and the reason — not the list of units. That skill builds its own list partway through its own run, so the list does not exist yet. Surface it at the first stop, where it can still be redirected.

When the plan sequences more than one backing skill, order them so each skill's own preconditions hold when its turn arrives. refactor will not run alongside an unfinished test-driven loop, so a plan that sequences both closes the first before starting the second.

Then wait. The person accepts the plan, changes it, or replaces it.

Step 5: Run the Loop

Repeat until the plan is finished or the person ends it. The loop walks the concerns in the order the plan named, and the pieces inside each one in the order the plan named.

  1. If the plan marked this piece expensive to walk back, ask first, in a turn of its own. The ask opens this piece's turn, after the person has responded to the previous stop, or to the plan when this is the first piece. Name the dimension the choice turns on, offer no candidate answers, and end the turn. Never append the ask to that stop or plan, BECAUSE a reply to it is a reply to that alone and answers nothing about this piece.

    When the reply arrives, write it into the record in the person's words, against this ask, then build. A declined answer is a complete one, and a question about the ask holds it open: answer it and end the turn again. The reply is not routed through Step 6, which handles replies to a stop.

    When an earlier turn already bundled the ask into a stop or the plan and the reply spoke only to that, the ask was never posed on its own: present it now, on its own, before building.

  2. Build one piece.

    For skill-backed work, invoke the backing skill with the collaborative argument set, and forward the person's request and any constraints through unchanged. That skill runs its own job and stops at the boundary it already has. After the invocation returns, continue this loop explicitly BECAUSE the moment after a sub-skill call is where an orchestration most often stops and treats the sub-skill's output as its final answer.

    When a backing skill is not available, name it and offer the choice between the open-ended path and installing the plugin that carries it. Never substitute silently — hand-rolling a refactoring skips the passing-test gate that skill exists to enforce.

    For every other kind, build the piece yourself.

  3. Present the stop, in the shape the stop rule specifies: position in the plan, what was built, what can be checked, what changed, and one line saying the reasoning is available for the asking.

    When the piece closes a concern, say so in the position line and name the concern that comes next. That tells the person the next response starts different work, which is the moment their review matters most. That is a report about what comes next, never a question about it.

  4. End the turn. Nothing further is built until the person responds. Starting the next concern is not an exception, however directly it follows from the one that just closed.

Step 6: Act on the Response

Write the response into the record, in the person's words and against the stop or ask it answers, before acting on it. When a recorded entry shapes this piece, name which entry it was.

Then route by what the feedback touches, per the stop rule:

  • The piece in hand. Fix it within that piece and show it again, naming the correction and what it touched. That re-show is a stop, so return to Step 5's fourth instruction and wait. Do not return to the pre-build ask; this piece is already built.
  • What comes next. Carry it into the next piece and return to the top of Step 5.
  • Work outside the piece in hand. Name that reading before acting on it, then offer three ways out: accept a revised plan, change it, or decline the reopening so the feedback is recorded as scoped to later work and the agreed plan continues.

A question holds the person's place; it never advances the work. Answer it and stop again at the same place.

When the person asks for more than one piece at a time, honor it as asked, present the pieces together, and return to the normal pace at the following stop without being asked to.

When the person says to finish without stopping, acknowledge it in the same turn and name what will now go unreviewed, then continue from the current plan and report at the end.

Step 7: Close

Report what was built, what the person's feedback changed, anything the plan named but did not reach, the state of any work a backing skill left mid-cycle, and where the feedback record was written.

Ending is the person's call throughout. Nothing here computes a stopping point, BECAUSE work being built produces no countable signal to compute over.

常见问题

Pairing AI 技能有什么作用?

Build work collaboratively in reviewable pieces, handing each piece back for review before starting the next, so the person stays in the lead and steers while the work happens instead of reviewing a finished result. Use when someone says to pair with them on something, asks to collaborate rather than direct, wants to review as it goes, or wants to guide the work piece by piece — on code, on a design decision, or on writing. For a test-first build it runs tdd, for restructuring it runs refactor, for an interface contract it runs design-an-api, and for plan work it runs iterative-plan-review...

为什么在 TypingMind 中使用 Pairing?

因为您只需安装一次,就能搭配任何模型使用。Pairing 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Pairing?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/testdouble/han/tree/main/han-core/skills/pairing。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Pairing?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Pairing 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Pairing 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Pairing AI 技能免费吗?

是的。testdouble 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇