Logo : Pin To What Was Seen

Pin To What Was Seen

Communauté
randommonicle
pin-to-what-was-seen

An action a person takes on state a screen showed carries that state with the request, and the server refuses it, doing nothing, when the state no longer holds. Send the value or version the screen drew; compare-and-set on it under the row lock (409 on a mismatch); on a 409 or an answer in doubt close the editor and redraw from a fresh read; make a confirm name the state it confirms; and when an answer sends the user to another action, decide both from one predicate. Triggers when writing a mutation behind a button, form, editor or confirm dialog that acts on displayed state (a role change, an edit of a stored text, a resend, a decision on a request, a payment action), and when writing a retry or idempotency check around one. Does not fire on webhook and queue status writes (unordered-events owns those) or on serialising concurrent callers of one operation (lock-at-the-chokepoint owns that).

Présentation

Éditeurrandommonicle
Dépôtclaude-skills
Nom de la compétencepin-to-what-was-seen
Étoiles
27
Forks
3
Fichiers inclus
Instructions uniquement
LicenceApache-2.0
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 rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

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

Installation

Installez la compétence IA Pin To What Was Seen 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. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/randommonicle/claude-skills/tree/main/pin-to-what-was-seen
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une 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/randommonicle/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/pin-to-what-was-seen .claude/skills/pin-to-what-was-seen
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 Pin To What Was Seen 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 Pin To What Was Seen 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, la compétence Pin To What Was Seen n’est pas liée au modèle pour lequel elle 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.

Pin to what was seen

A screen is a snapshot. Between drawing it and the tap, another admin, another device, a webhook or a scheduled job may have changed the row. A request that says only "do it" (resend: true, role: "manager", the new text alone) acts on whatever the row is now, so the person approves one state and the server acts on another: a customer emailed twice, a role changed from one nobody saw, an edit overwriting a change the editor never read.

The rules

  1. Send what the screen drew. Every mutation from a screen carries the value, version or timestamp it was drawn from (from: "operative", seen_emailed_at, the notes shown, the row's revision). Make it required: a request without it is a 400, never a silent unpinned write.
  2. Compare-and-set on it, under the lock. The server checks the pin in the same atomic write that changes the row (... where id = $1 and role = $from), or after taking the row's lock, never in a read before it. A mismatch changes nothing and answers 409 with a reason the screen can say ("it changed since you opened it").
  3. Read the ledger after the lock. An idempotency or replay ledger is read after the row lock is taken, so a second send of the same operation waits for the first and finds its stored outcome instead of a conflict.
  4. A 409 or an answer in doubt closes the editor. On a refusal, a timeout or an unreadable answer, close the form and redraw from a fresh read before anything can be sent again. Say an answer in doubt as "may not have happened: check", never as failure, and never resend it from the stale form.
  5. A confirm names its state. The confirm text says what it acts on ("Resend the email last attempted at 14:02?") and the request carries that same state, so a confirm given for one attempt cannot act on another.
  6. Two remedies, one predicate. When an answer tells the user to take another action ("Finish recording instead"), that action's refusal is decided by the same predicate the answer consulted, and a test walks the round trip: the answer, then the action it names. Otherwise the two answers can point at each other forever.

Test it

  • Change the row between the read and the write (a second session or a direct update) and assert the 409 and that nothing changed.
  • Mutate the pin away (drop it from the request, or from the server's where-clause) and see the test go red (prove-it-can-fail).
  • Drive the screen: a 409 and a lost answer each close the editor and redraw.

Provenance

ICC L-025 (an operation authorised by a rotatable token binds its write to the hash it verified), L-058 (an idempotency ledger is read after the row lock, not before), L-066 (two remedies that point at each other loop unless one predicate decides both), L-076 (a confirmation must carry the state it was given for), and the "from" pins of 22 October 2026: GPT's review R7 (a role change needs the role the admin saw), and R11 and R12 (the access-notes editor pinned to the notes shown, closed on a 409 or an answer in doubt). docs/SKILL_PROPOSALS_2026-10-22.md, Tier 1 item 4.

Additions from the misses-log sweep (2026-11-01)

  • A pinned value compared after a store round trip is compared field by field, and its test reads back through the store. Serialisation is not identity: jsonb sorts object keys, numeric types widen, timestamps gain or lose precision, so a value that went in and came out is not byte-equal to the one that was pinned. Compare the fields the decision depends on, and write the test so it reads the value back through the real store rather than comparing two in-memory objects. (ICC L-127.)

Foire aux questions

À quoi sert la compétence IA Pin To What Was Seen ?

An action a person takes on state a screen showed carries that state with the request, and the server refuses it, doing nothing, when the state no longer holds. Send the value or version the screen drew; compare-and-set on it under the row lock (409 on a mismatch); on a 409 or an answer in doubt close the editor and redraw from a fresh read; make a confirm name the state it confirms; and when an answer sends the user to another action, decide both from one predicate. Triggers when writing a mutation behind a button, form, editor or confirm dialog that acts on displayed state (a role change,...

Pourquoi utiliser Pin To What Was Seen sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Pin To What Was Seen 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 Pin To What Was Seen dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/randommonicle/claude-skills/tree/main/pin-to-what-was-seen. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Pin To What Was Seen ?

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 Pin To What Was Seen ?

Autant que vous le souhaitez. Vous pouvez utiliser Pin To What Was Seen avec tout modèle qui prend en charge les compétences : 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 Pin To What Was Seen est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par randommonicle sous licence Apache-2.0. 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, gabarits 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 de travail IA dès maintenant

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