Logo de Pair

Pair

Communauté
KrishP147
pair

Run one task (issue number or free text) in an isolated git worktree via a manager subagent that owns its implementer and retries; you push and open the PR at the end. Use for "implement issue N", "pair on this", or one task on any repo, forks included.

Présentation

ÉditeurKrishP147
Dépôtskills
Nom de la compétencepair
Étoiles
37
Forks
1
Fichiers inclus
1
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont en simple Markdown, et non en code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • 1 fichiers inclus

    Des scripts, des modèles de documents et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par KrishP147 sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Pair dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Collez l’URL du dossier de la compétence indiquée ci-dessous, puis confirmez.
    https://github.com/KrishP147/skills/tree/master/pair
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter → Via URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/KrishP147/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/pair .claude/skills/pair
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Pair dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Pair dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, Pair n’est pas lié au modèle pour lequel cette compétence a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

You run one task through a manager subagent. Neither you nor the agents implement in your context; you are the only one who touches the remote.

Flags: --no-worktree (new branch in the current checkout), --push (push + PR without asking), --model (implementer model; default: by size, the manager agent's step 3).

1. Resolve

  • Target repo per the next skill's BOARD.md, Target repo section (path in §2): -R <o/r> on every gh call. Number → gh issue view <n> -R <o/r> (on a fork, the parent's issue is fine to read). Text → write a 3–6 item acceptance checklist.
  • Repo facts: default branch, branch prefix (user's CLAUDE.md, else feat), test command, CONTRIBUTING.md / AGENTS.md.
  • Fork (upstream remote): reading is fine, so git fetch upstream, fast-forward default to upstream/<default>, then confirm every file or symbol the issue names still exists. Put anything missing in the brief.

2. Isolate

origin a relative path (git remote get-url origin has no scheme://, host:, leading / or drive letter, e.g. ../origin.git): git resolves it from each worktree's own root, so fetch and push fail inside a worktree. Make it absolute first, from the main checkout: Git Bash or mac/linux git -C "<main>" remote set-url origin "$(cd "<main>" && cd "<url>" && pwd)"; PowerShell git -C "<main>" remote set-url origin (Resolve-Path (Join-Path "<main>" "<url>")).Path. Same target, and remotes are shared by every worktree, so this one change covers them all; tell the user the old and new URL.

slug = issue-<n>-<kebab-title>   (or ≤6 kebab words of the task)
git worktree add ../_worktrees/<repo>-<slug> -b <prefix>/<slug> <default>

This is the one branch rule; a planner brief's Branch follows it, and when a brief names one, use it verbatim (<slug> = its part after <prefix>/).

--no-worktree: git switch -c <prefix>/<slug> <default>. Existing worktree or branch → reuse it and say so.

Deps (node_modules, .venv): link each from the main checkout, paths quoted (shown for .venv). Windows: link only when both paths are absolute; an empty one puts the junction at the drive root (C:\.venv).

  • Windows, Git Bash (cygpath builds the paths; without MSYS_NO_PATHCONV MSYS rewrites /J into a path):
    w=$(cygpath -wa "<wt>"); m=$(cygpath -wa "<main>")
    if [[ $w == [A-Za-z]:'\'?* && $m == [A-Za-z]:'\'?* ]]; then MSYS_NO_PATHCONV=1 cmd /c mklink /J "$w\.venv" "$m\.venv"; else echo "STOP: path not absolute: '$w' '$m'"; fi
  • Windows, PowerShell: if ("<wt>" -match '^[A-Za-z]:\\.' -and "<main>" -match '^[A-Za-z]:\\.') { cmd /c mklink /J "<wt>\.venv" "<main>\.venv" } else { "STOP: path not absolute" }.
  • mac/linux: ln -s "<main>/.venv" "<wt>/.venv".

Issue number on a board, worktree/branch not reused → (fork: only after the target-repo answer) move it to In Progress and comment "Started on branch <branch>" (the next skill's BOARD.md: ~/.claude/skills/next/ or, as the plugin, kanban/next/). Board errors never block the task.

3. Delegate

One blocking call, subagent_type="manager" (or "krish:manager" when installed as the plugin; never fork: it ignores the model and can't nest):

working directory: <absolute worktree path>
task: <#n: title> + acceptance checklist
key files (verified): …   missing/moved: …
rules: prefix=<p>, protected=<default>, test cmd=<cmd>, commit style=<…>, read <AGENTS.md>
implementer model: <--model or "by size">
decisions: <ask | assume>; first A-id: A-<k> (next after the highest A-<number> in main's register)
register header: <main's register header row, verbatim; none → the default in TEARDOWN.md, Register rows>; each A-n is one row in that format
max_rounds: 3
never push, merge, or open a PR.

Leave the worktree alone while it runs.

4. On return

  1. INTERIM report, or one missing the Branch, Tests or Rounds section (a placeholder, a one-liner) → not a result. INTERIM: wait for the next handback. Otherwise ask the manager once (SendMessage) for its full report; still missing → rerun from §3 with a fresh manager.
  2. Show the report verbatim.
  3. Thin report or risky change → rerun the tests yourself. One-line fixes: commit them.
  4. Unfinished (skilleddocs/HANDOFF.md, or the SHA that last held it) → say what's left; offer another round from it.
  5. Before any push: git -C <worktree> diff --name-only <default>...HEAD lists no skilleddocs/HANDOFF.md, nothing in the handoff folder (AGENTS.md/CLAUDE.md's, else skilleddocs/handoffs/) in commit mode, and nothing under skilleddocs/ or that folder when untracked (TRACKING.md). A hit → remove it in a commit.
  6. --push or the user says go:
    git -C <worktree> push -u origin <branch>
    gh pr create -R <o/r> --head <origin-owner>:<branch> --title "<title>" --body "<summary>\n\nCloses #<n>"
    <o/r> = the PR's base: on a fork, ask fork or parent first; the parent only on an explicit yes naming it. Never merge.
  7. Review comments later → step 3 again, comments as the task, same worktree.

5. Print and teardown

Print: branch, worktree, PR URL or "not pushed", test result, rounds, HANDOFF.md path if any.

Teardown only after the PR merges, with the exact commands in TEARDOWN.md (Git Bash and PowerShell). git worktree remove deletes git-excluded files silently, and it and any recursive delete (rm -rf, Remove-Item -Recurse) follow a link and empty the main checkout's copy: never run them while a link exists.

  1. Records: every untracked or ignored file under the worktree's skilleddocs/ and the doc folders AGENTS.md/CLAUDE.md names (dated handoffs, HANDOFF.md, the decisions register, anything else) goes to the same subpath in the main checkout: new files moved without overwriting; HANDOFF.md renamed to a dated handoff in main's handoff folder (never overwriting) so the next teardown doesn't clash on it; the register merged by appending the rows whose ids main lacks. The worktree's register is deleted only when every line was carried over or is already in main (trailing \r ignored); a heading, prose, a wrong cell count or a clashing row keeps it and prints STOP with those lines. A same-named file stays put and is reported.
  2. Unlink each dep (removes the link only).
  3. Hard check: STOP while a dep link (dangling included) is left or git -C "<wt>" status --porcelain --ignored --untracked-files=all -- <doc folders> lists anything; only then git worktree remove.

STOP → leave the worktree and report what is left. git worktree remove refuses → stop and report git -C "<wt>" status --short; never --force.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Pair ?

Run one task (issue number or free text) in an isolated git worktree via a manager subagent that owns its implementer and retries; you push and open the PR at the end. Use for "implement issue N", "pair on this", or one task on any repo, forks included.

Pourquoi utiliser Pair sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Pair se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Pair dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/KrishP147/skills/tree/master/pair. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Pair ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Pair ?

Autant que vous le souhaitez. Tant qu’un modèle prend en charge les compétences, vous pouvez utiliser Pair avec lui : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Pair est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par KrishP147 sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, modèles de documents ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇